select-tree-dan
v1.2.0
Published
An iview select tree adn vue components
Readme
select-tree-dan
说明
vue iview 树形下拉框组件 支持搜索清除功能下载
npm i select-tree-dan -S引入
import SelectTree from 'select-tree-dan';注册
components: { SelectTree }使用
<SelectTree
v-model="current"
:treeData="parent"
:selectKey="Key"
filterable
@select-tree="handleSelect"
></SelectTree>说明
v-model 支持字符串
treeData 树形数据 参考iview 树形结构
selectKey 支持绑定树形数据的唯一值key,用于v-model 获取的值
filterable Boolean 是否开启搜索功能 搜索指定key为title
@select-tree 点击事件返回当前点击对象