UNPKG

huge-tree

Version:

vue组件,海量数据 tree、list,支持20w+,虚拟滚动<br>

17 lines (12 loc) 391 B
import HugeTree from './hugeTree/index.js'; import HugeList from './hugeList/index.js'; const components = [HugeTree, HugeList]; const install = function(Vue, opts = {}) { components.forEach(component => { Vue.component(component.name, component); }); }; if (typeof window !== 'undefined' && window.Vue) { install(window.Vue); } export default { install, HugeTree, HugeList };