diff --git a/packages/amis-editor/src/plugin/Container.tsx b/packages/amis-editor/src/plugin/Container.tsx index f0b0691e3..35845b81d 100644 --- a/packages/amis-editor/src/plugin/Container.tsx +++ b/packages/amis-editor/src/plugin/Container.tsx @@ -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']), + }) ]) } ]); diff --git a/packages/amis-editor/src/plugin/Wrapper.tsx b/packages/amis-editor/src/plugin/Wrapper.tsx index 18ca1c766..eb1fb336d 100644 --- a/packages/amis-editor/src/plugin/Wrapper.tsx +++ b/packages/amis-editor/src/plugin/Wrapper.tsx @@ -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: [ diff --git a/packages/amis-editor/src/tpl/layout.tsx b/packages/amis-editor/src/tpl/layout.tsx index c3efe660c..cc6ef1d58 100644 --- a/packages/amis-editor/src/tpl/layout.tsx +++ b/packages/amis-editor/src/tpl/layout.tsx @@ -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,