@vtj/ui 0.8.92 → 0.8.94
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/index.mjs +3 -3
- package/dist/index.umd.js +3 -3
- package/package.json +4 -4
- package/types/components/action/Action.d.ts +52 -124
- package/types/components/action/Trigger.d.ts +7 -81
- package/types/components/action/hooks.d.ts +6 -6
- package/types/components/action/types.d.ts +3 -41
- package/types/components/action-bar/ActionBar.d.ts +37 -285
- package/types/components/action-bar/types.d.ts +5 -43
- package/types/components/attachment/Attachment.d.ts +10 -8
- package/types/components/container/Container.d.ts +10 -8
- package/types/components/container/types.d.ts +2 -2
- package/types/components/data-item/DataItem.d.ts +38 -36
- package/types/components/dialog/Dialog.d.ts +14 -16
- package/types/components/dialog/types.d.ts +2 -4
- package/types/components/dialog-form/DialogForm.d.ts +12 -11
- package/types/components/dialog-form/types.d.ts +2 -3
- package/types/components/dialog-grid/DialogGrid.d.ts +8 -6
- package/types/components/field/Field.d.ts +23 -25
- package/types/components/field/editors/SelectEditor.d.ts +8 -6
- package/types/components/field/types.d.ts +3 -5
- package/types/components/form/Form.d.ts +10 -8
- package/types/components/grid/Grid.d.ts +281 -295
- package/types/components/grid/hooks/useEditRender.d.ts +2 -2
- package/types/components/grid/hooks/useLoader.d.ts +251 -267
- package/types/components/grid/hooks/useProps.d.ts +44 -44
- package/types/components/grid/hooks/useState.d.ts +251 -267
- package/types/components/grid/props.d.ts +3 -4
- package/types/components/header/Header.d.ts +8 -6
- package/types/components/icon/Icon.d.ts +9 -11
- package/types/components/icon/types.d.ts +2 -4
- package/types/components/import-button/ImportButton.d.ts +6 -4
- package/types/components/input-unit/InputUnit.d.ts +4 -4
- package/types/components/input-unit/types.d.ts +1 -1
- package/types/components/list/List.d.ts +12 -10
- package/types/components/mask/Mask.d.ts +41 -39
- package/types/components/mask/components/Avatar.d.ts +4 -2
- package/types/components/mask/components/Brand.d.ts +7 -5
- package/types/components/mask/components/Content.d.ts +4 -2
- package/types/components/mask/components/Sidebar.d.ts +4 -2
- package/types/components/mask/components/Toolbar.d.ts +6 -4
- package/types/components/panel/Panel.d.ts +20 -328
- package/types/components/panel/types.d.ts +6 -170
- package/types/components/picker/Picker.d.ts +14 -341
- package/types/components/picker/props.d.ts +7 -176
- package/types/components/qr-code/QrCode.d.ts +6 -4
- package/types/components/query-form/QueryForm.d.ts +29 -27
- package/types/components/tabs/Tabs.d.ts +48 -222
- package/types/components/tabs/types.d.ts +1 -1
- package/types/components/test/Test.d.ts +36 -34
- package/types/install.d.ts +1 -1
- package/types/utils/util.d.ts +1 -1
- package/types/version.d.ts +2 -2
|
@@ -2,7 +2,10 @@ import { DefineComponent, PropType, Ref, ComponentInternalInstance, VNodeProps,
|
|
|
2
2
|
import { QueryFormItems } from './types';
|
|
3
3
|
import { ElTooltipProps } from 'element-plus';
|
|
4
4
|
import { FormModel } from '../';
|
|
5
|
-
declare
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: DefineComponent<{
|
|
6
9
|
collapsible: {
|
|
7
10
|
type: BooleanConstructor;
|
|
8
11
|
default: boolean;
|
|
@@ -17,7 +20,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
17
20
|
}, {
|
|
18
21
|
validate: () => Promise<any>;
|
|
19
22
|
submit: () => Promise<void>;
|
|
20
|
-
reset: (fields?: string
|
|
23
|
+
reset: (fields?: string[] | string) => void;
|
|
21
24
|
formRef: Ref<({
|
|
22
25
|
$: ComponentInternalInstance;
|
|
23
26
|
$data: {};
|
|
@@ -84,9 +87,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
84
87
|
$slots: Readonly<{
|
|
85
88
|
[name: string]: Slot<any> | undefined;
|
|
86
89
|
}>;
|
|
87
|
-
$root: ComponentPublicInstance
|
|
88
|
-
$parent: ComponentPublicInstance
|
|
89
|
-
$emit: ((event: "
|
|
90
|
+
$root: ComponentPublicInstance | null;
|
|
91
|
+
$parent: ComponentPublicInstance | null;
|
|
92
|
+
$emit: ((event: "change", model: Record<string, any>) => void) & ((event: "reset") => void) & ((event: "submit", model: Record<string, any>) => void);
|
|
90
93
|
$el: any;
|
|
91
94
|
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
92
95
|
model: {
|
|
@@ -126,12 +129,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
126
129
|
formRef: Ref<any>;
|
|
127
130
|
model: FormModel;
|
|
128
131
|
submit: () => Promise<void>;
|
|
129
|
-
reset: (fields?: string
|
|
132
|
+
reset: (fields?: string[] | string) => void;
|
|
130
133
|
validate: () => Promise<any>;
|
|
131
134
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
135
|
+
change: (model: Record<string, any>) => void;
|
|
132
136
|
reset: () => void;
|
|
133
137
|
submit: (model: Record<string, any>) => void;
|
|
134
|
-
change: (model: Record<string, any>) => void;
|
|
135
138
|
}, string, {
|
|
136
139
|
footer: boolean;
|
|
137
140
|
inline: boolean;
|
|
@@ -140,25 +143,25 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
140
143
|
submitText: string | null;
|
|
141
144
|
resetText: string | null;
|
|
142
145
|
}, {}, string, {}> & {
|
|
143
|
-
beforeCreate?: ((
|
|
144
|
-
created?: ((
|
|
145
|
-
beforeMount?: ((
|
|
146
|
-
mounted?: ((
|
|
147
|
-
beforeUpdate?: ((
|
|
148
|
-
updated?: ((
|
|
149
|
-
activated?: ((
|
|
150
|
-
deactivated?: ((
|
|
151
|
-
beforeDestroy?: ((
|
|
152
|
-
beforeUnmount?: ((
|
|
153
|
-
destroyed?: ((
|
|
154
|
-
unmounted?: ((
|
|
155
|
-
renderTracked?: ((
|
|
156
|
-
renderTriggered?: ((
|
|
157
|
-
errorCaptured?: ((
|
|
146
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
147
|
+
created?: (() => void) | (() => void)[];
|
|
148
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
149
|
+
mounted?: (() => void) | (() => void)[];
|
|
150
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
151
|
+
updated?: (() => void) | (() => void)[];
|
|
152
|
+
activated?: (() => void) | (() => void)[];
|
|
153
|
+
deactivated?: (() => void) | (() => void)[];
|
|
154
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
155
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
156
|
+
destroyed?: (() => void) | (() => void)[];
|
|
157
|
+
unmounted?: (() => void) | (() => void)[];
|
|
158
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
159
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
160
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
158
161
|
};
|
|
159
162
|
$forceUpdate: () => void;
|
|
160
163
|
$nextTick: nextTick;
|
|
161
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (
|
|
164
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, (cleanupFn: () => void) => void]) => any : (...args: [any, any, (cleanupFn: () => void) => void]) => any, options?: WatchOptions): WatchStopHandle;
|
|
162
165
|
} & Omit<Readonly< ExtractPropTypes<{
|
|
163
166
|
model: {
|
|
164
167
|
type: PropType<Record<string, any>>;
|
|
@@ -197,7 +200,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
197
200
|
formRef: Ref<any>;
|
|
198
201
|
model: FormModel;
|
|
199
202
|
submit: () => Promise<void>;
|
|
200
|
-
reset: (fields?: string
|
|
203
|
+
reset: (fields?: string[] | string) => void;
|
|
201
204
|
validate: () => Promise<any>;
|
|
202
205
|
}> & {} & ComponentCustomProperties & {} & {
|
|
203
206
|
$slots: {
|
|
@@ -225,9 +228,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
225
228
|
}, {
|
|
226
229
|
collapsible: boolean;
|
|
227
230
|
inlineColumns: number;
|
|
228
|
-
}, {}
|
|
229
|
-
|
|
230
|
-
}>;
|
|
231
|
+
}, {}>;
|
|
232
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
231
233
|
export default _default;
|
|
232
234
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
233
235
|
new (): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionMenuItem, IconParam, ActionMode } from '../';
|
|
1
|
+
import { ActionProps, ActionMenuItem, IconParam, ActionMode } from '../';
|
|
2
2
|
import { TabsItem } from './types';
|
|
3
3
|
import { DefineComponent, PropType, ComponentOptionsMixin, ExtractPropTypes, PublicProps } from 'vue';
|
|
4
4
|
import { ElTooltipProps, BadgeProps, TooltipTriggerType, ButtonProps } from 'element-plus';
|
|
@@ -6,7 +6,35 @@ import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils/index.mj
|
|
|
6
6
|
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
7
7
|
import { BaseSize, BaseType } from '../shared';
|
|
8
8
|
|
|
9
|
-
declare
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
label?(_: {
|
|
11
|
+
label: string;
|
|
12
|
+
name?: string | number;
|
|
13
|
+
icon?: IconParam;
|
|
14
|
+
value?: string | number;
|
|
15
|
+
data?: any;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
closable?: boolean;
|
|
18
|
+
lazy?: boolean;
|
|
19
|
+
actions?: ActionProps[];
|
|
20
|
+
component?: any;
|
|
21
|
+
props?: Record<string, any>;
|
|
22
|
+
}): any;
|
|
23
|
+
default?(_: {
|
|
24
|
+
label: string;
|
|
25
|
+
name?: string | number;
|
|
26
|
+
icon?: IconParam;
|
|
27
|
+
value?: string | number;
|
|
28
|
+
data?: any;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
closable?: boolean;
|
|
31
|
+
lazy?: boolean;
|
|
32
|
+
actions?: ActionProps[];
|
|
33
|
+
component?: any;
|
|
34
|
+
props?: Record<string, any>;
|
|
35
|
+
}): any;
|
|
36
|
+
};
|
|
37
|
+
declare const __VLS_component: DefineComponent<{
|
|
10
38
|
items: {
|
|
11
39
|
type: PropType<TabsItem[]>;
|
|
12
40
|
default(): never[];
|
|
@@ -18,7 +46,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
18
46
|
type: BooleanConstructor;
|
|
19
47
|
};
|
|
20
48
|
align: {
|
|
21
|
-
type: PropType<"
|
|
49
|
+
type: PropType<"left" | "center" | "right">;
|
|
22
50
|
};
|
|
23
51
|
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
24
52
|
actionClick: (props: Readonly<Partial< ExtractPropTypes<{
|
|
@@ -49,7 +77,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
49
77
|
};
|
|
50
78
|
dropdown: {
|
|
51
79
|
type: PropType<Partial< ExtractPropTypes<{
|
|
52
|
-
readonly trigger: EpPropFinalized<(new (...args: any[]) =>
|
|
80
|
+
readonly trigger: EpPropFinalized<(new (...args: any[]) => Arrayable<TooltipTriggerType> & {}) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => Arrayable<TooltipTriggerType> & {}) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
|
53
81
|
readonly effect: {
|
|
54
82
|
readonly default: "light";
|
|
55
83
|
readonly type: PropType<string>;
|
|
@@ -58,13 +86,13 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
58
86
|
readonly __epPropKey: true;
|
|
59
87
|
};
|
|
60
88
|
readonly type: {
|
|
61
|
-
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "
|
|
89
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => EpPropMergeType<StringConstructor, "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger", unknown> & {}) | (() => EpPropMergeType<StringConstructor, "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger", unknown>) | ((new (...args: any[]) => EpPropMergeType<StringConstructor, "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger", unknown> & {}) | (() => EpPropMergeType<StringConstructor, "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger", unknown>))[], unknown, unknown>>;
|
|
62
90
|
readonly required: false;
|
|
63
91
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
64
92
|
__epPropKey: true;
|
|
65
93
|
};
|
|
66
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) =>
|
|
67
|
-
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
94
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => Placement & {}) | (() => Placement) | ((new (...args: any[]) => Placement & {}) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
95
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
|
|
68
96
|
readonly id: StringConstructor;
|
|
69
97
|
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
70
98
|
readonly splitButton: BooleanConstructor;
|
|
@@ -72,8 +100,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
72
100
|
readonly loop: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
73
101
|
readonly showTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
|
74
102
|
readonly hideTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
|
75
|
-
readonly tabindex: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
|
76
|
-
readonly maxHeight: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
103
|
+
readonly tabindex: EpPropFinalized<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
|
104
|
+
readonly maxHeight: EpPropFinalized<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
77
105
|
readonly popperClass: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
78
106
|
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
79
107
|
readonly role: EpPropFinalized<StringConstructor, unknown, unknown, "menu", boolean>;
|
|
@@ -100,7 +128,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
100
128
|
type: PropType<BaseType>;
|
|
101
129
|
};
|
|
102
130
|
background: {
|
|
103
|
-
type: PropType<"
|
|
131
|
+
type: PropType<"always" | "hover" | "none">;
|
|
104
132
|
default: string;
|
|
105
133
|
};
|
|
106
134
|
circle: {
|
|
@@ -123,7 +151,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
123
151
|
type: BooleanConstructor;
|
|
124
152
|
};
|
|
125
153
|
align: {
|
|
126
|
-
type: PropType<"
|
|
154
|
+
type: PropType<"left" | "center" | "right">;
|
|
127
155
|
};
|
|
128
156
|
}>> & {
|
|
129
157
|
onActionClick?: ((props: Readonly<Partial< ExtractPropTypes<{
|
|
@@ -154,7 +182,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
154
182
|
};
|
|
155
183
|
dropdown: {
|
|
156
184
|
type: PropType<Partial< ExtractPropTypes<{
|
|
157
|
-
readonly trigger: EpPropFinalized<(new (...args: any[]) =>
|
|
185
|
+
readonly trigger: EpPropFinalized<(new (...args: any[]) => Arrayable<TooltipTriggerType> & {}) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => Arrayable<TooltipTriggerType> & {}) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
|
158
186
|
readonly effect: {
|
|
159
187
|
readonly default: "light";
|
|
160
188
|
readonly type: PropType<string>;
|
|
@@ -163,13 +191,13 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
163
191
|
readonly __epPropKey: true;
|
|
164
192
|
};
|
|
165
193
|
readonly type: {
|
|
166
|
-
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "
|
|
194
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => EpPropMergeType<StringConstructor, "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger", unknown> & {}) | (() => EpPropMergeType<StringConstructor, "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger", unknown>) | ((new (...args: any[]) => EpPropMergeType<StringConstructor, "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger", unknown> & {}) | (() => EpPropMergeType<StringConstructor, "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger", unknown>))[], unknown, unknown>>;
|
|
167
195
|
readonly required: false;
|
|
168
196
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
169
197
|
__epPropKey: true;
|
|
170
198
|
};
|
|
171
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) =>
|
|
172
|
-
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
199
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => Placement & {}) | (() => Placement) | ((new (...args: any[]) => Placement & {}) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
200
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
|
|
173
201
|
readonly id: StringConstructor;
|
|
174
202
|
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
175
203
|
readonly splitButton: BooleanConstructor;
|
|
@@ -177,8 +205,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
177
205
|
readonly loop: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
178
206
|
readonly showTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
|
179
207
|
readonly hideTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
|
180
|
-
readonly tabindex: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
|
181
|
-
readonly maxHeight: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
208
|
+
readonly tabindex: EpPropFinalized<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
|
209
|
+
readonly maxHeight: EpPropFinalized<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
182
210
|
readonly popperClass: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
183
211
|
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
184
212
|
readonly role: EpPropFinalized<StringConstructor, unknown, unknown, "menu", boolean>;
|
|
@@ -205,7 +233,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
205
233
|
type: PropType<BaseType>;
|
|
206
234
|
};
|
|
207
235
|
background: {
|
|
208
|
-
type: PropType<"
|
|
236
|
+
type: PropType<"always" | "hover" | "none">;
|
|
209
237
|
default: string;
|
|
210
238
|
};
|
|
211
239
|
circle: {
|
|
@@ -220,210 +248,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
220
248
|
items: TabsItem[];
|
|
221
249
|
fit: boolean;
|
|
222
250
|
border: boolean;
|
|
223
|
-
}, {}
|
|
224
|
-
|
|
225
|
-
label: string;
|
|
226
|
-
name?: string | number | undefined;
|
|
227
|
-
icon?: IconParam | undefined;
|
|
228
|
-
value?: string | number | undefined;
|
|
229
|
-
data?: any;
|
|
230
|
-
disabled?: boolean | undefined;
|
|
231
|
-
closable?: boolean | undefined;
|
|
232
|
-
lazy?: boolean | undefined;
|
|
233
|
-
actions?: Readonly<Partial< ExtractPropTypes<{
|
|
234
|
-
name: {
|
|
235
|
-
type: StringConstructor;
|
|
236
|
-
};
|
|
237
|
-
label: {
|
|
238
|
-
type: StringConstructor;
|
|
239
|
-
};
|
|
240
|
-
value: {
|
|
241
|
-
type: PropType<unknown>;
|
|
242
|
-
};
|
|
243
|
-
icon: {
|
|
244
|
-
type: PropType<IconParam>;
|
|
245
|
-
};
|
|
246
|
-
mode: {
|
|
247
|
-
type: PropType<ActionMode>;
|
|
248
|
-
default: string;
|
|
249
|
-
};
|
|
250
|
-
menus: {
|
|
251
|
-
type: PropType<ActionMenuItem[]>;
|
|
252
|
-
};
|
|
253
|
-
tooltip: {
|
|
254
|
-
type: PropType<string | Partial< ElTooltipProps>>;
|
|
255
|
-
};
|
|
256
|
-
badge: {
|
|
257
|
-
type: PropType<string | number | Partial< BadgeProps>>;
|
|
258
|
-
};
|
|
259
|
-
dropdown: {
|
|
260
|
-
type: PropType<Partial< ExtractPropTypes<{
|
|
261
|
-
readonly trigger: EpPropFinalized<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
|
262
|
-
readonly effect: {
|
|
263
|
-
readonly default: "light";
|
|
264
|
-
readonly type: PropType<string>;
|
|
265
|
-
readonly required: false;
|
|
266
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
267
|
-
readonly __epPropKey: true;
|
|
268
|
-
};
|
|
269
|
-
readonly type: {
|
|
270
|
-
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
271
|
-
readonly required: false;
|
|
272
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
273
|
-
__epPropKey: true;
|
|
274
|
-
};
|
|
275
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
276
|
-
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
277
|
-
readonly id: StringConstructor;
|
|
278
|
-
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
279
|
-
readonly splitButton: BooleanConstructor;
|
|
280
|
-
readonly hideOnClick: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
281
|
-
readonly loop: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
282
|
-
readonly showTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
|
283
|
-
readonly hideTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
|
284
|
-
readonly tabindex: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
|
285
|
-
readonly maxHeight: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
286
|
-
readonly popperClass: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
287
|
-
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
288
|
-
readonly role: EpPropFinalized<StringConstructor, unknown, unknown, "menu", boolean>;
|
|
289
|
-
readonly buttonProps: {
|
|
290
|
-
readonly type: PropType<ButtonProps>;
|
|
291
|
-
readonly required: false;
|
|
292
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
293
|
-
__epPropKey: true;
|
|
294
|
-
};
|
|
295
|
-
readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
296
|
-
}>>>;
|
|
297
|
-
};
|
|
298
|
-
button: {
|
|
299
|
-
type: PropType<Partial< ButtonProps>>;
|
|
300
|
-
};
|
|
301
|
-
disabled: {
|
|
302
|
-
type: PropType<boolean | (() => boolean)>;
|
|
303
|
-
};
|
|
304
|
-
size: {
|
|
305
|
-
type: PropType<BaseSize>;
|
|
306
|
-
default: string;
|
|
307
|
-
};
|
|
308
|
-
type: {
|
|
309
|
-
type: PropType<BaseType>;
|
|
310
|
-
};
|
|
311
|
-
background: {
|
|
312
|
-
type: PropType<"hover" | "always" | "none">;
|
|
313
|
-
default: string;
|
|
314
|
-
};
|
|
315
|
-
circle: {
|
|
316
|
-
type: BooleanConstructor;
|
|
317
|
-
};
|
|
318
|
-
draggable: {
|
|
319
|
-
type: BooleanConstructor;
|
|
320
|
-
};
|
|
321
|
-
}>>>[] | undefined;
|
|
322
|
-
component?: any;
|
|
323
|
-
props?: Record<string, any> | undefined;
|
|
324
|
-
}): any;
|
|
325
|
-
default?(_: {
|
|
326
|
-
label: string;
|
|
327
|
-
name?: string | number | undefined;
|
|
328
|
-
icon?: IconParam | undefined;
|
|
329
|
-
value?: string | number | undefined;
|
|
330
|
-
data?: any;
|
|
331
|
-
disabled?: boolean | undefined;
|
|
332
|
-
closable?: boolean | undefined;
|
|
333
|
-
lazy?: boolean | undefined;
|
|
334
|
-
actions?: Readonly<Partial< ExtractPropTypes<{
|
|
335
|
-
name: {
|
|
336
|
-
type: StringConstructor;
|
|
337
|
-
};
|
|
338
|
-
label: {
|
|
339
|
-
type: StringConstructor;
|
|
340
|
-
};
|
|
341
|
-
value: {
|
|
342
|
-
type: PropType<unknown>;
|
|
343
|
-
};
|
|
344
|
-
icon: {
|
|
345
|
-
type: PropType<IconParam>;
|
|
346
|
-
};
|
|
347
|
-
mode: {
|
|
348
|
-
type: PropType<ActionMode>;
|
|
349
|
-
default: string;
|
|
350
|
-
};
|
|
351
|
-
menus: {
|
|
352
|
-
type: PropType<ActionMenuItem[]>;
|
|
353
|
-
};
|
|
354
|
-
tooltip: {
|
|
355
|
-
type: PropType<string | Partial< ElTooltipProps>>;
|
|
356
|
-
};
|
|
357
|
-
badge: {
|
|
358
|
-
type: PropType<string | number | Partial< BadgeProps>>;
|
|
359
|
-
};
|
|
360
|
-
dropdown: {
|
|
361
|
-
type: PropType<Partial< ExtractPropTypes<{
|
|
362
|
-
readonly trigger: EpPropFinalized<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
|
363
|
-
readonly effect: {
|
|
364
|
-
readonly default: "light";
|
|
365
|
-
readonly type: PropType<string>;
|
|
366
|
-
readonly required: false;
|
|
367
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
368
|
-
readonly __epPropKey: true;
|
|
369
|
-
};
|
|
370
|
-
readonly type: {
|
|
371
|
-
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
372
|
-
readonly required: false;
|
|
373
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
374
|
-
__epPropKey: true;
|
|
375
|
-
};
|
|
376
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
377
|
-
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
378
|
-
readonly id: StringConstructor;
|
|
379
|
-
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
380
|
-
readonly splitButton: BooleanConstructor;
|
|
381
|
-
readonly hideOnClick: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
382
|
-
readonly loop: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
383
|
-
readonly showTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
|
384
|
-
readonly hideTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
|
385
|
-
readonly tabindex: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
|
386
|
-
readonly maxHeight: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
387
|
-
readonly popperClass: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
388
|
-
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
389
|
-
readonly role: EpPropFinalized<StringConstructor, unknown, unknown, "menu", boolean>;
|
|
390
|
-
readonly buttonProps: {
|
|
391
|
-
readonly type: PropType<ButtonProps>;
|
|
392
|
-
readonly required: false;
|
|
393
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
394
|
-
__epPropKey: true;
|
|
395
|
-
};
|
|
396
|
-
readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
397
|
-
}>>>;
|
|
398
|
-
};
|
|
399
|
-
button: {
|
|
400
|
-
type: PropType<Partial< ButtonProps>>;
|
|
401
|
-
};
|
|
402
|
-
disabled: {
|
|
403
|
-
type: PropType<boolean | (() => boolean)>;
|
|
404
|
-
};
|
|
405
|
-
size: {
|
|
406
|
-
type: PropType<BaseSize>;
|
|
407
|
-
default: string;
|
|
408
|
-
};
|
|
409
|
-
type: {
|
|
410
|
-
type: PropType<BaseType>;
|
|
411
|
-
};
|
|
412
|
-
background: {
|
|
413
|
-
type: PropType<"hover" | "always" | "none">;
|
|
414
|
-
default: string;
|
|
415
|
-
};
|
|
416
|
-
circle: {
|
|
417
|
-
type: BooleanConstructor;
|
|
418
|
-
};
|
|
419
|
-
draggable: {
|
|
420
|
-
type: BooleanConstructor;
|
|
421
|
-
};
|
|
422
|
-
}>>>[] | undefined;
|
|
423
|
-
component?: any;
|
|
424
|
-
props?: Record<string, any> | undefined;
|
|
425
|
-
}): any;
|
|
426
|
-
}>;
|
|
251
|
+
}, {}>;
|
|
252
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
427
253
|
export default _default;
|
|
428
254
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
429
255
|
new (): {
|
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
import { DefineComponent, Ref, ComponentOptionsMixin, ExtractPropTypes, PublicProps } from 'vue';
|
|
2
|
-
declare
|
|
2
|
+
declare function __VLS_template(): Partial<Record<string, (_: {}) => any>> & {
|
|
3
|
+
default?(_: {
|
|
4
|
+
props: {
|
|
5
|
+
readonly booleanProp: boolean;
|
|
6
|
+
readonly modelValue?: string | undefined;
|
|
7
|
+
readonly stringProp?: string | undefined;
|
|
8
|
+
readonly numberProp?: number | undefined;
|
|
9
|
+
readonly selectProp?: string | undefined;
|
|
10
|
+
readonly objectProp?: Record<string, any> | undefined;
|
|
11
|
+
readonly arrayProp?: unknown[] | undefined;
|
|
12
|
+
readonly iconProp?: string | undefined;
|
|
13
|
+
readonly colorProp?: string | undefined;
|
|
14
|
+
readonly syncProp?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
data: any;
|
|
17
|
+
}): any;
|
|
18
|
+
extra?(_: {
|
|
19
|
+
props: {
|
|
20
|
+
readonly booleanProp: boolean;
|
|
21
|
+
readonly modelValue?: string | undefined;
|
|
22
|
+
readonly stringProp?: string | undefined;
|
|
23
|
+
readonly numberProp?: number | undefined;
|
|
24
|
+
readonly selectProp?: string | undefined;
|
|
25
|
+
readonly objectProp?: Record<string, any> | undefined;
|
|
26
|
+
readonly arrayProp?: unknown[] | undefined;
|
|
27
|
+
readonly iconProp?: string | undefined;
|
|
28
|
+
readonly colorProp?: string | undefined;
|
|
29
|
+
readonly syncProp?: string | undefined;
|
|
30
|
+
};
|
|
31
|
+
data: any;
|
|
32
|
+
}): any;
|
|
33
|
+
};
|
|
34
|
+
declare const __VLS_component: DefineComponent<{
|
|
3
35
|
stringProp: {
|
|
4
36
|
type: StringConstructor;
|
|
5
37
|
};
|
|
@@ -37,6 +69,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
37
69
|
change: (params: any) => void;
|
|
38
70
|
$vtjDynamicSlots: () => string[];
|
|
39
71
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
72
|
+
change: (data: any) => void;
|
|
40
73
|
click: (props: Readonly<Partial< ExtractPropTypes<{
|
|
41
74
|
stringProp: {
|
|
42
75
|
type: StringConstructor;
|
|
@@ -101,7 +134,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
101
134
|
type: StringConstructor;
|
|
102
135
|
};
|
|
103
136
|
}>>>) => void;
|
|
104
|
-
change: (data: any) => void;
|
|
105
137
|
"update:modelValue": (value?: string | undefined) => void;
|
|
106
138
|
"update:syncProp": (value?: string | undefined) => void;
|
|
107
139
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
@@ -205,38 +237,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
205
237
|
"onUpdate:syncProp"?: ((value?: string | undefined) => any) | undefined;
|
|
206
238
|
}, {
|
|
207
239
|
booleanProp: boolean;
|
|
208
|
-
}, {}
|
|
209
|
-
|
|
210
|
-
props: {
|
|
211
|
-
readonly booleanProp: boolean;
|
|
212
|
-
readonly modelValue?: string | undefined;
|
|
213
|
-
readonly stringProp?: string | undefined;
|
|
214
|
-
readonly numberProp?: number | undefined;
|
|
215
|
-
readonly selectProp?: string | undefined;
|
|
216
|
-
readonly objectProp?: Record<string, any> | undefined;
|
|
217
|
-
readonly arrayProp?: unknown[] | undefined;
|
|
218
|
-
readonly iconProp?: string | undefined;
|
|
219
|
-
readonly colorProp?: string | undefined;
|
|
220
|
-
readonly syncProp?: string | undefined;
|
|
221
|
-
};
|
|
222
|
-
data: any;
|
|
223
|
-
}): any;
|
|
224
|
-
extra?(_: {
|
|
225
|
-
props: {
|
|
226
|
-
readonly booleanProp: boolean;
|
|
227
|
-
readonly modelValue?: string | undefined;
|
|
228
|
-
readonly stringProp?: string | undefined;
|
|
229
|
-
readonly numberProp?: number | undefined;
|
|
230
|
-
readonly selectProp?: string | undefined;
|
|
231
|
-
readonly objectProp?: Record<string, any> | undefined;
|
|
232
|
-
readonly arrayProp?: unknown[] | undefined;
|
|
233
|
-
readonly iconProp?: string | undefined;
|
|
234
|
-
readonly colorProp?: string | undefined;
|
|
235
|
-
readonly syncProp?: string | undefined;
|
|
236
|
-
};
|
|
237
|
-
data: any;
|
|
238
|
-
}): any;
|
|
239
|
-
}>;
|
|
240
|
+
}, {}>;
|
|
241
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
240
242
|
export default _default;
|
|
241
243
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
242
244
|
new (): {
|
package/types/install.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
import { InstallerOptions } from './index';
|
|
3
|
-
declare const install: (app: App
|
|
3
|
+
declare const install: (app: App, options?: InstallerOptions) => void;
|
|
4
4
|
export { install };
|
|
5
5
|
export * from './index';
|
package/types/utils/util.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare function getSizeValue(value: string | number): string;
|
|
2
|
-
export declare function parseSize(size: string | number | undefined, max: number): number;
|
|
2
|
+
export declare function parseSize(size: (string | number) | undefined, max: number): number;
|
|
3
3
|
export declare function toObjectProps<T extends Record<string, any>>(value?: boolean | T, defaultValue?: T): T;
|
package/types/version.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
3
3
|
* @name @vtj/ui
|
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
5
|
-
* @version 0.8.
|
|
5
|
+
* @version 0.8.93
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
7
|
*/
|
|
8
|
-
export declare const version = "0.8.
|
|
8
|
+
export declare const version = "0.8.93";
|