-
-
Notifications
You must be signed in to change notification settings - Fork 173
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Just upgraded from 0.2.13 to 0.3.2 to benefit from the latest data.index fix on b-table (which works) but the sorting seems now broken
<template>
<b-table
:items="items"
:fields="formFields"
v-model:sort-by="sortBy"
v-model:sort-desc="sortDesc">
>
<template v-slot:cell(name)="data">
<span :class="`name_${data.index}`">{{ data.value }}</span>
</template>
</b-table>
</template>
<script>
export default {
data(){
return {
sortBy: 'name',
sortDesc: false,
formFields: [
{key: "name", sortable: true, label: "Name"},
{key: "status", sortable: true, label: "Status"},
],
items: [
{ name: "Jack", status: "Used" },
{name: "Frank", status: "Unused"},
{name: "Larry", status: "Used" },
],
}
},
}
</script>
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working