diff --git a/packages/amis-editor/package.json b/packages/amis-editor/package.json index 510622281..2316c1110 100644 --- a/packages/amis-editor/package.json +++ b/packages/amis-editor/package.json @@ -1,6 +1,6 @@ { "name": "amis-editor", - "version": "5.2.1-beta.31", + "version": "5.2.1-beta.32", "description": "amis 可视化编辑器", "main": "lib/index.js", "module": "esm/index.js", diff --git a/packages/amis-editor/src/locale/en-US.ts b/packages/amis-editor/src/locale/en-US.ts index a49c83677..50cccac7e 100644 --- a/packages/amis-editor/src/locale/en-US.ts +++ b/packages/amis-editor/src/locale/en-US.ts @@ -3545,5 +3545,6 @@ extendLocale('en-US', { 'a2b62974f4d7564bb68b570116f25a10': 'Minimum width', '2bd921d0ea7a73b77ee0fcddb1afcc84': 'Minimum height', 'eb7366583485f478e3d8c2b105ea51ff': - 'Defines the magnification of the item. If it is set to 0, it will not be magnified even if there is space left in the parent container.' + 'Defines the magnification of the item. If it is set to 0, it will not be magnified even if there is space left in the parent container.', + '5d3d48de1ba22368eacdc1c69fb044ce': 'Component inner layer CSS class name' }); diff --git a/packages/amis-editor/src/locale/zh-CN.ts b/packages/amis-editor/src/locale/zh-CN.ts index 77cf86f5e..76f714045 100644 --- a/packages/amis-editor/src/locale/zh-CN.ts +++ b/packages/amis-editor/src/locale/zh-CN.ts @@ -3132,5 +3132,6 @@ extendLocale('zh-CN', { 'a2b62974f4d7564bb68b570116f25a10': '最小宽度', '2bd921d0ea7a73b77ee0fcddb1afcc84': '最小高度', 'eb7366583485f478e3d8c2b105ea51ff': - '定义项目的放大比例,如果设置为0,即使父容器存在剩余空间,也不放大。' + '定义项目的放大比例,如果设置为0,即使父容器存在剩余空间,也不放大。', + '5d3d48de1ba22368eacdc1c69fb044ce': '组件内层 CSS 类名' }); diff --git a/packages/amis-editor/src/plugin/Image.tsx b/packages/amis-editor/src/plugin/Image.tsx index ccf6089b1..b2de0b65c 100644 --- a/packages/amis-editor/src/plugin/Image.tsx +++ b/packages/amis-editor/src/plugin/Image.tsx @@ -173,6 +173,11 @@ export class ImagePlugin extends BasePlugin { autoComplete: false }), + getSchemaTpl('className', { + name: 'innerClassName', + label: '组件内层 CSS 类名' + }), + getSchemaTpl('className', { name: 'imageClassName', label: '图片 CSS 类名' diff --git a/packages/amis-editor/src/tpl/layout.tsx b/packages/amis-editor/src/tpl/layout.tsx index 83a953e44..968ee3e55 100644 --- a/packages/amis-editor/src/tpl/layout.tsx +++ b/packages/amis-editor/src/tpl/layout.tsx @@ -270,6 +270,7 @@ setSchemaTpl( form.setValueByName('style.flexDirection', undefined); form.setValueByName('style.justifyContent', undefined); form.setValueByName('style.alignItems', undefined); + form.setValueByName('style.flexWrap', undefined); } }, };