@vtj/ui 0.7.19 → 0.7.21
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.cjs +2 -2
- package/dist/index.iife.js +2 -2
- package/dist/index.mjs +8 -6
- package/dist/index.umd.js +2 -2
- package/package.json +7 -7
- package/types/components/action/Action.d.ts +6 -6
- package/types/components/action/Trigger.d.ts +4 -4
- package/types/components/action/hooks.d.ts +3 -3
- package/types/components/action/types.d.ts +3 -3
- package/types/components/action-bar/ActionBar.d.ts +10 -10
- package/types/components/action-bar/types.d.ts +3 -3
- package/types/components/chart/Chart.d.ts +1 -1
- package/types/components/data-item/DataItem.d.ts +6 -6
- package/types/components/mask/Mask.d.ts +6 -6
- package/types/components/mask/hooks/useMenus.d.ts +4 -3
- package/types/components/tabs/Tabs.d.ts +6 -6
- package/types/version.d.ts +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
2
|
-
import { EpPropFinalized
|
|
3
|
-
import { ElTooltipProps, BadgeProps, TooltipTriggerType, ButtonProps } from 'element-plus';
|
|
2
|
+
import { EpPropFinalized } from 'element-plus/es/utils/index.mjs';
|
|
3
|
+
import { ElTooltipProps, BadgeProps, TooltipTriggerType, ButtonType, ButtonProps } from 'element-plus';
|
|
4
4
|
import { ActionMode, ActionMenuItem } from './types';
|
|
5
5
|
import { IconParam, BaseSize, BaseType } from '..';
|
|
6
6
|
import { DefineComponent, PropType, ExtractPropTypes, ComponentOptionsMixin, PublicProps } from 'vue';
|
|
@@ -41,7 +41,7 @@ declare const _default: DefineComponent<{
|
|
|
41
41
|
readonly __epPropKey: true;
|
|
42
42
|
};
|
|
43
43
|
readonly type: {
|
|
44
|
-
readonly type: PropType<
|
|
44
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
45
45
|
readonly required: false;
|
|
46
46
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
47
47
|
__epPropKey: true;
|
|
@@ -128,7 +128,7 @@ declare const _default: DefineComponent<{
|
|
|
128
128
|
readonly __epPropKey: true;
|
|
129
129
|
};
|
|
130
130
|
readonly type: {
|
|
131
|
-
readonly type: PropType<
|
|
131
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
132
132
|
readonly required: false;
|
|
133
133
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
134
134
|
__epPropKey: true;
|
|
@@ -216,7 +216,7 @@ declare const _default: DefineComponent<{
|
|
|
216
216
|
readonly __epPropKey: true;
|
|
217
217
|
};
|
|
218
218
|
readonly type: {
|
|
219
|
-
readonly type: PropType<
|
|
219
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
220
220
|
readonly required: false;
|
|
221
221
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
222
222
|
__epPropKey: true;
|
|
@@ -303,7 +303,7 @@ declare const _default: DefineComponent<{
|
|
|
303
303
|
readonly __epPropKey: true;
|
|
304
304
|
};
|
|
305
305
|
readonly type: {
|
|
306
|
-
readonly type: PropType<
|
|
306
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
307
307
|
readonly required: false;
|
|
308
308
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
309
309
|
__epPropKey: true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
2
|
-
import { EpPropFinalized
|
|
3
|
-
import { ElTooltipProps, BadgeProps, TooltipTriggerType, ButtonProps } from 'element-plus';
|
|
2
|
+
import { EpPropFinalized } from 'element-plus/es/utils/index.mjs';
|
|
3
|
+
import { ElTooltipProps, BadgeProps, TooltipTriggerType, ButtonType, ButtonProps } from 'element-plus';
|
|
4
4
|
import { ActionMode, ActionMenuItem } from './types';
|
|
5
5
|
import { IconParam, BaseSize, BaseType } from '..';
|
|
6
6
|
import { DefineComponent, PropType, ExtractPropTypes, ComponentOptionsMixin, PublicProps } from 'vue';
|
|
@@ -41,7 +41,7 @@ declare const _default: DefineComponent<{
|
|
|
41
41
|
readonly __epPropKey: true;
|
|
42
42
|
};
|
|
43
43
|
readonly type: {
|
|
44
|
-
readonly type: PropType<
|
|
44
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
45
45
|
readonly required: false;
|
|
46
46
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
47
47
|
__epPropKey: true;
|
|
@@ -129,7 +129,7 @@ declare const _default: DefineComponent<{
|
|
|
129
129
|
readonly __epPropKey: true;
|
|
130
130
|
};
|
|
131
131
|
readonly type: {
|
|
132
|
-
readonly type: PropType<
|
|
132
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
133
133
|
readonly required: false;
|
|
134
134
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
135
135
|
__epPropKey: true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
2
|
-
import { EpPropFinalized
|
|
2
|
+
import { EpPropFinalized } from 'element-plus/es/utils/index.mjs';
|
|
3
3
|
import { ComputedRef, ExtractPropTypes, PropType } from 'vue';
|
|
4
|
-
import { TooltipTriggerType, ButtonProps, ElTooltipProps, BadgeProps } from 'element-plus';
|
|
4
|
+
import { TooltipTriggerType, ButtonType, ButtonProps, ElTooltipProps, BadgeProps } from 'element-plus';
|
|
5
5
|
import type { ActionProps } from './types';
|
|
6
6
|
export declare function useTooltip(props: ActionProps): ComputedRef<Partial<ElTooltipProps> | undefined>;
|
|
7
7
|
export declare function useBadge(props: ActionProps): ComputedRef<Partial<BadgeProps> | undefined>;
|
|
@@ -15,7 +15,7 @@ export declare function useDropdown(props: ActionProps): ComputedRef<Partial<Ext
|
|
|
15
15
|
readonly __epPropKey: true;
|
|
16
16
|
};
|
|
17
17
|
readonly type: {
|
|
18
|
-
readonly type: PropType<
|
|
18
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
19
19
|
readonly required: false;
|
|
20
20
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
21
21
|
__epPropKey: true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
2
|
-
import { EpPropFinalized
|
|
2
|
+
import { EpPropFinalized } from 'element-plus/es/utils/index.mjs';
|
|
3
3
|
import type { PropType, ExtractPropTypes } from 'vue';
|
|
4
|
-
import { TooltipTriggerType, type ElTooltipProps, type BadgeProps, type dropdownProps, type ButtonProps } from 'element-plus';
|
|
4
|
+
import { TooltipTriggerType, ButtonType, type ElTooltipProps, type BadgeProps, type dropdownProps, type ButtonProps } from 'element-plus';
|
|
5
5
|
import type { ComponentPropsType, BaseSize, BaseType } from '../shared';
|
|
6
6
|
import type { IconParam } from '../icon';
|
|
7
7
|
export type ActionMode = 'button' | 'text' | 'icon';
|
|
@@ -78,7 +78,7 @@ export declare const actionProps: {
|
|
|
78
78
|
readonly __epPropKey: true;
|
|
79
79
|
};
|
|
80
80
|
readonly type: {
|
|
81
|
-
readonly type: PropType<
|
|
81
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
82
82
|
readonly required: false;
|
|
83
83
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
84
84
|
__epPropKey: true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
2
|
-
import { EpPropFinalized
|
|
3
|
-
import { ElTooltipProps, BadgeProps, TooltipTriggerType, ButtonProps } from 'element-plus';
|
|
2
|
+
import { EpPropFinalized } from 'element-plus/es/utils/index.mjs';
|
|
3
|
+
import { ElTooltipProps, BadgeProps, TooltipTriggerType, ButtonType, ButtonProps } from 'element-plus';
|
|
4
4
|
import { BaseSize, BaseType } from '../shared';
|
|
5
5
|
import { DefineComponent, PropType, ExtractPropTypes, ComponentOptionsMixin, PublicProps } from 'vue';
|
|
6
6
|
import { ActionMode, IconParam, type ActionMenuItem } from '../';
|
|
@@ -66,7 +66,7 @@ declare const _default: DefineComponent<{
|
|
|
66
66
|
readonly __epPropKey: true;
|
|
67
67
|
};
|
|
68
68
|
readonly type: {
|
|
69
|
-
readonly type: PropType<
|
|
69
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
70
70
|
readonly required: false;
|
|
71
71
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
72
72
|
__epPropKey: true;
|
|
@@ -134,7 +134,7 @@ declare const _default: DefineComponent<{
|
|
|
134
134
|
readonly __epPropKey: true;
|
|
135
135
|
};
|
|
136
136
|
readonly type: {
|
|
137
|
-
readonly type: PropType<
|
|
137
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
138
138
|
readonly required: false;
|
|
139
139
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
140
140
|
__epPropKey: true;
|
|
@@ -203,7 +203,7 @@ declare const _default: DefineComponent<{
|
|
|
203
203
|
readonly __epPropKey: true;
|
|
204
204
|
};
|
|
205
205
|
readonly type: {
|
|
206
|
-
readonly type: PropType<
|
|
206
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
207
207
|
readonly required: false;
|
|
208
208
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
209
209
|
__epPropKey: true;
|
|
@@ -290,7 +290,7 @@ declare const _default: DefineComponent<{
|
|
|
290
290
|
readonly __epPropKey: true;
|
|
291
291
|
};
|
|
292
292
|
readonly type: {
|
|
293
|
-
readonly type: PropType<
|
|
293
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
294
294
|
readonly required: false;
|
|
295
295
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
296
296
|
__epPropKey: true;
|
|
@@ -401,7 +401,7 @@ declare const _default: DefineComponent<{
|
|
|
401
401
|
readonly __epPropKey: true;
|
|
402
402
|
};
|
|
403
403
|
readonly type: {
|
|
404
|
-
readonly type: PropType<
|
|
404
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
405
405
|
readonly required: false;
|
|
406
406
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
407
407
|
__epPropKey: true;
|
|
@@ -469,7 +469,7 @@ declare const _default: DefineComponent<{
|
|
|
469
469
|
readonly __epPropKey: true;
|
|
470
470
|
};
|
|
471
471
|
readonly type: {
|
|
472
|
-
readonly type: PropType<
|
|
472
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
473
473
|
readonly required: false;
|
|
474
474
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
475
475
|
__epPropKey: true;
|
|
@@ -538,7 +538,7 @@ declare const _default: DefineComponent<{
|
|
|
538
538
|
readonly __epPropKey: true;
|
|
539
539
|
};
|
|
540
540
|
readonly type: {
|
|
541
|
-
readonly type: PropType<
|
|
541
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
542
542
|
readonly required: false;
|
|
543
543
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
544
544
|
__epPropKey: true;
|
|
@@ -625,7 +625,7 @@ declare const _default: DefineComponent<{
|
|
|
625
625
|
readonly __epPropKey: true;
|
|
626
626
|
};
|
|
627
627
|
readonly type: {
|
|
628
|
-
readonly type: PropType<
|
|
628
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
629
629
|
readonly required: false;
|
|
630
630
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
631
631
|
__epPropKey: true;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
2
|
-
import { EpPropFinalized
|
|
2
|
+
import { EpPropFinalized } from 'element-plus/es/utils/index.mjs';
|
|
3
3
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
4
4
|
import type { ComponentPropsType, BaseSize, BaseType } from '../shared';
|
|
5
5
|
import type { ActionMode, ActionProps, ActionMenuItem, ContainerProps } from '../';
|
|
6
|
-
import { TooltipTriggerType, ElTooltipProps, BadgeProps, ButtonProps } from 'element-plus';
|
|
6
|
+
import { TooltipTriggerType, ButtonType, ElTooltipProps, BadgeProps, ButtonProps } from 'element-plus';
|
|
7
7
|
export type ActionBarItem = ActionProps & {
|
|
8
8
|
[key: string]: any;
|
|
9
9
|
};
|
|
@@ -81,7 +81,7 @@ export declare const actionBarProps: {
|
|
|
81
81
|
readonly __epPropKey: true;
|
|
82
82
|
};
|
|
83
83
|
readonly type: {
|
|
84
|
-
readonly type: PropType<
|
|
84
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
85
85
|
readonly required: false;
|
|
86
86
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
87
87
|
__epPropKey: true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EChartsOption, ECharts } from 'echarts
|
|
1
|
+
import { EChartsOption, ECharts } from 'echarts';
|
|
2
2
|
import { DefineComponent, PropType, Ref, ShallowRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
3
3
|
declare const _default: DefineComponent<{
|
|
4
4
|
option: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseSize, BaseType } from '../shared';
|
|
2
2
|
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
3
|
-
import { EpPropFinalized
|
|
4
|
-
import { ElTooltipProps, BadgeProps, TooltipTriggerType, ButtonProps } from 'element-plus';
|
|
3
|
+
import { EpPropFinalized } from 'element-plus/es/utils/index.mjs';
|
|
4
|
+
import { ElTooltipProps, BadgeProps, TooltipTriggerType, ButtonType, ButtonProps } from 'element-plus';
|
|
5
5
|
import { DefineComponent, PropType, ComponentOptionsMixin, ExtractPropTypes, PublicProps } from 'vue';
|
|
6
6
|
import { IconParam, ActionBarItems, ActionMode, type ActionBarProps, type ActionMenuItem } from '../';
|
|
7
7
|
declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
@@ -80,7 +80,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
80
80
|
readonly __epPropKey: true;
|
|
81
81
|
};
|
|
82
82
|
readonly type: {
|
|
83
|
-
readonly type: PropType<
|
|
83
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
84
84
|
readonly required: false;
|
|
85
85
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
86
86
|
__epPropKey: true;
|
|
@@ -167,7 +167,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
167
167
|
readonly __epPropKey: true;
|
|
168
168
|
};
|
|
169
169
|
readonly type: {
|
|
170
|
-
readonly type: PropType<
|
|
170
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
171
171
|
readonly required: false;
|
|
172
172
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
173
173
|
__epPropKey: true;
|
|
@@ -295,7 +295,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
295
295
|
readonly __epPropKey: true;
|
|
296
296
|
};
|
|
297
297
|
readonly type: {
|
|
298
|
-
readonly type: PropType<
|
|
298
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
299
299
|
readonly required: false;
|
|
300
300
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
301
301
|
__epPropKey: true;
|
|
@@ -382,7 +382,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
382
382
|
readonly __epPropKey: true;
|
|
383
383
|
};
|
|
384
384
|
readonly type: {
|
|
385
|
-
readonly type: PropType<
|
|
385
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
386
386
|
readonly required: false;
|
|
387
387
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
388
388
|
__epPropKey: true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseSize, BaseType } from '../shared';
|
|
2
2
|
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
3
|
-
import { EpPropFinalized
|
|
4
|
-
import { ElTooltipProps, BadgeProps, TooltipTriggerType, ButtonProps } from 'element-plus';
|
|
3
|
+
import { EpPropFinalized } from 'element-plus/es/utils/index.mjs';
|
|
4
|
+
import { ElTooltipProps, BadgeProps, TooltipTriggerType, ButtonType, ButtonProps } from 'element-plus';
|
|
5
5
|
import { DefineComponent, PropType, ComponentOptionsMixin, ExtractPropTypes, PublicProps } from 'vue';
|
|
6
6
|
import { MenuDataItem, ActionBarItems, IconParam, ActionMode, type ActionMenuItem } from '../';
|
|
7
7
|
import { type MaskTab } from './types';
|
|
@@ -90,7 +90,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
90
90
|
readonly __epPropKey: true;
|
|
91
91
|
};
|
|
92
92
|
readonly type: {
|
|
93
|
-
readonly type: PropType<
|
|
93
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
94
94
|
readonly required: false;
|
|
95
95
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
96
96
|
__epPropKey: true;
|
|
@@ -177,7 +177,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
177
177
|
readonly __epPropKey: true;
|
|
178
178
|
};
|
|
179
179
|
readonly type: {
|
|
180
|
-
readonly type: PropType<
|
|
180
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
181
181
|
readonly required: false;
|
|
182
182
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
183
183
|
__epPropKey: true;
|
|
@@ -312,7 +312,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
312
312
|
readonly __epPropKey: true;
|
|
313
313
|
};
|
|
314
314
|
readonly type: {
|
|
315
|
-
readonly type: PropType<
|
|
315
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
316
316
|
readonly required: false;
|
|
317
317
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
318
318
|
__epPropKey: true;
|
|
@@ -399,7 +399,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
399
399
|
readonly __epPropKey: true;
|
|
400
400
|
};
|
|
401
401
|
readonly type: {
|
|
402
|
-
readonly type: PropType<
|
|
402
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
403
403
|
readonly required: false;
|
|
404
404
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
405
405
|
__epPropKey: true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ButtonType } from 'element-plus';
|
|
2
2
|
import { ShallowRef, ComputedRef, Ref, DefineComponent } from 'vue';
|
|
3
3
|
import type { MaskProps, MaskEmitsFn } from '../types';
|
|
4
4
|
import { type MenuDataItem } from '../../';
|
|
@@ -16,11 +16,12 @@ export declare function useMenus(props: MaskProps, emit: MaskEmitsFn): {
|
|
|
16
16
|
type?: "route" | "dialog" | "window" | undefined;
|
|
17
17
|
url?: string | undefined;
|
|
18
18
|
badge?: string | number | {
|
|
19
|
-
readonly value?:
|
|
19
|
+
readonly value?: ButtonType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
|
20
20
|
readonly max?: number | undefined;
|
|
21
21
|
readonly isDot?: boolean | undefined;
|
|
22
22
|
readonly hidden?: boolean | undefined;
|
|
23
|
-
readonly type?:
|
|
23
|
+
readonly type?: ButtonType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown> | undefined;
|
|
24
|
+
readonly showZero?: ButtonType<BooleanConstructor, unknown, unknown> | undefined;
|
|
24
25
|
} | undefined;
|
|
25
26
|
} | null>;
|
|
26
27
|
select: (id: string | number | MenuDataItem) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseSize, BaseType } from '../shared';
|
|
2
2
|
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
3
|
-
import { EpPropFinalized
|
|
4
|
-
import { ElTooltipProps, BadgeProps, TooltipTriggerType, ButtonProps } from 'element-plus';
|
|
3
|
+
import { EpPropFinalized } from 'element-plus/es/utils/index.mjs';
|
|
4
|
+
import { ElTooltipProps, BadgeProps, TooltipTriggerType, ButtonType, ButtonProps } from 'element-plus';
|
|
5
5
|
import { DefineComponent, PropType, ComponentOptionsMixin, ExtractPropTypes, PublicProps } from 'vue';
|
|
6
6
|
import { IconParam, ActionMode, type ActionMenuItem } from '../';
|
|
7
7
|
import { type TabsItem } from './types';
|
|
@@ -51,7 +51,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
51
51
|
readonly __epPropKey: true;
|
|
52
52
|
};
|
|
53
53
|
readonly type: {
|
|
54
|
-
readonly type: PropType<
|
|
54
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
55
55
|
readonly required: false;
|
|
56
56
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
57
57
|
__epPropKey: true;
|
|
@@ -148,7 +148,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
148
148
|
readonly __epPropKey: true;
|
|
149
149
|
};
|
|
150
150
|
readonly type: {
|
|
151
|
-
readonly type: PropType<
|
|
151
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
152
152
|
readonly required: false;
|
|
153
153
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
154
154
|
__epPropKey: true;
|
|
@@ -248,7 +248,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
248
248
|
readonly __epPropKey: true;
|
|
249
249
|
};
|
|
250
250
|
readonly type: {
|
|
251
|
-
readonly type: PropType<
|
|
251
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
252
252
|
readonly required: false;
|
|
253
253
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
254
254
|
__epPropKey: true;
|
|
@@ -346,7 +346,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
346
346
|
readonly __epPropKey: true;
|
|
347
347
|
};
|
|
348
348
|
readonly type: {
|
|
349
|
-
readonly type: PropType<
|
|
349
|
+
readonly type: PropType<ButtonType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => ButtonType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
350
350
|
readonly required: false;
|
|
351
351
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
352
352
|
__epPropKey: true;
|
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.7.
|
|
5
|
+
* @version 0.7.21
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
7
|
*/
|
|
8
|
-
export declare const version = "0.7.
|
|
8
|
+
export declare const version = "0.7.21";
|