@vtj/ui 0.6.25 → 0.7.0
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/LICENSE +21 -21
- package/dist/index.cjs +7 -0
- package/dist/index.iife.js +7 -0
- package/dist/index.mjs +4165 -0
- package/dist/index.umd.js +7 -0
- package/dist/style.css +1 -0
- package/package.json +23 -21
- package/types/components/action/Action.d.ts +23 -22
- package/types/components/action/Trigger.d.ts +15 -14
- package/types/components/action/hooks.d.ts +7 -6
- package/types/components/action/types.d.ts +14 -10
- package/types/components/action-bar/ActionBar.d.ts +41 -40
- package/types/components/action-bar/types.d.ts +10 -11
- package/types/components/chart/Chart.d.ts +4 -4
- package/types/components/chart/types.d.ts +3 -3
- package/types/components/chart/useChart.d.ts +5 -5
- package/types/components/container/Container.d.ts +7 -7
- package/types/components/container/types.d.ts +3 -3
- package/types/components/data-item/DataItem.d.ts +23 -22
- package/types/components/data-item/types.d.ts +3 -3
- package/types/components/dialog/Dialog.d.ts +9 -9
- package/types/components/dialog/create.d.ts +2 -2
- package/types/components/dialog/hooks.d.ts +5 -5
- package/types/components/dialog/types.d.ts +4 -4
- package/types/components/dialog-form/DialogForm.d.ts +3 -3
- package/types/components/dialog-form/types.d.ts +3 -3
- package/types/components/field/Field.d.ts +17 -4
- package/types/components/field/editors/CheckboxEditor.d.ts +6 -3
- package/types/components/field/editors/RadioEditor.d.ts +6 -3
- package/types/components/field/editors/SelectEditor.d.ts +6 -3
- package/types/components/field/hooks/useEditor.d.ts +3 -3
- package/types/components/field/types.d.ts +16 -4
- package/types/components/form/Form.d.ts +13 -3
- package/types/components/form/types.d.ts +10 -2
- package/types/components/header/Header.d.ts +2 -2
- package/types/components/header/types.d.ts +4 -3
- package/types/components/icon/Icon.d.ts +2 -2
- package/types/components/index.d.ts +2 -2
- package/types/components/list/List.d.ts +109 -0
- package/types/components/list/index.d.ts +3 -0
- package/types/components/list/types.d.ts +58 -0
- package/types/components/mask/Mask.d.ts +23 -22
- package/types/components/mask/components/Avatar.d.ts +2 -2
- package/types/components/mask/components/Brand.d.ts +5 -2
- package/types/components/mask/components/Content.d.ts +3 -3
- package/types/components/mask/components/Menu.d.ts +6 -3
- package/types/components/mask/components/Sidebar.d.ts +2 -2
- package/types/components/mask/components/SwitchBar.d.ts +5 -2
- package/types/components/mask/components/Tabs.d.ts +4 -4
- package/types/components/mask/components/ThemeSwitch.d.ts +2 -2
- package/types/components/mask/components/Toolbar.d.ts +7 -4
- package/types/components/mask/defineTab.d.ts +1 -1
- package/types/components/mask/hooks/useContent.d.ts +2 -2
- package/types/components/mask/hooks/useHome.d.ts +1 -1
- package/types/components/mask/hooks/useMenus.d.ts +3 -3
- package/types/components/mask/hooks/useSidebar.d.ts +1 -2
- package/types/components/mask/hooks/useTabs.d.ts +4 -4
- package/types/components/mask/types.d.ts +3 -3
- package/types/components/menu/Menu.d.ts +6 -3
- package/types/components/menu/MenuItem.d.ts +3 -3
- package/types/components/menu/types.d.ts +2 -2
- package/types/components/panel/Panel.d.ts +6 -24
- package/types/components/panel/types.d.ts +9 -11
- package/types/components/shared.d.ts +2 -1
- package/types/components/tabs/Tabs.d.ts +3 -3
- package/types/components/tabs/types.d.ts +3 -3
- package/types/components/test/Test.d.ts +244 -0
- package/types/components/test/index.d.ts +3 -0
- package/types/components/test/types.d.ts +41 -0
- package/types/directives/vDraggable.d.ts +2 -2
- package/types/directives/vResizable.d.ts +2 -2
- package/types/hooks/index.d.ts +1 -0
- package/types/hooks/useDisabled.d.ts +1 -1
- package/types/hooks/useIcon.d.ts +3 -3
- package/types/index.d.ts +1 -4
- package/types/install.d.ts +4 -0
- package/types/list.d.ts +1 -1
- package/types/utils/util.d.ts +1 -3
- package/types/version.d.ts +8 -1
- package/cdn/index.js +0 -1
- package/cdn/style.css +0 -1
- package/lib/index.js +0 -3830
- package/lib/style.css +0 -1
- package/types/components/simple-mask/SimpleMask.d.ts +0 -43
- package/types/components/simple-mask/index.d.ts +0 -2
- package/types/components/startup/Startup.d.ts +0 -38
- package/types/components/startup/index.d.ts +0 -2
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
2
|
+
import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils/index.mjs';
|
|
3
|
+
import { ElTooltipProps, BadgeProps, TooltipTriggerType, ButtonProps } from 'element-plus';
|
|
3
4
|
import { ActionMode, ActionMenuItem } from './types';
|
|
4
5
|
import { IconParam, BaseSize, BaseType } from '..';
|
|
5
|
-
import { DefineComponent, PropType, ExtractPropTypes, ComponentOptionsMixin,
|
|
6
|
+
import { DefineComponent, PropType, ExtractPropTypes, ComponentOptionsMixin, PublicProps } from 'vue';
|
|
6
7
|
declare const _default: DefineComponent<{
|
|
7
8
|
name: {
|
|
8
9
|
type: StringConstructor;
|
|
@@ -31,7 +32,7 @@ declare const _default: DefineComponent<{
|
|
|
31
32
|
};
|
|
32
33
|
dropdown: {
|
|
33
34
|
type: PropType<Partial<ExtractPropTypes<{
|
|
34
|
-
readonly trigger: EpPropFinalized<(new (...args: any[]) => "
|
|
35
|
+
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>;
|
|
35
36
|
readonly effect: {
|
|
36
37
|
readonly default: "light";
|
|
37
38
|
readonly type: PropType<string>;
|
|
@@ -45,8 +46,8 @@ declare const _default: DefineComponent<{
|
|
|
45
46
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
46
47
|
__epPropKey: true;
|
|
47
48
|
};
|
|
48
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) =>
|
|
49
|
-
readonly popperOptions: EpPropFinalized<(new (...args: any[]) =>
|
|
49
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
50
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
50
51
|
readonly id: StringConstructor;
|
|
51
52
|
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
52
53
|
readonly splitButton: BooleanConstructor;
|
|
@@ -83,7 +84,7 @@ declare const _default: DefineComponent<{
|
|
|
83
84
|
default: string;
|
|
84
85
|
};
|
|
85
86
|
background: {
|
|
86
|
-
type: PropType<"hover" | "always">;
|
|
87
|
+
type: PropType<"hover" | "always" | "none">;
|
|
87
88
|
default: string;
|
|
88
89
|
};
|
|
89
90
|
circle: {
|
|
@@ -91,7 +92,7 @@ declare const _default: DefineComponent<{
|
|
|
91
92
|
};
|
|
92
93
|
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
93
94
|
click: (...args: any[]) => void;
|
|
94
|
-
}, string,
|
|
95
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
95
96
|
name: {
|
|
96
97
|
type: StringConstructor;
|
|
97
98
|
};
|
|
@@ -119,7 +120,7 @@ declare const _default: DefineComponent<{
|
|
|
119
120
|
};
|
|
120
121
|
dropdown: {
|
|
121
122
|
type: PropType<Partial<ExtractPropTypes<{
|
|
122
|
-
readonly trigger: EpPropFinalized<(new (...args: any[]) => "
|
|
123
|
+
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>;
|
|
123
124
|
readonly effect: {
|
|
124
125
|
readonly default: "light";
|
|
125
126
|
readonly type: PropType<string>;
|
|
@@ -133,8 +134,8 @@ declare const _default: DefineComponent<{
|
|
|
133
134
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
134
135
|
__epPropKey: true;
|
|
135
136
|
};
|
|
136
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) =>
|
|
137
|
-
readonly popperOptions: EpPropFinalized<(new (...args: any[]) =>
|
|
137
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
138
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
138
139
|
readonly id: StringConstructor;
|
|
139
140
|
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
140
141
|
readonly splitButton: BooleanConstructor;
|
|
@@ -171,7 +172,7 @@ declare const _default: DefineComponent<{
|
|
|
171
172
|
default: string;
|
|
172
173
|
};
|
|
173
174
|
background: {
|
|
174
|
-
type: PropType<"hover" | "always">;
|
|
175
|
+
type: PropType<"hover" | "always" | "none">;
|
|
175
176
|
default: string;
|
|
176
177
|
};
|
|
177
178
|
circle: {
|
|
@@ -180,10 +181,10 @@ declare const _default: DefineComponent<{
|
|
|
180
181
|
}>> & {
|
|
181
182
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
182
183
|
}, {
|
|
183
|
-
type: BaseType;
|
|
184
184
|
size: BaseSize;
|
|
185
|
+
type: BaseType;
|
|
186
|
+
background: "hover" | "always" | "none";
|
|
185
187
|
circle: boolean;
|
|
186
|
-
background: "hover" | "always";
|
|
187
188
|
mode: ActionMode;
|
|
188
189
|
}, {}>;
|
|
189
190
|
export default _default;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
2
|
+
import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils/index.mjs';
|
|
2
3
|
import { ComputedRef, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
import { TooltipTriggerType,
|
|
4
|
-
import { ActionProps } from './types';
|
|
4
|
+
import { TooltipTriggerType, ButtonProps, ElTooltipProps, BadgeProps } from 'element-plus';
|
|
5
|
+
import type { ActionProps } from './types';
|
|
5
6
|
export declare function useTooltip(props: ActionProps): ComputedRef<Partial<ElTooltipProps> | undefined>;
|
|
6
7
|
export declare function useBadge(props: ActionProps): ComputedRef<Partial<BadgeProps> | undefined>;
|
|
7
8
|
export declare function useDropdown(props: ActionProps): ComputedRef<Partial<ExtractPropTypes<{
|
|
8
|
-
readonly trigger: EpPropFinalized<(new (...args: any[]) => "
|
|
9
|
+
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>;
|
|
9
10
|
readonly effect: {
|
|
10
11
|
readonly default: "light";
|
|
11
12
|
readonly type: PropType<string>;
|
|
@@ -19,8 +20,8 @@ export declare function useDropdown(props: ActionProps): ComputedRef<Partial<Ext
|
|
|
19
20
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
20
21
|
__epPropKey: true;
|
|
21
22
|
};
|
|
22
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) =>
|
|
23
|
-
readonly popperOptions: EpPropFinalized<(new (...args: any[]) =>
|
|
23
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
24
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
24
25
|
readonly id: StringConstructor;
|
|
25
26
|
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
26
27
|
readonly splitButton: BooleanConstructor;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
2
|
+
import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils/index.mjs';
|
|
3
|
+
import type { PropType, ExtractPropTypes } from 'vue';
|
|
4
|
+
import { TooltipTriggerType, type ElTooltipProps, type BadgeProps, dropdownProps, type ButtonProps } from 'element-plus';
|
|
5
|
+
import type { ComponentPropsType, BaseSize, BaseType } from '../shared';
|
|
6
|
+
import type { IconParam } from '../icon';
|
|
6
7
|
export type ActionMode = 'button' | 'text' | 'icon';
|
|
7
8
|
export interface ActionMenuItem {
|
|
8
9
|
command: string | number | object;
|
|
@@ -10,6 +11,7 @@ export interface ActionMenuItem {
|
|
|
10
11
|
divided?: boolean;
|
|
11
12
|
icon?: IconParam;
|
|
12
13
|
label?: string;
|
|
14
|
+
[index: string]: any;
|
|
13
15
|
}
|
|
14
16
|
export type ActionDropdown = Partial<ExtractPropTypes<typeof dropdownProps>>;
|
|
15
17
|
export declare const actionProps: {
|
|
@@ -67,13 +69,15 @@ export declare const actionProps: {
|
|
|
67
69
|
*/
|
|
68
70
|
dropdown: {
|
|
69
71
|
type: PropType<Partial<ExtractPropTypes<{
|
|
70
|
-
readonly trigger: EpPropFinalized<(new (...args: any[]) => "
|
|
72
|
+
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>;
|
|
71
73
|
readonly effect: {
|
|
72
74
|
readonly default: "light";
|
|
73
75
|
readonly type: PropType<string>;
|
|
74
76
|
readonly required: false;
|
|
75
77
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
76
|
-
readonly __epPropKey: true;
|
|
78
|
+
readonly __epPropKey: true; /**
|
|
79
|
+
* 禁用
|
|
80
|
+
*/
|
|
77
81
|
};
|
|
78
82
|
readonly type: {
|
|
79
83
|
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>>;
|
|
@@ -81,8 +85,8 @@ export declare const actionProps: {
|
|
|
81
85
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
82
86
|
__epPropKey: true;
|
|
83
87
|
};
|
|
84
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) =>
|
|
85
|
-
readonly popperOptions: EpPropFinalized<(new (...args: any[]) =>
|
|
88
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
89
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
86
90
|
readonly id: StringConstructor;
|
|
87
91
|
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
88
92
|
readonly splitButton: BooleanConstructor;
|
|
@@ -134,7 +138,7 @@ export declare const actionProps: {
|
|
|
134
138
|
* icon 背景设置,当 mode为 icon 时有效
|
|
135
139
|
*/
|
|
136
140
|
background: {
|
|
137
|
-
type: PropType<"hover" | "always">;
|
|
141
|
+
type: PropType<"hover" | "always" | "none">;
|
|
138
142
|
default: string;
|
|
139
143
|
};
|
|
140
144
|
/**
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
2
|
+
import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils/index.mjs';
|
|
3
|
+
import { ElTooltipProps, BadgeProps, TooltipTriggerType, ButtonProps } from 'element-plus';
|
|
3
4
|
import { BaseSize, BaseType } from '../shared';
|
|
4
|
-
import { DefineComponent, PropType, ExtractPropTypes, ComponentOptionsMixin,
|
|
5
|
-
import { ActionMode, IconParam, ActionMenuItem } from '../';
|
|
6
|
-
import { ActionBarItems } from './types';
|
|
5
|
+
import { DefineComponent, PropType, ExtractPropTypes, ComponentOptionsMixin, PublicProps } from 'vue';
|
|
6
|
+
import { ActionMode, IconParam, type ActionMenuItem } from '../';
|
|
7
|
+
import { type ActionBarItems } from './types';
|
|
7
8
|
declare const _default: DefineComponent<{
|
|
8
9
|
items: {
|
|
9
10
|
type: PropType<ActionBarItems>;
|
|
@@ -21,7 +22,7 @@ declare const _default: DefineComponent<{
|
|
|
21
22
|
default: string;
|
|
22
23
|
};
|
|
23
24
|
background: {
|
|
24
|
-
type: PropType<"hover" | "always">;
|
|
25
|
+
type: PropType<"hover" | "always" | "none">;
|
|
25
26
|
default: string;
|
|
26
27
|
};
|
|
27
28
|
circle: {
|
|
@@ -56,7 +57,7 @@ declare const _default: DefineComponent<{
|
|
|
56
57
|
};
|
|
57
58
|
dropdown: {
|
|
58
59
|
type: PropType<Partial<ExtractPropTypes<{
|
|
59
|
-
readonly trigger: EpPropFinalized<(new (...args: any[]) => "
|
|
60
|
+
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>;
|
|
60
61
|
readonly effect: {
|
|
61
62
|
readonly default: "light";
|
|
62
63
|
readonly type: PropType<string>;
|
|
@@ -70,8 +71,8 @@ declare const _default: DefineComponent<{
|
|
|
70
71
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
71
72
|
__epPropKey: true;
|
|
72
73
|
};
|
|
73
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) =>
|
|
74
|
-
readonly popperOptions: EpPropFinalized<(new (...args: any[]) =>
|
|
74
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
75
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
75
76
|
readonly id: StringConstructor;
|
|
76
77
|
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
77
78
|
readonly splitButton: BooleanConstructor;
|
|
@@ -108,7 +109,7 @@ declare const _default: DefineComponent<{
|
|
|
108
109
|
default: string;
|
|
109
110
|
};
|
|
110
111
|
background: {
|
|
111
|
-
type: PropType<"hover" | "always">;
|
|
112
|
+
type: PropType<"hover" | "always" | "none">;
|
|
112
113
|
default: string;
|
|
113
114
|
};
|
|
114
115
|
circle: {
|
|
@@ -124,7 +125,7 @@ declare const _default: DefineComponent<{
|
|
|
124
125
|
};
|
|
125
126
|
dropdown: {
|
|
126
127
|
type: PropType<Partial<ExtractPropTypes<{
|
|
127
|
-
readonly trigger: EpPropFinalized<(new (...args: any[]) => "
|
|
128
|
+
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>;
|
|
128
129
|
readonly effect: {
|
|
129
130
|
readonly default: "light";
|
|
130
131
|
readonly type: PropType<string>;
|
|
@@ -138,8 +139,8 @@ declare const _default: DefineComponent<{
|
|
|
138
139
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
139
140
|
__epPropKey: true;
|
|
140
141
|
};
|
|
141
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) =>
|
|
142
|
-
readonly popperOptions: EpPropFinalized<(new (...args: any[]) =>
|
|
142
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
143
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
143
144
|
readonly id: StringConstructor;
|
|
144
145
|
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
145
146
|
readonly splitButton: BooleanConstructor;
|
|
@@ -193,7 +194,7 @@ declare const _default: DefineComponent<{
|
|
|
193
194
|
};
|
|
194
195
|
dropdown: {
|
|
195
196
|
type: PropType<Partial<ExtractPropTypes<{
|
|
196
|
-
readonly trigger: EpPropFinalized<(new (...args: any[]) => "
|
|
197
|
+
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>;
|
|
197
198
|
readonly effect: {
|
|
198
199
|
readonly default: "light";
|
|
199
200
|
readonly type: PropType<string>;
|
|
@@ -207,8 +208,8 @@ declare const _default: DefineComponent<{
|
|
|
207
208
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
208
209
|
__epPropKey: true;
|
|
209
210
|
};
|
|
210
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) =>
|
|
211
|
-
readonly popperOptions: EpPropFinalized<(new (...args: any[]) =>
|
|
211
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
212
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
212
213
|
readonly id: StringConstructor;
|
|
213
214
|
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
214
215
|
readonly splitButton: BooleanConstructor;
|
|
@@ -245,7 +246,7 @@ declare const _default: DefineComponent<{
|
|
|
245
246
|
default: string;
|
|
246
247
|
};
|
|
247
248
|
background: {
|
|
248
|
-
type: PropType<"hover" | "always">;
|
|
249
|
+
type: PropType<"hover" | "always" | "none">;
|
|
249
250
|
default: string;
|
|
250
251
|
};
|
|
251
252
|
circle: {
|
|
@@ -280,7 +281,7 @@ declare const _default: DefineComponent<{
|
|
|
280
281
|
};
|
|
281
282
|
dropdown: {
|
|
282
283
|
type: PropType<Partial<ExtractPropTypes<{
|
|
283
|
-
readonly trigger: EpPropFinalized<(new (...args: any[]) => "
|
|
284
|
+
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>;
|
|
284
285
|
readonly effect: {
|
|
285
286
|
readonly default: "light";
|
|
286
287
|
readonly type: PropType<string>;
|
|
@@ -294,8 +295,8 @@ declare const _default: DefineComponent<{
|
|
|
294
295
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
295
296
|
__epPropKey: true;
|
|
296
297
|
};
|
|
297
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) =>
|
|
298
|
-
readonly popperOptions: EpPropFinalized<(new (...args: any[]) =>
|
|
298
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
299
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
299
300
|
readonly id: StringConstructor;
|
|
300
301
|
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
301
302
|
readonly splitButton: BooleanConstructor;
|
|
@@ -332,14 +333,14 @@ declare const _default: DefineComponent<{
|
|
|
332
333
|
default: string;
|
|
333
334
|
};
|
|
334
335
|
background: {
|
|
335
|
-
type: PropType<"hover" | "always">;
|
|
336
|
+
type: PropType<"hover" | "always" | "none">;
|
|
336
337
|
default: string;
|
|
337
338
|
};
|
|
338
339
|
circle: {
|
|
339
340
|
type: BooleanConstructor;
|
|
340
341
|
};
|
|
341
342
|
}>>>, menu: ActionMenuItem) => void;
|
|
342
|
-
}, string,
|
|
343
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
343
344
|
items: {
|
|
344
345
|
type: PropType<ActionBarItems>;
|
|
345
346
|
};
|
|
@@ -356,7 +357,7 @@ declare const _default: DefineComponent<{
|
|
|
356
357
|
default: string;
|
|
357
358
|
};
|
|
358
359
|
background: {
|
|
359
|
-
type: PropType<"hover" | "always">;
|
|
360
|
+
type: PropType<"hover" | "always" | "none">;
|
|
360
361
|
default: string;
|
|
361
362
|
};
|
|
362
363
|
circle: {
|
|
@@ -391,7 +392,7 @@ declare const _default: DefineComponent<{
|
|
|
391
392
|
};
|
|
392
393
|
dropdown: {
|
|
393
394
|
type: PropType<Partial<ExtractPropTypes<{
|
|
394
|
-
readonly trigger: EpPropFinalized<(new (...args: any[]) => "
|
|
395
|
+
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>;
|
|
395
396
|
readonly effect: {
|
|
396
397
|
readonly default: "light";
|
|
397
398
|
readonly type: PropType<string>;
|
|
@@ -405,8 +406,8 @@ declare const _default: DefineComponent<{
|
|
|
405
406
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
406
407
|
__epPropKey: true;
|
|
407
408
|
};
|
|
408
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) =>
|
|
409
|
-
readonly popperOptions: EpPropFinalized<(new (...args: any[]) =>
|
|
409
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
410
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
410
411
|
readonly id: StringConstructor;
|
|
411
412
|
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
412
413
|
readonly splitButton: BooleanConstructor;
|
|
@@ -443,7 +444,7 @@ declare const _default: DefineComponent<{
|
|
|
443
444
|
default: string;
|
|
444
445
|
};
|
|
445
446
|
background: {
|
|
446
|
-
type: PropType<"hover" | "always">;
|
|
447
|
+
type: PropType<"hover" | "always" | "none">;
|
|
447
448
|
default: string;
|
|
448
449
|
};
|
|
449
450
|
circle: {
|
|
@@ -459,7 +460,7 @@ declare const _default: DefineComponent<{
|
|
|
459
460
|
};
|
|
460
461
|
dropdown: {
|
|
461
462
|
type: PropType<Partial<ExtractPropTypes<{
|
|
462
|
-
readonly trigger: EpPropFinalized<(new (...args: any[]) => "
|
|
463
|
+
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>;
|
|
463
464
|
readonly effect: {
|
|
464
465
|
readonly default: "light";
|
|
465
466
|
readonly type: PropType<string>;
|
|
@@ -473,8 +474,8 @@ declare const _default: DefineComponent<{
|
|
|
473
474
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
474
475
|
__epPropKey: true;
|
|
475
476
|
};
|
|
476
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) =>
|
|
477
|
-
readonly popperOptions: EpPropFinalized<(new (...args: any[]) =>
|
|
477
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
478
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
478
479
|
readonly id: StringConstructor;
|
|
479
480
|
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
480
481
|
readonly splitButton: BooleanConstructor;
|
|
@@ -528,7 +529,7 @@ declare const _default: DefineComponent<{
|
|
|
528
529
|
};
|
|
529
530
|
dropdown: {
|
|
530
531
|
type: PropType<Partial<ExtractPropTypes<{
|
|
531
|
-
readonly trigger: EpPropFinalized<(new (...args: any[]) => "
|
|
532
|
+
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>;
|
|
532
533
|
readonly effect: {
|
|
533
534
|
readonly default: "light";
|
|
534
535
|
readonly type: PropType<string>;
|
|
@@ -542,8 +543,8 @@ declare const _default: DefineComponent<{
|
|
|
542
543
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
543
544
|
__epPropKey: true;
|
|
544
545
|
};
|
|
545
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) =>
|
|
546
|
-
readonly popperOptions: EpPropFinalized<(new (...args: any[]) =>
|
|
546
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
547
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
547
548
|
readonly id: StringConstructor;
|
|
548
549
|
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
549
550
|
readonly splitButton: BooleanConstructor;
|
|
@@ -580,7 +581,7 @@ declare const _default: DefineComponent<{
|
|
|
580
581
|
default: string;
|
|
581
582
|
};
|
|
582
583
|
background: {
|
|
583
|
-
type: PropType<"hover" | "always">;
|
|
584
|
+
type: PropType<"hover" | "always" | "none">;
|
|
584
585
|
default: string;
|
|
585
586
|
};
|
|
586
587
|
circle: {
|
|
@@ -615,7 +616,7 @@ declare const _default: DefineComponent<{
|
|
|
615
616
|
};
|
|
616
617
|
dropdown: {
|
|
617
618
|
type: PropType<Partial<ExtractPropTypes<{
|
|
618
|
-
readonly trigger: EpPropFinalized<(new (...args: any[]) => "
|
|
619
|
+
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>;
|
|
619
620
|
readonly effect: {
|
|
620
621
|
readonly default: "light";
|
|
621
622
|
readonly type: PropType<string>;
|
|
@@ -629,8 +630,8 @@ declare const _default: DefineComponent<{
|
|
|
629
630
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
630
631
|
__epPropKey: true;
|
|
631
632
|
};
|
|
632
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) =>
|
|
633
|
-
readonly popperOptions: EpPropFinalized<(new (...args: any[]) =>
|
|
633
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
634
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
634
635
|
readonly id: StringConstructor;
|
|
635
636
|
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
636
637
|
readonly splitButton: BooleanConstructor;
|
|
@@ -667,7 +668,7 @@ declare const _default: DefineComponent<{
|
|
|
667
668
|
default: string;
|
|
668
669
|
};
|
|
669
670
|
background: {
|
|
670
|
-
type: PropType<"hover" | "always">;
|
|
671
|
+
type: PropType<"hover" | "always" | "none">;
|
|
671
672
|
default: string;
|
|
672
673
|
};
|
|
673
674
|
circle: {
|
|
@@ -675,10 +676,10 @@ declare const _default: DefineComponent<{
|
|
|
675
676
|
};
|
|
676
677
|
}>>>, menu: ActionMenuItem) => any) | undefined;
|
|
677
678
|
}, {
|
|
678
|
-
type: BaseType;
|
|
679
679
|
size: BaseSize;
|
|
680
|
+
type: BaseType;
|
|
681
|
+
background: "hover" | "always" | "none";
|
|
680
682
|
circle: boolean;
|
|
681
|
-
background: "hover" | "always";
|
|
682
683
|
mode: ActionMode;
|
|
683
684
|
}, {}>;
|
|
684
685
|
export default _default;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
2
|
+
import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils/index.mjs';
|
|
2
3
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
import { ComponentPropsType, BaseSize, BaseType } from '../shared';
|
|
4
|
-
import { ActionMode, ActionProps, ActionMenuItem, ContainerProps } from '../';
|
|
5
|
-
import { TooltipTriggerType,
|
|
4
|
+
import type { ComponentPropsType, BaseSize, BaseType } from '../shared';
|
|
5
|
+
import type { ActionMode, ActionProps, ActionMenuItem, ContainerProps } from '../';
|
|
6
|
+
import { TooltipTriggerType, ElTooltipProps, BadgeProps, ButtonProps } from 'element-plus';
|
|
6
7
|
export type ActionBarItem = ActionProps & {
|
|
7
8
|
[key: string]: any;
|
|
8
9
|
};
|
|
@@ -39,7 +40,7 @@ export declare const actionBarProps: {
|
|
|
39
40
|
* icon 背景设置,当 mode为 icon 时有效
|
|
40
41
|
*/
|
|
41
42
|
background: {
|
|
42
|
-
type: PropType<"hover" | "always">;
|
|
43
|
+
type: PropType<"hover" | "always" | "none">;
|
|
43
44
|
default: string;
|
|
44
45
|
};
|
|
45
46
|
/**
|
|
@@ -71,12 +72,10 @@ export declare const actionBarProps: {
|
|
|
71
72
|
*/
|
|
72
73
|
dropdown: {
|
|
73
74
|
type: PropType<Partial<ExtractPropTypes<{
|
|
74
|
-
readonly trigger: EpPropFinalized<(new (...args: any[]) => "
|
|
75
|
+
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>;
|
|
75
76
|
readonly effect: {
|
|
76
77
|
readonly default: "light";
|
|
77
|
-
readonly type: PropType<string>;
|
|
78
|
-
* ElButton 组件配置,mode为button时有效
|
|
79
|
-
*/
|
|
78
|
+
readonly type: PropType<string>;
|
|
80
79
|
readonly required: false;
|
|
81
80
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
82
81
|
readonly __epPropKey: true;
|
|
@@ -87,8 +86,8 @@ export declare const actionBarProps: {
|
|
|
87
86
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
88
87
|
__epPropKey: true;
|
|
89
88
|
};
|
|
90
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) =>
|
|
91
|
-
readonly popperOptions: EpPropFinalized<(new (...args: any[]) =>
|
|
89
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
90
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
92
91
|
readonly id: StringConstructor;
|
|
93
92
|
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
94
93
|
readonly splitButton: BooleanConstructor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EChartsOption, ECharts } from 'echarts/types/dist/echarts';
|
|
2
|
-
import { DefineComponent, PropType, Ref,
|
|
2
|
+
import { DefineComponent, PropType, Ref, ShallowRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
3
3
|
declare const _default: DefineComponent<{
|
|
4
4
|
option: {
|
|
5
5
|
type: PropType<EChartsOption>;
|
|
@@ -15,8 +15,8 @@ declare const _default: DefineComponent<{
|
|
|
15
15
|
}, {
|
|
16
16
|
chartRef: Ref<any>;
|
|
17
17
|
echartsInstance: Ref<ECharts | undefined>;
|
|
18
|
-
echarts:
|
|
19
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
18
|
+
echarts: ShallowRef<any>;
|
|
19
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
20
20
|
option: {
|
|
21
21
|
type: PropType<EChartsOption>;
|
|
22
22
|
};
|
|
@@ -29,7 +29,7 @@ declare const _default: DefineComponent<{
|
|
|
29
29
|
default: string;
|
|
30
30
|
};
|
|
31
31
|
}>>, {
|
|
32
|
-
height: string | number;
|
|
33
32
|
width: string | number;
|
|
33
|
+
height: string | number;
|
|
34
34
|
}, {}>;
|
|
35
35
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { ComponentPropsType } from '../shared';
|
|
3
|
-
import { EChartsOption } from 'echarts';
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { ComponentPropsType } from '../shared';
|
|
3
|
+
import type { EChartsOption } from 'echarts';
|
|
4
4
|
export declare const chartProps: {
|
|
5
5
|
option: {
|
|
6
6
|
type: PropType<EChartsOption>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Ref, MaybeRef } from 'vue';
|
|
2
|
-
import
|
|
3
|
-
import { ChartProps } from './types';
|
|
1
|
+
import { Ref, ShallowRef, type MaybeRef } from 'vue';
|
|
2
|
+
import type { ECharts } from 'echarts';
|
|
3
|
+
import type { ChartProps } from './types';
|
|
4
4
|
export declare function useChart(el: MaybeRef<HTMLElement>, props: ChartProps): {
|
|
5
|
-
echartsInstance: Ref<
|
|
6
|
-
echarts:
|
|
5
|
+
echartsInstance: Ref<ECharts | undefined>;
|
|
6
|
+
echarts: ShallowRef<any>;
|
|
7
7
|
};
|