fix(amis-saas-4371): 剔除布局容器中外观配置面板中的重复配置项

Change-Id: I2c284de8c4c2de395f5e876a990d12426807d345
This commit is contained in:
wibetter 2022-11-14 13:09:07 +08:00
parent 78aad3c37d
commit 0790058ea9
3 changed files with 5 additions and 6 deletions

View File

@ -164,7 +164,7 @@ export class ContainerPlugin extends BasePlugin {
title: '外观',
className: 'p-none',
body: getSchemaTpl('collapseGroup', [
...getSchemaTpl('style:common', [], ['layout']),
...getSchemaTpl('style:common', ['layout']),
getSchemaTpl('style:classNames', {
isFormItem: false,
schema: [
@ -173,8 +173,7 @@ export class ContainerPlugin extends BasePlugin {
label: '内容区'
})
]
}),
...getSchemaTpl('style:common', ['layout']),
})
])
}
]);

View File

@ -199,7 +199,7 @@ export class WrapperPlugin extends BasePlugin {
title: '外观',
className: 'p-none',
body: getSchemaTpl('collapseGroup', [
...getSchemaTpl('style:common'),
...getSchemaTpl('style:common', ['layout']),
{
title: 'CSS 类名',
body: [

View File

@ -193,7 +193,7 @@ setSchemaTpl(
}
});
// 展示模式
// 显示类型
setSchemaTpl(
'layout:display',
(config?: {
@ -207,7 +207,7 @@ setSchemaTpl(
}) => {
const configSchema = {
type: 'select',
label: config?.label || tipedLabel('展示模式', '默认为块级可设置为弹性布局模式flex布局容器'),
label: config?.label || tipedLabel('显示类型', '默认为块级可设置为弹性布局模式flex布局容器'),
name: config?.name || 'style.display',
value: config?.value || 'block',
visibleOn: config?.visibleOn,