- Notifications
You must be signed in to change notification settings - Fork11
Tree component for large amount of data, base on Vue3
NotificationsYou must be signed in to change notification settings
lycHub/vue-virtual-tree
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This library is deprecated, please use the refactoredvirtual-tree
Based on the tree component encapsulated by vue3 and dedicated to large data volume, if the data volume is not large, using this component is a bit wasteful
English &简体中文
npm i vue-virtual-tree
Global registration, but this will lose the type, if you use typescript, this method is not recommended
import{createApp}from'vue';importVirTreefrom'vue-virtual-tree';createApp(App).use(VirTree).mount('#app');Incomponents:<vir-tree/>
Partial registration, you can get a complete type
<template><divclass="demo"><vir-tree" :source="list"/></div></template><scriptlang="tsx">import{defineComponent, onMounted, ref}from'vue';import{VirTree,TreeNodeOptions}from'vue-virtual-tree';exportdefaultdefineComponent({name:'BaseDemo',components:{ VirTree},setup(props,{emit}){constlist=ref<TreeNodeOptions[]>([]);return{ list}}});</script>
About
Tree component for large amount of data, base on Vue3
Resources
Stars
Watchers
Forks
Packages0
No packages published