Skip to content

基于 vue 的海量数据tree组件(20w+)

Notifications You must be signed in to change notification settings

yumengzhi/huge-tree

 
 

Repository files navigation

使用方式

// 因为直接使用的源码,模块需要经过 webpack 编译

npm i @bitmain/components-tree --save

// main.js, 全局使用
import BTM from '@bitmain/components-tree'
Vue.use(BTM)

// demo1.vue, 使用 huge-tree
<btm-huge-tree><btm-huge-tree/>

// demo2.vue 使用 huge-list
<btm-huge-list></btm-huge-list>
// 按需使用
import { HugeTree, HugeList } from '@bitmain/components-tree'
Vue.use(HugeTree)
Vue.use(HugeList)
// demo.vue, 组件内部使用
<template>
  <div>
    <btm-huge-tree></btm-huge-tree>
  </div>
</template>

<script>
import { HugeTree } from '@bitmain/components-tree'

export default {
  components: {
    'btm-huge-tree': HugeTree
  }
}
</script>

Doc

参见 github 各 demo
huge-tree 使用doc
huge-list 使用doc

本地运行

  1. git clone
  2. yarn install
  3. yarn dev && yarn mock:api
  4. 0.0.0.0:8000

About

基于 vue 的海量数据tree组件(20w+)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 64.5%
  • JavaScript 34.3%
  • Other 1.2%