Skip to content

Instantly share code, notes, and snippets.

@fahmiegerton
Created December 19, 2021 04:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fahmiegerton/7a60c12b742e8fa1d464591586955d9e to your computer and use it in GitHub Desktop.
Save fahmiegerton/7a60c12b742e8fa1d464591586955d9e to your computer and use it in GitHub Desktop.
This vuetify data table cause an error
<template>
<div>
<v-container>
<v-data-table :headers="headers" :items="dataku" class="elevation-1" item-key="id"> </v-data-table>
</v-container>
</div>
</template>
<script>
export default {
data() {
return {
headers: [
{ text: "ID", value: "id" },
{ text: "Name", value: "name" },
{ text: "Phone Num", value: "phone" },
{ text: "Unique ID", value: "uid" }
],
dataku: [
{ id: 382913, name: "something", phone: "08382174832", uid: 32197391 },
{ id: 238199, name: "gone gone", phone: "382919111", uid: 397428999 }
]
};
},
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment