I have encountered an issue with the Vuetify data table where it is not displaying any data. Even though it shows that there is 1 row out of 1 displayed, the table body remains empty. Below is my component code:
<template>
<v-data-table
:headers="headers"
:items="desserts"
>
</v-data-table>
</template>
<script>
export default {
name: 'Users',
data () {
return {
headers: [
{
text: 'Dessert (100g serving)',
align: 'left',
sortable: false,
value: 'name'
},
{ text: 'Fat (g)', value: 'fat' },
],
desserts: [
{
name: 'Frozen Yogurt',
fat: 6.0,
},
]
}
}
}
</script>
<style scoped lang="stylus">
</style>
Result:
https://i.stack.imgur.com/A49Cg.png
Does anyone have a solution to resolve this issue?