1.1.11 • Published 2 years ago
cx-basic-tree v1.1.11
cx-basic-tree by xiaoyuan
树形组件
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
For detailed explanation on how things work, consult the docs for vue-loader.
Assignment
- 外部组件可控的增、删、改、查
Release Notes
__Version 1.1.1
Fixed
- 利用highlight-current,来处理点击节点后高亮选中的节点
Added
Changed
__Version 1.1.0
Added
基本功能实现;允许外部控制组件是否启用编辑、checked 功能
Use Methods
- 项目下安装该组件 npm i cx-basic-tree
- 引入该组件 import * from 'cx-basic-tree'
Options Props
- 'p_datas' Type:
Array
Default: [] - 'isReadOnly' Type:
Boolean
Default: false - 'isChecked' Type:
Boolean
Default: true
Event Bind
- '@nodeClick' Param:
node
- '@nodeChecked' Param:
checkedNodes