1 | import { type PropType, type ExtractPropTypes } from 'vue';
|
2 | import type { FieldRule, FieldType, FieldTextAlign, FieldClearTrigger, FieldFormatTrigger, FieldAutosizeConfig } from './types';
|
3 | export declare const fieldSharedProps: {
|
4 | id: StringConstructor;
|
5 | name: StringConstructor;
|
6 | leftIcon: StringConstructor;
|
7 | rightIcon: StringConstructor;
|
8 | autofocus: BooleanConstructor;
|
9 | clearable: BooleanConstructor;
|
10 | maxlength: (NumberConstructor | StringConstructor)[];
|
11 | max: NumberConstructor;
|
12 | min: NumberConstructor;
|
13 | formatter: PropType<(value: string) => string>;
|
14 | clearIcon: {
|
15 | type: PropType<string>;
|
16 | default: string;
|
17 | };
|
18 | modelValue: {
|
19 | type: (NumberConstructor | StringConstructor)[];
|
20 | default: string;
|
21 | };
|
22 | inputAlign: PropType<FieldTextAlign>;
|
23 | placeholder: StringConstructor;
|
24 | autocomplete: StringConstructor;
|
25 | autocapitalize: StringConstructor;
|
26 | autocorrect: StringConstructor;
|
27 | errorMessage: StringConstructor;
|
28 | enterkeyhint: StringConstructor;
|
29 | clearTrigger: {
|
30 | type: PropType<FieldClearTrigger>;
|
31 | default: FieldClearTrigger;
|
32 | };
|
33 | formatTrigger: {
|
34 | type: PropType<FieldFormatTrigger>;
|
35 | default: FieldFormatTrigger;
|
36 | };
|
37 | spellcheck: {
|
38 | type: BooleanConstructor;
|
39 | default: null;
|
40 | };
|
41 | error: {
|
42 | type: BooleanConstructor;
|
43 | default: null;
|
44 | };
|
45 | disabled: {
|
46 | type: BooleanConstructor;
|
47 | default: null;
|
48 | };
|
49 | readonly: {
|
50 | type: BooleanConstructor;
|
51 | default: null;
|
52 | };
|
53 | };
|
54 | export declare const fieldProps: {
|
55 | tag: {
|
56 | type: PropType<keyof HTMLElementTagNameMap>;
|
57 | default: keyof HTMLElementTagNameMap;
|
58 | };
|
59 | icon: StringConstructor;
|
60 | size: PropType<import("../cell").CellSize>;
|
61 | title: (NumberConstructor | StringConstructor)[];
|
62 | value: (NumberConstructor | StringConstructor)[];
|
63 | label: (NumberConstructor | StringConstructor)[];
|
64 | center: BooleanConstructor;
|
65 | isLink: BooleanConstructor;
|
66 | border: {
|
67 | type: BooleanConstructor;
|
68 | default: true;
|
69 | };
|
70 | iconPrefix: StringConstructor;
|
71 | valueClass: PropType<unknown>;
|
72 | labelClass: PropType<unknown>;
|
73 | titleClass: PropType<unknown>;
|
74 | titleStyle: PropType<string | import("vue").CSSProperties>;
|
75 | arrowDirection: PropType<import("../cell").CellArrowDirection>;
|
76 | required: {
|
77 | type: PropType<boolean | "auto">;
|
78 | default: null;
|
79 | };
|
80 | clickable: {
|
81 | type: PropType<boolean | null>;
|
82 | default: null;
|
83 | };
|
84 | } & {
|
85 | id: StringConstructor;
|
86 | name: StringConstructor;
|
87 | leftIcon: StringConstructor;
|
88 | rightIcon: StringConstructor;
|
89 | autofocus: BooleanConstructor;
|
90 | clearable: BooleanConstructor;
|
91 | maxlength: (NumberConstructor | StringConstructor)[];
|
92 | max: NumberConstructor;
|
93 | min: NumberConstructor;
|
94 | formatter: PropType<(value: string) => string>;
|
95 | clearIcon: {
|
96 | type: PropType<string>;
|
97 | default: string;
|
98 | };
|
99 | modelValue: {
|
100 | type: (NumberConstructor | StringConstructor)[];
|
101 | default: string;
|
102 | };
|
103 | inputAlign: PropType<FieldTextAlign>;
|
104 | placeholder: StringConstructor;
|
105 | autocomplete: StringConstructor;
|
106 | autocapitalize: StringConstructor;
|
107 | autocorrect: StringConstructor;
|
108 | errorMessage: StringConstructor;
|
109 | enterkeyhint: StringConstructor;
|
110 | clearTrigger: {
|
111 | type: PropType<FieldClearTrigger>;
|
112 | default: FieldClearTrigger;
|
113 | };
|
114 | formatTrigger: {
|
115 | type: PropType<FieldFormatTrigger>;
|
116 | default: FieldFormatTrigger;
|
117 | };
|
118 | spellcheck: {
|
119 | type: BooleanConstructor;
|
120 | default: null;
|
121 | };
|
122 | error: {
|
123 | type: BooleanConstructor;
|
124 | default: null;
|
125 | };
|
126 | disabled: {
|
127 | type: BooleanConstructor;
|
128 | default: null;
|
129 | };
|
130 | readonly: {
|
131 | type: BooleanConstructor;
|
132 | default: null;
|
133 | };
|
134 | } & {
|
135 | rows: (NumberConstructor | StringConstructor)[];
|
136 | type: {
|
137 | type: PropType<FieldType>;
|
138 | default: FieldType;
|
139 | };
|
140 | rules: PropType<FieldRule[]>;
|
141 | autosize: PropType<boolean | FieldAutosizeConfig>;
|
142 | labelWidth: (NumberConstructor | StringConstructor)[];
|
143 | labelClass: PropType<unknown>;
|
144 | labelAlign: PropType<FieldTextAlign>;
|
145 | showWordLimit: BooleanConstructor;
|
146 | errorMessageAlign: PropType<FieldTextAlign>;
|
147 | colon: {
|
148 | type: BooleanConstructor;
|
149 | default: null;
|
150 | };
|
151 | };
|
152 | export type FieldProps = ExtractPropTypes<typeof fieldProps>;
|
153 | declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
154 | tag: {
|
155 | type: PropType<keyof HTMLElementTagNameMap>;
|
156 | default: keyof HTMLElementTagNameMap;
|
157 | };
|
158 | icon: StringConstructor;
|
159 | size: PropType<import("../cell").CellSize>;
|
160 | title: (NumberConstructor | StringConstructor)[];
|
161 | value: (NumberConstructor | StringConstructor)[];
|
162 | label: (NumberConstructor | StringConstructor)[];
|
163 | center: BooleanConstructor;
|
164 | isLink: BooleanConstructor;
|
165 | border: {
|
166 | type: BooleanConstructor;
|
167 | default: true;
|
168 | };
|
169 | iconPrefix: StringConstructor;
|
170 | valueClass: PropType<unknown>;
|
171 | labelClass: PropType<unknown>;
|
172 | titleClass: PropType<unknown>;
|
173 | titleStyle: PropType<string | import("vue").CSSProperties>;
|
174 | arrowDirection: PropType<import("../cell").CellArrowDirection>;
|
175 | required: {
|
176 | type: PropType<boolean | "auto">;
|
177 | default: null;
|
178 | };
|
179 | clickable: {
|
180 | type: PropType<boolean | null>;
|
181 | default: null;
|
182 | };
|
183 | } & {
|
184 | id: StringConstructor;
|
185 | name: StringConstructor;
|
186 | leftIcon: StringConstructor;
|
187 | rightIcon: StringConstructor;
|
188 | autofocus: BooleanConstructor;
|
189 | clearable: BooleanConstructor;
|
190 | maxlength: (NumberConstructor | StringConstructor)[];
|
191 | max: NumberConstructor;
|
192 | min: NumberConstructor;
|
193 | formatter: PropType<(value: string) => string>;
|
194 | clearIcon: {
|
195 | type: PropType<string>;
|
196 | default: string;
|
197 | };
|
198 | modelValue: {
|
199 | type: (NumberConstructor | StringConstructor)[];
|
200 | default: string;
|
201 | };
|
202 | inputAlign: PropType<FieldTextAlign>;
|
203 | placeholder: StringConstructor;
|
204 | autocomplete: StringConstructor;
|
205 | autocapitalize: StringConstructor;
|
206 | autocorrect: StringConstructor;
|
207 | errorMessage: StringConstructor;
|
208 | enterkeyhint: StringConstructor;
|
209 | clearTrigger: {
|
210 | type: PropType<FieldClearTrigger>;
|
211 | default: FieldClearTrigger;
|
212 | };
|
213 | formatTrigger: {
|
214 | type: PropType<FieldFormatTrigger>;
|
215 | default: FieldFormatTrigger;
|
216 | };
|
217 | spellcheck: {
|
218 | type: BooleanConstructor;
|
219 | default: null;
|
220 | };
|
221 | error: {
|
222 | type: BooleanConstructor;
|
223 | default: null;
|
224 | };
|
225 | disabled: {
|
226 | type: BooleanConstructor;
|
227 | default: null;
|
228 | };
|
229 | readonly: {
|
230 | type: BooleanConstructor;
|
231 | default: null;
|
232 | };
|
233 | } & {
|
234 | rows: (NumberConstructor | StringConstructor)[];
|
235 | type: {
|
236 | type: PropType<FieldType>;
|
237 | default: FieldType;
|
238 | };
|
239 | rules: PropType<FieldRule[]>;
|
240 | autosize: PropType<boolean | FieldAutosizeConfig>;
|
241 | labelWidth: (NumberConstructor | StringConstructor)[];
|
242 | labelClass: PropType<unknown>;
|
243 | labelAlign: PropType<FieldTextAlign>;
|
244 | showWordLimit: BooleanConstructor;
|
245 | errorMessageAlign: PropType<FieldTextAlign>;
|
246 | colon: {
|
247 | type: BooleanConstructor;
|
248 | default: null;
|
249 | };
|
250 | }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[], "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
251 | tag: {
|
252 | type: PropType<keyof HTMLElementTagNameMap>;
|
253 | default: keyof HTMLElementTagNameMap;
|
254 | };
|
255 | icon: StringConstructor;
|
256 | size: PropType<import("../cell").CellSize>;
|
257 | title: (NumberConstructor | StringConstructor)[];
|
258 | value: (NumberConstructor | StringConstructor)[];
|
259 | label: (NumberConstructor | StringConstructor)[];
|
260 | center: BooleanConstructor;
|
261 | isLink: BooleanConstructor;
|
262 | border: {
|
263 | type: BooleanConstructor;
|
264 | default: true;
|
265 | };
|
266 | iconPrefix: StringConstructor;
|
267 | valueClass: PropType<unknown>;
|
268 | labelClass: PropType<unknown>;
|
269 | titleClass: PropType<unknown>;
|
270 | titleStyle: PropType<string | import("vue").CSSProperties>;
|
271 | arrowDirection: PropType<import("../cell").CellArrowDirection>;
|
272 | required: {
|
273 | type: PropType<boolean | "auto">;
|
274 | default: null;
|
275 | };
|
276 | clickable: {
|
277 | type: PropType<boolean | null>;
|
278 | default: null;
|
279 | };
|
280 | } & {
|
281 | id: StringConstructor;
|
282 | name: StringConstructor;
|
283 | leftIcon: StringConstructor;
|
284 | rightIcon: StringConstructor;
|
285 | autofocus: BooleanConstructor;
|
286 | clearable: BooleanConstructor;
|
287 | maxlength: (NumberConstructor | StringConstructor)[];
|
288 | max: NumberConstructor;
|
289 | min: NumberConstructor;
|
290 | formatter: PropType<(value: string) => string>;
|
291 | clearIcon: {
|
292 | type: PropType<string>;
|
293 | default: string;
|
294 | };
|
295 | modelValue: {
|
296 | type: (NumberConstructor | StringConstructor)[];
|
297 | default: string;
|
298 | };
|
299 | inputAlign: PropType<FieldTextAlign>;
|
300 | placeholder: StringConstructor;
|
301 | autocomplete: StringConstructor;
|
302 | autocapitalize: StringConstructor;
|
303 | autocorrect: StringConstructor;
|
304 | errorMessage: StringConstructor;
|
305 | enterkeyhint: StringConstructor;
|
306 | clearTrigger: {
|
307 | type: PropType<FieldClearTrigger>;
|
308 | default: FieldClearTrigger;
|
309 | };
|
310 | formatTrigger: {
|
311 | type: PropType<FieldFormatTrigger>;
|
312 | default: FieldFormatTrigger;
|
313 | };
|
314 | spellcheck: {
|
315 | type: BooleanConstructor;
|
316 | default: null;
|
317 | };
|
318 | error: {
|
319 | type: BooleanConstructor;
|
320 | default: null;
|
321 | };
|
322 | disabled: {
|
323 | type: BooleanConstructor;
|
324 | default: null;
|
325 | };
|
326 | readonly: {
|
327 | type: BooleanConstructor;
|
328 | default: null;
|
329 | };
|
330 | } & {
|
331 | rows: (NumberConstructor | StringConstructor)[];
|
332 | type: {
|
333 | type: PropType<FieldType>;
|
334 | default: FieldType;
|
335 | };
|
336 | rules: PropType<FieldRule[]>;
|
337 | autosize: PropType<boolean | FieldAutosizeConfig>;
|
338 | labelWidth: (NumberConstructor | StringConstructor)[];
|
339 | labelClass: PropType<unknown>;
|
340 | labelAlign: PropType<FieldTextAlign>;
|
341 | showWordLimit: BooleanConstructor;
|
342 | errorMessageAlign: PropType<FieldTextAlign>;
|
343 | colon: {
|
344 | type: BooleanConstructor;
|
345 | default: null;
|
346 | };
|
347 | }>> & Readonly<{
|
348 | onFocus?: ((...args: any[]) => any) | undefined;
|
349 | onBlur?: ((...args: any[]) => any) | undefined;
|
350 | onKeypress?: ((...args: any[]) => any) | undefined;
|
351 | onClear?: ((...args: any[]) => any) | undefined;
|
352 | onClickInput?: ((...args: any[]) => any) | undefined;
|
353 | onEndValidate?: ((...args: any[]) => any) | undefined;
|
354 | onStartValidate?: ((...args: any[]) => any) | undefined;
|
355 | onClickLeftIcon?: ((...args: any[]) => any) | undefined;
|
356 | onClickRightIcon?: ((...args: any[]) => any) | undefined;
|
357 | "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
358 | }>, {
|
359 | type: FieldType;
|
360 | tag: keyof HTMLElementTagNameMap;
|
361 | center: boolean;
|
362 | autofocus: boolean;
|
363 | disabled: boolean;
|
364 | border: boolean;
|
365 | isLink: boolean;
|
366 | required: boolean | "auto";
|
367 | clickable: boolean | null;
|
368 | clearable: boolean;
|
369 | clearIcon: string;
|
370 | modelValue: string | number;
|
371 | clearTrigger: FieldClearTrigger;
|
372 | formatTrigger: FieldFormatTrigger;
|
373 | spellcheck: boolean;
|
374 | error: boolean;
|
375 | readonly: boolean;
|
376 | showWordLimit: boolean;
|
377 | colon: boolean;
|
378 | }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
379 | export default _default;
|
380 |
|
\ | No newline at end of file |