mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-15 17:31:18 +08:00
amis-saas-7537 feat:icon-picker=>tpl:icon
Change-Id: I5e3a175c77df98ccca17b406bf8ee9c40e60b9c6
This commit is contained in:
parent
db30f30eef
commit
38d8554532
@ -190,13 +190,12 @@ export class TableControlPlugin extends BasePlugin {
|
||||
visibleOn: 'data.addable',
|
||||
pipeIn: defaultValue('')
|
||||
},
|
||||
{
|
||||
getSchemaTpl('icon', {
|
||||
name: 'addBtnIcon',
|
||||
label: '增加按钮图标',
|
||||
type: 'icon-picker',
|
||||
className: 'fix-icon-picker-overflow',
|
||||
visibleOn: 'data.addable'
|
||||
},
|
||||
}),
|
||||
getSchemaTpl('api', {
|
||||
name: 'addApi',
|
||||
label: '新增时提交的 API',
|
||||
@ -213,13 +212,12 @@ export class TableControlPlugin extends BasePlugin {
|
||||
visibleOn: 'data.removable',
|
||||
pipeIn: defaultValue('')
|
||||
},
|
||||
{
|
||||
getSchemaTpl('icon', {
|
||||
name: 'deleteBtnIcon',
|
||||
label: '删除按钮图标',
|
||||
type: 'icon-picker',
|
||||
className: 'fix-icon-picker-overflow',
|
||||
visibleOn: 'data.removable'
|
||||
},
|
||||
}),
|
||||
getSchemaTpl('api', {
|
||||
name: 'deleteApi',
|
||||
label: '删除时提交的 API',
|
||||
@ -236,13 +234,12 @@ export class TableControlPlugin extends BasePlugin {
|
||||
visibleOn: 'data.editable',
|
||||
pipeIn: defaultValue('')
|
||||
},
|
||||
{
|
||||
getSchemaTpl('icon', {
|
||||
name: 'editBtnIcon',
|
||||
label: '编辑按钮图标',
|
||||
type: 'icon-picker',
|
||||
className: 'fix-icon-picker-overflow',
|
||||
visibleOn: 'data.editable'
|
||||
},
|
||||
}),
|
||||
getSchemaTpl('switch', {
|
||||
label: '是否可复制',
|
||||
name: 'copyable'
|
||||
@ -254,13 +251,12 @@ export class TableControlPlugin extends BasePlugin {
|
||||
visibleOn: 'data.copyable',
|
||||
pipeIn: defaultValue('')
|
||||
},
|
||||
{
|
||||
getSchemaTpl('icon', {
|
||||
name: 'copyBtnIcon',
|
||||
label: '复制按钮图标',
|
||||
type: 'icon-picker',
|
||||
className: 'fix-icon-picker-overflow',
|
||||
visibleOn: 'data.copyable'
|
||||
},
|
||||
}),
|
||||
getSchemaTpl('api', {
|
||||
name: 'updateApi',
|
||||
label: '修改时提交的 API',
|
||||
@ -273,13 +269,12 @@ export class TableControlPlugin extends BasePlugin {
|
||||
visibleOn: 'data.editable',
|
||||
pipeIn: defaultValue('')
|
||||
},
|
||||
{
|
||||
getSchemaTpl('icon', {
|
||||
name: 'confirmBtnIcon',
|
||||
label: '确认编辑按钮图标',
|
||||
type: 'icon-picker',
|
||||
className: 'fix-icon-picker-overflow',
|
||||
visibleOn: 'data.editable'
|
||||
},
|
||||
}),
|
||||
{
|
||||
type: 'input-text',
|
||||
name: 'cancelBtnLabel',
|
||||
@ -287,13 +282,12 @@ export class TableControlPlugin extends BasePlugin {
|
||||
visibleOn: 'data.editable',
|
||||
pipeIn: defaultValue('')
|
||||
},
|
||||
{
|
||||
getSchemaTpl('icon', {
|
||||
name: 'cancelBtnIcon',
|
||||
label: '取消编辑按钮图标',
|
||||
type: 'icon-picker',
|
||||
className: 'fix-icon-picker-overflow',
|
||||
visibleOn: 'data.editable'
|
||||
},
|
||||
}),
|
||||
getSchemaTpl('switch', {
|
||||
label: '是否可拖拽排序',
|
||||
name: 'draggable'
|
||||
|
@ -163,14 +163,11 @@ export default class TimelineItemControl extends React.Component<
|
||||
placeholder: '请输入',
|
||||
label: '颜色'
|
||||
},
|
||||
{
|
||||
type: 'icon-picker',
|
||||
name: 'icon',
|
||||
getSchemaTpl('icon', {
|
||||
value: props?.['icon'],
|
||||
placeholder: '请输入',
|
||||
clearable: true,
|
||||
description: '',
|
||||
label: '图标',
|
||||
className: 'fix-icon-picker-overflow',
|
||||
pipeIn: (value: any) => value?.icon,
|
||||
pipeOut: (value: any) => {
|
||||
@ -183,7 +180,7 @@ export default class TimelineItemControl extends React.Component<
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
})
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user