v-tree-scroll
Advanced tools
+1
-1
| { | ||
| "name": "v-tree-scroll", | ||
| "description": "虚拟树滚动", | ||
| "version": "0.0.1", | ||
| "version": "0.0.2", | ||
| "author": "xyl <786549791@qq.com>", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -66,3 +66,3 @@ <template> | ||
| export default { | ||
| name: 'vTree', | ||
| name: 'vTreeScroll', | ||
| components: { | ||
@@ -69,0 +69,0 @@ 'el-checkbox': Checkbox |
+18
-5
@@ -9,11 +9,11 @@ # v-tree | ||
| # 安装组件 | ||
| npm i v-tree -S | ||
| npm i v-tree-scroll -S | ||
| # 引入组件 | ||
| import vtree from 'v-tree' | ||
| import vTreeScroll from 'v-tree-scroll' | ||
| Vue.use(vtree) | ||
| Vue.use(vTreeScroll) | ||
| # 使用 | ||
| <vTree :data="totalList" /> | ||
| <vTreeScroll :data="totalList" /> | ||
@@ -25,3 +25,3 @@ ``` | ||
| ## 包含属性 | ||
| ## 属性 | ||
@@ -40,1 +40,14 @@ | 属性名 | 默认值(类型) | 备注 | | ||
| | filterNodeMethod | Null(Function) | 默认过滤函数 | | ||
| ## 方法 | ||
| | 方法名 | 备注 | | ||
| | ------------------ |:--------------: | | ||
| | doLayout() | 强制刷新布局 | | ||
| | getNode(key) | 获取指定节点 | | ||
| | getCheckedNodes(half) | 返回选中节点(half是否返回半选) | | ||
| | getCheckedKeys(half) | 返回选中节点key(half是否返回半选) | | ||
| | setCheckedKeys(keys, leafOnly) | 设置节点选中(keys 设置的节点key数组;leafOnly 只是改变状态不涉及逻辑) | | ||
| | clear() | 清空选中 | | ||
| | filter(value) | 过滤数据(需要配合filterNodeMethod使用) | | ||
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
23776
2.86%51
34.21%