amis-editor-core 5.2.3-beta.12 → 5.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/component/Editor.d.ts +4 -0
- package/esm/component/Preview.d.ts +4 -0
- package/esm/component/SubEditor.d.ts +2 -0
- package/esm/index.js +2 -2
- package/esm/manager.d.ts +26 -7
- package/esm/store/editor.d.ts +9 -9
- package/esm/util.d.ts +5 -0
- package/lib/component/Editor.d.ts +4 -0
- package/lib/component/Preview.d.ts +4 -0
- package/lib/component/SubEditor.d.ts +2 -0
- package/lib/editor.js +1 -1
- package/lib/index.js +2 -2
- package/lib/manager.d.ts +26 -7
- package/lib/plugin/DataDebug.d.ts +0 -1
- package/lib/store/editor.d.ts +9 -10
- package/lib/style.css +1 -1
- package/lib/util.d.ts +5 -0
- package/package.json +2 -2
|
@@ -15,6 +15,10 @@ export interface EditorProps extends PluginEventListener {
|
|
|
15
15
|
$schemaUrl?: string;
|
|
16
16
|
schemas?: Array<any>;
|
|
17
17
|
theme?: string;
|
|
18
|
+
/** 应用语言类型 */
|
|
19
|
+
appLocale?: string;
|
|
20
|
+
/** 是否开启多语言 */
|
|
21
|
+
i18nEnabled?: boolean;
|
|
18
22
|
showCustomRenderersPanel?: boolean;
|
|
19
23
|
amisDocHost?: string;
|
|
20
24
|
superEditorData?: any;
|
|
@@ -6,6 +6,8 @@ import { EditorManager } from '../manager';
|
|
|
6
6
|
import { RendererConfig } from 'amis-core/lib/factory';
|
|
7
7
|
export interface PreviewProps {
|
|
8
8
|
theme?: string;
|
|
9
|
+
/** 应用语言类型 */
|
|
10
|
+
appLocale?: string;
|
|
9
11
|
amisEnv?: any;
|
|
10
12
|
className?: string;
|
|
11
13
|
editable?: boolean;
|
|
@@ -65,4 +67,6 @@ export interface SmartPreviewProps {
|
|
|
65
67
|
env: any;
|
|
66
68
|
data?: any;
|
|
67
69
|
manager: EditorManager;
|
|
70
|
+
/** 应用语言类型 */
|
|
71
|
+
appLocale?: string;
|
|
68
72
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EditorManager } from '../manager';
|
|
3
3
|
import { EditorStoreType } from '../store/editor';
|
|
4
|
+
import { RenderOptions } from 'amis-core';
|
|
4
5
|
import { BuildPanelEventContext, PluginEvent, RendererInfoResolveEventContext } from '../plugin';
|
|
5
6
|
export interface SubEditorProps {
|
|
6
7
|
store: EditorStoreType;
|
|
7
8
|
manager: EditorManager;
|
|
8
9
|
theme?: string;
|
|
10
|
+
amisEnv?: RenderOptions;
|
|
9
11
|
}
|
|
10
12
|
export declare class SubEditor extends React.Component<SubEditorProps> {
|
|
11
13
|
afterResolveEditorInfo(event: PluginEvent<RendererInfoResolveEventContext>): void;
|