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

virtual-tree-select

Package Overview
Dependencies
Maintainers
1
Versions
12
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

virtual-tree-select

虚拟下拉树选择框

Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

virtual-tree-select

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

注意:不使用elment的组件el-tree、el-select是因为他们的包太大 太重大数据量js内存使用依旧很高,主要是他涉及的功能较多,我这写的简化版

使用步骤

# 安装组件
npm i virtual-tree-select -S

# 引入组件
import  virtualTreeSelect  from 'virtual-tree-select'

Vue.use(virtualTreeSelect)

# 使用
<virtual-tree-select  :data="totalList" />

属性

属性名类型默认值说明
dataArray[]数据源
nodeKeyStringid每个树节点用来作为唯一标识的属性,整棵树应该是唯一的
propsObject{label: 'label',children: 'children'}树节点配置
defaultExpandAllBooleanfalse全部是否展开
multipleBooleanfalse是否多选
checkStrictlyBooleanfalse是否不级联
remoteSearchBooleanfalse是否远程搜索
remoteSearchTextstring'请输入关键字搜索'远程搜索提示文字
clearableBooleantrue是否可以清空

Keywords

virtual

FAQs

Package last updated on 25 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