mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 11:58:10 +08:00
Merge pull request #6594 from qkiroc/editor/theme-locale
fix: 修复开发态编辑器没有主题和翻译的问题
This commit is contained in:
commit
4c4d1939c2
@ -1,11 +1,12 @@
|
||||
/* eslint-disable */
|
||||
import * as React from 'react';
|
||||
import {Editor, ShortcutKey, BasePlugin} from '../src/index';
|
||||
import {Editor, ShortcutKey, BasePlugin, setThemeConfig} from '../src/index';
|
||||
import {Select, Renderer, uuid, Button} from 'amis';
|
||||
import {currentLocale} from 'i18n-runtime';
|
||||
import {Portal} from 'react-overlays';
|
||||
import {Icon} from './icons/index';
|
||||
import LayoutList from './layout/index';
|
||||
import themeConfig from 'amis-theme-editor-helper/lib/systemTheme/cxd';
|
||||
|
||||
// 测试组织属性配置面板的国际化,可以放开如下注释
|
||||
// import '../renderer/InputTextI18n';
|
||||
@ -13,6 +14,7 @@ import LayoutList from './layout/index';
|
||||
// import '../utils/overwriteSchemaTpl';
|
||||
// const i18nEnabled = true;
|
||||
const i18nEnabled = false;
|
||||
setThemeConfig(themeConfig);
|
||||
|
||||
const schema = {
|
||||
type: 'page',
|
||||
|
@ -184,6 +184,8 @@ import './renderer/TransferTableControl';
|
||||
import './renderer/style-control/ThemeCssCode';
|
||||
import './renderer/ButtonGroupControl';
|
||||
import './renderer/FlexSettingControl';
|
||||
import 'amis-theme-editor/lib/locale/zh-CN';
|
||||
import 'amis-theme-editor/lib/locale/en-US';
|
||||
import 'amis-theme-editor/lib/renderers/Border';
|
||||
import 'amis-theme-editor/lib/renderers/ColorPicker';
|
||||
import 'amis-theme-editor/lib/renderers/Font';
|
||||
|
Loading…
Reference in New Issue
Block a user