From cbc17972875744ad0fe5fcfa9c1f251fc8f4aaf9 Mon Sep 17 00:00:00 2001 From: qkiroc <30946345+qkiroc@users.noreply.github.com> Date: Tue, 20 Feb 2024 19:12:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DminiEditor=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E5=9B=BD=E9=99=85=E5=8C=96=E4=B8=8D=E7=94=9F=E6=95=88?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#9620)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 修复miniEditor应用国际化不生效问题 * fix: 保证语言更新后能重新渲染 --------- Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com> --- packages/amis-editor-core/src/component/MiniEditor.tsx | 1 + packages/amis/src/renderers/Table/AutoFilterForm.tsx | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/amis-editor-core/src/component/MiniEditor.tsx b/packages/amis-editor-core/src/component/MiniEditor.tsx index 4d51988e1..b2a7e59de 100644 --- a/packages/amis-editor-core/src/component/MiniEditor.tsx +++ b/packages/amis-editor-core/src/component/MiniEditor.tsx @@ -53,6 +53,7 @@ export default class MiniEditor extends Editor { theme={theme} data={data} autoFocus={autoFocus} + appLocale={this.props.appLocale} > diff --git a/packages/amis/src/renderers/Table/AutoFilterForm.tsx b/packages/amis/src/renderers/Table/AutoFilterForm.tsx index 54aee11dd..d809c41b1 100644 --- a/packages/amis/src/renderers/Table/AutoFilterForm.tsx +++ b/packages/amis/src/renderers/Table/AutoFilterForm.tsx @@ -191,7 +191,8 @@ export function AutoFilterForm({ autoGenerateFilter, activedSearchableColumns, searchableColumns, - searchFormExpanded + searchFormExpanded, + __ // 保证语言更新后能重新渲染 ]); return render('searchable-form', schema, {