From c4d0577dbd1e56edd7c7e6dba31b035117069743 Mon Sep 17 00:00:00 2001 From: wibetter <365533093@qq.com> Date: Tue, 22 Nov 2022 09:44:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(amis-saas-8235/):=E3=80=8C=E5=8D=A0?= =?UTF-8?q?=E6=AF=94=E8=AE=BE=E7=BD=AE=E3=80=8D=E6=94=B9=E6=88=90=E3=80=8C?= =?UTF-8?q?=E5=BC=B9=E6=80=A7=E6=AF=94=E4=BE=8B=E3=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I6d3dbe21d2499c0d525b1d1cbf33153c4b925ae1 --- packages/amis-editor/package.json | 2 +- packages/amis-editor/src/locale/en-US.ts | 3 ++- packages/amis-editor/src/locale/zh-CN.ts | 3 ++- packages/amis-editor/src/tpl/layout.tsx | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/amis-editor/package.json b/packages/amis-editor/package.json index c1a31aba0..a32ead9e5 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.16", + "version": "5.2.1-beta.17", "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 2ee261114..b150901d9 100644 --- a/packages/amis-editor/src/locale/en-US.ts +++ b/packages/amis-editor/src/locale/en-US.ts @@ -3540,5 +3540,6 @@ extendLocale('en-US', { '02b9880e1d2df8a07e90e9878080c739': 'Option Height', 'a3f66655c3d2bcfecc6afba0e4424460': 'Height of each option when virtual list is turned on', - '183f00df0922a6be371fea58cd46a60a': 'Elastic height' + '183f00df0922a6be371fea58cd46a60a': 'Elastic height', + '9e7c8d1554f6449121a83f951cf21ca1': 'Elastic scale' }); diff --git a/packages/amis-editor/src/locale/zh-CN.ts b/packages/amis-editor/src/locale/zh-CN.ts index f32f6033b..e94823847 100644 --- a/packages/amis-editor/src/locale/zh-CN.ts +++ b/packages/amis-editor/src/locale/zh-CN.ts @@ -3129,5 +3129,6 @@ extendLocale('zh-CN', { '当选项数量超过阈值后,会开启虚拟列表以优化性能', '02b9880e1d2df8a07e90e9878080c739': '选项高度', 'a3f66655c3d2bcfecc6afba0e4424460': '开启虚拟列表时每个选项的高度', - '183f00df0922a6be371fea58cd46a60a': '弹性高度' + '183f00df0922a6be371fea58cd46a60a': '弹性高度', + '9e7c8d1554f6449121a83f951cf21ca1': '弹性比例' }); diff --git a/packages/amis-editor/src/tpl/layout.tsx b/packages/amis-editor/src/tpl/layout.tsx index 3c56f7d47..eb40b9632 100644 --- a/packages/amis-editor/src/tpl/layout.tsx +++ b/packages/amis-editor/src/tpl/layout.tsx @@ -609,7 +609,7 @@ setSchemaTpl( } ); -// flex-grow 占比设置 +// flex-grow 弹性比例 setSchemaTpl( 'layout:flex-grow', (config?: { @@ -627,7 +627,7 @@ setSchemaTpl( label: config?.label || tipedLabel( - '占比设置', + '弹性比例', '定义项目的放大比例,默认为0,即如果存在剩余空间,也不放大。' ), name: config?.name || 'style.flexGrow',