fix: update big-data virtual example for table
This commit is contained in:
parent
83a11606f4
commit
1f1e6f339f
|
|
@ -28,6 +28,11 @@ const examples = [
|
|||
href: '/examples/tasks',
|
||||
code: 'https://github.com/radix-vue/shadcn-vue/tree/dev/apps/www/src/examples/tasks',
|
||||
},
|
||||
{
|
||||
name: 'Tasks Virtualized',
|
||||
href: '/examples/big-data',
|
||||
code: 'https://github.com/radix-vue/shadcn-vue/tree/dev/apps/www/src/examples/big-data',
|
||||
},
|
||||
{
|
||||
name: 'Playground',
|
||||
href: '/examples/playground',
|
||||
|
|
|
|||
7
apps/www/src/content/examples/big-data.md
Normal file
7
apps/www/src/content/examples/big-data.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<script setup>
|
||||
import BigDataExample from "@/examples/big-data/Example.vue"
|
||||
</script>
|
||||
|
||||
<Suspense>
|
||||
<BigDataExample />
|
||||
</Suspense>
|
||||
|
|
@ -19,7 +19,7 @@ import {
|
|||
import { useVirtualList } from '@vueuse/core'
|
||||
|
||||
import { computed, ref } from 'vue'
|
||||
import { type Task } from '../data/schema'
|
||||
import type { Task } from '../data/schema'
|
||||
import DataTablePagination from './DataTablePagination.vue'
|
||||
import DataTableToolbar from './DataTableToolbar.vue'
|
||||
import { valueUpdater } from '@/lib/utils'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<script setup lang="ts">
|
||||
import { type Table } from '@tanstack/vue-table'
|
||||
import { type Task } from '../data/schema'
|
||||
import type { Table } from '@tanstack/vue-table'
|
||||
import type { Task } from '../data/schema'
|
||||
import ChevronLeftIcon from '~icons/radix-icons/chevron-left'
|
||||
import ChevronRightIcon from '~icons/radix-icons/chevron-right'
|
||||
import DoubleArrowLeftIcon from '~icons/radix-icons/double-arrow-left'
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user