@tmagic/editor 1.4.16 → 1.5.0-beta.1
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/dist/style.css +11 -7
- package/dist/tmagic-editor.js +434 -411
- package/dist/tmagic-editor.umd.cjs +441 -408
- package/package.json +11 -15
- package/src/components/CodeParams.vue +1 -1
- package/src/editorProps.ts +2 -1
- package/src/fields/DataSourceInput.vue +2 -2
- package/src/fields/UISelect.vue +20 -15
- package/src/hooks/index.ts +7 -0
- package/src/hooks/use-stage.ts +13 -7
- package/src/index.ts +2 -0
- package/src/initService.ts +50 -53
- package/src/layouts/sidebar/Sidebar.vue +18 -2
- package/src/layouts/sidebar/data-source/DataSourceListPanel.vue +12 -14
- package/src/layouts/workspace/viewer/NodeListMenu.vue +2 -1
- package/src/layouts/workspace/viewer/Stage.vue +4 -3
- package/src/services/editor.ts +2 -2
- package/src/services/stageOverlay.ts +3 -1
- package/src/theme/data-source.scss +8 -5
- package/src/theme/page-bar.scss +2 -2
- package/src/utils/data-source/index.ts +25 -23
- package/src/utils/editor.ts +4 -3
- package/src/utils/index.ts +4 -0
- package/src/utils/operator.ts +3 -2
- package/src/utils/props.ts +2 -1
- package/types/index.d.ts +6685 -49
- package/src/shims-vue.d.ts +0 -6
- package/types/Editor.vue.d.ts +0 -2313
- package/types/components/CodeBlockEditor.vue.d.ts +0 -33
- package/types/components/CodeParams.vue.d.ts +0 -28
- package/types/components/ContentMenu.vue.d.ts +0 -81
- package/types/components/FloatingBox.vue.d.ts +0 -70
- package/types/components/Icon.vue.d.ts +0 -15
- package/types/components/Resizer.vue.d.ts +0 -16
- package/types/components/ScrollBar.vue.d.ts +0 -25
- package/types/components/ScrollViewer.vue.d.ts +0 -81
- package/types/components/SearchInput.vue.d.ts +0 -6
- package/types/components/SplitView.vue.d.ts +0 -72
- package/types/components/ToolButton.vue.d.ts +0 -41
- package/types/components/Tree.vue.d.ts +0 -83
- package/types/components/TreeNode.vue.d.ts +0 -83
- package/types/editorProps.d.ts +0 -111
- package/types/fields/Code.vue.d.ts +0 -44
- package/types/fields/CodeLink.vue.d.ts +0 -24
- package/types/fields/CodeSelect.vue.d.ts +0 -28
- package/types/fields/CodeSelectCol.vue.d.ts +0 -31
- package/types/fields/CondOpSelect.vue.d.ts +0 -17
- package/types/fields/DataSourceFieldSelect/FieldSelect.vue.d.ts +0 -36
- package/types/fields/DataSourceFieldSelect/Index.vue.d.ts +0 -31
- package/types/fields/DataSourceFields.vue.d.ts +0 -44
- package/types/fields/DataSourceInput.vue.d.ts +0 -34
- package/types/fields/DataSourceMethodSelect.vue.d.ts +0 -31
- package/types/fields/DataSourceMethods.vue.d.ts +0 -34
- package/types/fields/DataSourceMocks.vue.d.ts +0 -41
- package/types/fields/DataSourceSelect.vue.d.ts +0 -31
- package/types/fields/DisplayConds.vue.d.ts +0 -37
- package/types/fields/EventSelect.vue.d.ts +0 -17
- package/types/fields/KeyValue.vue.d.ts +0 -36
- package/types/fields/PageFragmentSelect.vue.d.ts +0 -31
- package/types/fields/UISelect.vue.d.ts +0 -20
- package/types/hooks/index.d.ts +0 -6
- package/types/hooks/use-code-block-edit.d.ts +0 -189
- package/types/hooks/use-data-source-edit.d.ts +0 -176
- package/types/hooks/use-data-source-method.d.ts +0 -187
- package/types/hooks/use-editor-content-height.d.ts +0 -3
- package/types/hooks/use-filter.d.ts +0 -7
- package/types/hooks/use-float-box.d.ts +0 -17
- package/types/hooks/use-getso.d.ts +0 -5
- package/types/hooks/use-next-float-box-position.d.ts +0 -15
- package/types/hooks/use-node-status.d.ts +0 -16
- package/types/hooks/use-stage.d.ts +0 -3
- package/types/hooks/use-window-rect.d.ts +0 -6
- package/types/icons/AppManageIcon.vue.d.ts +0 -2
- package/types/icons/CenterIcon.vue.d.ts +0 -2
- package/types/icons/CodeIcon.vue.d.ts +0 -2
- package/types/icons/FolderMinusIcon.vue.d.ts +0 -2
- package/types/icons/PinIcon.vue.d.ts +0 -2
- package/types/icons/PinnedIcon.vue.d.ts +0 -2
- package/types/initService.d.ts +0 -9
- package/types/layouts/AddPageBox.vue.d.ts +0 -15
- package/types/layouts/CodeEditor.vue.d.ts +0 -80
- package/types/layouts/Framework.vue.d.ts +0 -25
- package/types/layouts/NavMenu.vue.d.ts +0 -35
- package/types/layouts/PropsPanel.vue.d.ts +0 -535
- package/types/layouts/page-bar/AddButton.vue.d.ts +0 -16
- package/types/layouts/page-bar/PageBar.vue.d.ts +0 -36
- package/types/layouts/page-bar/PageBarScrollContainer.vue.d.ts +0 -29
- package/types/layouts/page-bar/PageList.vue.d.ts +0 -27
- package/types/layouts/page-bar/SwitchTypeButton.vue.d.ts +0 -20
- package/types/layouts/sidebar/ComponentListPanel.vue.d.ts +0 -10
- package/types/layouts/sidebar/Sidebar.vue.d.ts +0 -51
- package/types/layouts/sidebar/code-block/CodeBlockList.vue.d.ts +0 -32
- package/types/layouts/sidebar/code-block/CodeBlockListPanel.vue.d.ts +0 -24
- package/types/layouts/sidebar/data-source/DataSourceConfigPanel.vue.d.ts +0 -31
- package/types/layouts/sidebar/data-source/DataSourceList.vue.d.ts +0 -18
- package/types/layouts/sidebar/data-source/DataSourceListPanel.vue.d.ts +0 -10
- package/types/layouts/sidebar/layer/LayerMenu.vue.d.ts +0 -41
- package/types/layouts/sidebar/layer/LayerNodeTool.vue.d.ts +0 -16
- package/types/layouts/sidebar/layer/LayerPanel.vue.d.ts +0 -25
- package/types/layouts/sidebar/layer/use-click.d.ts +0 -119
- package/types/layouts/sidebar/layer/use-drag.d.ts +0 -14
- package/types/layouts/sidebar/layer/use-keybinding.d.ts +0 -6
- package/types/layouts/sidebar/layer/use-node-status.d.ts +0 -16
- package/types/layouts/workspace/Breadcrumb.vue.d.ts +0 -2
- package/types/layouts/workspace/Workspace.vue.d.ts +0 -41
- package/types/layouts/workspace/viewer/NodeListMenu.vue.d.ts +0 -2
- package/types/layouts/workspace/viewer/Stage.vue.d.ts +0 -34
- package/types/layouts/workspace/viewer/StageOverlay.vue.d.ts +0 -2
- package/types/layouts/workspace/viewer/ViewerMenu.vue.d.ts +0 -42
- package/types/services/BaseService.d.ts +0 -65
- package/types/services/codeBlock.d.ts +0 -130
- package/types/services/componentList.d.ts +0 -16
- package/types/services/dataSource.d.ts +0 -68
- package/types/services/dep.d.ts +0 -33
- package/types/services/editor.d.ts +0 -180
- package/types/services/events.d.ts +0 -18
- package/types/services/history.d.ts +0 -26
- package/types/services/keybinding.d.ts +0 -40
- package/types/services/props.d.ts +0 -92
- package/types/services/stageOverlay.d.ts +0 -30
- package/types/services/storage.d.ts +0 -65
- package/types/services/ui.d.ts +0 -77
- package/types/type.d.ts +0 -657
- package/types/utils/compose.d.ts +0 -5
- package/types/utils/config.d.ts +0 -4
- package/types/utils/content-menu.d.ts +0 -7
- package/types/utils/data-source/formConfigs/base.d.ts +0 -2
- package/types/utils/data-source/formConfigs/http.d.ts +0 -3
- package/types/utils/data-source/index.d.ts +0 -10
- package/types/utils/editor.d.ts +0 -59
- package/types/utils/idle-task.d.ts +0 -13
- package/types/utils/index.d.ts +0 -6
- package/types/utils/keybinding-config.d.ts +0 -7
- package/types/utils/logger.d.ts +0 -5
- package/types/utils/monaco-editor.d.ts +0 -2
- package/types/utils/operator.d.ts +0 -21
- package/types/utils/props.d.ts +0 -23
- package/types/utils/scroll-viewer.d.ts +0 -37
- package/types/utils/tree.d.ts +0 -3
- package/types/utils/undo-redo.d.ts +0 -12
package/types/type.d.ts
DELETED
|
@@ -1,657 +0,0 @@
|
|
|
1
|
-
import type { Component } from 'vue';
|
|
2
|
-
import type EventEmitter from 'events';
|
|
3
|
-
import Sortable, { Options, SortableEvent } from 'sortablejs';
|
|
4
|
-
import type { PascalCasedProperties } from 'type-fest';
|
|
5
|
-
import type { ChildConfig, ColumnConfig, FilterFunction, FormConfig, FormItem, FormState, Input } from '@tmagic/form';
|
|
6
|
-
import type { CodeBlockContent, CodeBlockDSL, DataSourceFieldType, DataSourceSchema, Id, MApp, MContainer, MNode, MPage, MPageFragment } from '@tmagic/schema';
|
|
7
|
-
import type StageCore from '@tmagic/stage';
|
|
8
|
-
import type { ContainerHighlightType, CustomizeMoveableOptionsCallbackConfig, GuidesOptions, MoveableOptions, RenderType, UpdateDragEl } from '@tmagic/stage';
|
|
9
|
-
import type { CodeBlockService } from './services/codeBlock';
|
|
10
|
-
import type { ComponentListService } from './services/componentList';
|
|
11
|
-
import type { DataSourceService } from './services/dataSource';
|
|
12
|
-
import type { DepService } from './services/dep';
|
|
13
|
-
import type { EditorService } from './services/editor';
|
|
14
|
-
import type { EventsService } from './services/events';
|
|
15
|
-
import type { HistoryService } from './services/history';
|
|
16
|
-
import type { KeybindingService } from './services/keybinding';
|
|
17
|
-
import type { PropsService } from './services/props';
|
|
18
|
-
import type { StageOverlayService } from './services/stageOverlay';
|
|
19
|
-
import type { StorageService } from './services/storage';
|
|
20
|
-
import type { UiService } from './services/ui';
|
|
21
|
-
import type { UndoRedo } from './utils/undo-redo';
|
|
22
|
-
export interface FrameworkSlots {
|
|
23
|
-
header(props: {}): any;
|
|
24
|
-
nav(props: {}): any;
|
|
25
|
-
'content-before'(props: {}): any;
|
|
26
|
-
'content-after'(props: {}): any;
|
|
27
|
-
'src-code'(props: {}): any;
|
|
28
|
-
sidebar(props: {}): any;
|
|
29
|
-
empty(props: {}): any;
|
|
30
|
-
workspace(props: {}): any;
|
|
31
|
-
'props-panel'(props: {}): any;
|
|
32
|
-
'footer'(props: {}): any;
|
|
33
|
-
'page-bar'(props: {}): any;
|
|
34
|
-
'page-bar-title'(props: {
|
|
35
|
-
page: MPage | MPageFragment;
|
|
36
|
-
}): any;
|
|
37
|
-
'page-bar-popover'(props: {
|
|
38
|
-
page: MPage | MPageFragment;
|
|
39
|
-
}): any;
|
|
40
|
-
'page-list-popover'(props: {
|
|
41
|
-
list: MPage[] | MPageFragment[];
|
|
42
|
-
}): any;
|
|
43
|
-
}
|
|
44
|
-
export interface WorkspaceSlots {
|
|
45
|
-
stage(props: {}): any;
|
|
46
|
-
'workspace-content'(props: {}): any;
|
|
47
|
-
}
|
|
48
|
-
export interface ComponentListPanelSlots {
|
|
49
|
-
'component-list-panel-header'(props: {}): any;
|
|
50
|
-
'component-list'(props: {
|
|
51
|
-
componentGroupList: ComponentGroup[];
|
|
52
|
-
}): any;
|
|
53
|
-
'component-list-item'(props: {
|
|
54
|
-
component: ComponentItem;
|
|
55
|
-
}): any;
|
|
56
|
-
}
|
|
57
|
-
export interface CodeBlockListPanelSlots extends CodeBlockListSlots {
|
|
58
|
-
'code-block-panel-search'(props: {}): any;
|
|
59
|
-
'code-block-panel-header'(props: {}): any;
|
|
60
|
-
}
|
|
61
|
-
export interface CodeBlockListSlots {
|
|
62
|
-
'code-block-panel-tool'(props: {
|
|
63
|
-
id: Id;
|
|
64
|
-
data: any;
|
|
65
|
-
}): any;
|
|
66
|
-
}
|
|
67
|
-
export interface DataSourceListSlots {
|
|
68
|
-
'data-source-panel-tool'(props: {
|
|
69
|
-
data: any;
|
|
70
|
-
}): any;
|
|
71
|
-
'data-source-panel-search'(props: {}): any;
|
|
72
|
-
}
|
|
73
|
-
export interface LayerNodeSlots {
|
|
74
|
-
'layer-node-content'(props: {
|
|
75
|
-
data: MNode;
|
|
76
|
-
}): any;
|
|
77
|
-
'layer-node-tool'(props: {
|
|
78
|
-
data: MNode;
|
|
79
|
-
}): any;
|
|
80
|
-
'layer-node-label'(props: {
|
|
81
|
-
data: MNode;
|
|
82
|
-
}): any;
|
|
83
|
-
}
|
|
84
|
-
export interface LayerPanelSlots extends LayerNodeSlots {
|
|
85
|
-
'layer-panel-header'(props: {}): any;
|
|
86
|
-
}
|
|
87
|
-
export interface PropsPanelSlots {
|
|
88
|
-
'props-panel-header'(props: {}): any;
|
|
89
|
-
}
|
|
90
|
-
export type SidebarSlots = LayerPanelSlots & CodeBlockListPanelSlots & ComponentListPanelSlots & DataSourceListSlots;
|
|
91
|
-
export type BeforeAdd = (config: MNode, parent: MContainer) => Promise<MNode> | MNode;
|
|
92
|
-
export type GetConfig = (config: FormConfig) => Promise<FormConfig> | FormConfig;
|
|
93
|
-
export interface InstallOptions {
|
|
94
|
-
parseDSL: <T = any>(dsl: string) => T;
|
|
95
|
-
[key: string]: any;
|
|
96
|
-
}
|
|
97
|
-
export interface Services {
|
|
98
|
-
editorService: EditorService;
|
|
99
|
-
historyService: HistoryService;
|
|
100
|
-
storageService: StorageService;
|
|
101
|
-
eventsService: EventsService;
|
|
102
|
-
propsService: PropsService;
|
|
103
|
-
componentListService: ComponentListService;
|
|
104
|
-
uiService: UiService;
|
|
105
|
-
codeBlockService: CodeBlockService;
|
|
106
|
-
depService: DepService;
|
|
107
|
-
dataSourceService: DataSourceService;
|
|
108
|
-
keybindingService: KeybindingService;
|
|
109
|
-
stageOverlayService: StageOverlayService;
|
|
110
|
-
}
|
|
111
|
-
export interface StageOptions {
|
|
112
|
-
runtimeUrl?: string;
|
|
113
|
-
autoScrollIntoView?: boolean;
|
|
114
|
-
containerHighlightClassName?: string;
|
|
115
|
-
containerHighlightDuration?: number;
|
|
116
|
-
containerHighlightType?: ContainerHighlightType;
|
|
117
|
-
disabledDragStart?: boolean;
|
|
118
|
-
render?: (stage: StageCore) => HTMLDivElement | Promise<HTMLDivElement>;
|
|
119
|
-
moveableOptions?: MoveableOptions | ((config?: CustomizeMoveableOptionsCallbackConfig) => MoveableOptions);
|
|
120
|
-
canSelect?: (el: HTMLElement) => boolean | Promise<boolean>;
|
|
121
|
-
isContainer?: (el: HTMLElement) => boolean | Promise<boolean>;
|
|
122
|
-
updateDragEl?: UpdateDragEl;
|
|
123
|
-
renderType?: RenderType;
|
|
124
|
-
guidesOptions?: Partial<GuidesOptions>;
|
|
125
|
-
disabledMultiSelect?: boolean;
|
|
126
|
-
zoom?: number;
|
|
127
|
-
}
|
|
128
|
-
export interface StoreState {
|
|
129
|
-
root: MApp | null;
|
|
130
|
-
page: MPage | MPageFragment | null;
|
|
131
|
-
parent: MContainer | null;
|
|
132
|
-
node: MNode | null;
|
|
133
|
-
highlightNode: MNode | null;
|
|
134
|
-
nodes: MNode[];
|
|
135
|
-
stage: StageCore | null;
|
|
136
|
-
stageLoading: boolean;
|
|
137
|
-
modifiedNodeIds: Map<Id, Id>;
|
|
138
|
-
pageLength: number;
|
|
139
|
-
pageFragmentLength: number;
|
|
140
|
-
disabledMultiSelect: boolean;
|
|
141
|
-
}
|
|
142
|
-
export type StoreStateKey = keyof StoreState;
|
|
143
|
-
export interface PropsState {
|
|
144
|
-
propsConfigMap: Record<string, FormConfig>;
|
|
145
|
-
propsValueMap: Record<string, Partial<MNode>>;
|
|
146
|
-
relateIdMap: Record<Id, Id>;
|
|
147
|
-
}
|
|
148
|
-
export interface StageOverlayState {
|
|
149
|
-
wrapDiv: HTMLDivElement;
|
|
150
|
-
sourceEl: HTMLElement | null;
|
|
151
|
-
contentEl: HTMLElement | null;
|
|
152
|
-
stage: StageCore | null;
|
|
153
|
-
stageOptions: StageOptions | null;
|
|
154
|
-
wrapWidth: number;
|
|
155
|
-
wrapHeight: number;
|
|
156
|
-
stageOverlayVisible: boolean;
|
|
157
|
-
}
|
|
158
|
-
export interface ComponentGroupState {
|
|
159
|
-
list: ComponentGroup[];
|
|
160
|
-
}
|
|
161
|
-
export declare enum ColumnLayout {
|
|
162
|
-
LEFT = "left",
|
|
163
|
-
CENTER = "center",
|
|
164
|
-
RIGHT = "right"
|
|
165
|
-
}
|
|
166
|
-
export interface SetColumnWidth {
|
|
167
|
-
[ColumnLayout.LEFT]?: number;
|
|
168
|
-
[ColumnLayout.CENTER]?: number | 'auto';
|
|
169
|
-
[ColumnLayout.RIGHT]?: number;
|
|
170
|
-
}
|
|
171
|
-
export interface GetColumnWidth {
|
|
172
|
-
[ColumnLayout.LEFT]: number;
|
|
173
|
-
[ColumnLayout.CENTER]: number;
|
|
174
|
-
[ColumnLayout.RIGHT]: number;
|
|
175
|
-
}
|
|
176
|
-
export interface StageRect {
|
|
177
|
-
width: number | string;
|
|
178
|
-
height: number | string;
|
|
179
|
-
}
|
|
180
|
-
export interface UiState {
|
|
181
|
-
/** 当前点击画布是否触发选中,true: 不触发,false: 触发,默认为false */
|
|
182
|
-
uiSelectMode: boolean;
|
|
183
|
-
/** 是否显示整个配置源码, true: 显示, false: 不显示,默认为false */
|
|
184
|
-
showSrc: boolean;
|
|
185
|
-
/** 画布显示放大倍数,默认为 1 */
|
|
186
|
-
zoom: number;
|
|
187
|
-
/** 画布容器的宽高 */
|
|
188
|
-
stageContainerRect: {
|
|
189
|
-
width: number;
|
|
190
|
-
height: number;
|
|
191
|
-
};
|
|
192
|
-
/** 画布顶层div的宽高,可用于改变画布的大小 */
|
|
193
|
-
stageRect: StageRect;
|
|
194
|
-
/** 编辑器列布局每一列的宽度,分为左中右三列 */
|
|
195
|
-
columnWidth: GetColumnWidth;
|
|
196
|
-
/** 是否显示画布参考线,true: 显示,false: 不显示,默认为true */
|
|
197
|
-
showGuides: boolean;
|
|
198
|
-
/** 是否显示标尺,true: 显示,false: 不显示,默认为true */
|
|
199
|
-
showRule: boolean;
|
|
200
|
-
/** 用于控制该属性配置表单内组件的尺寸 */
|
|
201
|
-
propsPanelSize: 'large' | 'default' | 'small';
|
|
202
|
-
/** 是否显示新增页面按钮 */
|
|
203
|
-
showAddPageButton: boolean;
|
|
204
|
-
/** 是否在页面工具栏显示呼起页面列表按钮 */
|
|
205
|
-
showPageListButton: boolean;
|
|
206
|
-
/** 是否隐藏侧边栏 */
|
|
207
|
-
hideSlideBar: boolean;
|
|
208
|
-
/** 侧边栏面板配置 */
|
|
209
|
-
sideBarItems: SideComponent[];
|
|
210
|
-
navMenuRect: {
|
|
211
|
-
left: number;
|
|
212
|
-
top: number;
|
|
213
|
-
width: number;
|
|
214
|
-
height: number;
|
|
215
|
-
};
|
|
216
|
-
frameworkRect: {
|
|
217
|
-
left: number;
|
|
218
|
-
top: number;
|
|
219
|
-
width: number;
|
|
220
|
-
height: number;
|
|
221
|
-
};
|
|
222
|
-
}
|
|
223
|
-
export interface EditorNodeInfo {
|
|
224
|
-
node: MNode | null;
|
|
225
|
-
parent: MContainer | null;
|
|
226
|
-
page: MPage | MPageFragment | null;
|
|
227
|
-
}
|
|
228
|
-
export interface AddMNode {
|
|
229
|
-
type: string;
|
|
230
|
-
name?: string;
|
|
231
|
-
inputEvent?: DragEvent;
|
|
232
|
-
[key: string]: any;
|
|
233
|
-
}
|
|
234
|
-
export interface PastePosition {
|
|
235
|
-
left?: number;
|
|
236
|
-
top?: number;
|
|
237
|
-
/**
|
|
238
|
-
* 粘贴位置X方向偏移量
|
|
239
|
-
*/
|
|
240
|
-
offsetX?: number;
|
|
241
|
-
/**
|
|
242
|
-
* 粘贴位置Y方向偏移量
|
|
243
|
-
*/
|
|
244
|
-
offsetY?: number;
|
|
245
|
-
}
|
|
246
|
-
/**
|
|
247
|
-
* 菜单按钮
|
|
248
|
-
*/
|
|
249
|
-
export interface MenuButton {
|
|
250
|
-
/**
|
|
251
|
-
* 按钮类型
|
|
252
|
-
* button: 只有文字不带边框的按钮
|
|
253
|
-
* text: 纯文本
|
|
254
|
-
* divider: 分割线
|
|
255
|
-
* dropdown: 下拉菜单
|
|
256
|
-
*/
|
|
257
|
-
type: 'button' | 'text' | 'divider' | 'dropdown';
|
|
258
|
-
/** 当type为divider时有效,分割线方向, 默认vertical */
|
|
259
|
-
direction?: 'horizontal' | 'vertical';
|
|
260
|
-
/** 展示的文案 */
|
|
261
|
-
text?: string;
|
|
262
|
-
/** 鼠标悬浮是显示的气泡中的文案 */
|
|
263
|
-
tooltip?: string;
|
|
264
|
-
/** Vue组件或url */
|
|
265
|
-
icon?: string | Component<{}, {}, any>;
|
|
266
|
-
/** 是否置灰,默认为false */
|
|
267
|
-
disabled?: boolean | ((data?: Services) => boolean);
|
|
268
|
-
/** 是否显示,默认为true */
|
|
269
|
-
display?: boolean | ((data?: Services) => boolean);
|
|
270
|
-
/** type为button/dropdown时点击运行的方法 */
|
|
271
|
-
handler?: (data: Services, event: MouseEvent) => Promise<any> | any;
|
|
272
|
-
className?: string;
|
|
273
|
-
/** type为dropdown时,下拉的菜单列表, 或者有子菜单时 */
|
|
274
|
-
items?: MenuButton[];
|
|
275
|
-
/** 唯一标识,用于高亮 */
|
|
276
|
-
id?: string | number;
|
|
277
|
-
}
|
|
278
|
-
export interface MenuComponent {
|
|
279
|
-
type: 'component';
|
|
280
|
-
/** Vue3组件 */
|
|
281
|
-
component: any;
|
|
282
|
-
/** 传入组件的props对象 */
|
|
283
|
-
props?: Record<string, any>;
|
|
284
|
-
/** 组件监听的事件对象,如:{ click: () => { console.log('click'); } } */
|
|
285
|
-
listeners?: Record<string, Function>;
|
|
286
|
-
slots?: Record<string, any>;
|
|
287
|
-
/** 是否显示,默认为true */
|
|
288
|
-
className?: string;
|
|
289
|
-
display?: boolean | ((data?: Services) => Promise<boolean> | boolean);
|
|
290
|
-
[key: string]: any;
|
|
291
|
-
}
|
|
292
|
-
/**
|
|
293
|
-
* '/': 分隔符
|
|
294
|
-
* 'delete': 删除按钮
|
|
295
|
-
* 'undo': 撤销按钮
|
|
296
|
-
* 'redo': 恢复按钮
|
|
297
|
-
* 'zoom': 'zoom-in', 'zoom-out', 'scale-to-original', 'scale-to-fit' 的集合
|
|
298
|
-
* 'zoom-in': 放大按钮
|
|
299
|
-
* 'zoom-out': 缩小按钮
|
|
300
|
-
* 'guides': 显示隐藏参考线
|
|
301
|
-
* 'rule': 显示隐藏标尺
|
|
302
|
-
* 'scale-to-original': 缩放到实际大小
|
|
303
|
-
* 'scale-to-fit': 缩放以适应
|
|
304
|
-
*/
|
|
305
|
-
export type MenuItem = '/' | 'delete' | 'undo' | 'redo' | 'zoom' | 'zoom-in' | 'zoom-out' | 'guides' | 'rule' | 'scale-to-original' | 'scale-to-fit' | MenuButton | MenuComponent | string;
|
|
306
|
-
/** 工具栏 */
|
|
307
|
-
export interface MenuBarData {
|
|
308
|
-
/** 顶部工具栏左边项 */
|
|
309
|
-
[ColumnLayout.LEFT]?: MenuItem[];
|
|
310
|
-
/** 顶部工具栏中间项 */
|
|
311
|
-
[ColumnLayout.CENTER]?: MenuItem[];
|
|
312
|
-
/** 顶部工具栏右边项 */
|
|
313
|
-
[ColumnLayout.RIGHT]?: MenuItem[];
|
|
314
|
-
}
|
|
315
|
-
export interface SideComponent extends MenuComponent {
|
|
316
|
-
/** 显示文案 */
|
|
317
|
-
text: string;
|
|
318
|
-
/** tab样式 */
|
|
319
|
-
tabStyle?: string | Record<string, any>;
|
|
320
|
-
/** vue组件或url */
|
|
321
|
-
icon?: any;
|
|
322
|
-
/** slide 唯一标识 key */
|
|
323
|
-
$key: string;
|
|
324
|
-
/** 是否可以将面板拖出,默认为true */
|
|
325
|
-
draggable?: boolean;
|
|
326
|
-
/** 点击切换tab前调用,返回false阻止切换 */
|
|
327
|
-
beforeClick?: (config: SideComponent) => boolean | Promise<boolean>;
|
|
328
|
-
/** 组件扩展参数 */
|
|
329
|
-
boxComponentConfig?: {
|
|
330
|
-
/** Vue3组件 */
|
|
331
|
-
component?: any;
|
|
332
|
-
/** 传入组件的props对象 */
|
|
333
|
-
props?: Record<string, any>;
|
|
334
|
-
};
|
|
335
|
-
}
|
|
336
|
-
export declare enum SideItemKey {
|
|
337
|
-
COMPONENT_LIST = "component-list",
|
|
338
|
-
LAYER = "layer",
|
|
339
|
-
CODE_BLOCK = "code-block",
|
|
340
|
-
DATA_SOURCE = "data-source"
|
|
341
|
-
}
|
|
342
|
-
/**
|
|
343
|
-
* component-list: 组件列表
|
|
344
|
-
* layer: 已选组件树
|
|
345
|
-
* code-block: 代码块
|
|
346
|
-
*/
|
|
347
|
-
export type SideItem = `${SideItemKey}` | SideComponent;
|
|
348
|
-
/** 工具栏 */
|
|
349
|
-
export interface SideBarData {
|
|
350
|
-
/** 容器类型 */
|
|
351
|
-
type: 'tabs';
|
|
352
|
-
/** 默认激活的内容 */
|
|
353
|
-
status: string;
|
|
354
|
-
/** panel列表 */
|
|
355
|
-
items: SideItem[];
|
|
356
|
-
}
|
|
357
|
-
export interface ComponentItem {
|
|
358
|
-
/** 显示文案 */
|
|
359
|
-
text: string;
|
|
360
|
-
/** 详情,用于tooltip */
|
|
361
|
-
desc?: string;
|
|
362
|
-
/** 组件类型 */
|
|
363
|
-
type: string;
|
|
364
|
-
/** Vue组件或url */
|
|
365
|
-
icon?: string | Component<{}, {}, any>;
|
|
366
|
-
/** 新增组件时需要透传到组价节点上的数据 */
|
|
367
|
-
data?: {
|
|
368
|
-
[key: string]: any;
|
|
369
|
-
};
|
|
370
|
-
}
|
|
371
|
-
export interface ComponentGroup {
|
|
372
|
-
/** 显示文案 */
|
|
373
|
-
title: string;
|
|
374
|
-
/** 组内列表 */
|
|
375
|
-
items: ComponentItem[];
|
|
376
|
-
}
|
|
377
|
-
export interface UpdateData {
|
|
378
|
-
id: Id;
|
|
379
|
-
[key: string]: any;
|
|
380
|
-
}
|
|
381
|
-
export declare enum LayerOffset {
|
|
382
|
-
TOP = "top",
|
|
383
|
-
BOTTOM = "bottom"
|
|
384
|
-
}
|
|
385
|
-
/** 容器布局 */
|
|
386
|
-
export declare enum Layout {
|
|
387
|
-
FLEX = "flex",
|
|
388
|
-
FIXED = "fixed",
|
|
389
|
-
RELATIVE = "relative",
|
|
390
|
-
ABSOLUTE = "absolute"
|
|
391
|
-
}
|
|
392
|
-
export declare enum Keys {
|
|
393
|
-
ESCAPE = "Space"
|
|
394
|
-
}
|
|
395
|
-
export declare const H_GUIDE_LINE_STORAGE_KEY = "$MagicStageHorizontalGuidelinesData";
|
|
396
|
-
export declare const V_GUIDE_LINE_STORAGE_KEY = "$MagicStageVerticalGuidelinesData";
|
|
397
|
-
export interface ScrollViewerEvent {
|
|
398
|
-
scrollLeft: number;
|
|
399
|
-
scrollTop: number;
|
|
400
|
-
scrollHeight: number;
|
|
401
|
-
scrollWidth: number;
|
|
402
|
-
}
|
|
403
|
-
export type CodeState = {
|
|
404
|
-
/** 代码块DSL数据源 */
|
|
405
|
-
codeDsl: CodeBlockDSL | null;
|
|
406
|
-
/** 代码块是否可编辑 */
|
|
407
|
-
editable: boolean;
|
|
408
|
-
/** list模式下左侧展示的代码列表 */
|
|
409
|
-
combineIds: string[];
|
|
410
|
-
/** 为业务逻辑预留的不可删除的代码块列表,由业务逻辑维护(如代码块上线后不可删除) */
|
|
411
|
-
undeletableList: Id[];
|
|
412
|
-
paramsColConfig?: ColumnConfig;
|
|
413
|
-
};
|
|
414
|
-
export type CodeRelation = {
|
|
415
|
-
/** 组件id:[代码id1,代码id2] */
|
|
416
|
-
[compId: Id]: Id[];
|
|
417
|
-
};
|
|
418
|
-
export interface CodeDslItem {
|
|
419
|
-
/** 代码块id */
|
|
420
|
-
id: Id;
|
|
421
|
-
/** 代码块名称 */
|
|
422
|
-
name: string;
|
|
423
|
-
/** 代码块函数内容 */
|
|
424
|
-
codeBlockContent?: CodeBlockContent;
|
|
425
|
-
/** 是否展示代码绑定关系 */
|
|
426
|
-
showRelation?: boolean;
|
|
427
|
-
/** 代码块对应绑定的组件信息 */
|
|
428
|
-
combineInfo?: CombineInfo[];
|
|
429
|
-
}
|
|
430
|
-
export interface CombineInfo {
|
|
431
|
-
/** 组件id */
|
|
432
|
-
compId: Id;
|
|
433
|
-
/** 组件名称 */
|
|
434
|
-
compName: string;
|
|
435
|
-
}
|
|
436
|
-
export interface ListState {
|
|
437
|
-
/** 代码块列表 */
|
|
438
|
-
codeList: CodeDslItem[];
|
|
439
|
-
}
|
|
440
|
-
export declare enum CodeDeleteErrorType {
|
|
441
|
-
/** 代码块存在于不可删除列表中 */
|
|
442
|
-
UNDELETEABLE = "undeleteable",
|
|
443
|
-
/** 代码块存在绑定关系 */
|
|
444
|
-
BIND = "bind"
|
|
445
|
-
}
|
|
446
|
-
export declare const CODE_DRAFT_STORAGE_KEY = "magicCodeDraft";
|
|
447
|
-
export interface CodeParamStatement {
|
|
448
|
-
/** 参数名称 */
|
|
449
|
-
name: string;
|
|
450
|
-
/** 参数类型 */
|
|
451
|
-
type?: string;
|
|
452
|
-
[key: string]: any;
|
|
453
|
-
}
|
|
454
|
-
export interface StepValue {
|
|
455
|
-
data: MPage | MPageFragment;
|
|
456
|
-
modifiedNodeIds: Map<Id, Id>;
|
|
457
|
-
nodeId: Id;
|
|
458
|
-
}
|
|
459
|
-
export interface HistoryState {
|
|
460
|
-
pageId?: Id;
|
|
461
|
-
pageSteps: Record<Id, UndoRedo<StepValue>>;
|
|
462
|
-
canRedo: boolean;
|
|
463
|
-
canUndo: boolean;
|
|
464
|
-
}
|
|
465
|
-
export interface EventSelectConfig {
|
|
466
|
-
name: string;
|
|
467
|
-
type: 'event-select';
|
|
468
|
-
src: 'datasource' | 'component';
|
|
469
|
-
labelWidth?: string;
|
|
470
|
-
/** 事件名称表单配置 */
|
|
471
|
-
eventNameConfig?: FormItem;
|
|
472
|
-
/** 动作类型配置 */
|
|
473
|
-
actionTypeConfig?: FormItem;
|
|
474
|
-
/** 联动组件配置 */
|
|
475
|
-
targetCompConfig?: FormItem;
|
|
476
|
-
/** 联动组件动作配置 */
|
|
477
|
-
compActionConfig?: FormItem;
|
|
478
|
-
/** 联动代码配置 */
|
|
479
|
-
codeActionConfig?: FormItem;
|
|
480
|
-
/** 联动数据源配置 */
|
|
481
|
-
dataSourceActionConfig?: FormItem;
|
|
482
|
-
}
|
|
483
|
-
export declare enum KeyBindingCommand {
|
|
484
|
-
/** 复制 */
|
|
485
|
-
COPY_NODE = "tmagic-system-copy-node",
|
|
486
|
-
/** 粘贴 */
|
|
487
|
-
PASTE_NODE = "tmagic-system-paste-node",
|
|
488
|
-
/** 删除 */
|
|
489
|
-
DELETE_NODE = "tmagic-system-delete-node",
|
|
490
|
-
/** 剪切 */
|
|
491
|
-
CUT_NODE = "tmagic-system-cut-node",
|
|
492
|
-
/** 撤销 */
|
|
493
|
-
UNDO = "tmagic-system-undo",
|
|
494
|
-
/** 重做 */
|
|
495
|
-
REDO = "tmagic-system-redo",
|
|
496
|
-
/** 放大 */
|
|
497
|
-
ZOOM_IN = "tmagic-system-zoom-in",
|
|
498
|
-
/** 缩小 */
|
|
499
|
-
ZOOM_OUT = "tmagic-system-zoom-out",
|
|
500
|
-
/** 缩放到实际大小 */
|
|
501
|
-
ZOOM_RESET = "tmagic-system-zoom-reset",
|
|
502
|
-
/** 缩放以适应 */
|
|
503
|
-
ZOOM_FIT = "tmagic-system-zoom-fit",
|
|
504
|
-
/** 向上移动1px */
|
|
505
|
-
MOVE_UP_1 = "tmagic-system-move-up-1",
|
|
506
|
-
/** 向下移动1px */
|
|
507
|
-
MOVE_DOWN_1 = "tmagic-system-move-down-1",
|
|
508
|
-
/** 向左移动1px */
|
|
509
|
-
MOVE_LEFT_1 = "tmagic-system-move-left-1",
|
|
510
|
-
/** 向右移动1px */
|
|
511
|
-
MOVE_RIGHT_1 = "tmagic-system-move-right-1",
|
|
512
|
-
/** 向上移动10px */
|
|
513
|
-
MOVE_UP_10 = "tmagic-system-move-up-10",
|
|
514
|
-
/** 向下移动10px */
|
|
515
|
-
MOVE_DOWN_10 = "tmagic-system-move-down-10",
|
|
516
|
-
/** 向左移动10px */
|
|
517
|
-
MOVE_LEFT_10 = "tmagic-system-move-left-10",
|
|
518
|
-
/** 向右移动10px */
|
|
519
|
-
MOVE_RIGHT_10 = "tmagic-system-move-right-10",
|
|
520
|
-
/** 切换组件 */
|
|
521
|
-
SWITCH_NODE = "tmagic-system-switch-node"
|
|
522
|
-
}
|
|
523
|
-
export interface KeyBindingItem {
|
|
524
|
-
command: KeyBindingCommand | string;
|
|
525
|
-
keybinding?: string | string[];
|
|
526
|
-
when: [string, 'keyup' | 'keydown'][];
|
|
527
|
-
}
|
|
528
|
-
export interface KeyBindingCacheItem {
|
|
529
|
-
type: string;
|
|
530
|
-
command: KeyBindingCommand | string;
|
|
531
|
-
keybinding?: string | string[];
|
|
532
|
-
eventType: 'keyup' | 'keydown';
|
|
533
|
-
bound: boolean;
|
|
534
|
-
}
|
|
535
|
-
export interface CodeSelectColConfig extends FormItem {
|
|
536
|
-
type: 'code-select-col';
|
|
537
|
-
/** 是否可以编辑代码块,disable表示的是是否可以选择代码块 */
|
|
538
|
-
notEditable?: boolean | FilterFunction;
|
|
539
|
-
}
|
|
540
|
-
export interface PageFragmentSelectConfig extends FormItem {
|
|
541
|
-
type: 'page-fragment-select';
|
|
542
|
-
}
|
|
543
|
-
export interface DataSourceSelect extends FormItem, Input {
|
|
544
|
-
type: 'data-source-select';
|
|
545
|
-
/** 数据源类型: base、http... */
|
|
546
|
-
dataSourceType?: string;
|
|
547
|
-
/** 是否要编译成数据源的data。
|
|
548
|
-
* id: 不编译,就是要数据源id;
|
|
549
|
-
* value: 要编译(数据源data)
|
|
550
|
-
* */
|
|
551
|
-
value?: 'id' | 'value';
|
|
552
|
-
/** 是否可以编辑数据源,disable表示的是是否可以选择数据源 */
|
|
553
|
-
notEditable?: boolean | FilterFunction;
|
|
554
|
-
}
|
|
555
|
-
export interface DataSourceMethodSelectConfig extends FormItem {
|
|
556
|
-
type: 'data-source-method-select';
|
|
557
|
-
/** 是否可以编辑数据源,disable表示的是是否可以选择数据源 */
|
|
558
|
-
notEditable?: boolean | FilterFunction;
|
|
559
|
-
}
|
|
560
|
-
export interface DataSourceFieldSelectConfig extends FormItem {
|
|
561
|
-
type: 'data-source-field-select';
|
|
562
|
-
/**
|
|
563
|
-
* 是否要编译成数据源的data。
|
|
564
|
-
* key: 不编译,就是要数据源id和field name;
|
|
565
|
-
* value: 要编译(数据源data[`${filed}`])
|
|
566
|
-
* */
|
|
567
|
-
value?: 'key' | 'value';
|
|
568
|
-
/** 是否严格的遵守父子节点不互相关联 */
|
|
569
|
-
checkStrictly?: boolean | ((mForm: FormState | undefined, data: {
|
|
570
|
-
model: Record<any, any>;
|
|
571
|
-
values: Record<any, any>;
|
|
572
|
-
parent?: Record<any, any>;
|
|
573
|
-
formValue: Record<any, any>;
|
|
574
|
-
prop: string;
|
|
575
|
-
config: DataSourceFieldSelectConfig;
|
|
576
|
-
dataSource?: DataSourceSchema;
|
|
577
|
-
}) => boolean);
|
|
578
|
-
dataSourceFieldType?: DataSourceFieldType[];
|
|
579
|
-
fieldConfig?: ChildConfig;
|
|
580
|
-
/** 是否可以编辑数据源,disable表示的是是否可以选择数据源 */
|
|
581
|
-
notEditable?: boolean | FilterFunction;
|
|
582
|
-
}
|
|
583
|
-
export interface CondOpSelectConfig extends FormItem {
|
|
584
|
-
type: 'cond-op';
|
|
585
|
-
parentFields?: string[];
|
|
586
|
-
}
|
|
587
|
-
/** 可新增的数据源类型选项 */
|
|
588
|
-
export interface DatasourceTypeOption {
|
|
589
|
-
/** 数据源类型 */
|
|
590
|
-
type: string;
|
|
591
|
-
/** 数据源名称 */
|
|
592
|
-
text: string;
|
|
593
|
-
}
|
|
594
|
-
/** 组件树节点状态 */
|
|
595
|
-
export interface LayerNodeStatus {
|
|
596
|
-
/** 显隐 */
|
|
597
|
-
visible: boolean;
|
|
598
|
-
/** 展开子节点 */
|
|
599
|
-
expand: boolean;
|
|
600
|
-
/** 选中 */
|
|
601
|
-
selected: boolean;
|
|
602
|
-
/** 是否可拖拽 */
|
|
603
|
-
draggable: boolean;
|
|
604
|
-
}
|
|
605
|
-
/** 拖拽类型 */
|
|
606
|
-
export declare enum DragType {
|
|
607
|
-
/** 从组件列表拖到画布 */
|
|
608
|
-
COMPONENT_LIST = "component-list",
|
|
609
|
-
/** 拖动组件树节点 */
|
|
610
|
-
LAYER_TREE = "layer-tree"
|
|
611
|
-
}
|
|
612
|
-
/** 当uiService.get('uiSelectMode')为true,点击组件(包括任何形式,组件树/画布)时触发的事件名 */
|
|
613
|
-
export declare const UI_SELECT_MODE_EVENT_NAME = "ui-select";
|
|
614
|
-
export interface TreeNodeData {
|
|
615
|
-
id: Id;
|
|
616
|
-
name?: string;
|
|
617
|
-
items?: TreeNodeData[];
|
|
618
|
-
[key: string]: any;
|
|
619
|
-
}
|
|
620
|
-
export type AsyncBeforeHook<Value extends Array<string>, C extends Record<Value[number], (...args: any) => any>> = {
|
|
621
|
-
[K in Value[number]]?: (...args: Parameters<C[K]>) => Promise<Parameters<C[K]>> | Parameters<C[K]>;
|
|
622
|
-
};
|
|
623
|
-
export type AsyncAfterHook<Value extends Array<string>, C extends Record<Value[number], (...args: any) => any>> = {
|
|
624
|
-
[K in Value[number]]?: (result: Awaited<ReturnType<C[K]>>, ...args: Parameters<C[K]>) => ReturnType<C[K]> | Awaited<ReturnType<C[K]>>;
|
|
625
|
-
};
|
|
626
|
-
export type SyncBeforeHook<Value extends Array<string>, C extends Record<Value[number], (...args: any) => any>> = {
|
|
627
|
-
[K in Value[number]]?: (...args: Parameters<C[K]>) => Parameters<C[K]>;
|
|
628
|
-
};
|
|
629
|
-
export type SyncAfterHook<Value extends Array<string>, C extends Record<Value[number], (...args: any) => any>> = {
|
|
630
|
-
[K in Value[number]]?: (result: ReturnType<C[K]>, ...args: Parameters<C[K]>) => ReturnType<C[K]>;
|
|
631
|
-
};
|
|
632
|
-
export type AddPrefixToObject<T, P extends string> = {
|
|
633
|
-
[K in keyof T as K extends string ? `${P}${K}` : never]: T[K];
|
|
634
|
-
};
|
|
635
|
-
export type AsyncHookPlugin<T extends Array<string>, C extends Record<T[number], (...args: any) => any>> = AddPrefixToObject<PascalCasedProperties<AsyncBeforeHook<T, C>>, 'before'> & AddPrefixToObject<PascalCasedProperties<AsyncAfterHook<T, C>>, 'after'>;
|
|
636
|
-
export type SyncHookPlugin<T extends Array<string>, C extends Record<T[number], (...args: any) => any>> = AddPrefixToObject<PascalCasedProperties<SyncBeforeHook<T, C>>, 'before'> & AddPrefixToObject<PascalCasedProperties<SyncAfterHook<T, C>>, 'after'>;
|
|
637
|
-
export interface EventBusEvent {
|
|
638
|
-
'edit-data-source': [id: string];
|
|
639
|
-
'edit-code': [id: string];
|
|
640
|
-
}
|
|
641
|
-
export interface EventBus extends EventEmitter {
|
|
642
|
-
on<Name extends keyof EventBusEvent, Param extends EventBusEvent[Name]>(eventName: Name, listener: (...args: Param) => void): this;
|
|
643
|
-
emit<Name extends keyof EventBusEvent, Param extends EventBusEvent[Name]>(eventName: Name, ...args: Param): boolean;
|
|
644
|
-
}
|
|
645
|
-
export type PropsFormConfigFunction = (data: {
|
|
646
|
-
editorService: EditorService;
|
|
647
|
-
}) => FormConfig;
|
|
648
|
-
export type PropsFormValueFunction = (data: {
|
|
649
|
-
editorService: EditorService;
|
|
650
|
-
}) => Partial<MNode>;
|
|
651
|
-
export type PartSortableOptions = Omit<Options, 'onStart' | 'onUpdate'>;
|
|
652
|
-
export interface PageBarSortOptions extends PartSortableOptions {
|
|
653
|
-
/** 在onUpdate之后调用 */
|
|
654
|
-
afterUpdate?: (event: SortableEvent, sortable: Sortable) => void | Promise<void>;
|
|
655
|
-
/** 在onStart之前调用 */
|
|
656
|
-
beforeStart?: (event: SortableEvent, sortable: Sortable) => void | Promise<void>;
|
|
657
|
-
}
|
package/types/utils/compose.d.ts
DELETED
package/types/utils/config.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import ContentMenu from '../components/ContentMenu.vue';
|
|
3
|
-
import type { MenuButton, Services } from '../type';
|
|
4
|
-
export declare const useDeleteMenu: () => MenuButton;
|
|
5
|
-
export declare const useCopyMenu: () => MenuButton;
|
|
6
|
-
export declare const usePasteMenu: (menu?: Ref<InstanceType<typeof ContentMenu> | undefined>) => MenuButton;
|
|
7
|
-
export declare const useMoveToMenu: (services?: Services) => MenuButton;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CascaderOption, FormConfig } from '@tmagic/form';
|
|
2
|
-
import { DataSchema, DataSourceFieldType, DataSourceSchema } from '@tmagic/schema';
|
|
3
|
-
export declare const getFormConfig: (type: string, configs: Record<string, FormConfig>) => FormConfig;
|
|
4
|
-
export declare const getFormValue: (type: string, values: Partial<DataSourceSchema>) => Partial<DataSourceSchema>;
|
|
5
|
-
export declare const getDisplayField: (dataSources: DataSourceSchema[], key: string) => {
|
|
6
|
-
value: string;
|
|
7
|
-
type: "var" | "text";
|
|
8
|
-
}[];
|
|
9
|
-
export declare const getCascaderOptionsFromFields: (fields?: DataSchema[], dataSourceFieldType?: DataSourceFieldType[]) => CascaderOption[];
|
|
10
|
-
export declare const removeDataSourceFieldPrefix: (id?: string) => string;
|