🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

v-tree-scroll

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

v-tree-scroll - npm Package Compare versions

Package was removed
Sorry, it seems this package was removed from the registry
Comparing version
0.0.1
to
0.0.2
+1
-1
package.json
{
"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

@@ -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使用) |