v1.1.6
This commit is contained in:
parent
1af1f03195
commit
2111c073b8
2
dist/static/2.js
vendored
2
dist/static/2.js
vendored
File diff suppressed because one or more lines are too long
@ -14,7 +14,7 @@ tree: {
|
||||
showLine: false,
|
||||
//间距
|
||||
indent: 20,
|
||||
//默认展开节点的数组
|
||||
//默认展开节点的数组, 为 true 时, 展开所有节点
|
||||
expandedKeys: [],
|
||||
//是否严格遵守父子模式
|
||||
strict: true,
|
||||
@ -317,3 +317,49 @@ setTimeout(function(){
|
||||
</script>
|
||||
```
|
||||
:::
|
||||
|
||||
|
||||
### 默认展开所有节点
|
||||
|
||||
```
|
||||
tree: {
|
||||
show: true,
|
||||
//展开所有节点
|
||||
expandedKeys: true,
|
||||
},
|
||||
```
|
||||
|
||||
:::demo
|
||||
```html
|
||||
<div id="demo5" class="xm-select-demo"></div>
|
||||
|
||||
<script>
|
||||
var demo5 = xmSelect.render({
|
||||
el: '#demo5',
|
||||
tree: {
|
||||
show: true,
|
||||
expandedKeys: true,
|
||||
},
|
||||
height: 'auto',
|
||||
data: [
|
||||
{name: '销售员', value: -1, children: [
|
||||
{name: '张三', value: 100, children: []},
|
||||
{name: '李四1', value: 2},
|
||||
{name: '王五1', value: 3, disabled: true},
|
||||
]},
|
||||
{name: '奖品', value: -2, children: [
|
||||
{name: '奖品3', value: -3, children: [
|
||||
{name: '苹果3', value: 14},
|
||||
{name: '香蕉3', value: 15},
|
||||
{name: '葡萄3', value: 16},
|
||||
]},
|
||||
{name: '苹果2', value: 4, disabled: true},
|
||||
{name: '香蕉2', value: 5},
|
||||
{name: '葡萄2', value: 6},
|
||||
]},
|
||||
]
|
||||
})
|
||||
|
||||
</script>
|
||||
```
|
||||
:::
|
@ -175,7 +175,7 @@ list: [ "ALL", "CLEAR",
|
||||
| showFolderIcon | 是否显示节点前的三角图标 | boolean | true / false | true |
|
||||
| showLine | 是否显示虚线 | boolean | true / false | true |
|
||||
| indent | 间距 | int | - | 20 |
|
||||
| expandedKeys | 默认展开的节点数组 | array | - | [ ] |
|
||||
| expandedKeys | 默认展开的节点数组, 为true时展开所有节点 | array / boolean | - | [ ] |
|
||||
| strict | 是否遵循严格父子结构 | boolean | true / false | true |
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user