@tmagic/editor 1.3.5 → 1.3.7
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/LICENSE +5432 -0
- package/dist/style.css +88 -62
- package/dist/tmagic-editor.js +2448 -2016
- package/dist/tmagic-editor.js.map +1 -1
- package/dist/tmagic-editor.umd.cjs +2453 -2019
- package/dist/tmagic-editor.umd.cjs.map +1 -1
- package/package.json +23 -23
- package/src/Editor.vue +15 -7
- package/src/components/CodeBlockEditor.vue +2 -2
- package/src/components/ContentMenu.vue +5 -5
- package/src/components/FloatingBox.vue +117 -0
- package/src/components/ScrollBar.vue +2 -2
- package/src/components/ScrollViewer.vue +2 -2
- package/src/components/SplitView.vue +2 -2
- package/src/components/Tree.vue +5 -0
- package/src/components/TreeNode.vue +10 -4
- package/src/editorProps.ts +20 -3
- package/src/fields/PageFragmentSelect.vue +55 -0
- package/src/hooks/use-filter.ts +55 -0
- package/src/hooks/use-getso.ts +2 -2
- package/src/hooks/use-node-status.ts +48 -0
- package/src/hooks/use-stage.ts +19 -1
- package/src/index.ts +3 -0
- package/src/initService.ts +43 -17
- package/src/layouts/AddPageBox.vue +16 -4
- package/src/layouts/CodeEditor.vue +2 -2
- package/src/layouts/Framework.vue +17 -3
- package/src/layouts/PropsPanel.vue +2 -2
- package/src/layouts/page-bar/AddButton.vue +48 -0
- package/src/layouts/page-bar/PageBar.vue +158 -0
- package/src/layouts/{workspace → page-bar}/PageBarScrollContainer.vue +61 -35
- package/src/layouts/page-bar/SwitchTypeButton.vue +45 -0
- package/src/layouts/sidebar/Sidebar.vue +9 -2
- package/src/layouts/sidebar/code-block/CodeBlockList.vue +55 -65
- package/src/layouts/sidebar/code-block/CodeBlockListPanel.vue +2 -1
- package/src/layouts/sidebar/data-source/DataSourceList.vue +63 -59
- package/src/layouts/sidebar/data-source/DataSourceListPanel.vue +1 -1
- package/src/layouts/sidebar/layer/LayerMenu.vue +39 -27
- package/src/layouts/sidebar/layer/LayerPanel.vue +31 -8
- package/src/layouts/sidebar/layer/use-click.ts +5 -3
- package/src/layouts/sidebar/layer/use-keybinding.ts +8 -8
- package/src/layouts/sidebar/layer/use-node-status.ts +10 -13
- package/src/layouts/workspace/Workspace.vue +6 -7
- package/src/layouts/workspace/viewer/NodeListMenu.vue +68 -129
- package/src/layouts/workspace/viewer/Stage.vue +14 -6
- package/src/layouts/workspace/viewer/ViewerMenu.vue +94 -86
- package/src/services/BaseService.ts +63 -26
- package/src/services/codeBlock.ts +7 -1
- package/src/services/dep.ts +12 -8
- package/src/services/editor.ts +131 -64
- package/src/services/history.ts +6 -2
- package/src/services/keybinding.ts +48 -13
- package/src/services/props.ts +70 -12
- package/src/services/storage.ts +23 -13
- package/src/services/ui.ts +4 -1
- package/src/theme/code-block.scss +0 -16
- package/src/theme/floating-box.scss +30 -0
- package/src/theme/layer-panel.scss +19 -0
- package/src/theme/page-bar.scss +18 -1
- package/src/theme/stage.scss +24 -0
- package/src/theme/theme.scss +1 -1
- package/src/theme/tree.scss +12 -1
- package/src/type.ts +28 -10
- package/src/utils/compose.ts +25 -6
- package/src/utils/content-menu.ts +6 -7
- package/src/utils/editor.ts +34 -18
- package/src/utils/operator.ts +5 -6
- package/types/components/CodeBlockEditor.vue.d.ts +6 -2
- package/types/components/CodeParams.vue.d.ts +3 -1
- package/types/components/ContentMenu.vue.d.ts +13 -5
- package/types/components/FloatingBox.vue.d.ts +78 -0
- package/types/components/Resizer.vue.d.ts +6 -1
- package/types/components/ScrollBar.vue.d.ts +3 -1
- package/types/components/ScrollViewer.vue.d.ts +3 -3
- package/types/components/SearchInput.vue.d.ts +3 -1
- package/types/components/SplitView.vue.d.ts +8 -4
- package/types/components/ToolButton.vue.d.ts +3 -3
- package/types/components/Tree.vue.d.ts +27 -8
- package/types/components/TreeNode.vue.d.ts +24 -7
- package/types/editorProps.d.ts +16 -1
- package/types/fields/Code.vue.d.ts +6 -2
- package/types/fields/CodeLink.vue.d.ts +5 -3
- package/types/fields/CodeSelect.vue.d.ts +3 -1
- package/types/fields/CodeSelectCol.vue.d.ts +3 -1
- package/types/fields/DataSourceFieldSelect.vue.d.ts +3 -1
- package/types/fields/DataSourceFields.vue.d.ts +5 -3
- package/types/fields/DataSourceInput.vue.d.ts +8 -4
- package/types/fields/DataSourceMethodSelect.vue.d.ts +3 -1
- package/types/fields/DataSourceMethods.vue.d.ts +5 -3
- package/types/fields/DataSourceMocks.vue.d.ts +5 -3
- package/types/fields/DataSourceSelect.vue.d.ts +5 -3
- package/types/fields/EventSelect.vue.d.ts +3 -1
- package/types/fields/KeyValue.vue.d.ts +2 -2
- package/types/fields/PageFragmentSelect.vue.d.ts +31 -0
- package/types/fields/UISelect.vue.d.ts +3 -1
- package/types/hooks/use-code-block-edit.d.ts +14 -5
- package/types/hooks/use-data-source-method.d.ts +14 -5
- package/types/hooks/use-filter.d.ts +7 -0
- package/types/hooks/use-node-status.d.ts +6 -0
- package/types/index.d.ts +1 -0
- package/types/layouts/AddPageBox.vue.d.ts +14 -1
- package/types/layouts/CodeEditor.vue.d.ts +4 -1
- package/types/layouts/Framework.vue.d.ts +14 -1
- package/types/layouts/PropsPanel.vue.d.ts +19 -13
- package/types/layouts/{workspace/viewer/NodeListMenuTitle.vue.d.ts → page-bar/AddButton.vue.d.ts} +3 -2
- package/types/layouts/page-bar/PageBar.vue.d.ts +28 -0
- package/types/layouts/page-bar/PageBarScrollContainer.vue.d.ts +24 -0
- package/types/layouts/page-bar/SwitchTypeButton.vue.d.ts +20 -0
- package/types/layouts/sidebar/ComponentListPanel.vue.d.ts +1 -1
- package/types/layouts/sidebar/Sidebar.vue.d.ts +7 -5
- package/types/layouts/sidebar/code-block/CodeBlockList.vue.d.ts +9 -3
- package/types/layouts/sidebar/code-block/CodeBlockListPanel.vue.d.ts +1 -1
- package/types/layouts/sidebar/data-source/DataSourceConfigPanel.vue.d.ts +3 -1
- package/types/layouts/sidebar/data-source/DataSourceList.vue.d.ts +8 -2
- package/types/layouts/sidebar/data-source/DataSourceListPanel.vue.d.ts +1 -1
- package/types/layouts/sidebar/layer/LayerMenu.vue.d.ts +26 -3
- package/types/layouts/sidebar/layer/LayerPanel.vue.d.ts +3 -1
- package/types/layouts/sidebar/layer/use-click.d.ts +37 -6
- package/types/layouts/sidebar/layer/use-keybinding.d.ts +1 -1
- package/types/layouts/sidebar/layer/use-node-status.d.ts +3 -4
- package/types/layouts/workspace/Workspace.vue.d.ts +3 -1
- package/types/layouts/workspace/viewer/NodeListMenu.vue.d.ts +1 -14
- package/types/layouts/workspace/viewer/Stage.vue.d.ts +2 -0
- package/types/layouts/workspace/viewer/ViewerMenu.vue.d.ts +9 -1
- package/types/services/BaseService.d.ts +4 -1
- package/types/services/dataSource.d.ts +1 -0
- package/types/services/dep.d.ts +6 -5
- package/types/services/editor.d.ts +12 -5
- package/types/services/history.d.ts +3 -2
- package/types/services/keybinding.d.ts +21 -1
- package/types/services/props.d.ts +25 -1
- package/types/services/storage.d.ts +7 -7
- package/types/type.d.ts +32 -17
- package/types/utils/compose.d.ts +1 -1
- package/types/utils/editor.d.ts +14 -8
- package/src/layouts/sidebar/layer/use-filter.ts +0 -59
- package/src/layouts/workspace/PageBar.vue +0 -87
- package/src/layouts/workspace/viewer/NodeListMenuTitle.vue +0 -68
- package/src/theme/dep-list.scss +0 -59
- package/types/layouts/sidebar/layer/use-filter.d.ts +0 -7
- package/types/layouts/workspace/PageBar.vue.d.ts +0 -15
- package/types/layouts/workspace/PageBarScrollContainer.vue.d.ts +0 -9
|
@@ -24,7 +24,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
24
24
|
clientY: number;
|
|
25
25
|
clientX: number;
|
|
26
26
|
}) => void;
|
|
27
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
+
mouseenter: () => void;
|
|
29
|
+
show: () => void;
|
|
30
|
+
hide: () => void;
|
|
31
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
28
32
|
menuData?: (MenuButton | MenuComponent)[] | undefined;
|
|
29
33
|
isSubMenu?: boolean | undefined;
|
|
30
34
|
active?: string | number | undefined;
|
|
@@ -33,7 +37,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
33
37
|
menuData: () => never[];
|
|
34
38
|
isSubMenu: boolean;
|
|
35
39
|
autoHide: boolean;
|
|
36
|
-
}
|
|
40
|
+
}>>> & {
|
|
41
|
+
onMouseenter?: (() => any) | undefined;
|
|
42
|
+
onShow?: (() => any) | undefined;
|
|
43
|
+
onHide?: (() => any) | undefined;
|
|
44
|
+
}, {
|
|
37
45
|
menuData: (MenuButton | MenuComponent)[];
|
|
38
46
|
isSubMenu: boolean;
|
|
39
47
|
autoHide: boolean;
|
|
@@ -55,11 +63,11 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
55
63
|
default: D[K];
|
|
56
64
|
}> : P[K];
|
|
57
65
|
};
|
|
66
|
+
type __VLS_Prettify<T> = {
|
|
67
|
+
[K in keyof T]: T[K];
|
|
68
|
+
} & {};
|
|
58
69
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
59
70
|
new (): {
|
|
60
71
|
$slots: S;
|
|
61
72
|
};
|
|
62
73
|
};
|
|
63
|
-
type __VLS_Prettify<T> = {
|
|
64
|
-
[K in keyof T]: T[K];
|
|
65
|
-
} & {};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
interface Position {
|
|
2
|
+
left: number;
|
|
3
|
+
top: number;
|
|
4
|
+
}
|
|
5
|
+
interface Rect {
|
|
6
|
+
width: number | string;
|
|
7
|
+
height: number | string;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
visible: boolean;
|
|
11
|
+
position?: Position | undefined;
|
|
12
|
+
rect?: Rect | undefined;
|
|
13
|
+
title?: string | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
visible: boolean;
|
|
16
|
+
title: string;
|
|
17
|
+
position: () => {
|
|
18
|
+
left: number;
|
|
19
|
+
top: number;
|
|
20
|
+
};
|
|
21
|
+
rect: () => {
|
|
22
|
+
width: string;
|
|
23
|
+
height: string;
|
|
24
|
+
};
|
|
25
|
+
}>, {
|
|
26
|
+
target: import("vue").Ref<HTMLDivElement | undefined>;
|
|
27
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
+
"update:visible": (args_0: boolean) => void;
|
|
29
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
30
|
+
visible: boolean;
|
|
31
|
+
position?: Position | undefined;
|
|
32
|
+
rect?: Rect | undefined;
|
|
33
|
+
title?: string | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
visible: boolean;
|
|
36
|
+
title: string;
|
|
37
|
+
position: () => {
|
|
38
|
+
left: number;
|
|
39
|
+
top: number;
|
|
40
|
+
};
|
|
41
|
+
rect: () => {
|
|
42
|
+
width: string;
|
|
43
|
+
height: string;
|
|
44
|
+
};
|
|
45
|
+
}>>> & {
|
|
46
|
+
"onUpdate:visible"?: ((args_0: boolean) => any) | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
title: string;
|
|
49
|
+
rect: Rect;
|
|
50
|
+
position: Position;
|
|
51
|
+
visible: boolean;
|
|
52
|
+
}, {}>, {
|
|
53
|
+
title?(_: {}): any;
|
|
54
|
+
body?(_: {}): any;
|
|
55
|
+
}>;
|
|
56
|
+
export default _default;
|
|
57
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
58
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
59
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
60
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
61
|
+
} : {
|
|
62
|
+
type: import('vue').PropType<T[K]>;
|
|
63
|
+
required: true;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
type __VLS_WithDefaults<P, D> = {
|
|
67
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
68
|
+
default: D[K];
|
|
69
|
+
}> : P[K];
|
|
70
|
+
};
|
|
71
|
+
type __VLS_Prettify<T> = {
|
|
72
|
+
[K in keyof T]: T[K];
|
|
73
|
+
} & {};
|
|
74
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
75
|
+
new (): {
|
|
76
|
+
$slots: S;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import type { OnDrag } from 'gesto';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
change: (e: OnDrag<import("gesto/declaration/Gesto").default>) => void;
|
|
4
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
5
|
+
onChange?: ((e: OnDrag<import("gesto/declaration/Gesto").default>) => any) | undefined;
|
|
6
|
+
}, {}, {}>, {
|
|
2
7
|
default?(_: {}): any;
|
|
3
8
|
}>;
|
|
4
9
|
export default _default;
|
|
@@ -3,7 +3,9 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
3
3
|
scrollSize: number;
|
|
4
4
|
isHorizontal?: boolean | undefined;
|
|
5
5
|
pos: number;
|
|
6
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
6
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
scroll: (...args: any[]) => void;
|
|
8
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
9
|
size: number;
|
|
8
10
|
scrollSize: number;
|
|
9
11
|
isHorizontal?: boolean | undefined;
|
|
@@ -68,11 +68,11 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
68
68
|
default: D[K];
|
|
69
69
|
}> : P[K];
|
|
70
70
|
};
|
|
71
|
+
type __VLS_Prettify<T> = {
|
|
72
|
+
[K in keyof T]: T[K];
|
|
73
|
+
} & {};
|
|
71
74
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
72
75
|
new (): {
|
|
73
76
|
$slots: S;
|
|
74
77
|
};
|
|
75
78
|
};
|
|
76
|
-
type __VLS_Prettify<T> = {
|
|
77
|
-
[K in keyof T]: T[K];
|
|
78
|
-
} & {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
+
search: (...args: any[]) => void;
|
|
3
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
2
4
|
onSearch?: ((...args: any[]) => any) | undefined;
|
|
3
5
|
}, {}, {}>;
|
|
4
6
|
export default _default;
|
|
@@ -13,7 +13,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
13
13
|
minCenter: number;
|
|
14
14
|
}>, {
|
|
15
15
|
updateWidth(): void;
|
|
16
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
change: (...args: any[]) => void;
|
|
18
|
+
"update:left": (...args: any[]) => void;
|
|
19
|
+
"update:right": (...args: any[]) => void;
|
|
20
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
17
21
|
left?: number | undefined;
|
|
18
22
|
right?: number | undefined;
|
|
19
23
|
minLeft?: number | undefined;
|
|
@@ -54,11 +58,11 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
54
58
|
default: D[K];
|
|
55
59
|
}> : P[K];
|
|
56
60
|
};
|
|
61
|
+
type __VLS_Prettify<T> = {
|
|
62
|
+
[K in keyof T]: T[K];
|
|
63
|
+
} & {};
|
|
57
64
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
58
65
|
new (): {
|
|
59
66
|
$slots: S;
|
|
60
67
|
};
|
|
61
68
|
};
|
|
62
|
-
type __VLS_Prettify<T> = {
|
|
63
|
-
[K in keyof T]: T[K];
|
|
64
|
-
} & {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MenuButton, MenuComponent } from '../type';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
data?: MenuButton | MenuComponent | undefined;
|
|
4
|
-
eventType?: "
|
|
4
|
+
eventType?: "mousedown" | "mouseup" | "click" | undefined;
|
|
5
5
|
}>, {
|
|
6
6
|
data: () => {
|
|
7
7
|
type: string;
|
|
@@ -10,7 +10,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
10
10
|
eventType: string;
|
|
11
11
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
12
12
|
data?: MenuButton | MenuComponent | undefined;
|
|
13
|
-
eventType?: "
|
|
13
|
+
eventType?: "mousedown" | "mouseup" | "click" | undefined;
|
|
14
14
|
}>, {
|
|
15
15
|
data: () => {
|
|
16
16
|
type: string;
|
|
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
19
19
|
eventType: string;
|
|
20
20
|
}>>>, {
|
|
21
21
|
data: MenuButton | MenuComponent;
|
|
22
|
-
eventType:
|
|
22
|
+
eventType: 'mousedown' | 'mouseup' | 'click';
|
|
23
23
|
}, {}>;
|
|
24
24
|
export default _default;
|
|
25
25
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -8,7 +8,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
8
8
|
}>, {
|
|
9
9
|
indent: number;
|
|
10
10
|
emptyText: string;
|
|
11
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"node-dragstart": (event: DragEvent, data: TreeNodeData) => void;
|
|
13
|
+
"node-dragleave": (event: DragEvent, data: TreeNodeData) => void;
|
|
14
|
+
"node-dragend": (event: DragEvent, data: TreeNodeData) => void;
|
|
15
|
+
"node-contextmenu": (event: MouseEvent, data: TreeNodeData) => void;
|
|
16
|
+
"node-mouseenter": (event: MouseEvent, data: TreeNodeData) => void;
|
|
17
|
+
"node-click": (event: MouseEvent, data: TreeNodeData) => void;
|
|
18
|
+
"node-dragover": (event: DragEvent) => void;
|
|
19
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
12
20
|
data: TreeNodeData[];
|
|
13
21
|
nodeStatusMap: Map<Id, LayerNodeStatus>;
|
|
14
22
|
indent?: number | undefined;
|
|
@@ -16,17 +24,28 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
16
24
|
}>, {
|
|
17
25
|
indent: number;
|
|
18
26
|
emptyText: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
27
|
+
}>>> & {
|
|
28
|
+
"onNode-dragstart"?: ((event: DragEvent, data: TreeNodeData) => any) | undefined;
|
|
29
|
+
"onNode-dragleave"?: ((event: DragEvent, data: TreeNodeData) => any) | undefined;
|
|
30
|
+
"onNode-dragend"?: ((event: DragEvent, data: TreeNodeData) => any) | undefined;
|
|
31
|
+
"onNode-contextmenu"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
32
|
+
"onNode-mouseenter"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
33
|
+
"onNode-click"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
34
|
+
"onNode-dragover"?: ((event: DragEvent) => any) | undefined;
|
|
35
|
+
}, {
|
|
21
36
|
indent: number;
|
|
22
|
-
|
|
37
|
+
emptyText: string;
|
|
38
|
+
}, {}>, Readonly<{
|
|
23
39
|
'tree-node-content'(props: {
|
|
24
40
|
data: TreeNodeData;
|
|
25
41
|
}): any;
|
|
42
|
+
'tree-node-label'(props: {
|
|
43
|
+
data: TreeNodeData;
|
|
44
|
+
}): any;
|
|
26
45
|
'tree-node-tool'(props: {
|
|
27
46
|
data: TreeNodeData;
|
|
28
47
|
}): any;
|
|
29
|
-
}
|
|
48
|
+
}>>;
|
|
30
49
|
export default _default;
|
|
31
50
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
51
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -42,11 +61,11 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
42
61
|
default: D[K];
|
|
43
62
|
}> : P[K];
|
|
44
63
|
};
|
|
64
|
+
type __VLS_Prettify<T> = {
|
|
65
|
+
[K in keyof T]: T[K];
|
|
66
|
+
} & {};
|
|
45
67
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
46
68
|
new (): {
|
|
47
69
|
$slots: S;
|
|
48
70
|
};
|
|
49
71
|
};
|
|
50
|
-
type __VLS_Prettify<T> = {
|
|
51
|
-
[K in keyof T]: T[K];
|
|
52
|
-
} & {};
|
|
@@ -6,22 +6,39 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
6
6
|
indent?: number | undefined;
|
|
7
7
|
}>, {
|
|
8
8
|
indent: number;
|
|
9
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"node-dragstart": (event: DragEvent, data: TreeNodeData) => void;
|
|
11
|
+
"node-dragleave": (event: DragEvent, data: TreeNodeData) => void;
|
|
12
|
+
"node-dragend": (event: DragEvent, data: TreeNodeData) => void;
|
|
13
|
+
"node-contextmenu": (event: MouseEvent, data: TreeNodeData) => void;
|
|
14
|
+
"node-mouseenter": (event: MouseEvent, data: TreeNodeData) => void;
|
|
15
|
+
"node-click": (event: MouseEvent, data: TreeNodeData) => void;
|
|
16
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
17
|
data: TreeNodeData;
|
|
11
18
|
nodeStatusMap: Map<Id, LayerNodeStatus>;
|
|
12
19
|
indent?: number | undefined;
|
|
13
20
|
}>, {
|
|
14
21
|
indent: number;
|
|
15
|
-
}
|
|
22
|
+
}>>> & {
|
|
23
|
+
"onNode-dragstart"?: ((event: DragEvent, data: TreeNodeData) => any) | undefined;
|
|
24
|
+
"onNode-dragleave"?: ((event: DragEvent, data: TreeNodeData) => any) | undefined;
|
|
25
|
+
"onNode-dragend"?: ((event: DragEvent, data: TreeNodeData) => any) | undefined;
|
|
26
|
+
"onNode-contextmenu"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
27
|
+
"onNode-mouseenter"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
28
|
+
"onNode-click"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
29
|
+
}, {
|
|
16
30
|
indent: number;
|
|
17
|
-
}, {}>, {
|
|
31
|
+
}, {}>, Readonly<{
|
|
32
|
+
'tree-node-label'(props: {
|
|
33
|
+
data: TreeNodeData;
|
|
34
|
+
}): any;
|
|
18
35
|
'tree-node-tool'(props: {
|
|
19
36
|
data: TreeNodeData;
|
|
20
37
|
}): any;
|
|
21
38
|
'tree-node-content'(props: {
|
|
22
39
|
data: TreeNodeData;
|
|
23
40
|
}): any;
|
|
24
|
-
}
|
|
41
|
+
}>>;
|
|
25
42
|
export default _default;
|
|
26
43
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
44
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -37,11 +54,11 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
37
54
|
default: D[K];
|
|
38
55
|
}> : P[K];
|
|
39
56
|
};
|
|
57
|
+
type __VLS_Prettify<T> = {
|
|
58
|
+
[K in keyof T]: T[K];
|
|
59
|
+
} & {};
|
|
40
60
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
41
61
|
new (): {
|
|
42
62
|
$slots: S;
|
|
43
63
|
};
|
|
44
64
|
};
|
|
45
|
-
type __VLS_Prettify<T> = {
|
|
46
|
-
[K in keyof T]: T[K];
|
|
47
|
-
} & {};
|
package/types/editorProps.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { EventOption } from '@tmagic/core';
|
|
2
|
+
import type { CustomTargetOptions } from '@tmagic/dep';
|
|
2
3
|
import type { FormConfig, FormState } from '@tmagic/form';
|
|
3
4
|
import type { DataSourceSchema, Id, MApp, MNode } from '@tmagic/schema';
|
|
4
|
-
import StageCore, { ContainerHighlightType, CustomizeMoveableOptionsCallbackConfig, MoveableOptions, UpdateDragEl } from '@tmagic/stage';
|
|
5
|
+
import StageCore, { ContainerHighlightType, type CustomizeMoveableOptionsCallbackConfig, type GuidesOptions, type MoveableOptions, RenderType, type UpdateDragEl } from '@tmagic/stage';
|
|
5
6
|
import type { ComponentGroup, DatasourceTypeOption, MenuBarData, MenuButton, MenuComponent, SideBarData, StageRect } from './type';
|
|
6
7
|
export interface EditorProps {
|
|
7
8
|
/** 页面初始值 */
|
|
@@ -22,6 +23,8 @@ export interface EditorProps {
|
|
|
22
23
|
render?: (stage: StageCore) => HTMLDivElement | Promise<HTMLDivElement>;
|
|
23
24
|
/** 中间工作区域中画布通过iframe渲染时的页面url */
|
|
24
25
|
runtimeUrl?: string;
|
|
26
|
+
/** 是用iframe渲染还是直接渲染 */
|
|
27
|
+
renderType?: RenderType;
|
|
25
28
|
/** 选中时是否自动滚动到可视区域 */
|
|
26
29
|
autoScrollIntoView?: boolean;
|
|
27
30
|
/** 组件的属性配置表单的dsl */
|
|
@@ -57,6 +60,15 @@ export interface EditorProps {
|
|
|
57
60
|
updateDragEl?: UpdateDragEl;
|
|
58
61
|
disabledDragStart?: boolean;
|
|
59
62
|
extendFormState?: (state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
63
|
+
/** 自定义依赖收集器,复制组件时会将关联依赖一并复制 */
|
|
64
|
+
collectorOptions?: CustomTargetOptions;
|
|
65
|
+
/** 标尺配置 */
|
|
66
|
+
guidesOptions?: Partial<GuidesOptions>;
|
|
67
|
+
/** 禁止多选 */
|
|
68
|
+
disabledMultiSelect?: boolean;
|
|
69
|
+
/** 禁用页面片 */
|
|
70
|
+
disabledPageFragment?: boolean;
|
|
71
|
+
customContentMenu?: (menus: (MenuButton | MenuComponent)[], type: string) => (MenuButton | MenuComponent)[];
|
|
60
72
|
}
|
|
61
73
|
export declare const defaultEditorProps: {
|
|
62
74
|
componentGroupList: () => never[];
|
|
@@ -78,4 +90,7 @@ export declare const defaultEditorProps: {
|
|
|
78
90
|
containerHighlightDuration: number;
|
|
79
91
|
containerHighlightType: ContainerHighlightType;
|
|
80
92
|
codeOptions: () => {};
|
|
93
|
+
renderType: RenderType;
|
|
94
|
+
disabledMultiSelect: boolean;
|
|
95
|
+
disabledPageFragment: boolean;
|
|
81
96
|
};
|
|
@@ -8,7 +8,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
8
8
|
parse?: boolean | undefined;
|
|
9
9
|
}>>, {
|
|
10
10
|
disabled: boolean;
|
|
11
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
change: (value: any) => void;
|
|
13
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<{
|
|
12
14
|
language?: string | undefined;
|
|
13
15
|
options?: {
|
|
14
16
|
[key: string]: any;
|
|
@@ -17,7 +19,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
17
19
|
parse?: boolean | undefined;
|
|
18
20
|
}>>, {
|
|
19
21
|
disabled: boolean;
|
|
20
|
-
}
|
|
22
|
+
}>>> & {
|
|
23
|
+
onChange?: ((value: any) => any) | undefined;
|
|
24
|
+
}, {
|
|
21
25
|
disabled: boolean;
|
|
22
26
|
}, {}>;
|
|
23
27
|
export default _default;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type { FieldProps } from '@tmagic/form';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<FieldProps<{
|
|
3
|
-
type:
|
|
3
|
+
type: 'code-link';
|
|
4
4
|
name: string;
|
|
5
5
|
text?: string | undefined;
|
|
6
6
|
formTitle?: string | undefined;
|
|
7
7
|
codeOptions?: Object | undefined;
|
|
8
|
-
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
9
|
-
|
|
8
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
change: (...args: any[]) => void;
|
|
10
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FieldProps<{
|
|
11
|
+
type: 'code-link';
|
|
10
12
|
name: string;
|
|
11
13
|
text?: string | undefined;
|
|
12
14
|
formTitle?: string | undefined;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { FieldProps } from '@tmagic/form';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<{
|
|
3
3
|
className?: string | undefined;
|
|
4
|
-
}>>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
4
|
+
}>>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
+
change: (...args: any[]) => void;
|
|
6
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<{
|
|
5
7
|
className?: string | undefined;
|
|
6
8
|
}>>, {}>>> & {
|
|
7
9
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -2,7 +2,9 @@ import { FieldProps } from '@tmagic/form';
|
|
|
2
2
|
import type { CodeSelectColConfig } from '../type';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<CodeSelectColConfig>>, {
|
|
4
4
|
disabled: boolean;
|
|
5
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
change: (...args: any[]) => void;
|
|
7
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<CodeSelectColConfig>>, {
|
|
6
8
|
disabled: boolean;
|
|
7
9
|
}>>> & {
|
|
8
10
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -2,7 +2,9 @@ import type { FieldProps } from '@tmagic/form';
|
|
|
2
2
|
import type { DataSourceFieldSelectConfig } from '../type';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<DataSourceFieldSelectConfig>>, {
|
|
4
4
|
disabled: boolean;
|
|
5
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
change: (...args: any[]) => void;
|
|
7
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<DataSourceFieldSelectConfig>>, {
|
|
6
8
|
disabled: boolean;
|
|
7
9
|
}>>> & {
|
|
8
10
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { type FieldProps } from '@tmagic/form';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<{
|
|
3
|
-
type:
|
|
3
|
+
type: 'data-source-fields';
|
|
4
4
|
}>>, {
|
|
5
5
|
disabled: boolean;
|
|
6
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
7
|
-
|
|
6
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
change: (...args: any[]) => void;
|
|
8
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<{
|
|
9
|
+
type: 'data-source-fields';
|
|
8
10
|
}>>, {
|
|
9
11
|
disabled: boolean;
|
|
10
12
|
}>>> & {
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import type { FieldProps } from '@tmagic/form';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<{
|
|
3
|
-
type:
|
|
3
|
+
type: 'data-source-input';
|
|
4
4
|
name: string;
|
|
5
5
|
text: string;
|
|
6
6
|
}>>, {
|
|
7
7
|
disabled: boolean;
|
|
8
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
-
|
|
8
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
change: (value: string) => void;
|
|
10
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<{
|
|
11
|
+
type: 'data-source-input';
|
|
10
12
|
name: string;
|
|
11
13
|
text: string;
|
|
12
14
|
}>>, {
|
|
13
15
|
disabled: boolean;
|
|
14
|
-
}
|
|
16
|
+
}>>> & {
|
|
17
|
+
onChange?: ((value: string) => any) | undefined;
|
|
18
|
+
}, {
|
|
15
19
|
disabled: boolean;
|
|
16
20
|
}, {}>;
|
|
17
21
|
export default _default;
|
|
@@ -2,7 +2,9 @@ import { FieldProps } from '@tmagic/form';
|
|
|
2
2
|
import type { DataSourceMethodSelectConfig } from '../type';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<DataSourceMethodSelectConfig>>, {
|
|
4
4
|
disabled: boolean;
|
|
5
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
change: (...args: any[]) => void;
|
|
7
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<DataSourceMethodSelectConfig>>, {
|
|
6
8
|
disabled: boolean;
|
|
7
9
|
}>>> & {
|
|
8
10
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { FieldProps } from '@tmagic/form';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<{
|
|
3
|
-
type:
|
|
3
|
+
type: 'data-source-methods';
|
|
4
4
|
}>>, {
|
|
5
5
|
disabled: boolean;
|
|
6
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
7
|
-
|
|
6
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
change: (...args: any[]) => void;
|
|
8
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<{
|
|
9
|
+
type: 'data-source-methods';
|
|
8
10
|
}>>, {
|
|
9
11
|
disabled: boolean;
|
|
10
12
|
}>>> & {
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { type FieldProps } from '@tmagic/form';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<{
|
|
3
|
-
type:
|
|
3
|
+
type: 'data-source-mocks';
|
|
4
4
|
}>>, {
|
|
5
5
|
disabled: boolean;
|
|
6
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
7
|
-
|
|
6
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
change: (...args: any[]) => void;
|
|
8
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<{
|
|
9
|
+
type: 'data-source-mocks';
|
|
8
10
|
}>>, {
|
|
9
11
|
disabled: boolean;
|
|
10
12
|
}>>> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FieldProps } from '@tmagic/form';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<{
|
|
3
|
-
type:
|
|
3
|
+
type: 'data-source-select';
|
|
4
4
|
name: string;
|
|
5
5
|
text?: string | undefined;
|
|
6
6
|
placeholder?: string | undefined;
|
|
@@ -8,8 +8,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
8
8
|
value?: "id" | "value" | undefined;
|
|
9
9
|
}>>, {
|
|
10
10
|
disabled: boolean;
|
|
11
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
12
|
-
|
|
11
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
change: (...args: any[]) => void;
|
|
13
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<{
|
|
14
|
+
type: 'data-source-select';
|
|
13
15
|
name: string;
|
|
14
16
|
text?: string | undefined;
|
|
15
17
|
placeholder?: string | undefined;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { FieldProps } from '@tmagic/form';
|
|
2
2
|
import type { EventSelectConfig } from '../type';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<FieldProps<EventSelectConfig>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
3
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<FieldProps<EventSelectConfig>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
change: (...args: any[]) => void;
|
|
5
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FieldProps<EventSelectConfig>>>> & {
|
|
4
6
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
5
7
|
}, {}, {}>;
|
|
6
8
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FieldProps } from '@tmagic/form';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<{
|
|
3
|
-
type:
|
|
3
|
+
type: 'key-value';
|
|
4
4
|
name: string;
|
|
5
5
|
text: string;
|
|
6
6
|
advanced?: boolean | undefined;
|
|
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
9
9
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
10
|
change: (value: Record<string, any>) => void;
|
|
11
11
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<{
|
|
12
|
-
type:
|
|
12
|
+
type: 'key-value';
|
|
13
13
|
name: string;
|
|
14
14
|
text: string;
|
|
15
15
|
advanced?: boolean | undefined;
|