mirror of
https://github.com/nuxt/ui.git
synced 2026-09-14 19:51:10 +08:00
16 lines
378 B
Vue
16 lines
378 B
Vue
<script setup lang="ts">
|
|
import type { TreeItem } from '@nuxt/ui'
|
|
|
|
const items: TreeItem[] = Array(1000).fill(0).map((_, i) => ({
|
|
label: `Item ${i + 1}`,
|
|
children: [
|
|
{ label: `Child ${i + 1}-1`, icon: 'i-lucide-file' },
|
|
{ label: `Child ${i + 1}-2`, icon: 'i-lucide-file' }
|
|
]
|
|
}))
|
|
</script>
|
|
|
|
<template>
|
|
<UTree virtualize :items="items" class="h-80" />
|
|
</template>
|