amis-editor 4.1.0-beta.1 → 4.1.0-beta.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -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,6 +178,7 @@ 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;
|
@@ -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
|
-
UNSAFE_componentWillMount(): void;
|
16
16
|
componentWillUnmount(): void;
|
17
17
|
rootRef(ref: HTMLDivElement): void;
|
18
18
|
syncHeight(): void;
|