@tmagic/editor 1.2.0-beta.1 → 1.2.0-beta.11
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 +14 -8
- package/dist/tmagic-editor.mjs +1112 -981
- package/dist/tmagic-editor.mjs.map +1 -1
- package/dist/tmagic-editor.umd.js +1124 -991
- package/dist/tmagic-editor.umd.js.map +1 -1
- package/package.json +11 -10
- package/src/Editor.vue +11 -13
- package/src/components/ContentMenu.vue +4 -4
- package/src/components/Icon.vue +7 -5
- package/src/{layouts → components}/Layout.vue +14 -4
- package/src/components/ScrollBar.vue +1 -1
- package/src/components/ScrollViewer.vue +10 -1
- package/src/components/ToolButton.vue +30 -15
- package/src/fields/Code.vue +5 -2
- package/src/fields/CodeLink.vue +20 -12
- package/src/fields/CodeSelect.vue +19 -27
- package/src/fields/UISelect.vue +9 -8
- package/src/index.ts +3 -1
- package/src/layouts/AddPageBox.vue +13 -20
- package/src/layouts/CodeEditor.vue +106 -120
- package/src/layouts/Framework.vue +62 -40
- package/src/layouts/NavMenu.vue +1 -1
- package/src/layouts/PropsPanel.vue +4 -9
- package/src/layouts/Resizer.vue +1 -1
- package/src/layouts/sidebar/ComponentListPanel.vue +15 -13
- package/src/layouts/sidebar/LayerMenu.vue +89 -92
- package/src/layouts/sidebar/LayerPanel.vue +273 -178
- package/src/layouts/sidebar/Sidebar.vue +126 -46
- package/src/layouts/sidebar/code-block/CodeBlockEditor.vue +28 -24
- package/src/layouts/sidebar/code-block/CodeBlockList.vue +22 -22
- package/src/layouts/workspace/Breadcrumb.vue +32 -0
- package/src/layouts/workspace/PageBar.vue +12 -11
- package/src/layouts/workspace/PageBarScrollContainer.vue +1 -1
- package/src/layouts/workspace/Stage.vue +15 -7
- package/src/layouts/workspace/ViewerMenu.vue +8 -7
- package/src/layouts/workspace/Workspace.vue +10 -3
- package/src/services/codeBlock.ts +16 -10
- package/src/services/editor.ts +12 -8
- package/src/theme/breadcrumb.scss +6 -0
- package/src/theme/component-list-panel.scss +3 -7
- package/src/theme/index.scss +1 -15
- package/src/theme/layer-panel.scss +7 -2
- package/src/theme/theme.scss +16 -0
- package/src/type.ts +2 -1
- package/src/utils/scroll-viewer.ts +18 -2
- package/src/utils/stage.ts +7 -0
- package/types/Editor.vue.d.ts +2 -2
- package/types/components/ContentMenu.vue.d.ts +1 -3
- package/types/components/Icon.vue.d.ts +1 -3
- package/types/{layouts → components}/Layout.vue.d.ts +0 -0
- package/types/components/ScrollBar.vue.d.ts +1 -3
- package/types/components/ScrollViewer.vue.d.ts +45 -1
- package/types/components/ToolButton.vue.d.ts +1 -3
- package/types/fields/Code.vue.d.ts +9 -3
- package/types/fields/CodeLink.vue.d.ts +5 -3
- package/types/fields/CodeSelect.vue.d.ts +1 -3
- package/types/fields/UISelect.vue.d.ts +1 -3
- package/types/index.d.ts +2 -0
- package/types/layouts/AddPageBox.vue.d.ts +43 -3
- package/types/layouts/CodeEditor.vue.d.ts +158 -45
- package/types/layouts/NavMenu.vue.d.ts +1 -3
- package/types/layouts/sidebar/LayerMenu.vue.d.ts +31 -63
- package/types/layouts/sidebar/LayerPanel.vue.d.ts +38 -1074
- package/types/layouts/sidebar/Sidebar.vue.d.ts +119 -17
- package/types/layouts/sidebar/code-block/CodeBlockList.vue.d.ts +1 -0
- package/types/layouts/workspace/Breadcrumb.vue.d.ts +44 -0
- package/types/layouts/workspace/Stage.vue.d.ts +23 -7
- package/types/layouts/workspace/ViewerMenu.vue.d.ts +6 -3
- package/types/layouts/workspace/Workspace.vue.d.ts +23 -5
- package/types/services/codeBlock.d.ts +1 -1
- package/types/services/editor.d.ts +2 -2
- package/types/services/ui.d.ts +1 -1
- package/types/type.d.ts +2 -1
- package/types/utils/scroll-viewer.d.ts +5 -0
- package/src/layouts/sidebar/TabPane.vue +0 -126
- package/types/layouts/sidebar/TabPane.vue.d.ts +0 -14
package/types/index.d.ts
CHANGED
|
@@ -15,11 +15,13 @@ export { default as uiService } from './services/ui';
|
|
|
15
15
|
export { default as codeBlockService } from './services/codeBlock';
|
|
16
16
|
export { default as ComponentListPanel } from './layouts/sidebar/ComponentListPanel.vue';
|
|
17
17
|
export { default as LayerPanel } from './layouts/sidebar/LayerPanel.vue';
|
|
18
|
+
export { default as CodeSelect } from './fields/CodeSelect.vue';
|
|
18
19
|
export { default as CodeBlockList } from './layouts/sidebar/code-block/CodeBlockList.vue';
|
|
19
20
|
export { default as PropsPanel } from './layouts/PropsPanel.vue';
|
|
20
21
|
export { default as ToolButton } from './components/ToolButton.vue';
|
|
21
22
|
export { default as ContentMenu } from './components/ContentMenu.vue';
|
|
22
23
|
export { default as Icon } from './components/Icon.vue';
|
|
24
|
+
export { default as LayoutContainer } from './components/Layout.vue';
|
|
23
25
|
declare const _default: {
|
|
24
26
|
install: (app: App, opt?: InstallOptions) => void;
|
|
25
27
|
};
|
|
@@ -1,4 +1,44 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
6
|
+
$attrs: {
|
|
7
|
+
[x: string]: unknown;
|
|
8
|
+
};
|
|
9
|
+
$refs: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
};
|
|
12
|
+
$slots: Readonly<{
|
|
13
|
+
[name: string]: import("vue").Slot | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
16
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
17
|
+
$emit: ((event: string, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
|
|
18
|
+
$el: any;
|
|
19
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, {}> & {
|
|
20
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
21
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
22
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
23
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
24
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
25
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
26
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
27
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
28
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
29
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
30
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
31
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
33
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
34
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
35
|
+
};
|
|
36
|
+
$forceUpdate: () => void;
|
|
37
|
+
$nextTick: typeof import("vue").nextTick;
|
|
38
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
39
|
+
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
40
|
+
__isFragment?: undefined;
|
|
41
|
+
__isTeleport?: undefined;
|
|
42
|
+
__isSuspense?: undefined;
|
|
43
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
4
44
|
export default _default;
|
|
@@ -1,55 +1,168 @@
|
|
|
1
1
|
import * as monaco from 'monaco-editor';
|
|
2
|
-
declare const _default:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
2
|
+
declare const _default: {
|
|
3
|
+
new (...args: any[]): {
|
|
4
|
+
$: import("vue").ComponentInternalInstance;
|
|
5
|
+
$data: {};
|
|
6
|
+
$props: Partial<{
|
|
7
|
+
type: string;
|
|
8
|
+
options: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
};
|
|
11
|
+
language: string;
|
|
12
|
+
autoSave: boolean;
|
|
13
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
14
|
+
initValues?: string | Object | undefined;
|
|
15
|
+
modifiedValues?: string | Object | undefined;
|
|
16
|
+
type?: string | undefined;
|
|
17
|
+
language?: string | undefined;
|
|
18
|
+
options?: {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
} | undefined;
|
|
21
|
+
autoSave?: boolean | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
type: string;
|
|
24
|
+
autoSave: boolean;
|
|
25
|
+
language: string;
|
|
26
|
+
options: () => {
|
|
27
|
+
tabSize: number;
|
|
28
|
+
};
|
|
29
|
+
}>>> & {
|
|
30
|
+
onSave?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
onInitd?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "options" | "language" | "autoSave">;
|
|
33
|
+
$attrs: {
|
|
34
|
+
[x: string]: unknown;
|
|
35
|
+
};
|
|
36
|
+
$refs: {
|
|
37
|
+
[x: string]: unknown;
|
|
38
|
+
};
|
|
39
|
+
$slots: Readonly<{
|
|
40
|
+
[name: string]: import("vue").Slot | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
43
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
44
|
+
$emit: (event: "save" | "initd", ...args: any[]) => void;
|
|
45
|
+
$el: any;
|
|
46
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
47
|
+
initValues?: string | Object | undefined;
|
|
48
|
+
modifiedValues?: string | Object | undefined;
|
|
49
|
+
type?: string | undefined;
|
|
50
|
+
language?: string | undefined;
|
|
51
|
+
options?: {
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
} | undefined;
|
|
54
|
+
autoSave?: boolean | undefined;
|
|
55
|
+
}>, {
|
|
56
|
+
type: string;
|
|
57
|
+
autoSave: boolean;
|
|
58
|
+
language: string;
|
|
59
|
+
options: () => {
|
|
60
|
+
tabSize: number;
|
|
61
|
+
};
|
|
62
|
+
}>>> & {
|
|
63
|
+
onSave?: ((...args: any[]) => any) | undefined;
|
|
64
|
+
onInitd?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
getEditor(): monaco.editor.IStandaloneCodeEditor | monaco.editor.IStandaloneDiffEditor | null;
|
|
67
|
+
setEditorValue: (v: string | any, m: string | any) => void | undefined;
|
|
68
|
+
focus(): void;
|
|
69
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("save" | "initd")[], string, {
|
|
70
|
+
type: string;
|
|
71
|
+
options: {
|
|
72
|
+
[key: string]: any;
|
|
73
|
+
};
|
|
74
|
+
language: string;
|
|
75
|
+
autoSave: boolean;
|
|
76
|
+
}> & {
|
|
77
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
78
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
79
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
80
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
81
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
82
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
83
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
84
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
85
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
86
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
87
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
88
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
89
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
90
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
91
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
92
|
+
};
|
|
93
|
+
$forceUpdate: () => void;
|
|
94
|
+
$nextTick: typeof import("vue").nextTick;
|
|
95
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
96
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
97
|
+
initValues?: string | Object | undefined;
|
|
98
|
+
modifiedValues?: string | Object | undefined;
|
|
99
|
+
type?: string | undefined;
|
|
100
|
+
language?: string | undefined;
|
|
101
|
+
options?: {
|
|
102
|
+
[key: string]: any;
|
|
103
|
+
} | undefined;
|
|
104
|
+
autoSave?: boolean | undefined;
|
|
105
|
+
}>, {
|
|
106
|
+
type: string;
|
|
107
|
+
autoSave: boolean;
|
|
108
|
+
language: string;
|
|
109
|
+
options: () => {
|
|
110
|
+
tabSize: number;
|
|
111
|
+
};
|
|
112
|
+
}>>> & {
|
|
113
|
+
onSave?: ((...args: any[]) => any) | undefined;
|
|
114
|
+
onInitd?: ((...args: any[]) => any) | undefined;
|
|
115
|
+
} & import("vue").ShallowUnwrapRef<{
|
|
116
|
+
getEditor(): monaco.editor.IStandaloneCodeEditor | monaco.editor.IStandaloneDiffEditor | null;
|
|
117
|
+
setEditorValue: (v: string | any, m: string | any) => void | undefined;
|
|
118
|
+
focus(): void;
|
|
119
|
+
}> & {} & import("vue").ComponentCustomProperties;
|
|
120
|
+
__isFragment?: undefined;
|
|
121
|
+
__isTeleport?: undefined;
|
|
122
|
+
__isSuspense?: undefined;
|
|
123
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
124
|
+
initValues?: string | Object | undefined;
|
|
125
|
+
modifiedValues?: string | Object | undefined;
|
|
126
|
+
type?: string | undefined;
|
|
127
|
+
language?: string | undefined;
|
|
128
|
+
options?: {
|
|
129
|
+
[key: string]: any;
|
|
130
|
+
} | undefined;
|
|
131
|
+
autoSave?: boolean | undefined;
|
|
132
|
+
}>, {
|
|
133
|
+
type: string;
|
|
134
|
+
autoSave: boolean;
|
|
135
|
+
language: string;
|
|
136
|
+
options: () => {
|
|
137
|
+
tabSize: number;
|
|
20
138
|
};
|
|
139
|
+
}>>> & {
|
|
140
|
+
onSave?: ((...args: any[]) => any) | undefined;
|
|
141
|
+
onInitd?: ((...args: any[]) => any) | undefined;
|
|
21
142
|
}, {
|
|
22
|
-
values: import("vue").Ref<string>;
|
|
23
|
-
loading: import("vue").Ref<boolean>;
|
|
24
|
-
codeEditor: import("vue").Ref<HTMLDivElement | undefined>;
|
|
25
143
|
getEditor(): monaco.editor.IStandaloneCodeEditor | monaco.editor.IStandaloneDiffEditor | null;
|
|
26
144
|
setEditorValue: (v: string | any, m: string | any) => void | undefined;
|
|
27
145
|
focus(): void;
|
|
28
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("save" | "initd")[], "save" | "initd",
|
|
29
|
-
|
|
30
|
-
type: (ObjectConstructor | StringConstructor)[];
|
|
31
|
-
};
|
|
32
|
-
modifiedValues: {
|
|
33
|
-
type: (ObjectConstructor | StringConstructor)[];
|
|
34
|
-
};
|
|
35
|
-
type: {
|
|
36
|
-
type: StringConstructor;
|
|
37
|
-
default: () => string;
|
|
38
|
-
};
|
|
39
|
-
language: {
|
|
40
|
-
type: StringConstructor;
|
|
41
|
-
default: () => string;
|
|
42
|
-
};
|
|
146
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("save" | "initd")[], "save" | "initd", {
|
|
147
|
+
type: string;
|
|
43
148
|
options: {
|
|
44
|
-
|
|
45
|
-
default: () => {};
|
|
149
|
+
[key: string]: any;
|
|
46
150
|
};
|
|
47
|
-
}>> & {
|
|
48
|
-
onSave?: ((...args: any[]) => any) | undefined;
|
|
49
|
-
onInitd?: ((...args: any[]) => any) | undefined;
|
|
50
|
-
}, {
|
|
51
|
-
type: string;
|
|
52
|
-
options: Record<string, any>;
|
|
53
151
|
language: string;
|
|
54
|
-
|
|
152
|
+
autoSave: boolean;
|
|
153
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
55
154
|
export default _default;
|
|
155
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
156
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
157
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
158
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
159
|
+
} : {
|
|
160
|
+
type: import('vue').PropType<T[K]>;
|
|
161
|
+
required: true;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
165
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
166
|
+
default: D[K];
|
|
167
|
+
} : P[K];
|
|
168
|
+
};
|
|
@@ -74,9 +74,7 @@ declare const _default: {
|
|
|
74
74
|
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
75
75
|
data: MenuBarData;
|
|
76
76
|
height: number;
|
|
77
|
-
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps
|
|
78
|
-
$slots: {};
|
|
79
|
-
});
|
|
77
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
80
78
|
export default _default;
|
|
81
79
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
82
80
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,26 +1,11 @@
|
|
|
1
1
|
import type { MenuButton, MenuComponent } from '../../type';
|
|
2
|
-
declare const _default:
|
|
3
|
-
|
|
2
|
+
declare const _default: {
|
|
3
|
+
new (...args: any[]): {
|
|
4
4
|
$: import("vue").ComponentInternalInstance;
|
|
5
5
|
$data: {};
|
|
6
|
-
$props: Partial<{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
-
menuData: {
|
|
11
|
-
type: import("vue").PropType<(MenuButton | MenuComponent)[]>;
|
|
12
|
-
} & {
|
|
13
|
-
default: () => never[];
|
|
14
|
-
};
|
|
15
|
-
isSubMenu: {
|
|
16
|
-
type: import("vue").PropType<boolean>;
|
|
17
|
-
} & {
|
|
18
|
-
default: boolean;
|
|
19
|
-
};
|
|
20
|
-
}>> & {
|
|
21
|
-
onHide?: ((...args: any[]) => any) | undefined;
|
|
22
|
-
onShow?: ((...args: any[]) => any) | undefined;
|
|
23
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "menuData" | "isSubMenu">;
|
|
6
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
layerContentMenu: (MenuButton | MenuComponent)[];
|
|
8
|
+
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
24
9
|
$attrs: {
|
|
25
10
|
[x: string]: unknown;
|
|
26
11
|
};
|
|
@@ -32,29 +17,13 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
32
17
|
}>;
|
|
33
18
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
34
19
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
35
|
-
$emit: (event:
|
|
20
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
36
21
|
$el: any;
|
|
37
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
} & {
|
|
41
|
-
default: () => never[];
|
|
42
|
-
};
|
|
43
|
-
isSubMenu: {
|
|
44
|
-
type: import("vue").PropType<boolean>;
|
|
45
|
-
} & {
|
|
46
|
-
default: boolean;
|
|
47
|
-
};
|
|
48
|
-
}>> & {
|
|
49
|
-
onHide?: ((...args: any[]) => any) | undefined;
|
|
50
|
-
onShow?: ((...args: any[]) => any) | undefined;
|
|
51
|
-
}, {
|
|
52
|
-
hide: () => void;
|
|
22
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
23
|
+
layerContentMenu: (MenuButton | MenuComponent)[];
|
|
24
|
+
}>>>, {
|
|
53
25
|
show: (e: MouseEvent) => void;
|
|
54
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
55
|
-
menuData: (MenuButton | MenuComponent)[];
|
|
56
|
-
isSubMenu: boolean;
|
|
57
|
-
}> & {
|
|
26
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
|
|
58
27
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
59
28
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
60
29
|
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -74,27 +43,26 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
74
43
|
$forceUpdate: () => void;
|
|
75
44
|
$nextTick: typeof import("vue").nextTick;
|
|
76
45
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
77
|
-
} & Readonly<import("vue").ExtractPropTypes<{
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
} & {
|
|
81
|
-
default: () => never[];
|
|
82
|
-
};
|
|
83
|
-
isSubMenu: {
|
|
84
|
-
type: import("vue").PropType<boolean>;
|
|
85
|
-
} & {
|
|
86
|
-
default: boolean;
|
|
87
|
-
};
|
|
88
|
-
}>> & {
|
|
89
|
-
onHide?: ((...args: any[]) => any) | undefined;
|
|
90
|
-
onShow?: ((...args: any[]) => any) | undefined;
|
|
91
|
-
} & import("vue").ShallowUnwrapRef<{
|
|
92
|
-
hide: () => void;
|
|
46
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
47
|
+
layerContentMenu: (MenuButton | MenuComponent)[];
|
|
48
|
+
}>>> & import("vue").ShallowUnwrapRef<{
|
|
93
49
|
show: (e: MouseEvent) => void;
|
|
94
|
-
}> & {} & import("vue").ComponentCustomProperties
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
50
|
+
}> & {} & import("vue").ComponentCustomProperties;
|
|
51
|
+
__isFragment?: undefined;
|
|
52
|
+
__isTeleport?: undefined;
|
|
53
|
+
__isSuspense?: undefined;
|
|
54
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
55
|
+
layerContentMenu: (MenuButton | MenuComponent)[];
|
|
56
|
+
}>>>, {
|
|
57
|
+
show: (e: MouseEvent) => void;
|
|
58
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
100
59
|
export default _default;
|
|
60
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
61
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
62
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
63
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
64
|
+
} : {
|
|
65
|
+
type: import('vue').PropType<T[K]>;
|
|
66
|
+
required: true;
|
|
67
|
+
};
|
|
68
|
+
};
|