1.0.1 • Published 3 years ago

tableselectrow v1.0.1

Weekly downloads
2
License
ISC
Repository
-
Last release
3 years ago

安装

# npm方式安装
npm i tableselectrow

属性说明

属性名称类型是否必填说明
v-modelBoolean必填控制显示隐藏
filedsArray[]必填过滤字段(后面详解)
dataArray[]必填数据源
searchBoolean--是否需要搜索树结构
searchKeyString--搜索树结构的 key(search 必须为 true 的情况下)
typeString--表格类型,默认 tables,可选(tables/tree/radio)
defaultPropsObject{}必填默认{children: 'children',label: 'label'} 后面详解
layerDisabledNumber--默认 0,从外向内多少层禁用
onlyKeyString--默认 'id',唯一的 key 值
showValueString--要展示的值(radio)
heightString--高度,默认为 400px
defaultExpandAllBoolean--是否树结构全部展开
titleString必填标题

defaultProps

属性名称类型是否必填说明
childrenString必填指定子树为节点对象的某个属性值
labelString必填指定节点标签为节点对象的某个属性值

fileds

属性名称类型是否必填说明
labelString必填展示的文本
propString必填数据

事件

事件名称说明返回值
selectRow选完数据确定事件返回选中的数据对象 select
checkChange树结构的选择框改变时触发返回值 data, checked, node