Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Tree component for large amount of data, base on Vue3

NotificationsYou must be signed in to change notification settings

lycHub/vue-virtual-tree

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 &简体中文

How to use

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>

[8]ページ先頭

©2009-2025 Movatter.jp