Merge pull request #8394 from yinchunyu/show-columnsTogglable

feat: input-table增加是否展示列开关配置项, table更新配置项交互
This commit is contained in:
wutong 2023-10-17 11:31:51 +08:00 committed by GitHub
commit 2bdcab5b6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 8 deletions

View File

@ -1004,7 +1004,34 @@ export class TableControlPlugin extends BasePlugin {
},
getSchemaTpl('description'),
getSchemaTpl('placeholder'),
getSchemaTpl('labelRemark')
getSchemaTpl('labelRemark'),
{
name: 'columnsTogglable',
label: tipedLabel(
'列显示开关',
'是否展示表格列的显隐控件“自动”即列数量大于5时自动开启'
),
type: 'button-group-select',
pipeIn: defaultValue('auto'),
size: 'sm',
labelAlign: 'left',
options: [
{
label: '自动',
value: 'auto'
},
{
label: '开启',
value: true
},
{
label: '关闭',
value: false
}
]
}
]
},
{

View File

@ -571,15 +571,14 @@ export class TablePlugin extends BasePlugin {
body: [
{
name: 'columnsTogglable',
label: '展示列显示开关',
label: tipedLabel(
'列显示开关',
'是否展示表格列的显隐控件“自动”即列数量大于5时自动开启'
),
type: 'button-group-select',
pipeIn: defaultValue('auto'),
size: 'sm',
labelAlign: 'left',
horizontal: {
left: 5,
right: 7
},
options: [
{
label: '自动',
@ -595,8 +594,7 @@ export class TablePlugin extends BasePlugin {
label: '关闭',
value: false
}
],
description: '自动即列数量大于5个时自动开启'
]
},
getSchemaTpl('switch', {