From 7ba8000afc26d9cc573913d520bcc6277be0879a Mon Sep 17 00:00:00 2001 From: zhuwei11 Date: Fri, 14 Oct 2022 10:59:32 +0800 Subject: [PATCH] =?UTF-8?q?amis-saas-7483=20=E5=9B=BD=E9=99=85=E5=8C=96?= =?UTF-8?q?=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I92dd039d927ce5c4b3203af38b75a01ed304452e --- packages/amis-editor/package.json | 2 +- .../amis-editor/src/renderer/event-control/actions.tsx | 8 ++++++-- packages/amis-editor/src/renderer/event-control/index.tsx | 4 +++- .../amis-editor/src/renderer/style-control/Border.tsx | 3 ++- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/packages/amis-editor/package.json b/packages/amis-editor/package.json index dce7ab018..348c00999 100644 --- a/packages/amis-editor/package.json +++ b/packages/amis-editor/package.json @@ -1,6 +1,6 @@ { "name": "amis-editor", - "version": "5.2.0-i18n.7", + "version": "5.2.0-i18n.8", "description": "amis 可视化编辑器", "main": "lib/index.js", "module": "esm/index.js", diff --git a/packages/amis-editor/src/renderer/event-control/actions.tsx b/packages/amis-editor/src/renderer/event-control/actions.tsx index f9c86b100..bf2ef58bc 100644 --- a/packages/amis-editor/src/renderer/event-control/actions.tsx +++ b/packages/amis-editor/src/renderer/event-control/actions.tsx @@ -16,6 +16,8 @@ import { SUPPORT_DISABLED_CMPTS } from './helper'; import {BaseLabelMark} from '../../component/BaseControl'; +import {i18n as _i18n} from 'i18n-runtime'; + const MSG_TYPES: {[key: string]: string} = { info: '提示', warning: '警告', @@ -204,7 +206,8 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => { } block > - 去配置 + {/* 翻译未生效,临时方案 */} + {_i18n('a532be3ad5f3fda70d228b8542e81835')} ) }, @@ -232,7 +235,8 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => { } block > - 去配置 + {/* 翻译未生效,临时方案 */} + {_i18n('a532be3ad5f3fda70d228b8542e81835')} ) } diff --git a/packages/amis-editor/src/renderer/event-control/index.tsx b/packages/amis-editor/src/renderer/event-control/index.tsx index 91e454c24..c540cb752 100644 --- a/packages/amis-editor/src/renderer/event-control/index.tsx +++ b/packages/amis-editor/src/renderer/event-control/index.tsx @@ -30,6 +30,7 @@ import { SubRendererPluginAction } from 'amis-editor-core'; export * from './helper'; +import {i18n as _i18n} from 'i18n-runtime'; interface EventControlProps extends FormControlProps { actions: PluginActions; // 组件的动作列表 @@ -828,7 +829,8 @@ export class EventControl extends React.Component< }) ) : (
- 快去添加事件,让你的产品动起来吧 + {/* 翻译未生效,临时方案 */} + {_i18n('4db5110d41293fef57f5a1f364187896')}
)} diff --git a/packages/amis-editor/src/renderer/style-control/Border.tsx b/packages/amis-editor/src/renderer/style-control/Border.tsx index 80a888ed6..593b55144 100644 --- a/packages/amis-editor/src/renderer/style-control/Border.tsx +++ b/packages/amis-editor/src/renderer/style-control/Border.tsx @@ -237,7 +237,8 @@ function BoxBorder({ placeholder: '边框颜色', clearable: true, value: value[getKey('border', 'color')], - inputClassName: 'ae-border-colorpicker' + inputClassName: 'ae-border-colorpicker', + label: false, }, { onChange: changeItem('border', 'color')