xs-sel-tree
v1.0.4
Published
a component of select and tree
Downloads
12
Readme
xs-sel-tree
This component is a composite component for Select and Tree of ElementPlus
npm i xs-sel-tree -S
// main.js or main.ts
import SelectTree from 'xs-sel-tree'
import '../node_modules/xs-sel-tree/style.css'
// ...
app.use(SelectTree)
compoentName: SelectTree
<SelectTree
:options=[{}, ...]
:defaultProps="{children: 'xxx', label: 'xxxx'}"
@getVal="getVal(val)"
:nodeKey="'id'"
/>
<!-- 可选参数:selWidth 类型:String 默认:'220px' 描述:选框宽度 -->
<!-- 可选参数:maxCol 类型:Number 默认:3 描述:展示的选中标签tag的数量 -->