pref: 树组件配置面板,限制节点数、展开层级非负

This commit is contained in:
zhouqiqi01 2023-12-07 15:52:32 +08:00
parent 5f76c7c807
commit 8dfcdf090c
2 changed files with 10 additions and 4 deletions

View File

@ -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'
}
]

View File

@ -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'
}
]