Skip to content

Commit

Permalink
fix: 修复miniEditor应用国际化不生效问题 (baidu#9620)
Browse files Browse the repository at this point in the history
* fix: 修复miniEditor应用国际化不生效问题

* fix: 保证语言更新后能重新渲染

---------

Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
  • Loading branch information
qkiroc and qkiroc committed Feb 20, 2024
1 parent 997e1bb commit cbc1797
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/amis-editor-core/src/component/MiniEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export default class MiniEditor extends Editor {
theme={theme}
data={data}
autoFocus={autoFocus}
appLocale={this.props.appLocale}
></Preview>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion packages/amis/src/renderers/Table/AutoFilterForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ export function AutoFilterForm({
autoGenerateFilter,
activedSearchableColumns,
searchableColumns,
searchFormExpanded
searchFormExpanded,
__ // 保证语言更新后能重新渲染
]);

return render('searchable-form', schema, {
Expand Down

0 comments on commit cbc1797

Please sign in to comment.