@tmagic/editor 1.4.14 → 1.4.16
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/tmagic-editor.js +246 -127
- package/dist/tmagic-editor.umd.cjs +244 -125
- package/package.json +12 -12
- package/src/Editor.vue +4 -0
- package/src/components/ContentMenu.vue +8 -1
- package/src/components/TreeNode.vue +7 -0
- package/src/fields/CodeSelect.vue +3 -3
- package/src/fields/DataSourceFieldSelect/FieldSelect.vue +12 -8
- package/src/fields/DataSourceFieldSelect/Index.vue +10 -9
- package/src/fields/DataSourceMethodSelect.vue +8 -8
- package/src/fields/DataSourceSelect.vue +6 -8
- package/src/hooks/use-float-box.ts +52 -12
- package/src/layouts/sidebar/ComponentListPanel.vue +30 -27
- package/src/layouts/sidebar/Sidebar.vue +24 -3
- package/src/layouts/sidebar/layer/LayerPanel.vue +1 -1
- package/src/layouts/sidebar/layer/use-click.ts +9 -0
- package/src/layouts/sidebar/layer/use-drag.ts +28 -4
- package/src/services/editor.ts +13 -2
- package/src/type.ts +5 -0
- package/types/Editor.vue.d.ts +2313 -0
- package/types/components/CodeParams.vue.d.ts +4 -4
- package/types/components/ContentMenu.vue.d.ts +23 -15
- package/types/components/FloatingBox.vue.d.ts +9 -7
- package/types/components/Resizer.vue.d.ts +6 -4
- package/types/components/ScrollBar.vue.d.ts +2 -2
- package/types/components/ScrollViewer.vue.d.ts +22 -20
- package/types/components/SplitView.vue.d.ts +26 -24
- package/types/components/ToolButton.vue.d.ts +5 -5
- package/types/components/Tree.vue.d.ts +28 -26
- package/types/components/TreeNode.vue.d.ts +33 -24
- package/types/fields/Code.vue.d.ts +8 -8
- package/types/fields/CodeLink.vue.d.ts +4 -4
- package/types/fields/CodeSelect.vue.d.ts +2 -2
- package/types/fields/DisplayConds.vue.d.ts +4 -4
- package/types/fields/KeyValue.vue.d.ts +2 -2
- package/types/hooks/use-code-block-edit.d.ts +91 -2
- package/types/hooks/use-data-source-edit.d.ts +85 -2
- package/types/hooks/use-data-source-method.d.ts +90 -1
- package/types/hooks/use-editor-content-height.d.ts +1 -1
- package/types/hooks/use-filter.d.ts +1 -1
- package/types/hooks/use-float-box.d.ts +3 -1
- package/types/hooks/use-getso.d.ts +2 -2
- package/types/hooks/use-next-float-box-position.d.ts +6 -0
- package/types/hooks/use-node-status.d.ts +6 -1
- package/types/initService.d.ts +1 -1
- package/types/layouts/CodeEditor.vue.d.ts +14 -14
- package/types/layouts/Framework.vue.d.ts +6 -4
- package/types/layouts/NavMenu.vue.d.ts +4 -4
- package/types/layouts/PropsPanel.vue.d.ts +265 -14
- package/types/layouts/page-bar/PageBar.vue.d.ts +10 -8
- package/types/layouts/page-bar/PageBarScrollContainer.vue.d.ts +9 -7
- package/types/layouts/page-bar/PageList.vue.d.ts +8 -6
- package/types/layouts/sidebar/ComponentListPanel.vue.d.ts +3 -1
- package/types/layouts/sidebar/Sidebar.vue.d.ts +9 -7
- package/types/layouts/sidebar/code-block/CodeBlockList.vue.d.ts +6 -4
- package/types/layouts/sidebar/code-block/CodeBlockListPanel.vue.d.ts +6 -4
- package/types/layouts/sidebar/data-source/DataSourceList.vue.d.ts +4 -2
- package/types/layouts/sidebar/data-source/DataSourceListPanel.vue.d.ts +3 -1
- package/types/layouts/sidebar/layer/LayerMenu.vue.d.ts +8 -8
- package/types/layouts/sidebar/layer/LayerPanel.vue.d.ts +9 -7
- package/types/layouts/sidebar/layer/use-click.d.ts +65 -10
- package/types/layouts/sidebar/layer/use-keybinding.d.ts +1 -1
- package/types/layouts/sidebar/layer/use-node-status.d.ts +6 -1
- package/types/layouts/workspace/Workspace.vue.d.ts +10 -8
- package/types/layouts/workspace/viewer/Stage.vue.d.ts +6 -6
- package/types/layouts/workspace/viewer/ViewerMenu.vue.d.ts +10 -10
- package/types/services/BaseService.d.ts +0 -1
- package/types/services/dataSource.d.ts +4 -4
- package/types/services/ui.d.ts +7 -5
- package/types/type.d.ts +7 -1
- package/types/utils/data-source/index.d.ts +1 -1
- package/types/utils/idle-task.d.ts +0 -1
- package/types/utils/scroll-viewer.d.ts +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { CodeParamStatement } from '../type';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
3
|
model: any;
|
|
4
|
-
size?: "
|
|
5
|
-
disabled?: boolean
|
|
4
|
+
size?: "small" | "default" | "large";
|
|
5
|
+
disabled?: boolean;
|
|
6
6
|
name: string;
|
|
7
7
|
paramsConfig: CodeParamStatement[];
|
|
8
8
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
change: (...args: any[]) => void;
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
11
11
|
model: any;
|
|
12
|
-
size?: "
|
|
13
|
-
disabled?: boolean
|
|
12
|
+
size?: "small" | "default" | "large";
|
|
13
|
+
disabled?: boolean;
|
|
14
14
|
name: string;
|
|
15
15
|
paramsConfig: CodeParamStatement[];
|
|
16
16
|
}>>> & {
|
|
@@ -1,24 +1,33 @@
|
|
|
1
1
|
import { MenuButton, MenuComponent } from '../type';
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
title?(_: {}): any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
6
|
+
menuData?: (MenuButton | MenuComponent)[];
|
|
7
|
+
isSubMenu?: boolean;
|
|
8
|
+
active?: string | number;
|
|
9
|
+
autoHide?: boolean;
|
|
7
10
|
}>, {
|
|
8
11
|
menuData: () => never[];
|
|
9
12
|
isSubMenu: boolean;
|
|
10
13
|
autoHide: boolean;
|
|
11
14
|
}>, {
|
|
12
|
-
menu: import("vue").Ref<HTMLDivElement | undefined>;
|
|
15
|
+
menu: import("vue").Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
13
16
|
menuPosition: import("vue").Ref<{
|
|
14
17
|
left: number;
|
|
15
18
|
top: number;
|
|
19
|
+
}, {
|
|
20
|
+
left: number;
|
|
21
|
+
top: number;
|
|
22
|
+
} | {
|
|
23
|
+
left: number;
|
|
24
|
+
top: number;
|
|
16
25
|
}>;
|
|
17
26
|
hide: () => void;
|
|
18
27
|
show: (e?: {
|
|
19
28
|
clientY: number;
|
|
20
29
|
clientX: number;
|
|
21
|
-
}
|
|
30
|
+
}) => void;
|
|
22
31
|
contains: (el: HTMLElement) => any;
|
|
23
32
|
setPosition: (e: {
|
|
24
33
|
clientY: number;
|
|
@@ -29,10 +38,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
29
38
|
show: () => void;
|
|
30
39
|
hide: () => void;
|
|
31
40
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
32
|
-
menuData?: (
|
|
33
|
-
isSubMenu?: boolean
|
|
34
|
-
active?: string | number
|
|
35
|
-
autoHide?: boolean
|
|
41
|
+
menuData?: (MenuButton | MenuComponent)[];
|
|
42
|
+
isSubMenu?: boolean;
|
|
43
|
+
active?: string | number;
|
|
44
|
+
autoHide?: boolean;
|
|
36
45
|
}>, {
|
|
37
46
|
menuData: () => never[];
|
|
38
47
|
isSubMenu: boolean;
|
|
@@ -42,12 +51,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
42
51
|
onShow?: (() => any) | undefined;
|
|
43
52
|
onHide?: (() => any) | undefined;
|
|
44
53
|
}, {
|
|
45
|
-
menuData: (
|
|
54
|
+
menuData: (MenuButton | MenuComponent)[];
|
|
46
55
|
isSubMenu: boolean;
|
|
47
56
|
autoHide: boolean;
|
|
48
|
-
}, {}
|
|
49
|
-
|
|
50
|
-
}>;
|
|
57
|
+
}, {}>;
|
|
58
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
51
59
|
export default _default;
|
|
52
60
|
type __VLS_WithDefaults<P, D> = {
|
|
53
61
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
@@ -12,7 +12,11 @@ type __VLS_PublicProps = {
|
|
|
12
12
|
'height'?: number;
|
|
13
13
|
'visible'?: boolean;
|
|
14
14
|
} & typeof __VLS_typeProps;
|
|
15
|
-
declare
|
|
15
|
+
declare function __VLS_template(): {
|
|
16
|
+
title?(_: {}): any;
|
|
17
|
+
body?(_: {}): any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
16
20
|
title: string;
|
|
17
21
|
position: () => {
|
|
18
22
|
left: number;
|
|
@@ -20,8 +24,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
20
24
|
};
|
|
21
25
|
}>, {
|
|
22
26
|
bodyHeight: import("vue").ComputedRef<number | "auto">;
|
|
23
|
-
target: import("vue").Ref<HTMLDivElement | undefined>;
|
|
24
|
-
titleEl: import("vue").Ref<HTMLDivElement | undefined>;
|
|
27
|
+
target: import("vue").Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
28
|
+
titleEl: import("vue").Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
25
29
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
30
|
"update:width": (width: number) => void;
|
|
27
31
|
"update:height": (height: number) => void;
|
|
@@ -39,10 +43,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
39
43
|
}, {
|
|
40
44
|
title: string;
|
|
41
45
|
position: Position;
|
|
42
|
-
}, {}
|
|
43
|
-
|
|
44
|
-
body?(_: {}): any;
|
|
45
|
-
}>;
|
|
46
|
+
}, {}>;
|
|
47
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
46
48
|
export default _default;
|
|
47
49
|
type __VLS_WithDefaults<P, D> = {
|
|
48
50
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { OnDrag } from 'gesto';
|
|
2
|
-
declare
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
default?(_: {}): any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
6
|
change: (e: OnDrag<import("gesto").default>) => void;
|
|
4
7
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
5
8
|
onChange?: ((e: OnDrag<import("gesto").default>) => any) | undefined;
|
|
6
|
-
}, {}, {}
|
|
7
|
-
|
|
8
|
-
}>;
|
|
9
|
+
}, {}, {}>;
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
9
11
|
export default _default;
|
|
10
12
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
11
13
|
new (): {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
2
|
size: number;
|
|
3
3
|
scrollSize: number;
|
|
4
|
-
isHorizontal?: boolean
|
|
4
|
+
isHorizontal?: boolean;
|
|
5
5
|
pos: number;
|
|
6
6
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
7
|
scroll: (...args: any[]) => void;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
9
9
|
size: number;
|
|
10
10
|
scrollSize: number;
|
|
11
|
-
isHorizontal?: boolean
|
|
11
|
+
isHorizontal?: boolean;
|
|
12
12
|
pos: number;
|
|
13
13
|
}>>> & {
|
|
14
14
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
content?(_: {}): any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
6
|
+
width?: number | string;
|
|
7
|
+
height?: number | string;
|
|
8
|
+
wrapWidth?: number;
|
|
9
|
+
wrapHeight?: number;
|
|
10
|
+
zoom?: number;
|
|
7
11
|
correctionScrollSize?: {
|
|
8
12
|
width: number;
|
|
9
13
|
height: number;
|
|
10
|
-
}
|
|
14
|
+
};
|
|
11
15
|
}>, {
|
|
12
16
|
width: number;
|
|
13
17
|
height: number;
|
|
@@ -19,17 +23,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
19
23
|
height: number;
|
|
20
24
|
};
|
|
21
25
|
}>, {
|
|
22
|
-
container: import("vue").Ref<HTMLDivElement | undefined>;
|
|
26
|
+
container: import("vue").Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
23
27
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
24
|
-
width?:
|
|
25
|
-
height?:
|
|
26
|
-
wrapWidth?: number
|
|
27
|
-
wrapHeight?: number
|
|
28
|
-
zoom?: number
|
|
28
|
+
width?: number | string;
|
|
29
|
+
height?: number | string;
|
|
30
|
+
wrapWidth?: number;
|
|
31
|
+
wrapHeight?: number;
|
|
32
|
+
zoom?: number;
|
|
29
33
|
correctionScrollSize?: {
|
|
30
34
|
width: number;
|
|
31
35
|
height: number;
|
|
32
|
-
}
|
|
36
|
+
};
|
|
33
37
|
}>, {
|
|
34
38
|
width: number;
|
|
35
39
|
height: number;
|
|
@@ -41,8 +45,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
41
45
|
height: number;
|
|
42
46
|
};
|
|
43
47
|
}>>>, {
|
|
44
|
-
width:
|
|
45
|
-
height:
|
|
48
|
+
width: number | string;
|
|
49
|
+
height: number | string;
|
|
46
50
|
zoom: number;
|
|
47
51
|
wrapWidth: number;
|
|
48
52
|
wrapHeight: number;
|
|
@@ -50,10 +54,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
50
54
|
width: number;
|
|
51
55
|
height: number;
|
|
52
56
|
};
|
|
53
|
-
}, {}
|
|
54
|
-
|
|
55
|
-
content?(_: {}): any;
|
|
56
|
-
}>;
|
|
57
|
+
}, {}>;
|
|
58
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
57
59
|
export default _default;
|
|
58
60
|
type __VLS_WithDefaults<P, D> = {
|
|
59
61
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
right
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
left?(_: {}): any;
|
|
3
|
+
center?(_: {}): any;
|
|
4
|
+
right?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
7
|
+
width?: number;
|
|
8
|
+
left?: number;
|
|
9
|
+
right?: number;
|
|
10
|
+
minLeft?: number;
|
|
11
|
+
minRight?: number;
|
|
12
|
+
minCenter?: number;
|
|
13
|
+
leftClass?: string;
|
|
14
|
+
rightClass?: string;
|
|
15
|
+
centerClass?: string;
|
|
11
16
|
}>, {
|
|
12
17
|
minLeft: number;
|
|
13
18
|
minRight: number;
|
|
@@ -19,15 +24,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
19
24
|
"update:left": (...args: any[]) => void;
|
|
20
25
|
"update:right": (...args: any[]) => void;
|
|
21
26
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
22
|
-
width?: number
|
|
23
|
-
left?: number
|
|
24
|
-
right?: number
|
|
25
|
-
minLeft?: number
|
|
26
|
-
minRight?: number
|
|
27
|
-
minCenter?: number
|
|
28
|
-
leftClass?: string
|
|
29
|
-
rightClass?: string
|
|
30
|
-
centerClass?: string
|
|
27
|
+
width?: number;
|
|
28
|
+
left?: number;
|
|
29
|
+
right?: number;
|
|
30
|
+
minLeft?: number;
|
|
31
|
+
minRight?: number;
|
|
32
|
+
minCenter?: number;
|
|
33
|
+
leftClass?: string;
|
|
34
|
+
rightClass?: string;
|
|
35
|
+
centerClass?: string;
|
|
31
36
|
}>, {
|
|
32
37
|
minLeft: number;
|
|
33
38
|
minRight: number;
|
|
@@ -40,11 +45,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
40
45
|
minLeft: number;
|
|
41
46
|
minRight: number;
|
|
42
47
|
minCenter: number;
|
|
43
|
-
}, {}
|
|
44
|
-
|
|
45
|
-
center?(_: {}): any;
|
|
46
|
-
right?(_: {}): any;
|
|
47
|
-
}>;
|
|
48
|
+
}, {}>;
|
|
49
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
48
50
|
export default _default;
|
|
49
51
|
type __VLS_WithDefaults<P, D> = {
|
|
50
52
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MenuButton, MenuComponent } from '../type';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
|
-
data?:
|
|
4
|
-
eventType?: "mousedown" | "mouseup" | "click"
|
|
3
|
+
data?: MenuButton | MenuComponent;
|
|
4
|
+
eventType?: "mousedown" | "mouseup" | "click";
|
|
5
5
|
}>, {
|
|
6
6
|
data: () => {
|
|
7
7
|
type: string;
|
|
@@ -9,8 +9,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
9
9
|
};
|
|
10
10
|
eventType: string;
|
|
11
11
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
12
|
-
data?:
|
|
13
|
-
eventType?: "mousedown" | "mouseup" | "click"
|
|
12
|
+
data?: MenuButton | MenuComponent;
|
|
13
|
+
eventType?: "mousedown" | "mouseup" | "click";
|
|
14
14
|
}>, {
|
|
15
15
|
data: () => {
|
|
16
16
|
type: string;
|
|
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
18
18
|
};
|
|
19
19
|
eventType: string;
|
|
20
20
|
}>>>, {
|
|
21
|
-
data:
|
|
21
|
+
data: MenuButton | MenuComponent;
|
|
22
22
|
eventType: "mousedown" | "mouseup" | "click";
|
|
23
23
|
}, {}>;
|
|
24
24
|
export default _default;
|
|
@@ -1,10 +1,31 @@
|
|
|
1
1
|
import type { Id } from '@tmagic/schema';
|
|
2
2
|
import type { LayerNodeStatus, TreeNodeData } from '../type';
|
|
3
|
-
declare
|
|
3
|
+
declare function __VLS_template(): Readonly<{
|
|
4
|
+
'tree-node-content'(props: {
|
|
5
|
+
data: TreeNodeData;
|
|
6
|
+
}): any;
|
|
7
|
+
'tree-node-label'(props: {
|
|
8
|
+
data: TreeNodeData;
|
|
9
|
+
}): any;
|
|
10
|
+
'tree-node-tool'(props: {
|
|
11
|
+
data: TreeNodeData;
|
|
12
|
+
}): any;
|
|
13
|
+
}> & {
|
|
14
|
+
'tree-node-content'(props: {
|
|
15
|
+
data: TreeNodeData;
|
|
16
|
+
}): any;
|
|
17
|
+
'tree-node-label'(props: {
|
|
18
|
+
data: TreeNodeData;
|
|
19
|
+
}): any;
|
|
20
|
+
'tree-node-tool'(props: {
|
|
21
|
+
data: TreeNodeData;
|
|
22
|
+
}): any;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
4
25
|
data: TreeNodeData[];
|
|
5
26
|
nodeStatusMap: Map<Id, LayerNodeStatus>;
|
|
6
|
-
indent?: number
|
|
7
|
-
emptyText?: string
|
|
27
|
+
indent?: number;
|
|
28
|
+
emptyText?: string;
|
|
8
29
|
}>, {
|
|
9
30
|
indent: number;
|
|
10
31
|
emptyText: string;
|
|
@@ -19,8 +40,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
19
40
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
20
41
|
data: TreeNodeData[];
|
|
21
42
|
nodeStatusMap: Map<Id, LayerNodeStatus>;
|
|
22
|
-
indent?: number
|
|
23
|
-
emptyText?: string
|
|
43
|
+
indent?: number;
|
|
44
|
+
emptyText?: string;
|
|
24
45
|
}>, {
|
|
25
46
|
indent: number;
|
|
26
47
|
emptyText: string;
|
|
@@ -35,27 +56,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
35
56
|
}, {
|
|
36
57
|
indent: number;
|
|
37
58
|
emptyText: string;
|
|
38
|
-
}, {}
|
|
39
|
-
|
|
40
|
-
data: TreeNodeData;
|
|
41
|
-
}): any;
|
|
42
|
-
'tree-node-label'(props: {
|
|
43
|
-
data: TreeNodeData;
|
|
44
|
-
}): any;
|
|
45
|
-
'tree-node-tool'(props: {
|
|
46
|
-
data: TreeNodeData;
|
|
47
|
-
}): any;
|
|
48
|
-
}> & {
|
|
49
|
-
'tree-node-content'(props: {
|
|
50
|
-
data: TreeNodeData;
|
|
51
|
-
}): any;
|
|
52
|
-
'tree-node-label'(props: {
|
|
53
|
-
data: TreeNodeData;
|
|
54
|
-
}): any;
|
|
55
|
-
'tree-node-tool'(props: {
|
|
56
|
-
data: TreeNodeData;
|
|
57
|
-
}): any;
|
|
58
|
-
}>;
|
|
59
|
+
}, {}>;
|
|
60
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
59
61
|
export default _default;
|
|
60
62
|
type __VLS_WithDefaults<P, D> = {
|
|
61
63
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
@@ -1,11 +1,35 @@
|
|
|
1
1
|
import type { Id } from '@tmagic/schema';
|
|
2
2
|
import type { LayerNodeStatus, TreeNodeData } from '../type';
|
|
3
|
-
declare
|
|
3
|
+
declare function __VLS_template(): Readonly<{
|
|
4
|
+
'tree-node-label'(props: {
|
|
5
|
+
data: TreeNodeData;
|
|
6
|
+
}): any;
|
|
7
|
+
'tree-node-tool'(props: {
|
|
8
|
+
data: TreeNodeData;
|
|
9
|
+
}): any;
|
|
10
|
+
'tree-node-content'(props: {
|
|
11
|
+
data: TreeNodeData;
|
|
12
|
+
}): any;
|
|
13
|
+
}> & {
|
|
14
|
+
'tree-node-label'(props: {
|
|
15
|
+
data: TreeNodeData;
|
|
16
|
+
}): any;
|
|
17
|
+
'tree-node-tool'(props: {
|
|
18
|
+
data: TreeNodeData;
|
|
19
|
+
}): any;
|
|
20
|
+
'tree-node-content'(props: {
|
|
21
|
+
data: TreeNodeData;
|
|
22
|
+
}): any;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
4
25
|
data: TreeNodeData;
|
|
26
|
+
parent?: TreeNodeData;
|
|
27
|
+
parentsId?: Id[];
|
|
5
28
|
nodeStatusMap: Map<Id, LayerNodeStatus>;
|
|
6
|
-
indent?: number
|
|
29
|
+
indent?: number;
|
|
7
30
|
}>, {
|
|
8
31
|
indent: number;
|
|
32
|
+
parentsId: () => never[];
|
|
9
33
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
34
|
"node-dragstart": (event: DragEvent, data: TreeNodeData) => void;
|
|
11
35
|
"node-dragleave": (event: DragEvent, data: TreeNodeData) => void;
|
|
@@ -15,10 +39,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
15
39
|
"node-click": (event: MouseEvent, data: TreeNodeData) => void;
|
|
16
40
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
17
41
|
data: TreeNodeData;
|
|
42
|
+
parent?: TreeNodeData;
|
|
43
|
+
parentsId?: Id[];
|
|
18
44
|
nodeStatusMap: Map<Id, LayerNodeStatus>;
|
|
19
|
-
indent?: number
|
|
45
|
+
indent?: number;
|
|
20
46
|
}>, {
|
|
21
47
|
indent: number;
|
|
48
|
+
parentsId: () => never[];
|
|
22
49
|
}>>> & {
|
|
23
50
|
"onNode-dragstart"?: ((event: DragEvent, data: TreeNodeData) => any) | undefined;
|
|
24
51
|
"onNode-dragleave"?: ((event: DragEvent, data: TreeNodeData) => any) | undefined;
|
|
@@ -27,28 +54,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
27
54
|
"onNode-mouseenter"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
28
55
|
"onNode-click"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
29
56
|
}, {
|
|
57
|
+
parentsId: Id[];
|
|
30
58
|
indent: number;
|
|
31
|
-
}, {}
|
|
32
|
-
|
|
33
|
-
data: TreeNodeData;
|
|
34
|
-
}): any;
|
|
35
|
-
'tree-node-tool'(props: {
|
|
36
|
-
data: TreeNodeData;
|
|
37
|
-
}): any;
|
|
38
|
-
'tree-node-content'(props: {
|
|
39
|
-
data: TreeNodeData;
|
|
40
|
-
}): any;
|
|
41
|
-
}> & {
|
|
42
|
-
'tree-node-label'(props: {
|
|
43
|
-
data: TreeNodeData;
|
|
44
|
-
}): any;
|
|
45
|
-
'tree-node-tool'(props: {
|
|
46
|
-
data: TreeNodeData;
|
|
47
|
-
}): any;
|
|
48
|
-
'tree-node-content'(props: {
|
|
49
|
-
data: TreeNodeData;
|
|
50
|
-
}): any;
|
|
51
|
-
}>;
|
|
59
|
+
}, {}>;
|
|
60
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
52
61
|
export default _default;
|
|
53
62
|
type __VLS_WithDefaults<P, D> = {
|
|
54
63
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import type { FieldProps, FormItem } from '@tmagic/form';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
|
|
3
|
-
language?: string
|
|
3
|
+
language?: string;
|
|
4
4
|
options?: {
|
|
5
5
|
[key: string]: any;
|
|
6
|
-
}
|
|
7
|
-
height?: string
|
|
8
|
-
parse?: boolean
|
|
6
|
+
};
|
|
7
|
+
height?: string;
|
|
8
|
+
parse?: boolean;
|
|
9
9
|
} & FormItem>>, {
|
|
10
10
|
disabled: boolean;
|
|
11
11
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
12
|
change: (value: any) => void;
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
|
|
14
|
-
language?: string
|
|
14
|
+
language?: string;
|
|
15
15
|
options?: {
|
|
16
16
|
[key: string]: any;
|
|
17
|
-
}
|
|
18
|
-
height?: string
|
|
19
|
-
parse?: boolean
|
|
17
|
+
};
|
|
18
|
+
height?: string;
|
|
19
|
+
parse?: boolean;
|
|
20
20
|
} & FormItem>>, {
|
|
21
21
|
disabled: boolean;
|
|
22
22
|
}>>> & {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { FieldProps, FormItem } from '@tmagic/form';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<FieldProps<{
|
|
3
3
|
type: "code-link";
|
|
4
|
-
formTitle?: string
|
|
5
|
-
codeOptions?: Object
|
|
4
|
+
formTitle?: string;
|
|
5
|
+
codeOptions?: Object;
|
|
6
6
|
} & FormItem>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
7
|
change: (...args: any[]) => void;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<FieldProps<{
|
|
9
9
|
type: "code-link";
|
|
10
|
-
formTitle?: string
|
|
11
|
-
codeOptions?: Object
|
|
10
|
+
formTitle?: string;
|
|
11
|
+
codeOptions?: Object;
|
|
12
12
|
} & FormItem>>>> & {
|
|
13
13
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
14
14
|
}, {}, {}>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { FieldProps, FormItem } from '@tmagic/form';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
|
|
3
|
-
className?: string
|
|
3
|
+
className?: string;
|
|
4
4
|
} & FormItem>>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
5
|
change: (...args: any[]) => void;
|
|
6
6
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
|
|
7
|
-
className?: string
|
|
7
|
+
className?: string;
|
|
8
8
|
} & FormItem>>, {}>>> & {
|
|
9
9
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
10
10
|
}, {}, {}>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { type FieldProps, type FilterFunction } from '@tmagic/form';
|
|
2
2
|
import type { DisplayCond } from '@tmagic/schema';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
|
|
4
|
-
titlePrefix?: string
|
|
5
|
-
parentFields?: string[] | FilterFunction<string[]
|
|
4
|
+
titlePrefix?: string;
|
|
5
|
+
parentFields?: string[] | FilterFunction<string[]>;
|
|
6
6
|
}>>, {
|
|
7
7
|
disabled: boolean;
|
|
8
8
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
change: (value: DisplayCond[]) => void;
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
|
|
11
|
-
titlePrefix?: string
|
|
12
|
-
parentFields?: string[] | FilterFunction<string[]
|
|
11
|
+
titlePrefix?: string;
|
|
12
|
+
parentFields?: string[] | FilterFunction<string[]>;
|
|
13
13
|
}>>, {
|
|
14
14
|
disabled: boolean;
|
|
15
15
|
}>>> & {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { FieldProps, FormItem } from '@tmagic/form';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
|
|
3
3
|
type: "key-value";
|
|
4
|
-
advanced?: boolean
|
|
4
|
+
advanced?: boolean;
|
|
5
5
|
} & FormItem>>, {
|
|
6
6
|
disabled: boolean;
|
|
7
7
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
8
|
change: (value: Record<string, any>) => void;
|
|
9
9
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
|
|
10
10
|
type: "key-value";
|
|
11
|
-
advanced?: boolean
|
|
11
|
+
advanced?: boolean;
|
|
12
12
|
} & FormItem>>, {
|
|
13
13
|
disabled: boolean;
|
|
14
14
|
}>>> & {
|