@tmagic/editor 1.2.12 → 1.2.14
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 +61 -39
- package/dist/tmagic-editor.js +890 -518
- package/dist/tmagic-editor.js.map +1 -1
- package/dist/tmagic-editor.umd.cjs +909 -544
- package/dist/tmagic-editor.umd.cjs.map +1 -1
- package/package.json +14 -13
- package/src/components/CodeDraftEditor.vue +20 -17
- package/src/components/ContentMenu.vue +1 -1
- package/src/components/FunctionEditor.vue +10 -10
- package/src/components/Layout.vue +1 -1
- package/src/components/ScrollViewer.vue +2 -2
- package/src/components/SearchInput.vue +26 -0
- package/src/fields/CodeSelect.vue +18 -101
- package/src/fields/CodeSelectCol.vue +21 -3
- package/src/fields/EventSelect.vue +5 -3
- package/src/fields/UISelect.vue +1 -1
- package/src/icons/AppManageIcon.vue +11 -0
- package/src/icons/CodeIcon.vue +35 -0
- package/src/layouts/AddPageBox.vue +3 -3
- package/src/layouts/Framework.vue +4 -4
- package/src/layouts/NavMenu.vue +2 -2
- package/src/layouts/PropsPanel.vue +1 -1
- package/src/layouts/sidebar/ComponentListPanel.vue +11 -12
- package/src/layouts/sidebar/LayerMenu.vue +2 -2
- package/src/layouts/sidebar/LayerPanel.vue +6 -15
- package/src/layouts/sidebar/Sidebar.vue +3 -3
- package/src/layouts/sidebar/code-block/CodeBlockEditor.vue +22 -10
- package/src/layouts/sidebar/code-block/CodeBlockList.vue +56 -51
- package/src/layouts/workspace/Breadcrumb.vue +1 -1
- package/src/layouts/workspace/PageBar.vue +2 -2
- package/src/layouts/workspace/PageBarScrollContainer.vue +3 -3
- package/src/layouts/workspace/Stage.vue +3 -3
- package/src/layouts/workspace/ViewerMenu.vue +4 -4
- package/src/layouts/workspace/Workspace.vue +1 -1
- package/src/services/BaseService.ts +1 -1
- package/src/services/codeBlock.ts +10 -13
- package/src/services/componentList.ts +1 -1
- package/src/services/editor.ts +6 -6
- package/src/services/events.ts +1 -1
- package/src/services/history.ts +2 -2
- package/src/services/props.ts +2 -2
- package/src/services/ui.ts +2 -2
- package/src/theme/code-block.scss +42 -11
- package/src/theme/component-list-panel.scss +0 -15
- package/src/theme/event.scss +12 -0
- package/src/theme/layer-panel.scss +0 -14
- package/src/theme/search-input.scss +14 -0
- package/src/theme/theme.scss +1 -0
- package/src/utils/config.ts +1 -1
- package/src/utils/dep.ts +2 -2
- package/src/utils/editor.ts +1 -1
- package/src/utils/operator.ts +4 -4
- package/src/utils/stage.ts +3 -3
- package/tsconfig.build.json +4 -1
- package/types/components/CodeDraftEditor.vue.d.ts +7 -4
- package/types/components/ContentMenu.vue.d.ts +3 -3
- package/types/components/FunctionEditor.vue.d.ts +140 -8
- package/types/components/Icon.vue.d.ts +2 -2
- package/types/components/Layout.vue.d.ts +28 -113
- package/types/components/ScrollBar.vue.d.ts +2 -2
- package/types/components/ScrollViewer.vue.d.ts +32 -135
- package/types/components/SearchInput.vue.d.ts +4 -0
- package/types/components/ToolButton.vue.d.ts +3 -3
- package/types/fields/Code.vue.d.ts +2 -2
- package/types/fields/CodeLink.vue.d.ts +2 -2
- package/types/fields/CodeSelect.vue.d.ts +8 -27
- package/types/fields/CodeSelectCol.vue.d.ts +3 -3
- package/types/fields/EventSelect.vue.d.ts +3 -3
- package/types/fields/UISelect.vue.d.ts +2 -2
- package/types/icons/AppManageIcon.vue.d.ts +2 -0
- package/types/icons/CodeIcon.vue.d.ts +2 -0
- package/types/layouts/CodeEditor.vue.d.ts +4 -4
- package/types/layouts/Framework.vue.d.ts +23 -74
- package/types/layouts/NavMenu.vue.d.ts +3 -3
- package/types/layouts/PropsPanel.vue.d.ts +11 -60
- package/types/layouts/Resizer.vue.d.ts +9 -54
- package/types/layouts/sidebar/ComponentListPanel.vue.d.ts +11 -50
- package/types/layouts/sidebar/LayerMenu.vue.d.ts +2 -2
- package/types/layouts/sidebar/LayerPanel.vue.d.ts +17 -60
- package/types/layouts/sidebar/Sidebar.vue.d.ts +39 -104
- package/types/layouts/sidebar/code-block/CodeBlockEditor.vue.d.ts +15 -58
- package/types/layouts/sidebar/code-block/CodeBlockList.vue.d.ts +21 -66
- package/types/layouts/workspace/PageBar.vue.d.ts +13 -52
- package/types/layouts/workspace/PageBarScrollContainer.vue.d.ts +8 -48
- package/types/layouts/workspace/Stage.vue.d.ts +2 -2
- package/types/layouts/workspace/ViewerMenu.vue.d.ts +3 -3
- package/types/layouts/workspace/Workspace.vue.d.ts +20 -63
- package/types/services/codeBlock.d.ts +4 -4
- package/types/services/componentList.d.ts +1 -1
- package/types/services/dep.d.ts +2 -2
- package/types/services/editor.d.ts +1 -1
- package/types/services/events.d.ts +1 -1
- package/types/services/history.d.ts +2 -2
- package/types/services/props.d.ts +78 -1
- package/types/services/storage.d.ts +1 -1
- package/types/services/ui.d.ts +2 -2
- package/types/type.d.ts +8 -8
- package/types/utils/operator.d.ts +1 -1
- package/types/utils/props.d.ts +78 -1
package/src/theme/event.scss
CHANGED
|
@@ -21,4 +21,16 @@
|
|
|
21
21
|
}
|
|
22
22
|
.m-fields-code-select-col {
|
|
23
23
|
width: 100%;
|
|
24
|
+
.code-select-container {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
.select {
|
|
28
|
+
flex: 10 0 100px;
|
|
29
|
+
}
|
|
30
|
+
.icon {
|
|
31
|
+
flex: 1 0 20px;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
margin-right: 5px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
24
36
|
}
|
|
@@ -1,20 +1,6 @@
|
|
|
1
1
|
.magic-editor-layer-panel {
|
|
2
2
|
background: $--sidebar-content-background-color;
|
|
3
3
|
|
|
4
|
-
.search-input {
|
|
5
|
-
background: $--sidebar-content-background-color;
|
|
6
|
-
color: #bbbbbb;
|
|
7
|
-
padding: 10px;
|
|
8
|
-
position: absolute;
|
|
9
|
-
top: 0;
|
|
10
|
-
left: 0;
|
|
11
|
-
z-index: 1;
|
|
12
|
-
|
|
13
|
-
.el-input__prefix {
|
|
14
|
-
padding: 7px;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
4
|
.magic-editor-layer-tree {
|
|
19
5
|
padding-top: 48px;
|
|
20
6
|
}
|
package/src/theme/theme.scss
CHANGED
package/src/utils/config.ts
CHANGED
package/src/utils/dep.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { isEmpty } from 'lodash-es';
|
|
|
2
2
|
|
|
3
3
|
import { CodeBlockContent, HookType, Id } from '@tmagic/schema';
|
|
4
4
|
|
|
5
|
-
import { Target } from '
|
|
6
|
-
import { HookData } from '
|
|
5
|
+
import { Target } from '@editor/services/dep';
|
|
6
|
+
import type { HookData } from '@editor/type';
|
|
7
7
|
|
|
8
8
|
export const createCodeBlockTarget = (id: Id, codeBlock: CodeBlockContent) =>
|
|
9
9
|
new Target({
|
package/src/utils/editor.ts
CHANGED
|
@@ -23,7 +23,7 @@ import { NodeType } from '@tmagic/schema';
|
|
|
23
23
|
import type StageCore from '@tmagic/stage';
|
|
24
24
|
import { getNodePath, isNumber, isPage, isPop } from '@tmagic/utils';
|
|
25
25
|
|
|
26
|
-
import { Layout } from '
|
|
26
|
+
import { Layout } from '@editor/type';
|
|
27
27
|
export const COPY_STORAGE_KEY = '$MagicEditorCopyData';
|
|
28
28
|
|
|
29
29
|
/**
|
package/src/utils/operator.ts
CHANGED
|
@@ -4,10 +4,10 @@ import { isEmpty } from 'lodash-es';
|
|
|
4
4
|
import { Id, MContainer, MNode } from '@tmagic/schema';
|
|
5
5
|
import { isPage } from '@tmagic/utils';
|
|
6
6
|
|
|
7
|
-
import editorService from '
|
|
8
|
-
import propsService from '
|
|
9
|
-
import { AddMNode, PastePosition } from '
|
|
10
|
-
import { generatePageNameByApp, getInitPositionStyle } from '
|
|
7
|
+
import editorService from '@editor/services/editor';
|
|
8
|
+
import propsService from '@editor/services/props';
|
|
9
|
+
import type { AddMNode, PastePosition } from '@editor/type';
|
|
10
|
+
import { generatePageNameByApp, getInitPositionStyle } from '@editor/utils/editor';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* 粘贴前置操作:返回分配了新id以及校准了坐标的配置
|
package/src/utils/stage.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { computed } from 'vue';
|
|
|
2
2
|
|
|
3
3
|
import StageCore, { GuidesType, RemoveEventData, SortEventData, UpdateEventData } from '@tmagic/stage';
|
|
4
4
|
|
|
5
|
-
import editorService from '
|
|
6
|
-
import uiService from '
|
|
7
|
-
import { H_GUIDE_LINE_STORAGE_KEY, StageOptions, V_GUIDE_LINE_STORAGE_KEY } from '
|
|
5
|
+
import editorService from '@editor/services/editor';
|
|
6
|
+
import uiService from '@editor/services/ui';
|
|
7
|
+
import { H_GUIDE_LINE_STORAGE_KEY, StageOptions, V_GUIDE_LINE_STORAGE_KEY } from '@editor/type';
|
|
8
8
|
|
|
9
9
|
import { getGuideLineFromCache } from './editor';
|
|
10
10
|
|
package/tsconfig.build.json
CHANGED
|
@@ -15,7 +15,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
15
15
|
}>, {
|
|
16
16
|
editable: boolean;
|
|
17
17
|
autoSaveDraft: boolean;
|
|
18
|
-
}>, {
|
|
18
|
+
}>, {
|
|
19
|
+
saveAndClose: () => void;
|
|
20
|
+
close: () => Promise<void>;
|
|
21
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "saveAndClose")[], "close" | "saveAndClose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
19
22
|
/** 代码id */
|
|
20
23
|
id: Id;
|
|
21
24
|
/** 代码内容 */
|
|
@@ -39,8 +42,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
39
42
|
autoSaveDraft: boolean;
|
|
40
43
|
}>;
|
|
41
44
|
export default _default;
|
|
42
|
-
|
|
43
|
-
|
|
45
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
46
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
44
47
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
45
48
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
46
49
|
} : {
|
|
@@ -48,7 +51,7 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
48
51
|
required: true;
|
|
49
52
|
};
|
|
50
53
|
};
|
|
51
|
-
|
|
54
|
+
type __VLS_WithDefaults<P, D> = {
|
|
52
55
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
53
56
|
default: D[K];
|
|
54
57
|
} : P[K];
|
|
@@ -22,8 +22,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
22
22
|
isSubMenu: boolean;
|
|
23
23
|
}>;
|
|
24
24
|
export default _default;
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
27
27
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
28
28
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
29
29
|
} : {
|
|
@@ -31,7 +31,7 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
31
31
|
required: true;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
-
|
|
34
|
+
type __VLS_WithDefaults<P, D> = {
|
|
35
35
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
36
36
|
default: D[K];
|
|
37
37
|
} : P[K];
|
|
@@ -18,7 +18,142 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
18
18
|
}>, {
|
|
19
19
|
editable: boolean;
|
|
20
20
|
autoSaveDraft: boolean;
|
|
21
|
-
}>, {
|
|
21
|
+
}>, {
|
|
22
|
+
codeDraftEditor: import("vue").Ref<({
|
|
23
|
+
$: import("vue").ComponentInternalInstance;
|
|
24
|
+
$data: {};
|
|
25
|
+
$props: Partial<{
|
|
26
|
+
editable: boolean;
|
|
27
|
+
autoSaveDraft: boolean;
|
|
28
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
id: {
|
|
30
|
+
type: import("vue").PropType<Id>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
editable: {
|
|
34
|
+
type: import("vue").PropType<boolean>;
|
|
35
|
+
} & {
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
codeOptions: {
|
|
39
|
+
type: import("vue").PropType<Object>;
|
|
40
|
+
};
|
|
41
|
+
content: {
|
|
42
|
+
type: import("vue").PropType<string>;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
language: {
|
|
46
|
+
type: import("vue").PropType<string>;
|
|
47
|
+
};
|
|
48
|
+
autoSaveDraft: {
|
|
49
|
+
type: import("vue").PropType<boolean>;
|
|
50
|
+
} & {
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
}>> & {
|
|
54
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
55
|
+
onSaveAndClose?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "editable" | "autoSaveDraft">;
|
|
57
|
+
$attrs: {
|
|
58
|
+
[x: string]: unknown;
|
|
59
|
+
};
|
|
60
|
+
$refs: {
|
|
61
|
+
[x: string]: unknown;
|
|
62
|
+
};
|
|
63
|
+
$slots: Readonly<{
|
|
64
|
+
[name: string]: import("vue").Slot | undefined;
|
|
65
|
+
}>;
|
|
66
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
67
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
68
|
+
$emit: (event: "close" | "saveAndClose", ...args: any[]) => void;
|
|
69
|
+
$el: any;
|
|
70
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
71
|
+
id: {
|
|
72
|
+
type: import("vue").PropType<Id>;
|
|
73
|
+
required: true;
|
|
74
|
+
};
|
|
75
|
+
editable: {
|
|
76
|
+
type: import("vue").PropType<boolean>;
|
|
77
|
+
} & {
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
codeOptions: {
|
|
81
|
+
type: import("vue").PropType<Object>;
|
|
82
|
+
};
|
|
83
|
+
content: {
|
|
84
|
+
type: import("vue").PropType<string>;
|
|
85
|
+
required: true;
|
|
86
|
+
};
|
|
87
|
+
language: {
|
|
88
|
+
type: import("vue").PropType<string>;
|
|
89
|
+
};
|
|
90
|
+
autoSaveDraft: {
|
|
91
|
+
type: import("vue").PropType<boolean>;
|
|
92
|
+
} & {
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
95
|
+
}>> & {
|
|
96
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
97
|
+
onSaveAndClose?: ((...args: any[]) => any) | undefined;
|
|
98
|
+
}, {
|
|
99
|
+
saveAndClose: () => void;
|
|
100
|
+
close: () => Promise<void>;
|
|
101
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "saveAndClose")[], string, {
|
|
102
|
+
editable: boolean;
|
|
103
|
+
autoSaveDraft: boolean;
|
|
104
|
+
}> & {
|
|
105
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
106
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
107
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
108
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
109
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
110
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
111
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
112
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
113
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
114
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
115
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
116
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
117
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
118
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
119
|
+
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;
|
|
120
|
+
};
|
|
121
|
+
$forceUpdate: () => void;
|
|
122
|
+
$nextTick: typeof import("vue").nextTick;
|
|
123
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
124
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
125
|
+
id: {
|
|
126
|
+
type: import("vue").PropType<Id>;
|
|
127
|
+
required: true;
|
|
128
|
+
};
|
|
129
|
+
editable: {
|
|
130
|
+
type: import("vue").PropType<boolean>;
|
|
131
|
+
} & {
|
|
132
|
+
default: boolean;
|
|
133
|
+
};
|
|
134
|
+
codeOptions: {
|
|
135
|
+
type: import("vue").PropType<Object>;
|
|
136
|
+
};
|
|
137
|
+
content: {
|
|
138
|
+
type: import("vue").PropType<string>;
|
|
139
|
+
required: true;
|
|
140
|
+
};
|
|
141
|
+
language: {
|
|
142
|
+
type: import("vue").PropType<string>;
|
|
143
|
+
};
|
|
144
|
+
autoSaveDraft: {
|
|
145
|
+
type: import("vue").PropType<boolean>;
|
|
146
|
+
} & {
|
|
147
|
+
default: boolean;
|
|
148
|
+
};
|
|
149
|
+
}>> & {
|
|
150
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
151
|
+
onSaveAndClose?: ((...args: any[]) => any) | undefined;
|
|
152
|
+
} & import("vue").ShallowUnwrapRef<{
|
|
153
|
+
saveAndClose: () => void;
|
|
154
|
+
close: () => Promise<void>;
|
|
155
|
+
}> & {} & import("vue").ComponentCustomProperties) | undefined>;
|
|
156
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
22
157
|
/** 代码块id */
|
|
23
158
|
id: Id;
|
|
24
159
|
/** 代码块名称 */
|
|
@@ -36,16 +171,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
36
171
|
}>, {
|
|
37
172
|
editable: boolean;
|
|
38
173
|
autoSaveDraft: boolean;
|
|
39
|
-
}
|
|
40
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
41
|
-
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
42
|
-
}, {
|
|
174
|
+
}>>>, {
|
|
43
175
|
editable: boolean;
|
|
44
176
|
autoSaveDraft: boolean;
|
|
45
177
|
}>;
|
|
46
178
|
export default _default;
|
|
47
|
-
|
|
48
|
-
|
|
179
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
180
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
49
181
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
50
182
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
51
183
|
} : {
|
|
@@ -53,7 +185,7 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
53
185
|
required: true;
|
|
54
186
|
};
|
|
55
187
|
};
|
|
56
|
-
|
|
188
|
+
type __VLS_WithDefaults<P, D> = {
|
|
57
189
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
58
190
|
default: D[K];
|
|
59
191
|
} : P[K];
|
|
@@ -4,8 +4,8 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
4
4
|
icon?: any;
|
|
5
5
|
}>>>, {}>;
|
|
6
6
|
export default _default;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
9
9
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
10
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
11
|
} : {
|
|
@@ -1,105 +1,17 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
leftClass?: string | undefined;
|
|
16
|
-
rightClass?: string | undefined;
|
|
17
|
-
centerClass?: string | undefined;
|
|
18
|
-
}>, {
|
|
19
|
-
minLeft: number;
|
|
20
|
-
minRight: number;
|
|
21
|
-
minCenter: number;
|
|
22
|
-
}>>> & {
|
|
23
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
24
|
-
"onUpdate:left"?: ((...args: any[]) => any) | undefined;
|
|
25
|
-
"onUpdate:right"?: ((...args: any[]) => any) | undefined;
|
|
26
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "minLeft" | "minRight" | "minCenter">;
|
|
27
|
-
$attrs: {
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
30
|
-
$refs: {
|
|
31
|
-
[x: string]: unknown;
|
|
32
|
-
};
|
|
33
|
-
$slots: Readonly<{
|
|
34
|
-
[name: string]: import("vue").Slot | undefined;
|
|
35
|
-
}>;
|
|
36
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
37
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
38
|
-
$emit: (event: "change" | "update:left" | "update:right", ...args: any[]) => void;
|
|
39
|
-
$el: any;
|
|
40
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
41
|
-
left?: number | undefined;
|
|
42
|
-
right?: number | undefined;
|
|
43
|
-
minLeft?: number | undefined;
|
|
44
|
-
minRight?: number | undefined;
|
|
45
|
-
minCenter?: number | undefined;
|
|
46
|
-
leftClass?: string | undefined;
|
|
47
|
-
rightClass?: string | undefined;
|
|
48
|
-
centerClass?: string | undefined;
|
|
49
|
-
}>, {
|
|
50
|
-
minLeft: number;
|
|
51
|
-
minRight: number;
|
|
52
|
-
minCenter: number;
|
|
53
|
-
}>>> & {
|
|
54
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
55
|
-
"onUpdate:left"?: ((...args: any[]) => any) | undefined;
|
|
56
|
-
"onUpdate:right"?: ((...args: any[]) => any) | undefined;
|
|
57
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:left" | "update:right")[], string, {
|
|
58
|
-
minLeft: number;
|
|
59
|
-
minRight: number;
|
|
60
|
-
minCenter: number;
|
|
61
|
-
}> & {
|
|
62
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
63
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
64
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
65
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
66
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
67
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
68
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
69
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
70
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
71
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
72
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
73
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
74
|
-
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
75
|
-
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
76
|
-
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;
|
|
77
|
-
};
|
|
78
|
-
$forceUpdate: () => void;
|
|
79
|
-
$nextTick: typeof import("vue").nextTick;
|
|
80
|
-
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
81
|
-
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
82
|
-
left?: number | undefined;
|
|
83
|
-
right?: number | undefined;
|
|
84
|
-
minLeft?: number | undefined;
|
|
85
|
-
minRight?: number | undefined;
|
|
86
|
-
minCenter?: number | undefined;
|
|
87
|
-
leftClass?: string | undefined;
|
|
88
|
-
rightClass?: string | undefined;
|
|
89
|
-
centerClass?: string | undefined;
|
|
90
|
-
}>, {
|
|
91
|
-
minLeft: number;
|
|
92
|
-
minRight: number;
|
|
93
|
-
minCenter: number;
|
|
94
|
-
}>>> & {
|
|
95
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
96
|
-
"onUpdate:left"?: ((...args: any[]) => any) | undefined;
|
|
97
|
-
"onUpdate:right"?: ((...args: any[]) => any) | undefined;
|
|
98
|
-
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
99
|
-
__isFragment?: undefined;
|
|
100
|
-
__isTeleport?: undefined;
|
|
101
|
-
__isSuspense?: undefined;
|
|
102
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
left?: number | undefined;
|
|
3
|
+
right?: number | undefined;
|
|
4
|
+
minLeft?: number | undefined;
|
|
5
|
+
minRight?: number | undefined;
|
|
6
|
+
minCenter?: number | undefined;
|
|
7
|
+
leftClass?: string | undefined;
|
|
8
|
+
rightClass?: string | undefined;
|
|
9
|
+
centerClass?: string | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
minLeft: number;
|
|
12
|
+
minRight: number;
|
|
13
|
+
minCenter: number;
|
|
14
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:left" | "update:right")[], "change" | "update:left" | "update:right", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
103
15
|
left?: number | undefined;
|
|
104
16
|
right?: number | undefined;
|
|
105
17
|
minLeft?: number | undefined;
|
|
@@ -116,20 +28,18 @@ declare const _default: {
|
|
|
116
28
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
117
29
|
"onUpdate:left"?: ((...args: any[]) => any) | undefined;
|
|
118
30
|
"onUpdate:right"?: ((...args: any[]) => any) | undefined;
|
|
119
|
-
}, {
|
|
31
|
+
}, {
|
|
120
32
|
minLeft: number;
|
|
121
33
|
minRight: number;
|
|
122
34
|
minCenter: number;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
};
|
|
129
|
-
});
|
|
35
|
+
}>, {
|
|
36
|
+
left: (_: {}) => any;
|
|
37
|
+
center: (_: {}) => any;
|
|
38
|
+
right: (_: {}) => any;
|
|
39
|
+
}>;
|
|
130
40
|
export default _default;
|
|
131
|
-
|
|
132
|
-
|
|
41
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
42
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
133
43
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
134
44
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
135
45
|
} : {
|
|
@@ -137,8 +47,13 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
137
47
|
required: true;
|
|
138
48
|
};
|
|
139
49
|
};
|
|
140
|
-
|
|
50
|
+
type __VLS_WithDefaults<P, D> = {
|
|
141
51
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
142
52
|
default: D[K];
|
|
143
53
|
} : P[K];
|
|
144
54
|
};
|
|
55
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
56
|
+
new (): {
|
|
57
|
+
$slots: S;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -12,8 +12,8 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
12
12
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
13
13
|
}, {}>;
|
|
14
14
|
export default _default;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
17
17
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
18
18
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
19
19
|
} : {
|