amis-editor 4.2.0-beta.0 → 5.1.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/6dbcbb49b6fd405190a9.png +0 -0
- package/dist/component/Editor.d.ts +16 -0
- package/dist/component/RegionWrapper.d.ts +10 -0
- package/dist/component/VRenderer.d.ts +10 -0
- package/dist/component/base/ShortcutKey.d.ts +23 -0
- package/dist/component/control/APIControl.d.ts +1158 -0
- package/dist/component/control/ActionAPIControl.d.ts +1158 -0
- package/dist/component/control/BadgeControl.d.ts +133 -0
- package/dist/component/control/BaseControl.d.ts +248 -0
- package/dist/component/control/DataBindingControl.d.ts +14 -0
- package/dist/component/control/DataPickerControl.d.ts +13 -0
- package/dist/component/control/DateShortCutControl.d.ts +83 -0
- package/dist/component/control/FormulaControl.d.ts +51 -0
- package/dist/component/{Control → control}/OptionControl.d.ts +23 -34
- package/dist/component/{Control → control}/PopoverEdit.d.ts +1 -1
- package/dist/component/control/StatusControl.d.ts +39 -0
- package/dist/component/control/SwitchMoreControl.d.ts +224 -0
- package/dist/component/control/ValidationControl.d.ts +65 -0
- package/dist/component/control/ValidationItem.d.ts +46 -0
- package/dist/component/control/style-control/Background.d.ts +17 -0
- package/dist/component/control/style-control/Border.d.ts +18 -0
- package/dist/component/control/style-control/BoxModel.d.ts +17 -0
- package/dist/component/control/style-control/BoxShadow.d.ts +18 -0
- package/dist/component/control/style-control/Display.d.ts +14 -0
- package/dist/component/control/style-control/Font.d.ts +16 -0
- package/dist/component/control/style-control/font-family.d.ts +11 -0
- package/dist/component/control/style-control/transformation.d.ts +29 -0
- package/dist/component/control/style-control/types.d.ts +8 -0
- package/dist/component/schemaTpl.d.ts +8 -0
- package/dist/component/validator.d.ts +62 -0
- package/dist/dnd/index.d.ts +1 -1
- package/dist/event-action/action-config-panel.d.ts +8 -0
- package/dist/event-action/actions.d.ts +3 -0
- package/dist/event-action/comp-action-select.d.ts +11 -0
- package/dist/event-action/config.d.ts +13 -0
- package/dist/event-action/index.d.ts +459 -0
- package/dist/event-action/schema.d.ts +32 -0
- package/dist/exports.min.js +1 -1
- package/dist/index.d.ts +24 -5
- package/dist/index.min.js +1 -1
- package/dist/manager.d.ts +46 -1
- package/dist/plugin/Alert.d.ts +4 -2
- package/dist/plugin/Button.d.ts +5 -1
- package/dist/plugin/ButtonGroup.d.ts +13 -34
- package/dist/plugin/ButtonToolbar.d.ts +4 -10
- package/dist/plugin/CRUD.d.ts +2 -0
- package/dist/plugin/Chart.d.ts +2 -0
- package/dist/plugin/Collapse.d.ts +1 -0
- package/dist/plugin/CollapseGroup.d.ts +28 -4
- package/dist/plugin/Container.d.ts +2 -1
- package/dist/plugin/Dialog.d.ts +12 -2
- package/dist/plugin/Drawer.d.ts +12 -2
- package/dist/plugin/DropDownButton.d.ts +11 -11
- package/dist/plugin/Form/ButtonGroupSelect.d.ts +7 -2
- package/dist/plugin/Form/ButtonToolbar.d.ts +8 -7
- package/dist/plugin/Form/ChainedSelect.d.ts +3 -0
- package/dist/plugin/Form/Checkbox.d.ts +7 -2
- package/dist/plugin/Form/Checkboxes.d.ts +8 -2
- package/dist/plugin/Form/CodeEditor.d.ts +7 -22
- package/dist/plugin/Form/Combo.d.ts +3 -0
- package/dist/plugin/Form/Control.d.ts +6 -2
- package/dist/plugin/Form/DiffEditor.d.ts +7 -1
- package/dist/plugin/Form/Form.d.ts +6 -0
- package/dist/plugin/Form/Formula.d.ts +1 -25
- package/dist/plugin/Form/InputDate.d.ts +8 -2
- package/dist/plugin/Form/InputDateRange.d.ts +8 -2
- package/dist/plugin/Form/InputDateTime.d.ts +4 -4
- package/dist/plugin/Form/InputDateTimeRange.d.ts +4 -4
- package/dist/plugin/Form/InputEmail.d.ts +1 -0
- package/dist/plugin/Form/InputExcel.d.ts +6 -41
- package/dist/plugin/Form/InputFile.d.ts +7 -3
- package/dist/plugin/Form/InputKV.d.ts +6 -0
- package/dist/plugin/Form/InputMonth.d.ts +1 -0
- package/dist/plugin/Form/InputMonthRange.d.ts +4 -4
- package/dist/plugin/Form/InputPassword.d.ts +1 -0
- package/dist/plugin/Form/InputQuarter.d.ts +1 -0
- package/dist/plugin/Form/InputQuarterRange.d.ts +4 -4
- package/dist/plugin/Form/InputRange.d.ts +3 -0
- package/dist/plugin/Form/InputRating.d.ts +9 -3
- package/dist/plugin/Form/InputText.d.ts +24 -2
- package/dist/plugin/Form/InputTime.d.ts +3 -3
- package/dist/plugin/Form/InputTimeRange.d.ts +20 -0
- package/dist/plugin/Form/InputTree.d.ts +6 -2
- package/dist/plugin/Form/InputURL.d.ts +1 -0
- package/dist/plugin/Form/InputYear.d.ts +1 -0
- package/dist/plugin/Form/InputYearRange.d.ts +20 -0
- package/dist/plugin/Form/ListSelect.d.ts +6 -2
- package/dist/plugin/Form/LocationPicker.d.ts +1 -31
- package/dist/plugin/Form/NestedSelect.d.ts +5 -2
- package/dist/plugin/Form/Radios.d.ts +7 -2
- package/dist/plugin/Form/Select.d.ts +7 -2
- package/dist/plugin/Form/Switch.d.ts +7 -2
- package/dist/plugin/Form/TabsTransfer.d.ts +5 -2
- package/dist/plugin/Form/Textarea.d.ts +7 -1
- package/dist/plugin/Form/Transfer.d.ts +5 -2
- package/dist/plugin/Form/TreeSelect.d.ts +6 -2
- package/dist/plugin/IFrame.d.ts +2 -2
- package/dist/plugin/Nav.d.ts +1 -116
- package/dist/plugin/Others/Action.d.ts +5 -1
- package/dist/plugin/Page.d.ts +5 -2
- package/dist/plugin/Progress.d.ts +5 -1
- package/dist/plugin/Table.d.ts +2 -0
- package/dist/plugin/Tabs.d.ts +33 -2
- package/dist/plugin/TooltipWrapper.d.ts +10 -0
- package/dist/plugin/Tpl.d.ts +2 -1
- package/dist/plugin/Wizard.d.ts +4 -1
- package/dist/plugin.d.ts +37 -1
- package/dist/store/editor.d.ts +65 -38
- package/dist/store/node.d.ts +16 -0
- package/dist/style.css +1 -1
- package/dist/util.d.ts +36 -3
- package/package.json +14 -9
- package/src/component/schemaTpl.tsx +1198 -474
- package/src/plugin/.DS_Store +0 -0
- package/src/plugin/Alert.tsx +69 -48
- package/src/plugin/AnchorNav.tsx +1 -0
- package/src/plugin/Audio.tsx +9 -15
- package/src/plugin/Avatar.tsx +2 -1
- package/src/plugin/Breadcrumb.tsx +2 -1
- package/src/plugin/Button.tsx +257 -188
- package/src/plugin/ButtonGroup.tsx +99 -38
- package/src/plugin/ButtonToolbar.tsx +7 -13
- package/src/plugin/CRUD.tsx +77 -135
- package/src/plugin/Card.tsx +1 -0
- package/src/plugin/Cards.tsx +8 -14
- package/src/plugin/Carousel.tsx +1 -1
- package/src/plugin/Chart.tsx +26 -14
- package/src/plugin/Collapse.tsx +78 -78
- package/src/plugin/CollapseGroup.tsx +165 -83
- package/src/plugin/Container.tsx +59 -6
- package/src/plugin/Custom.tsx +2 -8
- package/src/plugin/CustomRegion.tsx +4 -3
- package/src/plugin/Dialog.tsx +55 -24
- package/src/plugin/Drawer.tsx +65 -35
- package/src/plugin/DropDownButton.tsx +95 -79
- package/src/plugin/Flex.tsx +123 -65
- package/src/plugin/Form/ButtonGroupSelect.tsx +114 -26
- package/src/plugin/Form/ButtonToolbar.tsx +62 -55
- package/src/plugin/Form/ChainedSelect.tsx +45 -0
- package/src/plugin/Form/Checkbox.tsx +122 -33
- package/src/plugin/Form/Checkboxes.tsx +154 -87
- package/src/plugin/Form/CodeEditor.tsx +163 -34
- package/src/plugin/Form/Combo.tsx +104 -65
- package/src/plugin/Form/Control.tsx +16 -70
- package/src/plugin/Form/DiffEditor.tsx +158 -54
- package/src/plugin/Form/FieldSet.tsx +6 -11
- package/src/plugin/Form/Form.tsx +277 -70
- package/src/plugin/Form/Formula.tsx +8 -14
- package/src/plugin/Form/InputArray.tsx +7 -16
- package/src/plugin/Form/InputCity.tsx +1 -1
- package/src/plugin/Form/InputDate.tsx +344 -121
- package/src/plugin/Form/InputDateRange.tsx +303 -161
- package/src/plugin/Form/InputDateTime.tsx +6 -150
- package/src/plugin/Form/InputDateTimeRange.tsx +7 -187
- package/src/plugin/Form/InputEmail.tsx +1 -0
- package/src/plugin/Form/InputExcel.tsx +70 -27
- package/src/plugin/Form/InputFile.tsx +326 -152
- package/src/plugin/Form/InputImage.tsx +1 -1
- package/src/plugin/Form/InputKV.tsx +61 -0
- package/src/plugin/Form/InputMonth.tsx +3 -1
- package/src/plugin/Form/InputMonthRange.tsx +6 -160
- package/src/plugin/Form/InputNumber.tsx +1 -1
- package/src/plugin/Form/InputPassword.tsx +2 -0
- package/src/plugin/Form/InputQuarter.tsx +3 -1
- package/src/plugin/Form/InputQuarterRange.tsx +6 -160
- package/src/plugin/Form/InputRange.tsx +74 -4
- package/src/plugin/Form/InputRating.tsx +347 -35
- package/src/plugin/Form/InputRichText.tsx +2 -3
- package/src/plugin/Form/InputTable.tsx +33 -49
- package/src/plugin/Form/InputTag.tsx +1 -1
- package/src/plugin/Form/InputText.tsx +310 -132
- package/src/plugin/Form/InputTime.tsx +4 -53
- package/src/plugin/Form/InputTimeRange.tsx +41 -0
- package/src/plugin/Form/InputTree.tsx +196 -46
- package/src/plugin/Form/InputURL.tsx +2 -0
- package/src/plugin/Form/InputYear.tsx +2 -0
- package/src/plugin/Form/InputYearRange.tsx +41 -0
- package/src/plugin/Form/Item.tsx +17 -18
- package/src/plugin/Form/ListSelect.tsx +75 -20
- package/src/plugin/Form/LocationPicker.tsx +2 -7
- package/src/plugin/Form/MatrixCheckboxes.tsx +1 -1
- package/src/plugin/Form/NestedSelect.tsx +110 -43
- package/src/plugin/Form/Picker.tsx +2 -5
- package/src/plugin/Form/Radios.tsx +122 -52
- package/src/plugin/Form/Select.tsx +239 -168
- package/src/plugin/Form/Static.tsx +1 -1
- package/src/plugin/Form/Switch.tsx +170 -58
- package/src/plugin/Form/TabsTransfer.tsx +175 -79
- package/src/plugin/Form/Textarea.tsx +146 -36
- package/src/plugin/Form/Transfer.tsx +295 -233
- package/src/plugin/Form/TreeSelect.tsx +287 -146
- package/src/plugin/Grid.tsx +340 -312
- package/src/plugin/HBox.tsx +1 -0
- package/src/plugin/IFrame.tsx +21 -12
- package/src/plugin/Image.tsx +7 -12
- package/src/plugin/Images.tsx +7 -12
- package/src/plugin/Link.tsx +6 -12
- package/src/plugin/List.tsx +6 -10
- package/src/plugin/ListItem.tsx +1 -0
- package/src/plugin/Nav.tsx +7 -9
- package/src/plugin/Others/Action.tsx +16 -10
- package/src/plugin/Others/BasicToolbar.tsx +4 -1
- package/src/plugin/Others/TableCell.tsx +19 -39
- package/src/plugin/Page.tsx +315 -229
- package/src/plugin/Panel.tsx +6 -7
- package/src/plugin/Plain.tsx +3 -6
- package/src/plugin/Progress.tsx +234 -94
- package/src/plugin/Service.tsx +10 -6
- package/src/plugin/Table.tsx +49 -20
- package/src/plugin/TableView.tsx +212 -106
- package/src/plugin/Tabs.tsx +306 -146
- package/src/plugin/TooltipWrapper.tsx +231 -135
- package/src/plugin/Tpl.tsx +68 -52
- package/src/plugin/Video.tsx +9 -20
- package/src/plugin/Wizard.tsx +537 -336
- package/src/plugin/Wrapper.tsx +82 -61
- package/src/plugin.ts +66 -4
- package/static/empty.png +0 -0
- package/dist/component/Control/APIControl.d.ts +0 -504
- package/dist/component/Control/ValidationControl.d.ts +0 -30
- package/dist/component/remarkTpl.d.ts +0 -150
package/dist/store/editor.d.ts
CHANGED
@@ -63,6 +63,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
63
63
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
64
64
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
65
65
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
66
|
+
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
66
67
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
67
68
|
regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<import("../plugin").RegionConfig, import("../plugin").RegionConfig, import("../plugin").RegionConfig>>;
|
68
69
|
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
@@ -85,6 +86,8 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
85
86
|
} & {
|
86
87
|
readonly info: RendererInfo;
|
87
88
|
setInfo(value: RendererInfo): void;
|
89
|
+
readonly rendererConfig: import("amis-core").RendererConfig | undefined;
|
90
|
+
setRendererConfig(value: import("amis-core").RendererConfig): void;
|
88
91
|
readonly isVitualRenderer: boolean;
|
89
92
|
readonly clickable: boolean;
|
90
93
|
readonly draggable: boolean;
|
@@ -103,6 +106,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
103
106
|
isExists(id: string): boolean;
|
104
107
|
getChildById(id: string): any;
|
105
108
|
readonly parent: any;
|
109
|
+
readonly ancestorField: any;
|
106
110
|
readonly host: any;
|
107
111
|
readonly firstChild: any;
|
108
112
|
readonly index: any;
|
@@ -115,6 +119,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
115
119
|
updateIsCommonConfig: (value: boolean) => void;
|
116
120
|
addChild(props: {
|
117
121
|
id: string;
|
122
|
+
type: string;
|
118
123
|
label: string;
|
119
124
|
path: string;
|
120
125
|
isCommonConfig?: boolean | undefined;
|
@@ -136,9 +141,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
136
141
|
calculateHighlightBox(root?: any): void;
|
137
142
|
resetHighlightBox(root: any): void;
|
138
143
|
updateState(state: any, replace?: boolean): void;
|
139
|
-
setWidthMutable(value: any): void;
|
140
|
-
* 备注:disabledRendererPlugin 为 true 则不在面板中展示
|
141
|
-
*/
|
144
|
+
setWidthMutable(value: any): void;
|
142
145
|
setHeightMutable(value: any): void;
|
143
146
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
144
147
|
theme: import("mobx-state-tree").IType<string | undefined, string, string>;
|
@@ -209,6 +212,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
209
212
|
parentRegion: string;
|
210
213
|
isCommonConfig: boolean;
|
211
214
|
id: string;
|
215
|
+
type: string;
|
212
216
|
label: string;
|
213
217
|
regionInfo: (import("../plugin").RegionConfig & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<import("../plugin").RegionConfig, import("../plugin").RegionConfig, import("../plugin").RegionConfig>>>) | undefined;
|
214
218
|
path: string;
|
@@ -231,6 +235,8 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
231
235
|
} & {
|
232
236
|
readonly info: RendererInfo;
|
233
237
|
setInfo(value: RendererInfo): void;
|
238
|
+
readonly rendererConfig: import("amis-core").RendererConfig | undefined;
|
239
|
+
setRendererConfig(value: import("amis-core").RendererConfig): void;
|
234
240
|
readonly isVitualRenderer: boolean;
|
235
241
|
readonly clickable: boolean;
|
236
242
|
readonly draggable: boolean;
|
@@ -249,6 +255,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
249
255
|
isExists(id: string): boolean;
|
250
256
|
getChildById(id: string): any;
|
251
257
|
readonly parent: any;
|
258
|
+
readonly ancestorField: any;
|
252
259
|
readonly host: any;
|
253
260
|
readonly firstChild: any;
|
254
261
|
readonly index: any;
|
@@ -261,6 +268,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
261
268
|
updateIsCommonConfig: (value: boolean) => void;
|
262
269
|
addChild(props: {
|
263
270
|
id: string;
|
271
|
+
type: string;
|
264
272
|
label: string;
|
265
273
|
path: string;
|
266
274
|
isCommonConfig?: boolean | undefined;
|
@@ -282,15 +290,14 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
282
290
|
calculateHighlightBox(root?: any): void;
|
283
291
|
resetHighlightBox(root: any): void;
|
284
292
|
updateState(state: any, replace?: boolean): void;
|
285
|
-
setWidthMutable(value: any): void;
|
286
|
-
* 备注:disabledRendererPlugin 为 true 则不在面板中展示
|
287
|
-
*/
|
293
|
+
setWidthMutable(value: any): void;
|
288
294
|
setHeightMutable(value: any): void;
|
289
295
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
290
296
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
291
297
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
292
298
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
293
299
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
300
|
+
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
294
301
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
295
302
|
regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<import("../plugin").RegionConfig, import("../plugin").RegionConfig, import("../plugin").RegionConfig>>;
|
296
303
|
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
@@ -313,6 +320,8 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
313
320
|
} & {
|
314
321
|
readonly info: RendererInfo;
|
315
322
|
setInfo(value: RendererInfo): void;
|
323
|
+
readonly rendererConfig: import("amis-core").RendererConfig | undefined;
|
324
|
+
setRendererConfig(value: import("amis-core").RendererConfig): void;
|
316
325
|
readonly isVitualRenderer: boolean;
|
317
326
|
readonly clickable: boolean;
|
318
327
|
readonly draggable: boolean;
|
@@ -331,6 +340,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
331
340
|
isExists(id: string): boolean;
|
332
341
|
getChildById(id: string): any;
|
333
342
|
readonly parent: any;
|
343
|
+
readonly ancestorField: any;
|
334
344
|
readonly host: any;
|
335
345
|
readonly firstChild: any;
|
336
346
|
readonly index: any;
|
@@ -343,6 +353,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
343
353
|
updateIsCommonConfig: (value: boolean) => void;
|
344
354
|
addChild(props: {
|
345
355
|
id: string;
|
356
|
+
type: string;
|
346
357
|
label: string;
|
347
358
|
path: string;
|
348
359
|
isCommonConfig?: boolean | undefined;
|
@@ -364,14 +375,12 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
364
375
|
calculateHighlightBox(root?: any): void;
|
365
376
|
resetHighlightBox(root: any): void;
|
366
377
|
updateState(state: any, replace?: boolean): void;
|
367
|
-
setWidthMutable(value: any): void;
|
368
|
-
* 备注:disabledRendererPlugin 为 true 则不在面板中展示
|
369
|
-
*/
|
378
|
+
setWidthMutable(value: any): void;
|
370
379
|
setHeightMutable(value: any): void;
|
371
380
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
372
|
-
getNodeById(id: string,
|
381
|
+
getNodeById(id: string, regionOrType?: string): EditorNodeType | undefined;
|
373
382
|
readonly activeNodeInfo: RendererInfo | null | undefined;
|
374
|
-
getSchema(id?: string
|
383
|
+
getSchema(id?: string): any;
|
375
384
|
getSchemaParentById(id: string): any;
|
376
385
|
getSchemaPath(id: string): string;
|
377
386
|
getSimpleSchema(curSchema: any): any;
|
@@ -394,6 +403,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
394
403
|
parentRegion: string;
|
395
404
|
isCommonConfig: boolean;
|
396
405
|
id: string;
|
406
|
+
type: string;
|
397
407
|
label: string;
|
398
408
|
regionInfo: (import("../plugin").RegionConfig & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<import("../plugin").RegionConfig, import("../plugin").RegionConfig, import("../plugin").RegionConfig>>>) | undefined;
|
399
409
|
path: string;
|
@@ -416,6 +426,8 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
416
426
|
} & {
|
417
427
|
readonly info: RendererInfo;
|
418
428
|
setInfo(value: RendererInfo): void;
|
429
|
+
readonly rendererConfig: import("amis-core").RendererConfig | undefined;
|
430
|
+
setRendererConfig(value: import("amis-core").RendererConfig): void;
|
419
431
|
readonly isVitualRenderer: boolean;
|
420
432
|
readonly clickable: boolean;
|
421
433
|
readonly draggable: boolean;
|
@@ -434,6 +446,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
434
446
|
isExists(id: string): boolean;
|
435
447
|
getChildById(id: string): any;
|
436
448
|
readonly parent: any;
|
449
|
+
readonly ancestorField: any;
|
437
450
|
readonly host: any;
|
438
451
|
readonly firstChild: any;
|
439
452
|
readonly index: any;
|
@@ -446,6 +459,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
446
459
|
updateIsCommonConfig: (value: boolean) => void;
|
447
460
|
addChild(props: {
|
448
461
|
id: string;
|
462
|
+
type: string;
|
449
463
|
label: string;
|
450
464
|
path: string;
|
451
465
|
isCommonConfig?: boolean | undefined;
|
@@ -467,15 +481,14 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
467
481
|
calculateHighlightBox(root?: any): void;
|
468
482
|
resetHighlightBox(root: any): void;
|
469
483
|
updateState(state: any, replace?: boolean): void;
|
470
|
-
setWidthMutable(value: any): void;
|
471
|
-
* 备注:disabledRendererPlugin 为 true 则不在面板中展示
|
472
|
-
*/
|
484
|
+
setWidthMutable(value: any): void;
|
473
485
|
setHeightMutable(value: any): void;
|
474
486
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
475
487
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
476
488
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
477
489
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
478
490
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
491
|
+
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
479
492
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
480
493
|
regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<import("../plugin").RegionConfig, import("../plugin").RegionConfig, import("../plugin").RegionConfig>>;
|
481
494
|
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
@@ -498,6 +511,8 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
498
511
|
} & {
|
499
512
|
readonly info: RendererInfo;
|
500
513
|
setInfo(value: RendererInfo): void;
|
514
|
+
readonly rendererConfig: import("amis-core").RendererConfig | undefined;
|
515
|
+
setRendererConfig(value: import("amis-core").RendererConfig): void;
|
501
516
|
readonly isVitualRenderer: boolean;
|
502
517
|
readonly clickable: boolean;
|
503
518
|
readonly draggable: boolean;
|
@@ -516,6 +531,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
516
531
|
isExists(id: string): boolean;
|
517
532
|
getChildById(id: string): any;
|
518
533
|
readonly parent: any;
|
534
|
+
readonly ancestorField: any;
|
519
535
|
readonly host: any;
|
520
536
|
readonly firstChild: any;
|
521
537
|
readonly index: any;
|
@@ -528,6 +544,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
528
544
|
updateIsCommonConfig: (value: boolean) => void;
|
529
545
|
addChild(props: {
|
530
546
|
id: string;
|
547
|
+
type: string;
|
531
548
|
label: string;
|
532
549
|
path: string;
|
533
550
|
isCommonConfig?: boolean | undefined;
|
@@ -549,9 +566,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
549
566
|
calculateHighlightBox(root?: any): void;
|
550
567
|
resetHighlightBox(root: any): void;
|
551
568
|
updateState(state: any, replace?: boolean): void;
|
552
|
-
setWidthMutable(value: any): void;
|
553
|
-
* 备注:disabledRendererPlugin 为 true 则不在面板中展示
|
554
|
-
*/
|
569
|
+
setWidthMutable(value: any): void;
|
555
570
|
setHeightMutable(value: any): void;
|
556
571
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
557
572
|
readonly activePath: ({
|
@@ -559,6 +574,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
559
574
|
parentRegion: string;
|
560
575
|
isCommonConfig: boolean;
|
561
576
|
id: string;
|
577
|
+
type: string;
|
562
578
|
label: string;
|
563
579
|
regionInfo: (import("../plugin").RegionConfig & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<import("../plugin").RegionConfig, import("../plugin").RegionConfig, import("../plugin").RegionConfig>>>) | undefined;
|
564
580
|
path: string;
|
@@ -581,6 +597,8 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
581
597
|
} & {
|
582
598
|
readonly info: RendererInfo;
|
583
599
|
setInfo(value: RendererInfo): void;
|
600
|
+
readonly rendererConfig: import("amis-core").RendererConfig | undefined;
|
601
|
+
setRendererConfig(value: import("amis-core").RendererConfig): void;
|
584
602
|
readonly isVitualRenderer: boolean;
|
585
603
|
readonly clickable: boolean;
|
586
604
|
readonly draggable: boolean;
|
@@ -599,6 +617,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
599
617
|
isExists(id: string): boolean;
|
600
618
|
getChildById(id: string): any;
|
601
619
|
readonly parent: any;
|
620
|
+
readonly ancestorField: any;
|
602
621
|
readonly host: any;
|
603
622
|
readonly firstChild: any;
|
604
623
|
readonly index: any;
|
@@ -611,6 +630,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
611
630
|
updateIsCommonConfig: (value: boolean) => void;
|
612
631
|
addChild(props: {
|
613
632
|
id: string;
|
633
|
+
type: string;
|
614
634
|
label: string;
|
615
635
|
path: string;
|
616
636
|
isCommonConfig?: boolean | undefined;
|
@@ -632,15 +652,14 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
632
652
|
calculateHighlightBox(root?: any): void;
|
633
653
|
resetHighlightBox(root: any): void;
|
634
654
|
updateState(state: any, replace?: boolean): void;
|
635
|
-
setWidthMutable(value: any): void;
|
636
|
-
* 备注:disabledRendererPlugin 为 true 则不在面板中展示
|
637
|
-
*/
|
655
|
+
setWidthMutable(value: any): void;
|
638
656
|
setHeightMutable(value: any): void;
|
639
657
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
640
658
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
641
659
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
642
660
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
643
661
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
662
|
+
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
644
663
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
645
664
|
regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<import("../plugin").RegionConfig, import("../plugin").RegionConfig, import("../plugin").RegionConfig>>;
|
646
665
|
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
@@ -663,6 +682,8 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
663
682
|
} & {
|
664
683
|
readonly info: RendererInfo;
|
665
684
|
setInfo(value: RendererInfo): void;
|
685
|
+
readonly rendererConfig: import("amis-core").RendererConfig | undefined;
|
686
|
+
setRendererConfig(value: import("amis-core").RendererConfig): void;
|
666
687
|
readonly isVitualRenderer: boolean;
|
667
688
|
readonly clickable: boolean;
|
668
689
|
readonly draggable: boolean;
|
@@ -681,6 +702,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
681
702
|
isExists(id: string): boolean;
|
682
703
|
getChildById(id: string): any;
|
683
704
|
readonly parent: any;
|
705
|
+
readonly ancestorField: any;
|
684
706
|
readonly host: any;
|
685
707
|
readonly firstChild: any;
|
686
708
|
readonly index: any;
|
@@ -693,6 +715,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
693
715
|
updateIsCommonConfig: (value: boolean) => void;
|
694
716
|
addChild(props: {
|
695
717
|
id: string;
|
718
|
+
type: string;
|
696
719
|
label: string;
|
697
720
|
path: string;
|
698
721
|
isCommonConfig?: boolean | undefined;
|
@@ -714,9 +737,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
714
737
|
calculateHighlightBox(root?: any): void;
|
715
738
|
resetHighlightBox(root: any): void;
|
716
739
|
updateState(state: any, replace?: boolean): void;
|
717
|
-
setWidthMutable(value: any): void;
|
718
|
-
* 备注:disabledRendererPlugin 为 true 则不在面板中展示
|
719
|
-
*/
|
740
|
+
setWidthMutable(value: any): void;
|
720
741
|
setHeightMutable(value: any): void;
|
721
742
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
722
743
|
getNodePathById(id: string): ({
|
@@ -724,6 +745,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
724
745
|
parentRegion: string;
|
725
746
|
isCommonConfig: boolean;
|
726
747
|
id: string;
|
748
|
+
type: string;
|
727
749
|
label: string;
|
728
750
|
regionInfo: (import("../plugin").RegionConfig & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<import("../plugin").RegionConfig, import("../plugin").RegionConfig, import("../plugin").RegionConfig>>>) | undefined;
|
729
751
|
path: string;
|
@@ -746,6 +768,8 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
746
768
|
} & {
|
747
769
|
readonly info: RendererInfo;
|
748
770
|
setInfo(value: RendererInfo): void;
|
771
|
+
readonly rendererConfig: import("amis-core").RendererConfig | undefined;
|
772
|
+
setRendererConfig(value: import("amis-core").RendererConfig): void;
|
749
773
|
readonly isVitualRenderer: boolean;
|
750
774
|
readonly clickable: boolean;
|
751
775
|
readonly draggable: boolean;
|
@@ -764,6 +788,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
764
788
|
isExists(id: string): boolean;
|
765
789
|
getChildById(id: string): any;
|
766
790
|
readonly parent: any;
|
791
|
+
readonly ancestorField: any;
|
767
792
|
readonly host: any;
|
768
793
|
readonly firstChild: any;
|
769
794
|
readonly index: any;
|
@@ -776,6 +801,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
776
801
|
updateIsCommonConfig: (value: boolean) => void;
|
777
802
|
addChild(props: {
|
778
803
|
id: string;
|
804
|
+
type: string;
|
779
805
|
label: string;
|
780
806
|
path: string;
|
781
807
|
isCommonConfig?: boolean | undefined;
|
@@ -797,15 +823,14 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
797
823
|
calculateHighlightBox(root?: any): void;
|
798
824
|
resetHighlightBox(root: any): void;
|
799
825
|
updateState(state: any, replace?: boolean): void;
|
800
|
-
setWidthMutable(value: any): void;
|
801
|
-
* 备注:disabledRendererPlugin 为 true 则不在面板中展示
|
802
|
-
*/
|
826
|
+
setWidthMutable(value: any): void;
|
803
827
|
setHeightMutable(value: any): void;
|
804
828
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
805
829
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
806
830
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
807
831
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
808
832
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
833
|
+
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
809
834
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
810
835
|
regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<import("../plugin").RegionConfig, import("../plugin").RegionConfig, import("../plugin").RegionConfig>>;
|
811
836
|
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
@@ -828,6 +853,8 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
828
853
|
} & {
|
829
854
|
readonly info: RendererInfo;
|
830
855
|
setInfo(value: RendererInfo): void;
|
856
|
+
readonly rendererConfig: import("amis-core").RendererConfig | undefined;
|
857
|
+
setRendererConfig(value: import("amis-core").RendererConfig): void;
|
831
858
|
readonly isVitualRenderer: boolean;
|
832
859
|
readonly clickable: boolean;
|
833
860
|
readonly draggable: boolean;
|
@@ -846,6 +873,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
846
873
|
isExists(id: string): boolean;
|
847
874
|
getChildById(id: string): any;
|
848
875
|
readonly parent: any;
|
876
|
+
readonly ancestorField: any;
|
849
877
|
readonly host: any;
|
850
878
|
readonly firstChild: any;
|
851
879
|
readonly index: any;
|
@@ -858,6 +886,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
858
886
|
updateIsCommonConfig: (value: boolean) => void;
|
859
887
|
addChild(props: {
|
860
888
|
id: string;
|
889
|
+
type: string;
|
861
890
|
label: string;
|
862
891
|
path: string;
|
863
892
|
isCommonConfig?: boolean | undefined;
|
@@ -879,9 +908,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
879
908
|
calculateHighlightBox(root?: any): void;
|
880
909
|
resetHighlightBox(root: any): void;
|
881
910
|
updateState(state: any, replace?: boolean): void;
|
882
|
-
setWidthMutable(value: any): void;
|
883
|
-
* 备注:disabledRendererPlugin 为 true 则不在面板中展示
|
884
|
-
*/
|
911
|
+
setWidthMutable(value: any): void;
|
885
912
|
setHeightMutable(value: any): void;
|
886
913
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
887
914
|
readonly dragging: boolean;
|
@@ -896,13 +923,13 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
896
923
|
*/
|
897
924
|
readonly customRenderersByOrder: SubRendererInfo[];
|
898
925
|
/** 根据关键字过滤组件 */
|
899
|
-
groupedRenderersByKeyword(_subRenderers: Array<SubRendererInfo>, keywords?: string
|
926
|
+
groupedRenderersByKeyword(_subRenderers: Array<SubRendererInfo>, keywords?: string): {
|
900
927
|
[propName: string]: SubRendererInfo[];
|
901
928
|
};
|
902
929
|
/** 根据关键字过滤预置组件
|
903
930
|
* 备注:组件搜索中需要
|
904
931
|
*/
|
905
|
-
groupedSubRenderersByKeyword(_subRenderers?: SubRendererInfo
|
932
|
+
groupedSubRenderersByKeyword(_subRenderers?: Array<SubRendererInfo>, keywords?: string): {
|
906
933
|
[propName: string]: SubRendererInfo[];
|
907
934
|
};
|
908
935
|
/**
|
@@ -913,7 +940,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
913
940
|
[propName: string]: SubRendererInfo[];
|
914
941
|
};
|
915
942
|
/** 根据关键字过滤自定义组件 */
|
916
|
-
groupedCustomRenderersByKeyword(_subRenderers?: SubRendererInfo
|
943
|
+
groupedCustomRenderersByKeyword(_subRenderers?: Array<SubRendererInfo>, keywords?: string): {
|
917
944
|
[propName: string]: SubRendererInfo[];
|
918
945
|
};
|
919
946
|
/**
|
@@ -938,7 +965,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
938
965
|
getDoc(): Document;
|
939
966
|
setIframe(value: any): void;
|
940
967
|
getIframe(): HTMLIFrameElement | undefined;
|
941
|
-
setIsMobile(value?: boolean
|
968
|
+
setIsMobile(value?: boolean): void;
|
942
969
|
setCtx(value: any): void;
|
943
970
|
setTheme(value: string): void;
|
944
971
|
setIsSubEditor(isSubEditor: boolean): void;
|
@@ -949,7 +976,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
949
976
|
setActiveId(id: string, region?: string, selections?: Array<string>): void;
|
950
977
|
setSelections(ids: Array<string>): void;
|
951
978
|
clearSelection(): void;
|
952
|
-
setHoverId(id: string, region?: string
|
979
|
+
setHoverId(id: string, region?: string): void;
|
953
980
|
setMouseMoveRegion(region: string): void;
|
954
981
|
setInsertId(id: string): void;
|
955
982
|
setContextId(id: string): void;
|
@@ -970,9 +997,9 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
970
997
|
changeLeftPanelKey(key: string): void;
|
971
998
|
changeRenderersTabsKey(key: string): void;
|
972
999
|
changeLeftPanelOpenStatus(isOpenStatus: boolean): void;
|
973
|
-
showRendererPanel(tag?: string
|
1000
|
+
showRendererPanel(tag?: string, msg?: string): void;
|
974
1001
|
changeValue(value: Schema, diff?: any): void;
|
975
|
-
changeValueById(id: string, value: Schema, diff?: any, replace?: boolean
|
1002
|
+
changeValueById(id: string, value: Schema, diff?: any, replace?: boolean, noTrace?: boolean): void;
|
976
1003
|
moveUp(id: string): void;
|
977
1004
|
moveDown(id: string): void;
|
978
1005
|
del(id: string): void;
|
@@ -980,7 +1007,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
980
1007
|
duplicate(id: string | Array<string>): void;
|
981
1008
|
emptyRegion(id: string, region: string): void;
|
982
1009
|
replaceChild(id: string, json: any): void;
|
983
|
-
setInsertRegion(region: string, id?: string, tag?: string, mode?: 'insert' | 'replace', originId?: string, beforeId?: string
|
1010
|
+
setInsertRegion(region: string, id?: string, tag?: string, mode?: 'insert' | 'replace', originId?: string, beforeId?: string): void;
|
984
1011
|
closeInsertPanel(): void;
|
985
1012
|
showInsertRendererPanel(): void;
|
986
1013
|
closeInsertRendererPanel(): void;
|
@@ -1009,7 +1036,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
1009
1036
|
* 更新可供 target 及 reload 使用的名称列表
|
1010
1037
|
*/
|
1011
1038
|
updateTargetName(): void;
|
1012
|
-
traceableSetSchema(schema: any, noTrace?: boolean
|
1039
|
+
traceableSetSchema(schema: any, noTrace?: boolean): void;
|
1013
1040
|
undo(): void;
|
1014
1041
|
redo(): void;
|
1015
1042
|
resetHistory(): void;
|
package/dist/store/node.d.ts
CHANGED
@@ -5,11 +5,13 @@
|
|
5
5
|
import { IAnyModelType, Instance } from 'mobx-state-tree';
|
6
6
|
import { RegionConfig, RendererInfo } from '../plugin';
|
7
7
|
import React from 'react';
|
8
|
+
import type { RendererConfig } from 'amis-core/lib/factory';
|
8
9
|
export declare const EditorNode: import("mobx-state-tree").IModelType<{
|
9
10
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
10
11
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
11
12
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
12
13
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
14
|
+
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
13
15
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
14
16
|
regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>;
|
15
17
|
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
@@ -32,6 +34,8 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
|
|
32
34
|
} & {
|
33
35
|
readonly info: RendererInfo;
|
34
36
|
setInfo(value: RendererInfo): void;
|
37
|
+
readonly rendererConfig: RendererConfig | undefined;
|
38
|
+
setRendererConfig(value: RendererConfig): void;
|
35
39
|
readonly isVitualRenderer: boolean;
|
36
40
|
readonly clickable: boolean;
|
37
41
|
readonly draggable: boolean;
|
@@ -50,6 +54,7 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
|
|
50
54
|
isExists(id: string): boolean;
|
51
55
|
getChildById(id: string): any;
|
52
56
|
readonly parent: any;
|
57
|
+
readonly ancestorField: any;
|
53
58
|
readonly host: any;
|
54
59
|
readonly firstChild: any;
|
55
60
|
readonly index: any;
|
@@ -62,6 +67,7 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
|
|
62
67
|
updateIsCommonConfig: (value: boolean) => void;
|
63
68
|
addChild(props: {
|
64
69
|
id: string;
|
70
|
+
type: string;
|
65
71
|
label: string;
|
66
72
|
path: string;
|
67
73
|
isCommonConfig?: boolean;
|
@@ -96,6 +102,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
96
102
|
parentRegion: string;
|
97
103
|
isCommonConfig: boolean;
|
98
104
|
id: string;
|
105
|
+
type: string;
|
99
106
|
label: string;
|
100
107
|
regionInfo: (RegionConfig & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>>) | undefined;
|
101
108
|
path: string;
|
@@ -118,6 +125,8 @@ export declare const EditorNodeContext: React.Context<({
|
|
118
125
|
} & {
|
119
126
|
readonly info: RendererInfo;
|
120
127
|
setInfo(value: RendererInfo): void;
|
128
|
+
readonly rendererConfig: RendererConfig | undefined;
|
129
|
+
setRendererConfig(value: RendererConfig): void;
|
121
130
|
readonly isVitualRenderer: boolean;
|
122
131
|
readonly clickable: boolean;
|
123
132
|
readonly draggable: boolean;
|
@@ -136,6 +145,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
136
145
|
isExists(id: string): boolean;
|
137
146
|
getChildById(id: string): any;
|
138
147
|
readonly parent: any;
|
148
|
+
readonly ancestorField: any;
|
139
149
|
readonly host: any;
|
140
150
|
readonly firstChild: any;
|
141
151
|
readonly index: any;
|
@@ -148,6 +158,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
148
158
|
updateIsCommonConfig: (value: boolean) => void;
|
149
159
|
addChild(props: {
|
150
160
|
id: string;
|
161
|
+
type: string;
|
151
162
|
label: string;
|
152
163
|
path: string;
|
153
164
|
isCommonConfig?: boolean;
|
@@ -181,6 +192,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
181
192
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
182
193
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
183
194
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
195
|
+
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
184
196
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
185
197
|
regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>;
|
186
198
|
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
@@ -203,6 +215,8 @@ export declare const EditorNodeContext: React.Context<({
|
|
203
215
|
} & {
|
204
216
|
readonly info: RendererInfo;
|
205
217
|
setInfo(value: RendererInfo): void;
|
218
|
+
readonly rendererConfig: RendererConfig | undefined;
|
219
|
+
setRendererConfig(value: RendererConfig): void;
|
206
220
|
readonly isVitualRenderer: boolean;
|
207
221
|
readonly clickable: boolean;
|
208
222
|
readonly draggable: boolean;
|
@@ -221,6 +235,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
221
235
|
isExists(id: string): boolean;
|
222
236
|
getChildById(id: string): any;
|
223
237
|
readonly parent: any;
|
238
|
+
readonly ancestorField: any;
|
224
239
|
readonly host: any;
|
225
240
|
readonly firstChild: any;
|
226
241
|
readonly index: any;
|
@@ -233,6 +248,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
233
248
|
updateIsCommonConfig: (value: boolean) => void;
|
234
249
|
addChild(props: {
|
235
250
|
id: string;
|
251
|
+
type: string;
|
236
252
|
label: string;
|
237
253
|
path: string;
|
238
254
|
isCommonConfig?: boolean;
|