mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
pref: 树组件配置面板,限制节点数、展开层级非负
This commit is contained in:
parent
5f76c7c807
commit
8dfcdf090c
@ -485,12 +485,14 @@ export class TreeControlPlugin extends BasePlugin {
|
||||
{
|
||||
type: 'input-number',
|
||||
label: tipedLabel('节点最小数', '表单校验最少选中的节点数'),
|
||||
name: 'minLength'
|
||||
name: 'minLength',
|
||||
min: 0
|
||||
},
|
||||
{
|
||||
type: 'input-number',
|
||||
label: tipedLabel('节点最大数', '表单校验最多选中的节点数'),
|
||||
name: 'maxLength'
|
||||
name: 'maxLength',
|
||||
min: 0
|
||||
}
|
||||
]
|
||||
}),
|
||||
@ -728,6 +730,7 @@ export class TreeControlPlugin extends BasePlugin {
|
||||
label: '设置层级',
|
||||
name: 'unfoldedLevel',
|
||||
value: 1,
|
||||
min: 0,
|
||||
hiddenOn: 'data.initiallyOpen'
|
||||
}
|
||||
]
|
||||
|
@ -395,12 +395,14 @@ export class TreeSelectControlPlugin extends BasePlugin {
|
||||
{
|
||||
type: 'input-number',
|
||||
label: tipedLabel('节点最小数', '表单校验最少选中的节点数'),
|
||||
name: 'minLength'
|
||||
name: 'minLength',
|
||||
min: 0
|
||||
},
|
||||
{
|
||||
type: 'input-number',
|
||||
label: tipedLabel('节点最大数', '表单校验最多选中的节点数'),
|
||||
name: 'maxLength'
|
||||
name: 'maxLength',
|
||||
min: 0
|
||||
}
|
||||
]
|
||||
}),
|
||||
@ -638,6 +640,7 @@ export class TreeSelectControlPlugin extends BasePlugin {
|
||||
label: '设置层级',
|
||||
name: 'unfoldedLevel',
|
||||
value: 1,
|
||||
min: 0,
|
||||
hiddenOn: 'data.initiallyOpen'
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user