@vtj/designer 0.10.6 → 0.10.8
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/{Editor-BFm57YMW.js → Editor-7SLplEph.js} +1 -1
- package/dist/index.mjs +1911 -1898
- package/dist/{ts.worker-D9KUThWN.js → ts.worker-Bjq4oI3m.js} +7 -7
- package/package.json +8 -8
- package/types/components/binders/event.d.ts +46 -2
- package/types/components/binders/variable.d.ts +46 -2
- package/types/components/editor/Editor.d.ts +3 -1
- package/types/components/editor/index.d.ts +3 -1
- package/types/components/regions/actions.d.ts +33 -2
- package/types/components/regions/apps.d.ts +33 -2
- package/types/components/regions/brand.d.ts +33 -2
- package/types/components/regions/empty.d.ts +1 -1
- package/types/components/regions/index.d.ts +259 -11
- package/types/components/regions/preview.d.ts +33 -2
- package/types/components/regions/settings.d.ts +33 -2
- package/types/components/regions/status.d.ts +33 -2
- package/types/components/regions/toolbar.d.ts +33 -2
- package/types/components/regions/workspace.d.ts +33 -2
- package/types/components/setters/css.d.ts +46 -2
- package/types/components/setters/file.d.ts +1 -1
- package/types/components/setters/function.d.ts +46 -2
- package/types/components/setters/icon.d.ts +1 -1
- package/types/components/setters/index.d.ts +140 -10
- package/types/components/setters/json.d.ts +46 -2
- package/types/components/setters/section.d.ts +1 -1
- package/types/components/setters/slider.d.ts +1 -1
- package/types/components/setters/tag.d.ts +1 -1
- package/types/components/setters/vanIcon/index.d.ts +1 -1
- package/types/components/shared/binder.d.ts +742 -70
- package/types/components/shared/box.d.ts +13 -45
- package/types/components/shared/item.d.ts +13 -143
- package/types/components/shared/panel.d.ts +15 -72
- package/types/components/shared/tabs.d.ts +13 -37
- package/types/components/shared/viewer.d.ts +766 -2
- package/types/components/shared/viewport.d.ts +13 -29
- package/types/components/skeleton.d.ts +180 -2
- package/types/components/widgets/about/index.d.ts +1 -1
- package/types/components/widgets/actions/coder.d.ts +1 -1
- package/types/components/widgets/actions/index.d.ts +1 -1
- package/types/components/widgets/apis/base-info.d.ts +1 -1
- package/types/components/widgets/apis/form.d.ts +1520 -2
- package/types/components/widgets/apis/jsonp-options.d.ts +1 -1
- package/types/components/widgets/apis/mock-template.d.ts +1 -1
- package/types/components/widgets/apis/request-settings.d.ts +1 -1
- package/types/components/widgets/css/index.d.ts +46 -2
- package/types/components/widgets/designer/actions.d.ts +1 -1
- package/types/components/widgets/designer/index.d.ts +4 -1
- package/types/components/widgets/docs/index.d.ts +101 -2
- package/types/components/widgets/empty/index.d.ts +1 -1
- package/types/components/widgets/index.d.ts +342 -11
- package/types/components/widgets/market/index.d.ts +101 -2
- package/types/components/widgets/previewer/index.d.ts +4 -1
- package/types/components/widgets/raw/index.d.ts +46 -2
- package/types/components/widgets/schema/index.d.ts +46 -2
- package/types/components/widgets/scripts/group.d.ts +983 -51
- package/types/components/widgets/scripts/lifeCycles.d.ts +46 -2
- package/types/components/widgets/style/JsonMode.d.ts +46 -2
- package/types/components/widgets/style/positioning.d.ts +3 -1
- package/types/components/widgets/style/spacing-input.d.ts +255 -2
- package/types/components/widgets/style/spacing.d.ts +4 -1
- package/types/version.d.ts +2 -2
@@ -1,6 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
import { MoreFilled } from '@vtj/icons';
|
3
|
-
import { Raw, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComputedRef } from 'vue';
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
2
|
export interface Props {
|
5
3
|
name: string;
|
6
4
|
title: string;
|
@@ -10,45 +8,15 @@ export interface Props {
|
|
10
8
|
tag?: string;
|
11
9
|
tagType?: 'warning' | 'success' | 'danger' | 'primary';
|
12
10
|
}
|
13
|
-
declare
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
}
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
}>;
|
23
|
-
declare const onDragStart: () => void;
|
24
|
-
declare const onDragEnd: () => void;
|
25
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
26
|
-
declare var __VLS_5: {};
|
27
|
-
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
28
|
-
default?: (props: typeof __VLS_5) => any;
|
29
|
-
}>;
|
30
|
-
declare const __VLS_self: DefineComponent<Props, {
|
31
|
-
XContainer: typeof XContainer;
|
32
|
-
XAction: typeof XAction;
|
33
|
-
MoreFilled: typeof MoreFilled;
|
34
|
-
menus: typeof menus;
|
35
|
-
onCommand: typeof onCommand;
|
36
|
-
classes: typeof classes;
|
37
|
-
onDragStart: typeof onDragStart;
|
38
|
-
onDragEnd: typeof onDragEnd;
|
39
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
40
|
-
copy: (...args: any[]) => void;
|
41
|
-
dragend: (...args: any[]) => void;
|
42
|
-
dragstart: (...args: any[]) => void;
|
43
|
-
edit: (...args: any[]) => void;
|
44
|
-
remove: (...args: any[]) => void;
|
45
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
46
|
-
onCopy?: ((...args: any[]) => any) | undefined;
|
47
|
-
onDragend?: ((...args: any[]) => any) | undefined;
|
48
|
-
onDragstart?: ((...args: any[]) => any) | undefined;
|
49
|
-
onEdit?: ((...args: any[]) => any) | undefined;
|
50
|
-
onRemove?: ((...args: any[]) => any) | undefined;
|
51
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
11
|
+
declare function __VLS_template(): {
|
12
|
+
attrs: Partial<{}>;
|
13
|
+
slots: {
|
14
|
+
default?(_: {}): any;
|
15
|
+
};
|
16
|
+
refs: {};
|
17
|
+
rootEl: HTMLDivElement;
|
18
|
+
};
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
52
20
|
declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
53
21
|
copy: (...args: any[]) => void;
|
54
22
|
dragend: (...args: any[]) => void;
|
@@ -61,10 +29,10 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
|
|
61
29
|
onDragstart?: ((...args: any[]) => any) | undefined;
|
62
30
|
onEdit?: ((...args: any[]) => any) | undefined;
|
63
31
|
onRemove?: ((...args: any[]) => any) | undefined;
|
64
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
65
|
-
declare const _default:
|
32
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
33
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
66
34
|
export default _default;
|
67
|
-
type
|
35
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
68
36
|
new (): {
|
69
37
|
$slots: S;
|
70
38
|
};
|
@@ -1,7 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
import { MoreFilled } from '@vtj/icons';
|
3
|
-
import { ElSwitch, ElTag } from 'element-plus';
|
4
|
-
import { Raw, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, Ref, ComputedRef } from 'vue';
|
1
|
+
import { Raw, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
5
2
|
declare const builtInActions: {
|
6
3
|
add: {
|
7
4
|
label: string;
|
@@ -68,143 +65,16 @@ export interface Props {
|
|
68
65
|
actionInMore?: boolean;
|
69
66
|
textTags?: string[];
|
70
67
|
}
|
71
|
-
declare
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
}
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
label: string;
|
82
|
-
icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
|
83
|
-
name: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
|
84
|
-
} | {
|
85
|
-
label: string;
|
86
|
-
icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
|
87
|
-
name: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
|
88
|
-
} | {
|
89
|
-
label: string;
|
90
|
-
icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
|
91
|
-
name: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
|
92
|
-
} | {
|
93
|
-
label: string;
|
94
|
-
icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
|
95
|
-
name: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
|
96
|
-
} | {
|
97
|
-
label: string;
|
98
|
-
icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
|
99
|
-
name: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
|
100
|
-
} | {
|
101
|
-
label: string;
|
102
|
-
icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
|
103
|
-
name: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
|
104
|
-
} | {
|
105
|
-
label: string;
|
106
|
-
icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
|
107
|
-
name: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
|
108
|
-
} | {
|
109
|
-
label: string;
|
110
|
-
icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
|
111
|
-
name: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
|
112
|
-
} | {
|
113
|
-
label: string;
|
114
|
-
divided: boolean;
|
115
|
-
icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
|
116
|
-
name: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
|
117
|
-
})[]>;
|
118
|
-
declare const moreMenus: ComputedRef<({
|
119
|
-
label: string;
|
120
|
-
icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
|
121
|
-
command: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
|
122
|
-
} | {
|
123
|
-
label: string;
|
124
|
-
icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
|
125
|
-
command: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
|
126
|
-
} | {
|
127
|
-
label: string;
|
128
|
-
icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
|
129
|
-
command: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
|
130
|
-
} | {
|
131
|
-
label: string;
|
132
|
-
icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
|
133
|
-
command: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
|
134
|
-
} | {
|
135
|
-
label: string;
|
136
|
-
icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
|
137
|
-
command: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
|
138
|
-
} | {
|
139
|
-
label: string;
|
140
|
-
icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
|
141
|
-
command: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
|
142
|
-
} | {
|
143
|
-
label: string;
|
144
|
-
icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
|
145
|
-
command: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
|
146
|
-
} | {
|
147
|
-
label: string;
|
148
|
-
icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
|
149
|
-
command: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
|
150
|
-
} | {
|
151
|
-
label: string;
|
152
|
-
icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
|
153
|
-
command: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
|
154
|
-
} | {
|
155
|
-
label: string;
|
156
|
-
icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
|
157
|
-
command: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
|
158
|
-
} | {
|
159
|
-
label: string;
|
160
|
-
divided: boolean;
|
161
|
-
icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
|
162
|
-
command: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
|
163
|
-
})[]>;
|
164
|
-
declare const classes: ComputedRef<{
|
165
|
-
'is-background': boolean;
|
166
|
-
'is-border': boolean;
|
167
|
-
'is-active': boolean;
|
168
|
-
'is-hover': boolean;
|
169
|
-
'is-small': boolean;
|
170
|
-
}>;
|
171
|
-
declare const onClick: () => void;
|
172
|
-
declare const onAction: (name: string) => Promise<void>;
|
173
|
-
declare const onMoreCommand: (item: any) => void;
|
174
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
175
|
-
declare var __VLS_14: {}, __VLS_52: {};
|
176
|
-
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
177
|
-
default?: (props: typeof __VLS_14) => any;
|
178
|
-
} & {
|
179
|
-
status?: (props: typeof __VLS_52) => any;
|
180
|
-
}>;
|
181
|
-
declare const __VLS_self: DefineComponent<Props, {
|
182
|
-
XContainer: typeof XContainer;
|
183
|
-
XAction: typeof XAction;
|
184
|
-
XIcon: typeof XIcon;
|
185
|
-
MoreFilled: typeof MoreFilled;
|
186
|
-
ElSwitch: typeof ElSwitch;
|
187
|
-
ElTag: typeof ElTag;
|
188
|
-
switchValue: typeof switchValue;
|
189
|
-
currentActions: typeof currentActions;
|
190
|
-
moreMenus: typeof moreMenus;
|
191
|
-
classes: typeof classes;
|
192
|
-
onClick: typeof onClick;
|
193
|
-
onAction: typeof onAction;
|
194
|
-
onMoreCommand: typeof onMoreCommand;
|
195
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
196
|
-
click: (...args: any[]) => void;
|
197
|
-
switch: (...args: any[]) => void;
|
198
|
-
"update:modelValue": (...args: any[]) => void;
|
199
|
-
action: (...args: any[]) => void;
|
200
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
201
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
202
|
-
onSwitch?: ((...args: any[]) => any) | undefined;
|
203
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
204
|
-
onAction?: ((...args: any[]) => any) | undefined;
|
205
|
-
}>, {
|
206
|
-
actions: Array<keyof typeof builtInActions>;
|
207
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
68
|
+
declare function __VLS_template(): {
|
69
|
+
attrs: Partial<{}>;
|
70
|
+
slots: {
|
71
|
+
default?(_: {}): any;
|
72
|
+
status?(_: {}): any;
|
73
|
+
};
|
74
|
+
refs: {};
|
75
|
+
rootEl: any;
|
76
|
+
};
|
77
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
208
78
|
declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
209
79
|
click: (...args: any[]) => void;
|
210
80
|
switch: (...args: any[]) => void;
|
@@ -218,9 +88,9 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
|
|
218
88
|
}>, {
|
219
89
|
actions: Array<keyof typeof builtInActions>;
|
220
90
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
221
|
-
declare const _default:
|
91
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
222
92
|
export default _default;
|
223
|
-
type
|
93
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
224
94
|
new (): {
|
225
95
|
$slots: S;
|
226
96
|
};
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import { Ref, ComputedRef, DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, ComponentProvideOptions, PublicProps } from 'vue';
|
1
|
+
import { ActionMenuItem } from '@vtj/ui';
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
3
|
export interface Props {
|
5
4
|
title?: string;
|
6
5
|
subtitle?: string;
|
@@ -14,73 +13,17 @@ export interface Props {
|
|
14
13
|
collapsable?: boolean;
|
15
14
|
menus?: ActionMenuItem[];
|
16
15
|
}
|
17
|
-
declare
|
18
|
-
|
19
|
-
|
20
|
-
}
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
content: string | undefined;
|
29
|
-
subtitle: string | undefined;
|
30
|
-
icon: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly< ExtractPropTypes<{}>>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any> | undefined;
|
31
|
-
onClickBack: (() => void) | undefined;
|
32
|
-
onClick: (() => void) | undefined;
|
33
|
-
} | null>;
|
34
|
-
declare const setCollapsed: (value: boolean) => void;
|
35
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
36
|
-
declare var __VLS_63: {}, __VLS_65: {}, __VLS_67: {};
|
37
|
-
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
38
|
-
actions?: (props: typeof __VLS_63) => any;
|
39
|
-
} & {
|
40
|
-
default?: (props: typeof __VLS_65) => any;
|
41
|
-
} & {
|
42
|
-
footer?: (props: typeof __VLS_67) => any;
|
43
|
-
}>;
|
44
|
-
declare const __VLS_self: DefineComponent<Props, {
|
45
|
-
XPanel: typeof XPanel;
|
46
|
-
XAction: typeof XAction;
|
47
|
-
VtjIconPlus: typeof VtjIconPlus;
|
48
|
-
Delete: typeof Delete;
|
49
|
-
VtjIconSave: typeof VtjIconSave;
|
50
|
-
EditPen: typeof EditPen;
|
51
|
-
ArrowDown: typeof ArrowDown;
|
52
|
-
ArrowUp: typeof ArrowUp;
|
53
|
-
VtjIconRefresh: typeof VtjIconRefresh;
|
54
|
-
collapsed: typeof collapsed;
|
55
|
-
classes: typeof classes;
|
56
|
-
onClickRefresh: typeof onClickRefresh;
|
57
|
-
onClickPlus: typeof onClickPlus;
|
58
|
-
onClickEdit: typeof onClickEdit;
|
59
|
-
onClickRemove: typeof onClickRemove;
|
60
|
-
onClickSave: typeof onClickSave;
|
61
|
-
onPlusCommand: typeof onPlusCommand;
|
62
|
-
header: typeof header;
|
63
|
-
setCollapsed: typeof setCollapsed;
|
64
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
65
|
-
command: (...args: any[]) => void;
|
66
|
-
refresh: (...args: any[]) => void;
|
67
|
-
plus: (...args: any[]) => void;
|
68
|
-
back: (...args: any[]) => void;
|
69
|
-
edit: (...args: any[]) => void;
|
70
|
-
remove: (...args: any[]) => void;
|
71
|
-
save: (...args: any[]) => void;
|
72
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
73
|
-
onCommand?: ((...args: any[]) => any) | undefined;
|
74
|
-
onRefresh?: ((...args: any[]) => any) | undefined;
|
75
|
-
onPlus?: ((...args: any[]) => any) | undefined;
|
76
|
-
onBack?: ((...args: any[]) => any) | undefined;
|
77
|
-
onEdit?: ((...args: any[]) => any) | undefined;
|
78
|
-
onRemove?: ((...args: any[]) => any) | undefined;
|
79
|
-
onSave?: ((...args: any[]) => any) | undefined;
|
80
|
-
}>, {
|
81
|
-
header: boolean;
|
82
|
-
menus: ActionMenuItem[];
|
83
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
16
|
+
declare function __VLS_template(): {
|
17
|
+
attrs: Partial<{}>;
|
18
|
+
slots: {
|
19
|
+
actions?(_: {}): any;
|
20
|
+
default?(_: {}): any;
|
21
|
+
footer?(_: {}): any;
|
22
|
+
};
|
23
|
+
refs: {};
|
24
|
+
rootEl: any;
|
25
|
+
};
|
26
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
84
27
|
declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
85
28
|
command: (...args: any[]) => void;
|
86
29
|
refresh: (...args: any[]) => void;
|
@@ -101,9 +44,9 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
|
|
101
44
|
header: boolean;
|
102
45
|
menus: ActionMenuItem[];
|
103
46
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
104
|
-
declare const _default:
|
47
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
105
48
|
export default _default;
|
106
|
-
type
|
49
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
107
50
|
new (): {
|
108
51
|
$slots: S;
|
109
52
|
};
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import { Ref, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
1
|
+
import { TabsItem, ActionMenuItem } from '@vtj/ui';
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
3
|
export interface Props {
|
5
4
|
items?: TabsItem[];
|
6
5
|
menus?: ActionMenuItem[];
|
@@ -8,38 +7,15 @@ export interface Props {
|
|
8
7
|
stretch?: boolean;
|
9
8
|
checkable?: boolean;
|
10
9
|
}
|
11
|
-
declare
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
declare const __VLS_self: DefineComponent<Props, {
|
21
|
-
XPanel: typeof XPanel;
|
22
|
-
XTabs: typeof XTabs;
|
23
|
-
XAction: typeof XAction;
|
24
|
-
MoreFilled: typeof MoreFilled;
|
25
|
-
VtjIconCheck: typeof VtjIconCheck;
|
26
|
-
currentTab: typeof currentTab;
|
27
|
-
handleCommand: typeof handleCommand;
|
28
|
-
handelTabRemove: typeof handelTabRemove;
|
29
|
-
onTabActionClick: typeof onTabActionClick;
|
30
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
31
|
-
command: (...args: any[]) => void;
|
32
|
-
"update:modelValue": (...args: any[]) => void;
|
33
|
-
remove: (...args: any[]) => void;
|
34
|
-
"action-click": (...args: any[]) => void;
|
35
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
36
|
-
onCommand?: ((...args: any[]) => any) | undefined;
|
37
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
38
|
-
onRemove?: ((...args: any[]) => any) | undefined;
|
39
|
-
"onAction-click"?: ((...args: any[]) => any) | undefined;
|
40
|
-
}>, {
|
41
|
-
items: TabsItem[];
|
42
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
10
|
+
declare function __VLS_template(): {
|
11
|
+
attrs: Partial<{}>;
|
12
|
+
slots: {
|
13
|
+
default?(_: {}): any;
|
14
|
+
};
|
15
|
+
refs: {};
|
16
|
+
rootEl: any;
|
17
|
+
};
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
43
19
|
declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
44
20
|
command: (...args: any[]) => void;
|
45
21
|
"update:modelValue": (...args: any[]) => void;
|
@@ -53,9 +29,9 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
|
|
53
29
|
}>, {
|
54
30
|
items: TabsItem[];
|
55
31
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
56
|
-
declare const _default:
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
57
33
|
export default _default;
|
58
|
-
type
|
34
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
59
35
|
new (): {
|
60
36
|
$slots: S;
|
61
37
|
};
|