mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:39:05 +08:00
Merge pull request #8394 from yinchunyu/show-columnsTogglable
feat: input-table增加是否展示列开关配置项, table更新配置项交互
This commit is contained in:
commit
2bdcab5b6a
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -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', {
|
||||
|
Loading…
Reference in New Issue
Block a user