@ldmjs/treeview
v1.0.1
Published
vue3 tree view
Downloads
103
Readme
tree-view
Installation
npm install @ldmjs/treeview
OR
yarn add @ldmjs/treeview
Use TreeView
import TreeView from '@ldmjs/treeview';
const appComponent = createApp(App);
appComponent.component('tree-view', TreeView);
<tree-view :model="model" :selection="selection" v-bind="treeOptions" :onSelect="onSelect">
<template #default="props">
<a :id="props.item.id" :key="props.item.id">
{{ props.item.name }}
</a>
</template>
</tree-view>