grandparants
: 現在の祖父母リストの配列 (Reactive list of grandparents)
id
(string) : コンポーネントのIDclass
(string) : コンポーネントのクラスstyle
(string) : コンポーネントのスタイルstyleReset
(boolean) : スタイルリセットフラグgrandparents
(Array) : 階層構造の祖父母リスト
bindingClass
: スタイルリセットフラグに応じたクラス名を返す (Returns class name based on styleReset flag)
<script setup lang="ts">
import { TreeList } from 'revuekitz'
import 'revuekitz/dist/style.css'
</script>
<template>
<TreeList
id="tree-list"
class="custom-tree-list"
:style="{ color: 'black' }"
:styleReset="false"
:grandparents="[
{
id: '1',
title: 'Grandparent #1',
href: 'https://example.com/grandparent',
parents: [
{
id: '1',
title: 'Parent #1',
href: 'https://example.com/parent',
children: [
{
id: '1',
title: 'Child #1',
href: 'https://example.com/child',
items: [
{
id: '1',
title: 'Item #1',
href: 'https://example.com/item1'
},
{
id: '2',
title: 'Item #2',
href: 'https://example.com/item2'
}
]
}
]
}
]
}
]"
/>
</template>