@vtj/ui 0.12.16 → 0.12.18
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 +2 -2
- package/dist/index.umd.js +2 -2
- package/package.json +3 -3
- package/types/components/action/Action.d.ts +732 -104
- package/types/components/action/hooks.d.ts +122 -19
- package/types/components/action-bar/ActionBar.d.ts +488 -70
- package/types/components/attachment/Attachment.d.ts +743 -434
- package/types/components/data-item/DataItem.d.ts +488 -70
- package/types/components/dialog-form/DialogForm.d.ts +2536 -101
- package/types/components/field/Field.d.ts +224 -86
- package/types/components/form/Form.d.ts +2536 -101
- package/types/components/grid/renderers/components/DateEdit.d.ts +291 -69
- package/types/components/grid/renderers/components/GridEdit.d.ts +191 -65
- package/types/components/grid/renderers/components/PickerEdit.d.ts +367 -117
- package/types/components/grid-editor/GridEditor.d.ts +191 -65
- package/types/components/mask/Mask.d.ts +488 -70
- package/types/components/picker/Picker.d.ts +367 -117
- package/types/components/query-form/QueryForm.d.ts +5070 -199
- package/types/components/tabs/Tabs.d.ts +244 -36
- package/types/version.d.ts +2 -2
@@ -1,46 +1,149 @@
|
|
1
1
|
import { ElTooltipProps, BadgeProps, TooltipTriggerType, PopperEffect, ButtonProps } from 'element-plus';
|
2
2
|
import { ActionProps } from './types';
|
3
3
|
import { ComputedRef, ExtractPropTypes, PropType } from 'vue';
|
4
|
-
import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils/index.mjs';
|
5
|
-
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
6
4
|
export declare function useTooltip(props: ActionProps): ComputedRef<Partial<ElTooltipProps> | undefined>;
|
7
5
|
export declare function useBadge(props: ActionProps): ComputedRef<Partial<BadgeProps> | undefined>;
|
8
6
|
export declare function useDropdown(props: ActionProps): ComputedRef<Partial< ExtractPropTypes<{
|
9
|
-
readonly trigger:
|
10
|
-
|
7
|
+
readonly trigger: {
|
8
|
+
readonly type: PropType< TooltipTriggerType | TooltipTriggerType[]>;
|
9
|
+
readonly required: false;
|
10
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
11
|
+
__epPropKey: true;
|
12
|
+
} & {
|
13
|
+
readonly default: "hover";
|
14
|
+
};
|
15
|
+
readonly triggerKeys: {
|
16
|
+
readonly type: PropType<string[]>;
|
17
|
+
readonly required: false;
|
18
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
19
|
+
__epPropKey: true;
|
20
|
+
} & {
|
21
|
+
readonly default: () => string[];
|
22
|
+
};
|
11
23
|
readonly effect: {
|
12
24
|
readonly default: "light";
|
13
|
-
readonly type: PropType<
|
25
|
+
readonly type: PropType<PopperEffect>;
|
14
26
|
readonly required: false;
|
15
27
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
16
28
|
readonly __epPropKey: true;
|
17
29
|
};
|
18
30
|
readonly type: {
|
19
|
-
readonly type: PropType<
|
31
|
+
readonly type: PropType<"" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text">;
|
32
|
+
readonly required: false;
|
33
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
34
|
+
__epPropKey: true;
|
35
|
+
};
|
36
|
+
readonly placement: {
|
37
|
+
readonly type: PropType<any>;
|
38
|
+
readonly required: false;
|
39
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
40
|
+
__epPropKey: true;
|
41
|
+
} & {
|
42
|
+
readonly default: "bottom";
|
43
|
+
};
|
44
|
+
readonly popperOptions: {
|
45
|
+
readonly type: PropType<any>;
|
20
46
|
readonly required: false;
|
21
47
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
22
48
|
__epPropKey: true;
|
49
|
+
} & {
|
50
|
+
readonly default: () => {};
|
23
51
|
};
|
24
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
25
|
-
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
|
26
52
|
readonly id: StringConstructor;
|
27
|
-
readonly size:
|
53
|
+
readonly size: {
|
54
|
+
readonly type: PropType<string>;
|
55
|
+
readonly required: false;
|
56
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
57
|
+
__epPropKey: true;
|
58
|
+
} & {
|
59
|
+
readonly default: "";
|
60
|
+
};
|
28
61
|
readonly splitButton: BooleanConstructor;
|
29
|
-
readonly hideOnClick:
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
62
|
+
readonly hideOnClick: {
|
63
|
+
readonly type: PropType<boolean>;
|
64
|
+
readonly required: false;
|
65
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
66
|
+
__epPropKey: true;
|
67
|
+
} & {
|
68
|
+
readonly default: true;
|
69
|
+
};
|
70
|
+
readonly loop: {
|
71
|
+
readonly type: PropType<boolean>;
|
72
|
+
readonly required: false;
|
73
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
74
|
+
__epPropKey: true;
|
75
|
+
} & {
|
76
|
+
readonly default: true;
|
77
|
+
};
|
78
|
+
readonly showTimeout: {
|
79
|
+
readonly type: PropType<number>;
|
80
|
+
readonly required: false;
|
81
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
82
|
+
__epPropKey: true;
|
83
|
+
} & {
|
84
|
+
readonly default: 150;
|
85
|
+
};
|
86
|
+
readonly hideTimeout: {
|
87
|
+
readonly type: PropType<number>;
|
88
|
+
readonly required: false;
|
89
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
90
|
+
__epPropKey: true;
|
91
|
+
} & {
|
92
|
+
readonly default: 150;
|
93
|
+
};
|
94
|
+
readonly tabindex: {
|
95
|
+
readonly type: PropType<string | number>;
|
96
|
+
readonly required: false;
|
97
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
98
|
+
__epPropKey: true;
|
99
|
+
} & {
|
100
|
+
readonly default: 0;
|
101
|
+
};
|
102
|
+
readonly maxHeight: {
|
103
|
+
readonly type: PropType<string | number>;
|
104
|
+
readonly required: false;
|
105
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
106
|
+
__epPropKey: true;
|
107
|
+
} & {
|
108
|
+
readonly default: "";
|
109
|
+
};
|
110
|
+
readonly popperClass: {
|
111
|
+
readonly type: PropType<string>;
|
112
|
+
readonly required: false;
|
113
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
114
|
+
__epPropKey: true;
|
115
|
+
} & {
|
116
|
+
readonly default: "";
|
117
|
+
};
|
36
118
|
readonly disabled: BooleanConstructor;
|
37
|
-
readonly role:
|
119
|
+
readonly role: {
|
120
|
+
readonly type: PropType<"dialog" | "menu" | "grid" | "listbox" | "tooltip" | "tree" | "group" | "navigation">;
|
121
|
+
readonly required: false;
|
122
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
123
|
+
__epPropKey: true;
|
124
|
+
} & {
|
125
|
+
readonly default: "menu";
|
126
|
+
};
|
38
127
|
readonly buttonProps: {
|
39
128
|
readonly type: PropType<Partial< ButtonProps>>;
|
40
129
|
readonly required: false;
|
41
130
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
42
131
|
__epPropKey: true;
|
43
132
|
};
|
44
|
-
readonly teleported:
|
45
|
-
|
133
|
+
readonly teleported: {
|
134
|
+
readonly type: PropType<boolean>;
|
135
|
+
readonly required: false;
|
136
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
137
|
+
__epPropKey: true;
|
138
|
+
} & {
|
139
|
+
readonly default: true;
|
140
|
+
};
|
141
|
+
readonly persistent: {
|
142
|
+
readonly type: PropType<boolean>;
|
143
|
+
readonly required: false;
|
144
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
145
|
+
__epPropKey: true;
|
146
|
+
} & {
|
147
|
+
readonly default: true;
|
148
|
+
};
|
46
149
|
}>> | undefined>;
|