amis-editor 4.0.2-beta.4 → 4.1.0-beta.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/component/RegionWrapper.d.ts +11 -8
- package/dist/component/RendererThumb.d.ts +5 -5
- package/dist/component/VRenderer.d.ts +1 -1
- package/dist/component/base/SearchRendererPanel.d.ts +1 -1
- package/dist/exports.min.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.min.js +1 -1
- package/dist/manager.d.ts +4 -3
- package/dist/plugin/Collapse.d.ts +15 -6
- package/dist/plugin/CollapseGroup.d.ts +41 -0
- package/dist/plugin/DropDownButton.d.ts +1 -0
- package/dist/plugin/Form/Combo.d.ts +1 -1
- package/dist/plugin/TooltipWrapper.d.ts +30 -0
- package/dist/plugin.d.ts +3 -1
- package/dist/store/editor.d.ts +6 -2
- package/dist/style.css +1 -1
- package/dist/util.d.ts +12 -2
- package/package.json +5 -5
- package/dist/component/AvailableRenderersPanel.d.ts +0 -20
- package/dist/component/BackTop.d.ts +0 -26
- package/dist/component/CodeEditor.d.ts +0 -37
- package/dist/component/CodeEditorPanel.d.ts +0 -12
- package/dist/component/ContextMenuPanel.d.ts +0 -8
- package/dist/component/ErrorRenderer.d.ts +0 -4
- package/dist/component/InputComponentName.d.ts +0 -8
- package/dist/component/InsertSubRendererPanel.d.ts +0 -11
- package/dist/component/Outline.d.ts +0 -18
- package/dist/component/Panels.d.ts +0 -17
- package/dist/component/TargetNamePanel.d.ts +0 -7
- package/dist/plugin/Action.d.ts +0 -6
- package/dist/plugin/AvailableRenderers.d.ts +0 -8
- package/dist/plugin/BasicToolbar.d.ts +0 -11
- package/dist/plugin/Code.d.ts +0 -9
- package/dist/plugin/DataDebug.d.ts +0 -19
- package/dist/plugin/Form/Editor.d.ts +0 -39
- package/dist/plugin/Name.d.ts +0 -8
- package/dist/plugin/TableCell.d.ts +0 -8
- package/dist/plugin/Unknown.d.ts +0 -5
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { EditorManager } from '../manager';
|
3
|
-
import { RegionConfig } from '../plugin';
|
3
|
+
import { RegionConfig, RendererInfo } from '../plugin';
|
4
4
|
import { EditorStoreType } from '../store/editor';
|
5
5
|
import { EditorNodeType } from '../store/node';
|
6
6
|
export interface RegionWrapperProps {
|
@@ -13,6 +13,8 @@ export interface RegionWrapperProps {
|
|
13
13
|
manager: EditorManager;
|
14
14
|
rendererName?: string;
|
15
15
|
regionConfig: RegionConfig;
|
16
|
+
node?: EditorNodeType;
|
17
|
+
$$editor?: RendererInfo;
|
16
18
|
}
|
17
19
|
/**
|
18
20
|
* 1.DOM标记 添加 data-region、data-region-host 和 data-renderer 属性
|
@@ -44,8 +46,8 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
44
46
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
45
47
|
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
46
48
|
} & {
|
47
|
-
readonly info:
|
48
|
-
setInfo(value:
|
49
|
+
readonly info: RendererInfo;
|
50
|
+
setInfo(value: RendererInfo): void;
|
49
51
|
readonly isVitualRenderer: boolean;
|
50
52
|
readonly clickable: boolean;
|
51
53
|
readonly draggable: boolean;
|
@@ -77,7 +79,7 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
77
79
|
label: string;
|
78
80
|
path: string;
|
79
81
|
isCommonConfig?: boolean | undefined;
|
80
|
-
info?:
|
82
|
+
info?: RendererInfo | undefined;
|
81
83
|
region?: string | undefined;
|
82
84
|
getData?: (() => any) | undefined;
|
83
85
|
preferTag?: string | undefined;
|
@@ -122,8 +124,8 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
122
124
|
}, {
|
123
125
|
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
124
126
|
} & {
|
125
|
-
readonly info:
|
126
|
-
setInfo(value:
|
127
|
+
readonly info: RendererInfo;
|
128
|
+
setInfo(value: RendererInfo): void;
|
127
129
|
readonly isVitualRenderer: boolean;
|
128
130
|
readonly clickable: boolean;
|
129
131
|
readonly draggable: boolean;
|
@@ -155,7 +157,7 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
155
157
|
label: string;
|
156
158
|
path: string;
|
157
159
|
isCommonConfig?: boolean | undefined;
|
158
|
-
info?:
|
160
|
+
info?: RendererInfo | undefined;
|
159
161
|
region?: string | undefined;
|
160
162
|
getData?: (() => any) | undefined;
|
161
163
|
preferTag?: string | undefined;
|
@@ -176,8 +178,9 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
176
178
|
setWidthMutable(value: any): void;
|
177
179
|
setHeightMutable(value: any): void;
|
178
180
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | null>;
|
181
|
+
parentNode: EditorNodeType;
|
179
182
|
editorNode: EditorNodeType;
|
180
|
-
|
183
|
+
UNSAFE_componentWillMount(): void;
|
181
184
|
componentDidMount(): void;
|
182
185
|
componentDidUpdate(prevProps: RegionWrapperProps): void;
|
183
186
|
componentWillUnmount(): void;
|
@@ -5,14 +5,14 @@ interface ThumbProps {
|
|
5
5
|
theme?: string;
|
6
6
|
env: any;
|
7
7
|
}
|
8
|
-
|
8
|
+
interface ThumbStates {
|
9
|
+
scale: Boolean;
|
10
|
+
}
|
11
|
+
export declare class RendererThumb extends React.Component<ThumbProps, ThumbStates> {
|
9
12
|
ref: HTMLDivElement;
|
10
13
|
unSensor: Function;
|
11
|
-
|
12
|
-
scale: boolean;
|
13
|
-
};
|
14
|
+
constructor(props: ThumbProps);
|
14
15
|
env: any;
|
15
|
-
componentWillMount(): void;
|
16
16
|
componentWillUnmount(): void;
|
17
17
|
rootRef(ref: HTMLDivElement): void;
|
18
18
|
syncHeight(): void;
|
@@ -165,7 +165,7 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
165
165
|
setHeightMutable(value: any): void;
|
166
166
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | null>;
|
167
167
|
editorNode: EditorNodeType;
|
168
|
-
|
168
|
+
UNSAFE_componentWillMount(): void;
|
169
169
|
componentDidMount(): void;
|
170
170
|
componentDidUpdate(): void;
|
171
171
|
componentWillUnmount(): void;
|
@@ -27,7 +27,7 @@ export default class SearchRendererPanel extends React.Component<SearchRendererP
|
|
27
27
|
lastSubRenderersTag: string;
|
28
28
|
constructor(props: any);
|
29
29
|
componentDidMount(): void;
|
30
|
-
|
30
|
+
UNSAFE_componentWillReceiveProps(nextProps: any): void;
|
31
31
|
componentWillUnmount(): void;
|
32
32
|
bindFocusEvent(): void;
|
33
33
|
bindBlurEvent(): void;
|