12345678910111213141516171819202122232425262728293031 |
- <script setup lang="ts">
- import { ref } from 'vue';
- import { NDataTable } from 'naive-ui';
- const columns = ref([
- {
- key: 'no',
- title: 'No',
- },
- {
- key: 'title',
- title: 'Title',
- },
- {
- key: 'length',
- title: 'Length',
- },
- ]);
- const data = [
- { length: '4:18', no: 3, title: 'Wonderwall' },
- { length: '4:48', no: 4, title: "Don't Look Back in Anger" },
- { length: '7:27', no: 12, title: 'Champagne Supernova' },
- ];
- </script>
- <template>
- <NDataTable :columns="columns" :data="data" />
- </template>
- <style scoped></style>
|