I am using the Vuetify v-data-table component. Here it is:
<template>
<div>
<v-data-table
:headers="tableHeaders"
:items="items"
hide-actions
class="elevation-1"
>
<template slot="items" slot-scope="props">
<td>{{ props.item.name }}</td>
<td>{{ props.item.created_at }}</td>
<td>{{ props.item.updated_at }}</td>
</template>
</v-data-table>
<AddPlanButton/>
</div>
</template>
Here are my headers:
data () {
return {
items: [],
tableHeaders: [
{ text: 'Name' },
{ text: 'Created at' },
{ text: 'Updated at' }
]
}
},
And I am getting the next warning in the console:
[Vuetify] Headers must have a value property that corresponds to a value in the v-model array in "v-data-table"
I can translate but I can not understand exactly - what should I do in my code?