🎩 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
Package was removed
Sorry, it seems this package was removed from the registry

v-tree-scroll

虚拟树滚动

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

v-tree-scroll

一个虚拟滚动树组件。针对数据量太大会造成渲染 dom 太多,造成页面卡顿,虚拟列表应运而生,而开发过程中还有一种树的结构形式,所以制作了虚拟滚动树,解决 dom 节点过多造成的卡顿。

使用步骤

# 安装组件
npm i v-tree-scroll -S

# 引入组件
import  virtualTree  from 'v-tree-scroll'

Vue.use(virtualTree)

# 使用
<virtualTree  :data="totalList" />

效果

效果图

属性

属性名默认值(类型)备注
lines20(Number)显示默认行数
lineHeight30(Number)默认每行高
nodeKeyid(String)key
props{
label: 'name',
children: 'children'
}(Object)
默认数据级联结构
defaultExpandAllfalse(Boolean)是否默认展开
mutipletrue (Boolean)是否多选
checkStrictlyfalse (Boolean)是否父子级不关联

方法

方法名备注
getNode(key)获取指定节点
getCheckedNodes(half)返回选中节点(half是否返回半选)
getCheckedKeys(half)返回选中节点key(half是否返回半选)
setCheckedKeys(keys)设置节点选中(keys 设置的节点key数组)
clear()清空选中
filter(value)过滤数据
allChange(value)全选数据

Keywords

v-tree-scroll

FAQs

Package last updated on 02 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts