amis-editor-core 6.2.2 → 6.3.0
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 +1 -1
- package/esm/component/HighlightBox.d.ts +2 -16
- package/esm/component/Panel/DialogList.d.ts +9 -0
- package/esm/component/Panel/Outline.d.ts +1 -1
- package/esm/component/Panel/RenderersPanel.d.ts +2 -0
- package/esm/component/RegionHLBox.d.ts +2 -4
- package/esm/component/base/SchemaForm.d.ts +24 -0
- package/esm/index.d.ts +2 -1
- package/esm/index.js +2 -2
- package/esm/manager.d.ts +2 -2
- package/esm/plugin.d.ts +1 -1
- package/esm/store/editor.d.ts +35 -16
- package/esm/util.d.ts +17 -9
- package/lib/component/Editor.d.ts +1 -1
- package/lib/component/HighlightBox.d.ts +2 -16
- package/lib/component/Panel/DialogList.d.ts +9 -0
- package/lib/component/Panel/Outline.d.ts +1 -1
- package/lib/component/Panel/RenderersPanel.d.ts +2 -0
- package/lib/component/RegionHLBox.d.ts +2 -4
- package/lib/component/base/BackTop.d.ts +1 -1
- package/lib/component/base/SchemaForm.d.ts +24 -0
- package/lib/editor.js +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +2 -2
- package/lib/manager.d.ts +2 -2
- package/lib/plugin.d.ts +1 -1
- package/lib/store/editor.d.ts +35 -16
- package/lib/style.css +1 -1
- package/lib/util.d.ts +17 -9
- package/package.json +1 -1
package/lib/util.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="lodash" />
|
|
2
2
|
import type { Schema } from 'amis';
|
|
3
3
|
import { Diff } from 'deep-diff';
|
|
4
|
+
import { EditorModalBody } from './store/editor';
|
|
4
5
|
declare const guid: any, omitControls: any, isObjectShallowModified: any, cloneObject: any, anyChanged: any, noop: any, makeHorizontalDeeper: any, isEmpty: any, eachTree: any, createObject: any;
|
|
5
6
|
export { guid, isObjectShallowModified, anyChanged, noop, makeHorizontalDeeper, omitControls, isEmpty, cloneObject, eachTree, createObject };
|
|
6
7
|
export declare let themeConfig: any;
|
|
@@ -159,16 +160,23 @@ export declare const updateComponentContext: (variables: any[]) => any[];
|
|
|
159
160
|
* @param selector dom 选择器
|
|
160
161
|
*/
|
|
161
162
|
export declare const scrollToActive: import("lodash").DebouncedFunc<(selector: string) => void>;
|
|
163
|
+
export declare function addModal(schema: any, modal: any, definitions?: any): any[];
|
|
162
164
|
/**
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
*
|
|
165
|
+
* 弹窗转成 definitions 定义
|
|
166
|
+
* 这样打开子弹窗的时候,可以把父级的弹窗列表透传到子弹窗里面去
|
|
167
|
+
*
|
|
168
|
+
* 这样子弹窗里面打开弹窗才能选到外面的弹窗
|
|
169
|
+
* @param modals
|
|
170
|
+
* @param definitions
|
|
171
|
+
* @returns
|
|
167
172
|
*/
|
|
168
|
-
export declare
|
|
173
|
+
export declare function modalsToDefinitions(modals: Array<EditorModalBody>, definitions?: any): any;
|
|
169
174
|
/**
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
* @param
|
|
175
|
+
* 从子弹窗的 definitions 合并回来到主弹窗的 definitions
|
|
176
|
+
*
|
|
177
|
+
* @param originSchema
|
|
178
|
+
* @param definitions
|
|
179
|
+
* @param modal
|
|
180
|
+
* @returns
|
|
173
181
|
*/
|
|
174
|
-
export declare
|
|
182
|
+
export declare function mergeDefinitions(originSchema: any, definitions: any, modal: any): any;
|