@vtj/ui 0.16.11 → 0.16.13
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 +1836 -1820
- package/dist/index.umd.js +5 -5
- package/package.json +3 -3
- package/types/components/action/Action.d.ts +66 -66
- package/types/components/action/hooks.d.ts +12 -12
- package/types/components/action-bar/ActionBar.d.ts +44 -44
- package/types/components/attachment/Attachment.d.ts +85 -534
- package/types/components/data-item/DataItem.d.ts +44 -44
- package/types/components/dialog/Dialog.d.ts +5 -13
- package/types/components/dialog-form/DialogForm.d.ts +66 -326
- package/types/components/dialog-grid/DialogGrid.d.ts +11 -27
- package/types/components/field/Field.d.ts +36 -214
- package/types/components/form/Form.d.ts +49 -293
- package/types/components/grid/renderers/components/DateEdit.d.ts +60 -64
- package/types/components/grid/renderers/components/GridEdit.d.ts +80 -305
- package/types/components/grid-editor/GridEditor.d.ts +80 -305
- package/types/components/mask/Mask.d.ts +47 -51
- package/types/components/mask/components/Tabs.d.ts +2 -4
- package/types/components/panel/Panel.d.ts +3 -7
- package/types/components/picker/Dialog.d.ts +2 -4
- package/types/components/query-form/QueryForm.d.ts +114 -610
- package/types/components/tabs/Tabs.d.ts +22 -22
- package/types/version.d.ts +2 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { GridEditorProps } from './types';
|
|
2
|
-
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance,
|
|
3
|
-
import {
|
|
2
|
+
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, StyleValue, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentPublicInstance, ComponentOptionsBase, ShallowRef, ComputedRef, CSSProperties, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
3
|
+
import { ComponentSize, InputModelModifiers, InputType, InputAutoSize, InputProps } from 'element-plus';
|
|
4
|
+
import { IconPropType } from 'element-plus/es/utils/index.mjs';
|
|
4
5
|
import { OnCleanup } from '@vue/reactivity';
|
|
5
6
|
declare const _default: DefineComponent<GridEditorProps, {
|
|
6
7
|
open: () => void;
|
|
@@ -20,67 +21,53 @@ declare const _default: DefineComponent<GridEditorProps, {
|
|
|
20
21
|
inputRef: ({
|
|
21
22
|
$: ComponentInternalInstance;
|
|
22
23
|
$data: {};
|
|
23
|
-
$props:
|
|
24
|
-
|
|
25
|
-
tabindex: string | number;
|
|
26
|
-
type: InputType;
|
|
27
|
-
modelValue: string | number | null;
|
|
28
|
-
modelModifiers: InputModelModifiers;
|
|
29
|
-
autocomplete: string;
|
|
30
|
-
clearIcon: string | Component;
|
|
31
|
-
wordLimitPosition: "inside" | "outside";
|
|
32
|
-
validateEvent: boolean;
|
|
33
|
-
inputStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
34
|
-
rows: number;
|
|
35
|
-
}> & Omit<{
|
|
36
|
-
readonly type: InputType;
|
|
37
|
-
readonly tabindex: string | number;
|
|
38
|
-
readonly modelValue: string | number | null;
|
|
39
|
-
readonly validateEvent: boolean;
|
|
40
|
-
readonly modelModifiers: InputModelModifiers;
|
|
41
|
-
readonly autocomplete: string;
|
|
42
|
-
readonly wordLimitPosition: "inside" | "outside";
|
|
43
|
-
readonly inputStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
44
|
-
readonly rows: number;
|
|
24
|
+
$props: {
|
|
25
|
+
readonly id?: string | undefined;
|
|
45
26
|
readonly size?: ComponentSize | undefined;
|
|
46
27
|
readonly disabled?: boolean | undefined;
|
|
47
|
-
readonly
|
|
48
|
-
readonly
|
|
49
|
-
readonly form?: string | undefined;
|
|
50
|
-
readonly id?: string | undefined;
|
|
51
|
-
readonly autofocus?: boolean | undefined;
|
|
52
|
-
readonly ariaLabel?: string | undefined;
|
|
53
|
-
readonly resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
|
|
28
|
+
readonly modelValue?: string | number | null | undefined | undefined;
|
|
29
|
+
readonly modelModifiers?: InputModelModifiers | undefined;
|
|
54
30
|
readonly maxlength?: string | number | undefined;
|
|
55
31
|
readonly minlength?: string | number | undefined;
|
|
32
|
+
readonly type?: InputType | undefined;
|
|
33
|
+
readonly resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
|
|
56
34
|
readonly autosize?: InputAutoSize | undefined;
|
|
35
|
+
readonly autocomplete?: string | undefined;
|
|
57
36
|
readonly formatter?: ((value: string) => string) | undefined;
|
|
58
37
|
readonly parser?: ((value: string) => string) | undefined;
|
|
38
|
+
readonly placeholder?: string | undefined;
|
|
39
|
+
readonly form?: string | undefined;
|
|
59
40
|
readonly readonly?: boolean | undefined;
|
|
60
41
|
readonly clearable?: boolean | undefined;
|
|
61
|
-
readonly clearIcon?:
|
|
42
|
+
readonly clearIcon?: IconPropType | undefined;
|
|
62
43
|
readonly showPassword?: boolean | undefined;
|
|
63
44
|
readonly showWordLimit?: boolean | undefined;
|
|
64
|
-
readonly
|
|
65
|
-
readonly
|
|
45
|
+
readonly wordLimitPosition?: "inside" | "outside" | undefined;
|
|
46
|
+
readonly suffixIcon?: IconPropType | undefined;
|
|
47
|
+
readonly prefixIcon?: IconPropType | undefined;
|
|
66
48
|
readonly containerRole?: string | undefined;
|
|
49
|
+
readonly tabindex?: string | number | undefined;
|
|
50
|
+
readonly validateEvent?: boolean | undefined;
|
|
51
|
+
readonly inputStyle?: StyleValue;
|
|
52
|
+
readonly autofocus?: boolean | undefined;
|
|
53
|
+
readonly rows?: number | undefined;
|
|
54
|
+
readonly ariaLabel?: string | undefined;
|
|
67
55
|
readonly inputmode?: "text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined | undefined;
|
|
77
|
-
onMouseenter?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
78
|
-
onMouseleave?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
79
|
-
onClear?: (() => any) | undefined | undefined;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
};
|
|
56
|
+
readonly name?: string | undefined;
|
|
57
|
+
readonly onBlur?: ((evt: FocusEvent) => any) | undefined | undefined;
|
|
58
|
+
readonly onChange?: ((value: string, evt?: Event | undefined) => any) | undefined | undefined;
|
|
59
|
+
readonly onCompositionend?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
|
60
|
+
readonly onCompositionstart?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
|
61
|
+
readonly onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
|
62
|
+
readonly onFocus?: ((evt: FocusEvent) => any) | undefined | undefined;
|
|
63
|
+
readonly onInput?: ((value: string) => any) | undefined | undefined;
|
|
64
|
+
readonly onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined | undefined;
|
|
65
|
+
readonly onMouseenter?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
66
|
+
readonly onMouseleave?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
67
|
+
readonly onClear?: ((evt: MouseEvent | undefined) => any) | undefined | undefined;
|
|
68
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
|
|
69
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
70
|
+
$attrs: Attrs;
|
|
84
71
|
$refs: {
|
|
85
72
|
[x: string]: unknown;
|
|
86
73
|
};
|
|
@@ -90,164 +77,56 @@ declare const _default: DefineComponent<GridEditorProps, {
|
|
|
90
77
|
$root: ComponentPublicInstance | null;
|
|
91
78
|
$parent: ComponentPublicInstance | null;
|
|
92
79
|
$host: Element | null;
|
|
93
|
-
$emit: ((event: "clear") => void) & ((event: "input", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "change", value: string, evt?: Event | undefined) => 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);
|
|
80
|
+
$emit: ((event: "clear", evt: MouseEvent | undefined) => void) & ((event: "input", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "change", value: string, evt?: Event | undefined) => 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);
|
|
94
81
|
$el: any;
|
|
95
|
-
$options: ComponentOptionsBase<Readonly<
|
|
96
|
-
size: {
|
|
97
|
-
type: PropType<"" | "default" | "large" | "small">;
|
|
98
|
-
};
|
|
99
|
-
disabled: {
|
|
100
|
-
type: PropType<boolean>;
|
|
101
|
-
default: undefined;
|
|
102
|
-
};
|
|
103
|
-
type: {
|
|
104
|
-
type: PropType<InputType>;
|
|
105
|
-
default: InputType;
|
|
106
|
-
};
|
|
107
|
-
name: {
|
|
108
|
-
type: PropType<string>;
|
|
109
|
-
};
|
|
110
|
-
placeholder: {
|
|
111
|
-
type: PropType<string>;
|
|
112
|
-
};
|
|
113
|
-
form: {
|
|
114
|
-
type: PropType<string>;
|
|
115
|
-
};
|
|
116
|
-
id: {
|
|
117
|
-
type: PropType<string>;
|
|
118
|
-
};
|
|
119
|
-
tabindex: {
|
|
120
|
-
type: PropType<string | number>;
|
|
121
|
-
default: 0;
|
|
122
|
-
};
|
|
123
|
-
autofocus: {
|
|
124
|
-
type: PropType<boolean>;
|
|
125
|
-
};
|
|
126
|
-
ariaLabel: {
|
|
127
|
-
type: PropType<string>;
|
|
128
|
-
};
|
|
129
|
-
resize: {
|
|
130
|
-
type: PropType<"horizontal" | "vertical" | "none" | "both">;
|
|
131
|
-
};
|
|
132
|
-
modelValue: {
|
|
133
|
-
type: PropType<string | number | null>;
|
|
134
|
-
default: "";
|
|
135
|
-
};
|
|
136
|
-
validateEvent: {
|
|
137
|
-
type: PropType<boolean>;
|
|
138
|
-
default: true;
|
|
139
|
-
};
|
|
140
|
-
modelModifiers: {
|
|
141
|
-
type: PropType<InputModelModifiers>;
|
|
142
|
-
default: () => {};
|
|
143
|
-
};
|
|
144
|
-
maxlength: {
|
|
145
|
-
type: PropType<string | number>;
|
|
146
|
-
};
|
|
147
|
-
minlength: {
|
|
148
|
-
type: PropType<string | number>;
|
|
149
|
-
};
|
|
150
|
-
autosize: {
|
|
151
|
-
type: PropType<InputAutoSize>;
|
|
152
|
-
};
|
|
153
|
-
autocomplete: {
|
|
154
|
-
type: PropType<string>;
|
|
155
|
-
default: "off";
|
|
156
|
-
};
|
|
157
|
-
formatter: {
|
|
158
|
-
type: PropType<(value: string) => string>;
|
|
159
|
-
};
|
|
160
|
-
parser: {
|
|
161
|
-
type: PropType<(value: string) => string>;
|
|
162
|
-
};
|
|
163
|
-
readonly: {
|
|
164
|
-
type: PropType<boolean>;
|
|
165
|
-
};
|
|
166
|
-
clearable: {
|
|
167
|
-
type: PropType<boolean>;
|
|
168
|
-
};
|
|
169
|
-
clearIcon: {
|
|
170
|
-
type: PropType<string | Component>;
|
|
171
|
-
default: any;
|
|
172
|
-
};
|
|
173
|
-
showPassword: {
|
|
174
|
-
type: PropType<boolean>;
|
|
175
|
-
};
|
|
176
|
-
showWordLimit: {
|
|
177
|
-
type: PropType<boolean>;
|
|
178
|
-
};
|
|
179
|
-
wordLimitPosition: {
|
|
180
|
-
type: PropType<"inside" | "outside">;
|
|
181
|
-
default: "inside";
|
|
182
|
-
};
|
|
183
|
-
suffixIcon: {
|
|
184
|
-
type: PropType<string | Component>;
|
|
185
|
-
};
|
|
186
|
-
prefixIcon: {
|
|
187
|
-
type: PropType<string | Component>;
|
|
188
|
-
};
|
|
189
|
-
containerRole: {
|
|
190
|
-
type: PropType<string>;
|
|
191
|
-
};
|
|
192
|
-
inputStyle: {
|
|
193
|
-
type: PropType<string | false | CSSProperties | StyleValue[] | null>;
|
|
194
|
-
default: () => {};
|
|
195
|
-
};
|
|
196
|
-
rows: {
|
|
197
|
-
type: PropType<number>;
|
|
198
|
-
default: 2;
|
|
199
|
-
};
|
|
200
|
-
inputmode: {
|
|
201
|
-
type: PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal">;
|
|
202
|
-
};
|
|
203
|
-
}>> & {
|
|
204
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
205
|
-
onInput?: ((value: string) => any) | undefined;
|
|
206
|
-
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
207
|
-
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
82
|
+
$options: ComponentOptionsBase<Readonly< InputProps> & Readonly<{
|
|
208
83
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
84
|
+
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
209
85
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
210
86
|
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
211
87
|
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
88
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
89
|
+
onInput?: ((value: string) => any) | undefined;
|
|
212
90
|
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
213
91
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
214
92
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
215
|
-
onClear?: (() => any) | undefined;
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
93
|
+
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
94
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
95
|
+
}>, {
|
|
96
|
+
input: ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
97
|
+
textarea: ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
219
98
|
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
220
99
|
textareaStyle: ComputedRef<StyleValue>;
|
|
221
|
-
autosize: Ref< InputAutoSize | undefined>;
|
|
222
|
-
isComposing: Ref<boolean>;
|
|
100
|
+
autosize: Ref< InputAutoSize | undefined, InputAutoSize | undefined>;
|
|
101
|
+
isComposing: Ref<boolean, boolean>;
|
|
223
102
|
focus: () => void | undefined;
|
|
224
103
|
blur: () => void | undefined;
|
|
225
104
|
select: () => void;
|
|
226
|
-
clear: () => void;
|
|
105
|
+
clear: (evt?: MouseEvent) => void;
|
|
227
106
|
resizeTextarea: () => void;
|
|
228
|
-
},
|
|
229
|
-
input: (value: string) => void;
|
|
230
|
-
focus: (evt: FocusEvent) => void;
|
|
231
|
-
"update:modelValue": (value: string) => void;
|
|
232
|
-
change: (value: string, evt?: Event | undefined) => void;
|
|
233
|
-
clear: () => void;
|
|
107
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
234
108
|
blur: (evt: FocusEvent) => void;
|
|
109
|
+
change: (value: string, evt?: Event | undefined) => void;
|
|
235
110
|
compositionend: (evt: CompositionEvent) => void;
|
|
236
111
|
compositionstart: (evt: CompositionEvent) => void;
|
|
237
112
|
compositionupdate: (evt: CompositionEvent) => void;
|
|
113
|
+
focus: (evt: FocusEvent) => void;
|
|
114
|
+
input: (value: string) => void;
|
|
238
115
|
keydown: (evt: Event | KeyboardEvent) => void;
|
|
239
116
|
mouseenter: (evt: MouseEvent) => void;
|
|
240
117
|
mouseleave: (evt: MouseEvent) => void;
|
|
118
|
+
clear: (evt: MouseEvent | undefined) => void;
|
|
119
|
+
"update:modelValue": (value: string) => void;
|
|
241
120
|
}, string, {
|
|
242
|
-
disabled: boolean;
|
|
243
|
-
tabindex: string | number;
|
|
244
121
|
type: InputType;
|
|
122
|
+
disabled: boolean;
|
|
123
|
+
clearIcon: IconPropType;
|
|
124
|
+
validateEvent: boolean;
|
|
245
125
|
modelValue: string | number | null;
|
|
246
126
|
modelModifiers: InputModelModifiers;
|
|
247
127
|
autocomplete: string;
|
|
248
|
-
clearIcon: string | Component;
|
|
249
128
|
wordLimitPosition: "inside" | "outside";
|
|
250
|
-
|
|
129
|
+
tabindex: string | number;
|
|
251
130
|
inputStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
252
131
|
rows: number;
|
|
253
132
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
@@ -271,149 +150,41 @@ declare const _default: DefineComponent<GridEditorProps, {
|
|
|
271
150
|
$nextTick: nextTick;
|
|
272
151
|
$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;
|
|
273
152
|
} & Readonly<{
|
|
274
|
-
disabled: boolean;
|
|
275
|
-
tabindex: string | number;
|
|
276
153
|
type: InputType;
|
|
154
|
+
disabled: boolean;
|
|
155
|
+
clearIcon: IconPropType;
|
|
156
|
+
validateEvent: boolean;
|
|
277
157
|
modelValue: string | number | null;
|
|
278
158
|
modelModifiers: InputModelModifiers;
|
|
279
159
|
autocomplete: string;
|
|
280
|
-
clearIcon: string | Component;
|
|
281
160
|
wordLimitPosition: "inside" | "outside";
|
|
282
|
-
|
|
161
|
+
tabindex: string | number;
|
|
283
162
|
inputStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
284
163
|
rows: number;
|
|
285
|
-
}> & Omit<Readonly<
|
|
286
|
-
size: {
|
|
287
|
-
type: PropType<"" | "default" | "large" | "small">;
|
|
288
|
-
};
|
|
289
|
-
disabled: {
|
|
290
|
-
type: PropType<boolean>;
|
|
291
|
-
default: undefined;
|
|
292
|
-
};
|
|
293
|
-
type: {
|
|
294
|
-
type: PropType<InputType>;
|
|
295
|
-
default: InputType;
|
|
296
|
-
};
|
|
297
|
-
name: {
|
|
298
|
-
type: PropType<string>;
|
|
299
|
-
};
|
|
300
|
-
placeholder: {
|
|
301
|
-
type: PropType<string>;
|
|
302
|
-
};
|
|
303
|
-
form: {
|
|
304
|
-
type: PropType<string>;
|
|
305
|
-
};
|
|
306
|
-
id: {
|
|
307
|
-
type: PropType<string>;
|
|
308
|
-
};
|
|
309
|
-
tabindex: {
|
|
310
|
-
type: PropType<string | number>;
|
|
311
|
-
default: 0;
|
|
312
|
-
};
|
|
313
|
-
autofocus: {
|
|
314
|
-
type: PropType<boolean>;
|
|
315
|
-
};
|
|
316
|
-
ariaLabel: {
|
|
317
|
-
type: PropType<string>;
|
|
318
|
-
};
|
|
319
|
-
resize: {
|
|
320
|
-
type: PropType<"horizontal" | "vertical" | "none" | "both">;
|
|
321
|
-
};
|
|
322
|
-
modelValue: {
|
|
323
|
-
type: PropType<string | number | null>;
|
|
324
|
-
default: "";
|
|
325
|
-
};
|
|
326
|
-
validateEvent: {
|
|
327
|
-
type: PropType<boolean>;
|
|
328
|
-
default: true;
|
|
329
|
-
};
|
|
330
|
-
modelModifiers: {
|
|
331
|
-
type: PropType<InputModelModifiers>;
|
|
332
|
-
default: () => {};
|
|
333
|
-
};
|
|
334
|
-
maxlength: {
|
|
335
|
-
type: PropType<string | number>;
|
|
336
|
-
};
|
|
337
|
-
minlength: {
|
|
338
|
-
type: PropType<string | number>;
|
|
339
|
-
};
|
|
340
|
-
autosize: {
|
|
341
|
-
type: PropType<InputAutoSize>;
|
|
342
|
-
};
|
|
343
|
-
autocomplete: {
|
|
344
|
-
type: PropType<string>;
|
|
345
|
-
default: "off";
|
|
346
|
-
};
|
|
347
|
-
formatter: {
|
|
348
|
-
type: PropType<(value: string) => string>;
|
|
349
|
-
};
|
|
350
|
-
parser: {
|
|
351
|
-
type: PropType<(value: string) => string>;
|
|
352
|
-
};
|
|
353
|
-
readonly: {
|
|
354
|
-
type: PropType<boolean>;
|
|
355
|
-
};
|
|
356
|
-
clearable: {
|
|
357
|
-
type: PropType<boolean>;
|
|
358
|
-
};
|
|
359
|
-
clearIcon: {
|
|
360
|
-
type: PropType<string | Component>;
|
|
361
|
-
default: any;
|
|
362
|
-
};
|
|
363
|
-
showPassword: {
|
|
364
|
-
type: PropType<boolean>;
|
|
365
|
-
};
|
|
366
|
-
showWordLimit: {
|
|
367
|
-
type: PropType<boolean>;
|
|
368
|
-
};
|
|
369
|
-
wordLimitPosition: {
|
|
370
|
-
type: PropType<"inside" | "outside">;
|
|
371
|
-
default: "inside";
|
|
372
|
-
};
|
|
373
|
-
suffixIcon: {
|
|
374
|
-
type: PropType<string | Component>;
|
|
375
|
-
};
|
|
376
|
-
prefixIcon: {
|
|
377
|
-
type: PropType<string | Component>;
|
|
378
|
-
};
|
|
379
|
-
containerRole: {
|
|
380
|
-
type: PropType<string>;
|
|
381
|
-
};
|
|
382
|
-
inputStyle: {
|
|
383
|
-
type: PropType<string | false | CSSProperties | StyleValue[] | null>;
|
|
384
|
-
default: () => {};
|
|
385
|
-
};
|
|
386
|
-
rows: {
|
|
387
|
-
type: PropType<number>;
|
|
388
|
-
default: 2;
|
|
389
|
-
};
|
|
390
|
-
inputmode: {
|
|
391
|
-
type: PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal">;
|
|
392
|
-
};
|
|
393
|
-
}>> & {
|
|
394
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
395
|
-
onInput?: ((value: string) => any) | undefined;
|
|
396
|
-
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
397
|
-
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
164
|
+
}> & Omit<Readonly< InputProps> & Readonly<{
|
|
398
165
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
166
|
+
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
399
167
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
400
168
|
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
401
169
|
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
170
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
171
|
+
onInput?: ((value: string) => any) | undefined;
|
|
402
172
|
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
403
173
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
404
174
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
405
|
-
onClear?: (() => any) | undefined;
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
175
|
+
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
176
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
177
|
+
}>, "clear" | "disabled" | "type" | "ref" | "input" | "select" | "textarea" | "tabindex" | "focus" | "blur" | "modelValue" | "validateEvent" | "modelModifiers" | "autosize" | "autocomplete" | "clearIcon" | "wordLimitPosition" | "inputStyle" | "rows" | "textareaStyle" | "isComposing" | "resizeTextarea"> & ShallowUnwrapRef<{
|
|
178
|
+
input: ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
179
|
+
textarea: ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
409
180
|
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
410
181
|
textareaStyle: ComputedRef<StyleValue>;
|
|
411
|
-
autosize: Ref< InputAutoSize | undefined>;
|
|
412
|
-
isComposing: Ref<boolean>;
|
|
182
|
+
autosize: Ref< InputAutoSize | undefined, InputAutoSize | undefined>;
|
|
183
|
+
isComposing: Ref<boolean, boolean>;
|
|
413
184
|
focus: () => void | undefined;
|
|
414
185
|
blur: () => void | undefined;
|
|
415
186
|
select: () => void;
|
|
416
|
-
clear: () => void;
|
|
187
|
+
clear: (evt?: MouseEvent) => void;
|
|
417
188
|
resizeTextarea: () => void;
|
|
418
189
|
}> & {} & ComponentCustomProperties & {} & {
|
|
419
190
|
$slots: {
|
|
@@ -422,6 +193,10 @@ declare const _default: DefineComponent<GridEditorProps, {
|
|
|
422
193
|
prefix?: (props: {}) => any;
|
|
423
194
|
} & {
|
|
424
195
|
suffix?: (props: {}) => any;
|
|
196
|
+
} & {
|
|
197
|
+
'password-icon'?: (props: {
|
|
198
|
+
visible: boolean;
|
|
199
|
+
}) => any;
|
|
425
200
|
} & {
|
|
426
201
|
append?: (props: {}) => any;
|
|
427
202
|
};
|