@vtj/ui 0.10.6 → 0.10.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +9 -8
- package/dist/index.umd.js +3 -3
- package/package.json +5 -5
- package/types/components/action/Action.d.ts +10 -3
- package/types/components/attachment/Attachment.d.ts +805 -274
- package/types/components/container/Container.d.ts +15 -178
- package/types/components/data-item/DataItem.d.ts +18 -517
- package/types/components/dialog/Dialog.d.ts +1203 -432
- package/types/components/dialog-form/DialogForm.d.ts +3049 -104
- package/types/components/dialog-grid/DialogGrid.d.ts +4907 -69
- package/types/components/field/Field.d.ts +353 -222
- package/types/components/field/editors/SelectEditor.d.ts +12 -21
- package/types/components/form/Form.d.ts +389 -116
- package/types/components/grid/Grid.d.ts +57 -787
- package/types/components/grid/renderers/components/DateEdit.d.ts +255 -2
- package/types/components/grid/renderers/components/DateFilter.d.ts +1 -1
- package/types/components/grid/renderers/components/GridEdit.d.ts +410 -2
- package/types/components/grid/renderers/components/InputFilter.d.ts +1 -1
- package/types/components/grid/renderers/components/NumberFilter.d.ts +1 -1
- package/types/components/grid/renderers/components/PickerEdit.d.ts +1926 -2
- package/types/components/grid/renderers/components/SelectFilter.d.ts +1 -1
- package/types/components/grid-editor/GridEditor.d.ts +375 -2
- package/types/components/header/Header.d.ts +14 -76
- package/types/components/icon/Icon.d.ts +74 -0
- package/types/components/import-button/ImportButton.d.ts +10 -47
- package/types/components/list/List.d.ts +30 -155
- package/types/components/mask/Mask.d.ts +562 -546
- package/types/components/mask/components/Avatar.d.ts +11 -16
- package/types/components/mask/components/Brand.d.ts +12 -17
- package/types/components/mask/components/Content.d.ts +12 -13
- package/types/components/mask/components/Sidebar.d.ts +12 -15
- package/types/components/mask/components/Tabs.d.ts +255 -2
- package/types/components/mask/components/ThemeSwitch.d.ts +1 -1
- package/types/components/mask/components/Toolbar.d.ts +13 -55
- package/types/components/panel/Panel.d.ts +521 -124
- package/types/components/picker/Dialog.d.ts +1291 -2
- package/types/components/picker/Picker.d.ts +1730 -2
- package/types/components/qr-code/QrCode.d.ts +13 -35
- package/types/components/query-form/QueryForm.d.ts +1105 -418
- package/types/components/startup/Startup.d.ts +1 -1
- package/types/components/tabs/Tabs.d.ts +53 -297
- package/types/components/test/Test.d.ts +41 -268
- package/types/utils/auto-update.d.ts +1 -1
- package/types/version.d.ts +2 -2
@@ -4,5 +4,5 @@ export interface Props {
|
|
4
4
|
params: VxeGlobalRendererHandles.RenderFilterParams;
|
5
5
|
renderOpts: VxeGlobalRendererHandles.RenderFilterOptions;
|
6
6
|
}
|
7
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
7
|
+
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
8
8
|
export default _default;
|
@@ -1,5 +1,9 @@
|
|
1
1
|
import { GridEditorProps } from './types';
|
2
|
-
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
2
|
+
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, StyleValue, Component, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, CSSProperties, ShallowRef, ComputedRef, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
3
|
+
import { EpPropMergeType, EpPropFinalized } from 'element-plus/es/utils/index.mjs';
|
4
|
+
import { InputAutoSize } from 'element-plus';
|
5
|
+
import { Mutable } from 'element-plus/es/utils/typescript.mjs';
|
6
|
+
import { OnCleanup } from '@vue/reactivity';
|
3
7
|
declare const _default: DefineComponent<GridEditorProps, {
|
4
8
|
open: () => void;
|
5
9
|
dialogVisible: Ref<boolean, boolean>;
|
@@ -14,5 +18,374 @@ declare const _default: DefineComponent<GridEditorProps, {
|
|
14
18
|
}>, {
|
15
19
|
plus: boolean;
|
16
20
|
minus: boolean;
|
17
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
21
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
22
|
+
inputRef: ({
|
23
|
+
$: ComponentInternalInstance;
|
24
|
+
$data: {};
|
25
|
+
$props: Partial<{
|
26
|
+
readonly disabled: boolean;
|
27
|
+
readonly id: string;
|
28
|
+
readonly type: string;
|
29
|
+
readonly modelValue: EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined))[], unknown, unknown>;
|
30
|
+
readonly tabindex: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
31
|
+
readonly readonly: boolean;
|
32
|
+
readonly autosize: InputAutoSize;
|
33
|
+
readonly autocomplete: string;
|
34
|
+
readonly containerRole: string;
|
35
|
+
readonly validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
36
|
+
readonly inputStyle: StyleValue;
|
37
|
+
readonly rows: number;
|
38
|
+
readonly clearable: boolean;
|
39
|
+
readonly showPassword: boolean;
|
40
|
+
readonly showWordLimit: boolean;
|
41
|
+
readonly autofocus: boolean;
|
42
|
+
}> & Omit<{
|
43
|
+
readonly type: string;
|
44
|
+
readonly disabled: boolean;
|
45
|
+
readonly tabindex: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
46
|
+
readonly autofocus: boolean;
|
47
|
+
readonly modelValue: EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined))[], unknown, unknown>;
|
48
|
+
readonly validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
49
|
+
readonly autosize: InputAutoSize;
|
50
|
+
readonly autocomplete: string;
|
51
|
+
readonly readonly: boolean;
|
52
|
+
readonly clearable: boolean;
|
53
|
+
readonly showPassword: boolean;
|
54
|
+
readonly showWordLimit: boolean;
|
55
|
+
readonly inputStyle: StyleValue;
|
56
|
+
readonly rows: number;
|
57
|
+
readonly size?: EpPropMergeType<StringConstructor, "" | "large" | "default" | "small", never> | undefined;
|
58
|
+
readonly form?: string | undefined;
|
59
|
+
readonly id?: string | undefined;
|
60
|
+
readonly ariaLabel?: string | undefined;
|
61
|
+
readonly resize?: EpPropMergeType<StringConstructor, "none" | "horizontal" | "vertical" | "both", unknown> | undefined;
|
62
|
+
readonly maxlength?: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
63
|
+
readonly minlength?: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
64
|
+
readonly formatter?: Function | undefined;
|
65
|
+
readonly parser?: Function | undefined;
|
66
|
+
readonly placeholder?: string | undefined;
|
67
|
+
readonly suffixIcon?: EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown> | undefined;
|
68
|
+
readonly prefixIcon?: EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown> | undefined;
|
69
|
+
readonly containerRole?: string | undefined;
|
70
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
|
71
|
+
onChange?: ((value: string) => any) | undefined | undefined;
|
72
|
+
onCompositionend?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
73
|
+
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
74
|
+
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
75
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined | undefined;
|
76
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined | undefined;
|
77
|
+
onInput?: ((value: string) => any) | undefined | undefined;
|
78
|
+
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined | undefined;
|
79
|
+
onMouseenter?: ((evt: MouseEvent) => any) | undefined | undefined;
|
80
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined | undefined;
|
81
|
+
onClear?: (() => any) | undefined | undefined;
|
82
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "type" | "disabled" | "id" | "tabindex" | "autofocus" | "modelValue" | "validateEvent" | "autosize" | "autocomplete" | "readonly" | "clearable" | "showPassword" | "showWordLimit" | "containerRole" | "inputStyle" | "rows">;
|
83
|
+
$attrs: {
|
84
|
+
[x: string]: unknown;
|
85
|
+
};
|
86
|
+
$refs: {
|
87
|
+
[x: string]: unknown;
|
88
|
+
};
|
89
|
+
$slots: Readonly<{
|
90
|
+
[name: string]: Slot<any> | undefined;
|
91
|
+
}>;
|
92
|
+
$root: ComponentPublicInstance | null;
|
93
|
+
$parent: ComponentPublicInstance | null;
|
94
|
+
$host: Element | null;
|
95
|
+
$emit: ((event: "clear") => void) & ((event: "input", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "change", value: string) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "update:modelValue", value: string) => void);
|
96
|
+
$el: any;
|
97
|
+
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
98
|
+
readonly ariaLabel: StringConstructor;
|
99
|
+
readonly id: EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
100
|
+
readonly size: {
|
101
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
102
|
+
readonly required: false;
|
103
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
104
|
+
__epPropKey: true;
|
105
|
+
};
|
106
|
+
readonly disabled: BooleanConstructor;
|
107
|
+
readonly modelValue: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined))[], unknown, unknown, "", boolean>;
|
108
|
+
readonly maxlength: {
|
109
|
+
readonly type: PropType<EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
110
|
+
readonly required: false;
|
111
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
112
|
+
__epPropKey: true;
|
113
|
+
};
|
114
|
+
readonly minlength: {
|
115
|
+
readonly type: PropType<EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
116
|
+
readonly required: false;
|
117
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
118
|
+
__epPropKey: true;
|
119
|
+
};
|
120
|
+
readonly type: EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
121
|
+
readonly resize: {
|
122
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "none" | "both" | "horizontal" | "vertical", unknown>>;
|
123
|
+
readonly required: false;
|
124
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
125
|
+
__epPropKey: true;
|
126
|
+
};
|
127
|
+
readonly autosize: EpPropFinalized<(new (...args: any[]) => boolean | {
|
128
|
+
minRows?: number;
|
129
|
+
maxRows?: number;
|
130
|
+
}) | (() => InputAutoSize) | ((new (...args: any[]) => boolean | {
|
131
|
+
minRows?: number;
|
132
|
+
maxRows?: number;
|
133
|
+
}) | (() => InputAutoSize))[], unknown, unknown, false, boolean>;
|
134
|
+
readonly autocomplete: EpPropFinalized<StringConstructor, unknown, unknown, "off", boolean>;
|
135
|
+
readonly formatter: {
|
136
|
+
readonly type: PropType<Function>;
|
137
|
+
readonly required: false;
|
138
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
139
|
+
__epPropKey: true;
|
140
|
+
};
|
141
|
+
readonly parser: {
|
142
|
+
readonly type: PropType<Function>;
|
143
|
+
readonly required: false;
|
144
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
145
|
+
__epPropKey: true;
|
146
|
+
};
|
147
|
+
readonly placeholder: {
|
148
|
+
readonly type: PropType<string>;
|
149
|
+
readonly required: false;
|
150
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
151
|
+
__epPropKey: true;
|
152
|
+
};
|
153
|
+
readonly form: {
|
154
|
+
readonly type: PropType<string>;
|
155
|
+
readonly required: false;
|
156
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
157
|
+
__epPropKey: true;
|
158
|
+
};
|
159
|
+
readonly readonly: BooleanConstructor;
|
160
|
+
readonly clearable: BooleanConstructor;
|
161
|
+
readonly showPassword: BooleanConstructor;
|
162
|
+
readonly showWordLimit: BooleanConstructor;
|
163
|
+
readonly suffixIcon: {
|
164
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>;
|
165
|
+
readonly required: false;
|
166
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
167
|
+
__epPropKey: true;
|
168
|
+
};
|
169
|
+
readonly prefixIcon: {
|
170
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>;
|
171
|
+
readonly required: false;
|
172
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
173
|
+
__epPropKey: true;
|
174
|
+
};
|
175
|
+
readonly containerRole: EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
176
|
+
readonly tabindex: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
|
177
|
+
readonly validateEvent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
178
|
+
readonly inputStyle: EpPropFinalized<(new (...args: any[]) => string | CSSProperties | StyleValue[]) | (() => StyleValue) | ((new (...args: any[]) => string | CSSProperties | StyleValue[]) | (() => StyleValue))[], unknown, unknown, () => Mutable<{}>, boolean>;
|
179
|
+
readonly autofocus: BooleanConstructor;
|
180
|
+
readonly rows: EpPropFinalized<NumberConstructor, unknown, unknown, 2, boolean>;
|
181
|
+
}>> & {
|
182
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
183
|
+
onChange?: ((value: string) => any) | undefined;
|
184
|
+
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
185
|
+
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
186
|
+
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
187
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
188
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
189
|
+
onInput?: ((value: string) => any) | undefined;
|
190
|
+
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
191
|
+
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
192
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
193
|
+
onClear?: (() => any) | undefined;
|
194
|
+
}, {
|
195
|
+
input: ShallowRef<HTMLInputElement | undefined>;
|
196
|
+
textarea: ShallowRef<HTMLTextAreaElement | undefined>;
|
197
|
+
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
198
|
+
textareaStyle: ComputedRef<StyleValue>;
|
199
|
+
autosize: Ref<InputAutoSize>;
|
200
|
+
isComposing: Ref<boolean>;
|
201
|
+
focus: () => void | undefined;
|
202
|
+
blur: () => void | undefined;
|
203
|
+
select: () => void;
|
204
|
+
clear: () => void;
|
205
|
+
resizeTextarea: () => void;
|
206
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
207
|
+
input: (value: string) => void;
|
208
|
+
clear: () => void;
|
209
|
+
"update:modelValue": (value: string) => void;
|
210
|
+
change: (value: string) => void;
|
211
|
+
blur: (evt: FocusEvent) => void;
|
212
|
+
compositionend: (evt: CompositionEvent) => void;
|
213
|
+
compositionstart: (evt: CompositionEvent) => void;
|
214
|
+
compositionupdate: (evt: CompositionEvent) => void;
|
215
|
+
focus: (evt: FocusEvent) => void;
|
216
|
+
keydown: (evt: Event | KeyboardEvent) => void;
|
217
|
+
mouseenter: (evt: MouseEvent) => void;
|
218
|
+
mouseleave: (evt: MouseEvent) => void;
|
219
|
+
}, string, {
|
220
|
+
readonly disabled: boolean;
|
221
|
+
readonly id: string;
|
222
|
+
readonly type: string;
|
223
|
+
readonly modelValue: EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined))[], unknown, unknown>;
|
224
|
+
readonly tabindex: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
225
|
+
readonly readonly: boolean;
|
226
|
+
readonly autosize: InputAutoSize;
|
227
|
+
readonly autocomplete: string;
|
228
|
+
readonly containerRole: string;
|
229
|
+
readonly validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
230
|
+
readonly inputStyle: StyleValue;
|
231
|
+
readonly rows: number;
|
232
|
+
readonly clearable: boolean;
|
233
|
+
readonly showPassword: boolean;
|
234
|
+
readonly showWordLimit: boolean;
|
235
|
+
readonly autofocus: boolean;
|
236
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
237
|
+
beforeCreate?: (() => void) | (() => void)[];
|
238
|
+
created?: (() => void) | (() => void)[];
|
239
|
+
beforeMount?: (() => void) | (() => void)[];
|
240
|
+
mounted?: (() => void) | (() => void)[];
|
241
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
242
|
+
updated?: (() => void) | (() => void)[];
|
243
|
+
activated?: (() => void) | (() => void)[];
|
244
|
+
deactivated?: (() => void) | (() => void)[];
|
245
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
246
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
247
|
+
destroyed?: (() => void) | (() => void)[];
|
248
|
+
unmounted?: (() => void) | (() => void)[];
|
249
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
250
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
251
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
252
|
+
};
|
253
|
+
$forceUpdate: () => void;
|
254
|
+
$nextTick: nextTick;
|
255
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
256
|
+
} & Readonly<{
|
257
|
+
readonly disabled: boolean;
|
258
|
+
readonly id: string;
|
259
|
+
readonly type: string;
|
260
|
+
readonly modelValue: EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined))[], unknown, unknown>;
|
261
|
+
readonly tabindex: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
262
|
+
readonly readonly: boolean;
|
263
|
+
readonly autosize: InputAutoSize;
|
264
|
+
readonly autocomplete: string;
|
265
|
+
readonly containerRole: string;
|
266
|
+
readonly validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
267
|
+
readonly inputStyle: StyleValue;
|
268
|
+
readonly rows: number;
|
269
|
+
readonly clearable: boolean;
|
270
|
+
readonly showPassword: boolean;
|
271
|
+
readonly showWordLimit: boolean;
|
272
|
+
readonly autofocus: boolean;
|
273
|
+
}> & Omit<Readonly< ExtractPropTypes<{
|
274
|
+
readonly ariaLabel: StringConstructor;
|
275
|
+
readonly id: EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
276
|
+
readonly size: {
|
277
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
278
|
+
readonly required: false;
|
279
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
280
|
+
__epPropKey: true;
|
281
|
+
};
|
282
|
+
readonly disabled: BooleanConstructor;
|
283
|
+
readonly modelValue: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined))[], unknown, unknown, "", boolean>;
|
284
|
+
readonly maxlength: {
|
285
|
+
readonly type: PropType<EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
286
|
+
readonly required: false;
|
287
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
288
|
+
__epPropKey: true;
|
289
|
+
};
|
290
|
+
readonly minlength: {
|
291
|
+
readonly type: PropType<EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
292
|
+
readonly required: false;
|
293
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
294
|
+
__epPropKey: true;
|
295
|
+
};
|
296
|
+
readonly type: EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
297
|
+
readonly resize: {
|
298
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "none" | "both" | "horizontal" | "vertical", unknown>>;
|
299
|
+
readonly required: false;
|
300
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
301
|
+
__epPropKey: true;
|
302
|
+
};
|
303
|
+
readonly autosize: EpPropFinalized<(new (...args: any[]) => boolean | {
|
304
|
+
minRows?: number;
|
305
|
+
maxRows?: number;
|
306
|
+
}) | (() => InputAutoSize) | ((new (...args: any[]) => boolean | {
|
307
|
+
minRows?: number;
|
308
|
+
maxRows?: number;
|
309
|
+
}) | (() => InputAutoSize))[], unknown, unknown, false, boolean>;
|
310
|
+
readonly autocomplete: EpPropFinalized<StringConstructor, unknown, unknown, "off", boolean>;
|
311
|
+
readonly formatter: {
|
312
|
+
readonly type: PropType<Function>;
|
313
|
+
readonly required: false;
|
314
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
315
|
+
__epPropKey: true;
|
316
|
+
};
|
317
|
+
readonly parser: {
|
318
|
+
readonly type: PropType<Function>;
|
319
|
+
readonly required: false;
|
320
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
321
|
+
__epPropKey: true;
|
322
|
+
};
|
323
|
+
readonly placeholder: {
|
324
|
+
readonly type: PropType<string>;
|
325
|
+
readonly required: false;
|
326
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
327
|
+
__epPropKey: true;
|
328
|
+
};
|
329
|
+
readonly form: {
|
330
|
+
readonly type: PropType<string>;
|
331
|
+
readonly required: false;
|
332
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
333
|
+
__epPropKey: true;
|
334
|
+
};
|
335
|
+
readonly readonly: BooleanConstructor;
|
336
|
+
readonly clearable: BooleanConstructor;
|
337
|
+
readonly showPassword: BooleanConstructor;
|
338
|
+
readonly showWordLimit: BooleanConstructor;
|
339
|
+
readonly suffixIcon: {
|
340
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>;
|
341
|
+
readonly required: false;
|
342
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
343
|
+
__epPropKey: true;
|
344
|
+
};
|
345
|
+
readonly prefixIcon: {
|
346
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>;
|
347
|
+
readonly required: false;
|
348
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
349
|
+
__epPropKey: true;
|
350
|
+
};
|
351
|
+
readonly containerRole: EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
352
|
+
readonly tabindex: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
|
353
|
+
readonly validateEvent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
354
|
+
readonly inputStyle: EpPropFinalized<(new (...args: any[]) => string | CSSProperties | StyleValue[]) | (() => StyleValue) | ((new (...args: any[]) => string | CSSProperties | StyleValue[]) | (() => StyleValue))[], unknown, unknown, () => Mutable<{}>, boolean>;
|
355
|
+
readonly autofocus: BooleanConstructor;
|
356
|
+
readonly rows: EpPropFinalized<NumberConstructor, unknown, unknown, 2, boolean>;
|
357
|
+
}>> & {
|
358
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
359
|
+
onChange?: ((value: string) => any) | undefined;
|
360
|
+
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
361
|
+
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
362
|
+
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
363
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
364
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
365
|
+
onInput?: ((value: string) => any) | undefined;
|
366
|
+
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
367
|
+
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
368
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
369
|
+
onClear?: (() => any) | undefined;
|
370
|
+
}, "clear" | "type" | "disabled" | "ref" | "input" | "select" | "textarea" | "id" | "tabindex" | "focus" | "autofocus" | "blur" | "modelValue" | "validateEvent" | "autosize" | "autocomplete" | "readonly" | "clearable" | "showPassword" | "showWordLimit" | "containerRole" | "inputStyle" | "rows" | "textareaStyle" | "isComposing" | "resizeTextarea"> & ShallowUnwrapRef<{
|
371
|
+
input: ShallowRef<HTMLInputElement | undefined>;
|
372
|
+
textarea: ShallowRef<HTMLTextAreaElement | undefined>;
|
373
|
+
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
374
|
+
textareaStyle: ComputedRef<StyleValue>;
|
375
|
+
autosize: Ref<InputAutoSize>;
|
376
|
+
isComposing: Ref<boolean>;
|
377
|
+
focus: () => void | undefined;
|
378
|
+
blur: () => void | undefined;
|
379
|
+
select: () => void;
|
380
|
+
clear: () => void;
|
381
|
+
resizeTextarea: () => void;
|
382
|
+
}> & {} & ComponentCustomProperties & {} & {
|
383
|
+
$slots: {
|
384
|
+
prepend?(_: {}): any;
|
385
|
+
prefix?(_: {}): any;
|
386
|
+
suffix?(_: {}): any;
|
387
|
+
append?(_: {}): any;
|
388
|
+
};
|
389
|
+
}) | null;
|
390
|
+
}, any>;
|
18
391
|
export default _default;
|
@@ -1,79 +1,17 @@
|
|
1
|
-
import {
|
2
|
-
import { XContainer, XIcon } from '../';
|
3
|
-
import { ComputedRef, DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
2
|
import { BaseSize } from '../shared';
|
5
3
|
import { IconParam } from '../icon';
|
6
|
-
declare
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
}
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
} & {
|
18
|
-
subtitle?: (props: typeof __VLS_24) => any;
|
19
|
-
} & {
|
20
|
-
actions?: (props: typeof __VLS_26) => any;
|
21
|
-
}>;
|
22
|
-
declare const __VLS_self: DefineComponent<ExtractPropTypes<{
|
23
|
-
size: {
|
24
|
-
type: PropType<BaseSize>;
|
25
|
-
default: string;
|
26
|
-
};
|
27
|
-
content: {
|
28
|
-
type: StringConstructor;
|
29
|
-
default: string;
|
30
|
-
};
|
31
|
-
subtitle: {
|
32
|
-
type: StringConstructor;
|
33
|
-
};
|
34
|
-
icon: {
|
35
|
-
type: PropType<IconParam>;
|
36
|
-
};
|
37
|
-
border: {
|
38
|
-
type: BooleanConstructor;
|
39
|
-
};
|
40
|
-
more: {
|
41
|
-
type: BooleanConstructor;
|
42
|
-
};
|
43
|
-
}>, {
|
44
|
-
ArrowRight: typeof ArrowRight;
|
45
|
-
XContainer: typeof XContainer;
|
46
|
-
XIcon: typeof XIcon;
|
47
|
-
icon: typeof icon;
|
48
|
-
attrs: typeof attrs;
|
49
|
-
classes: typeof classes;
|
50
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
51
|
-
size: {
|
52
|
-
type: PropType<BaseSize>;
|
53
|
-
default: string;
|
54
|
-
};
|
55
|
-
content: {
|
56
|
-
type: StringConstructor;
|
57
|
-
default: string;
|
58
|
-
};
|
59
|
-
subtitle: {
|
60
|
-
type: StringConstructor;
|
61
|
-
};
|
62
|
-
icon: {
|
63
|
-
type: PropType<IconParam>;
|
64
|
-
};
|
65
|
-
border: {
|
66
|
-
type: BooleanConstructor;
|
67
|
-
};
|
68
|
-
more: {
|
69
|
-
type: BooleanConstructor;
|
70
|
-
};
|
71
|
-
}>> & Readonly<{}>, {
|
72
|
-
size: BaseSize;
|
73
|
-
content: string;
|
74
|
-
border: boolean;
|
75
|
-
more: boolean;
|
76
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
4
|
+
declare function __VLS_template(): {
|
5
|
+
attrs: Partial<{}>;
|
6
|
+
slots: {
|
7
|
+
default?(_: {}): any;
|
8
|
+
subtitle?(_: {}): any;
|
9
|
+
actions?(_: {}): any;
|
10
|
+
};
|
11
|
+
refs: {};
|
12
|
+
rootEl: any;
|
13
|
+
};
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
77
15
|
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
78
16
|
size: {
|
79
17
|
type: PropType<BaseSize>;
|
@@ -122,9 +60,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
122
60
|
border: boolean;
|
123
61
|
more: boolean;
|
124
62
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
125
|
-
declare const _default:
|
63
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
126
64
|
export default _default;
|
127
|
-
type
|
65
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
128
66
|
new (): {
|
129
67
|
$slots: S;
|
130
68
|
};
|
@@ -0,0 +1,74 @@
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, VNode, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
2
|
+
import { IconSize } from './types';
|
3
|
+
declare function __VLS_template(): {
|
4
|
+
attrs: Partial<{}>;
|
5
|
+
slots: {
|
6
|
+
default?(_: {}): any;
|
7
|
+
};
|
8
|
+
refs: {};
|
9
|
+
rootEl: any;
|
10
|
+
};
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
12
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
13
|
+
icon: {
|
14
|
+
type: PropType<string | object | VNode>;
|
15
|
+
};
|
16
|
+
color: {
|
17
|
+
type: StringConstructor;
|
18
|
+
};
|
19
|
+
size: {
|
20
|
+
type: PropType<IconSize>;
|
21
|
+
default: string;
|
22
|
+
};
|
23
|
+
src: {
|
24
|
+
type: StringConstructor;
|
25
|
+
};
|
26
|
+
background: {
|
27
|
+
type: StringConstructor;
|
28
|
+
};
|
29
|
+
padding: {
|
30
|
+
type: NumberConstructor;
|
31
|
+
};
|
32
|
+
radius: {
|
33
|
+
type: NumberConstructor;
|
34
|
+
};
|
35
|
+
hoverEffect: {
|
36
|
+
type: BooleanConstructor;
|
37
|
+
};
|
38
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
39
|
+
icon: {
|
40
|
+
type: PropType<string | object | VNode>;
|
41
|
+
};
|
42
|
+
color: {
|
43
|
+
type: StringConstructor;
|
44
|
+
};
|
45
|
+
size: {
|
46
|
+
type: PropType<IconSize>;
|
47
|
+
default: string;
|
48
|
+
};
|
49
|
+
src: {
|
50
|
+
type: StringConstructor;
|
51
|
+
};
|
52
|
+
background: {
|
53
|
+
type: StringConstructor;
|
54
|
+
};
|
55
|
+
padding: {
|
56
|
+
type: NumberConstructor;
|
57
|
+
};
|
58
|
+
radius: {
|
59
|
+
type: NumberConstructor;
|
60
|
+
};
|
61
|
+
hoverEffect: {
|
62
|
+
type: BooleanConstructor;
|
63
|
+
};
|
64
|
+
}>> & Readonly<{}>, {
|
65
|
+
size: IconSize;
|
66
|
+
hoverEffect: boolean;
|
67
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
68
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
69
|
+
export default _default;
|
70
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
71
|
+
new (): {
|
72
|
+
$slots: S;
|
73
|
+
};
|
74
|
+
};
|
@@ -1,51 +1,14 @@
|
|
1
|
-
import { ElUpload, ElButton, UploadRawFile } from 'element-plus';
|
2
1
|
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
3
2
|
import { ImportButtonParserType, ImportButtonParser } from './types';
|
4
|
-
declare
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
default?: (props: typeof __VLS_10) => any;
|
9
|
-
}>;
|
10
|
-
declare const __VLS_self: DefineComponent<ExtractPropTypes<{
|
11
|
-
uploader: {
|
12
|
-
type: FunctionConstructor;
|
13
|
-
};
|
14
|
-
multiple: {
|
15
|
-
type: BooleanConstructor;
|
16
|
-
};
|
17
|
-
accept: {
|
18
|
-
type: StringConstructor;
|
19
|
-
};
|
20
|
-
parser: {
|
21
|
-
type: PropType< ImportButtonParserType | ImportButtonParser>;
|
22
|
-
};
|
23
|
-
}>, {
|
24
|
-
ElUpload: typeof ElUpload;
|
25
|
-
ElButton: typeof ElButton;
|
26
|
-
onBeforeUpload: typeof onBeforeUpload;
|
27
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
28
|
-
success: (content: any) => any;
|
29
|
-
fail: (e: any) => any;
|
30
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
31
|
-
uploader: {
|
32
|
-
type: FunctionConstructor;
|
3
|
+
declare function __VLS_template(): {
|
4
|
+
attrs: Partial<{}>;
|
5
|
+
slots: {
|
6
|
+
default?(_: {}): any;
|
33
7
|
};
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
type: StringConstructor;
|
39
|
-
};
|
40
|
-
parser: {
|
41
|
-
type: PropType< ImportButtonParserType | ImportButtonParser>;
|
42
|
-
};
|
43
|
-
}>> & Readonly<{
|
44
|
-
onSuccess?: ((content: any) => any) | undefined;
|
45
|
-
onFail?: ((e: any) => any) | undefined;
|
46
|
-
}>, {
|
47
|
-
multiple: boolean;
|
48
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
8
|
+
refs: {};
|
9
|
+
rootEl: any;
|
10
|
+
};
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
49
12
|
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
50
13
|
uploader: {
|
51
14
|
type: FunctionConstructor;
|
@@ -81,9 +44,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
81
44
|
}>, {
|
82
45
|
multiple: boolean;
|
83
46
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
84
|
-
declare const _default:
|
47
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
85
48
|
export default _default;
|
86
|
-
type
|
49
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
87
50
|
new (): {
|
88
51
|
$slots: S;
|
89
52
|
};
|