@bscjc/webui 1.2.3 → 1.3.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.
Files changed (35) hide show
  1. package/README.md +5 -2
  2. package/dist/components/JcCascader/index.d.ts +150 -50
  3. package/dist/components/JcDatePicker/index.d.ts +98 -33
  4. package/dist/components/JcImportButton/index.d.ts +62 -0
  5. package/dist/components/JcImportButton/index.vue.d.ts +29 -0
  6. package/dist/components/JcImportDialog/index.d.ts +101 -0
  7. package/dist/components/JcImportDialog/index.vue.d.ts +53 -0
  8. package/dist/components/JcInputComplex/index.d.ts +86 -28
  9. package/dist/components/JcInputSwitch/index.d.ts +86 -28
  10. package/dist/components/JcListLayout/index.d.ts +2 -4
  11. package/dist/components/JcMoreQueryContain/index.d.ts +2 -4
  12. package/dist/components/JcSelectQuery/index.d.ts +2 -4
  13. package/dist/components/JcTagQuery/index.d.ts +29 -10
  14. package/dist/components/index.d.ts +2 -0
  15. package/dist/es/index.mjs +1533 -1352
  16. package/dist/index.css +2 -2
  17. package/dist/lib/index.cjs +8 -8
  18. package/dist/tsconfig.app.tsbuildinfo +1 -1
  19. package/dist/types/components/JcCascader/index.d.ts +152 -52
  20. package/dist/types/components/JcDatePicker/index.d.ts +100 -35
  21. package/dist/types/components/JcImportButton/index.d.ts +64 -0
  22. package/dist/types/components/JcImportButton/index.vue.d.ts +31 -0
  23. package/dist/types/components/JcImportDialog/index.d.ts +103 -0
  24. package/dist/types/components/JcImportDialog/index.vue.d.ts +55 -0
  25. package/dist/types/components/JcInputComplex/index.d.ts +1213 -1155
  26. package/dist/types/components/JcInputSwitch/index.d.ts +423 -365
  27. package/dist/types/components/JcListLayout/index.d.ts +2 -4
  28. package/dist/types/components/JcMoreQueryContain/index.d.ts +2 -4
  29. package/dist/types/components/JcSelectQuery/index.d.ts +2 -4
  30. package/dist/types/components/JcTagQuery/index.d.ts +29 -10
  31. package/dist/types/components/index.d.ts +2 -0
  32. package/dist/types/components.d.ts +2 -0
  33. package/dist/types/utils/install.d.ts +4 -0
  34. package/dist/utils/install.d.ts +4 -0
  35. package/package.json +2 -2
@@ -1,68 +1,340 @@
1
- import { Plugin } from 'vue';
2
- type SFCWithInstall<T> = T & Plugin;
3
- export declare const JcInputSwitch: SFCWithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
- fieldList: {
5
- type: import('vue').PropType<Array<{
6
- label: string;
7
- value: string;
8
- }>>;
9
- required: true;
10
- default: () => never[];
11
- };
12
- size: {
13
- type: import('vue').PropType<"small" | "default" | "large">;
14
- default: string;
15
- validator: (value: string) => boolean;
16
- };
17
- width: {
18
- type: StringConstructor;
19
- default: string;
20
- };
21
- injectionKey: {
22
- type: StringConstructor;
23
- default: string;
24
- };
25
- }>, {
26
- [x: string]: any;
27
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
28
- fieldChange: (...args: any[]) => void;
29
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
30
- fieldList: {
31
- type: import('vue').PropType<Array<{
1
+ export declare const JcInputSwitch: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
+ fieldList: {
4
+ type: import('vue').PropType<Array<{
5
+ label: string;
6
+ value: string;
7
+ }>>;
8
+ required: true;
9
+ default: () => never[];
10
+ };
11
+ size: {
12
+ type: import('vue').PropType<"small" | "default" | "large">;
13
+ default: string;
14
+ validator: (value: string) => boolean;
15
+ };
16
+ width: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ injectionKey: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ }>> & Readonly<{
25
+ onFieldChange?: ((...args: any[]) => any) | undefined;
26
+ }>, {
27
+ [x: string]: any;
28
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
29
+ fieldChange: (...args: any[]) => void;
30
+ }, import('vue').PublicProps, {
31
+ size: "small" | "default" | "large";
32
+ injectionKey: string;
33
+ width: string;
34
+ fieldList: {
32
35
  label: string;
33
36
  value: string;
34
- }>>;
35
- required: true;
36
- default: () => never[];
37
- };
38
- size: {
39
- type: import('vue').PropType<"small" | "default" | "large">;
40
- default: string;
41
- validator: (value: string) => boolean;
42
- };
43
- width: {
44
- type: StringConstructor;
45
- default: string;
46
- };
47
- injectionKey: {
48
- type: StringConstructor;
49
- default: string;
50
- };
51
- }>> & Readonly<{
52
- onFieldChange?: ((...args: any[]) => any) | undefined;
53
- }>, {
54
- size: "small" | "default" | "large";
55
- injectionKey: string;
56
- width: string;
57
- fieldList: {
58
- label: string;
59
- value: string;
60
- }[];
61
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
62
- inputRef: ({
63
- $: import('vue').ComponentInternalInstance;
64
- $data: {};
65
- $props: Partial<{
37
+ }[];
38
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
39
+ inputRef: ({
40
+ $: import('vue').ComponentInternalInstance;
41
+ $data: {};
42
+ $props: Partial<{
43
+ readonly disabled: boolean;
44
+ readonly id: string;
45
+ readonly type: string;
46
+ readonly modelValue: string | number | null | undefined;
47
+ readonly tabindex: string | number;
48
+ readonly readonly: boolean;
49
+ readonly autosize: import('element-plus').InputAutoSize;
50
+ readonly autocomplete: string;
51
+ readonly containerRole: string;
52
+ readonly validateEvent: boolean;
53
+ readonly inputStyle: import('vue').StyleValue;
54
+ readonly rows: number;
55
+ readonly clearable: boolean;
56
+ readonly showPassword: boolean;
57
+ readonly showWordLimit: boolean;
58
+ readonly autofocus: boolean;
59
+ }> & Omit<{
60
+ readonly type: string;
61
+ readonly modelValue: string | number | null;
62
+ readonly autocomplete: string;
63
+ readonly disabled: boolean;
64
+ readonly clearable: boolean;
65
+ readonly validateEvent: boolean;
66
+ readonly tabindex: string | number;
67
+ readonly inputStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
68
+ readonly autofocus: boolean;
69
+ readonly readonly: boolean;
70
+ readonly autosize: import('element-plus').InputAutoSize;
71
+ readonly showPassword: boolean;
72
+ readonly showWordLimit: boolean;
73
+ readonly rows: number;
74
+ readonly size?: ("" | "small" | "default" | "large") | undefined;
75
+ readonly ariaLabel?: string | undefined;
76
+ readonly id?: string | undefined;
77
+ readonly placeholder?: string | undefined;
78
+ readonly suffixIcon?: (string | import('vue').Component) | undefined;
79
+ readonly form?: string | undefined;
80
+ readonly resize?: ("none" | "both" | "horizontal" | "vertical") | undefined;
81
+ readonly prefixIcon?: (string | import('vue').Component) | undefined;
82
+ readonly maxlength?: (string | number) | undefined;
83
+ readonly minlength?: (string | number) | undefined;
84
+ readonly formatter?: Function | undefined;
85
+ readonly parser?: Function | undefined;
86
+ readonly containerRole?: string | undefined;
87
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
88
+ onChange?: ((value: string) => any) | undefined | undefined;
89
+ onCompositionend?: ((evt: CompositionEvent) => any) | undefined | undefined;
90
+ onCompositionstart?: ((evt: CompositionEvent) => any) | undefined | undefined;
91
+ onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined | undefined;
92
+ onFocus?: ((evt: FocusEvent) => any) | undefined | undefined;
93
+ onBlur?: ((evt: FocusEvent) => any) | undefined | undefined;
94
+ onInput?: ((value: string) => any) | undefined | undefined;
95
+ onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined | undefined;
96
+ onMouseenter?: ((evt: MouseEvent) => any) | undefined | undefined;
97
+ onMouseleave?: ((evt: MouseEvent) => any) | undefined | undefined;
98
+ onClear?: (() => any) | undefined | undefined;
99
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "id" | "modelValue" | "autocomplete" | "disabled" | "clearable" | "validateEvent" | "tabindex" | "inputStyle" | "autofocus" | "readonly" | "autosize" | "showPassword" | "showWordLimit" | "containerRole" | "rows">;
100
+ $attrs: {
101
+ [x: string]: unknown;
102
+ };
103
+ $refs: {
104
+ [x: string]: unknown;
105
+ };
106
+ $slots: Readonly<{
107
+ [name: string]: import('vue').Slot<any> | undefined;
108
+ }>;
109
+ $root: import('vue').ComponentPublicInstance | null;
110
+ $parent: import('vue').ComponentPublicInstance | null;
111
+ $host: Element | null;
112
+ $emit: ((event: "clear") => void) & ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "input", 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);
113
+ $el: any;
114
+ $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
115
+ readonly ariaLabel: StringConstructor;
116
+ readonly id: {
117
+ readonly type: import('vue').PropType<string>;
118
+ readonly required: false;
119
+ readonly validator: ((val: unknown) => boolean) | undefined;
120
+ __epPropKey: true;
121
+ } & {
122
+ readonly default: undefined;
123
+ };
124
+ readonly size: {
125
+ readonly type: import('vue').PropType<"" | "small" | "default" | "large">;
126
+ readonly required: false;
127
+ readonly validator: ((val: unknown) => boolean) | undefined;
128
+ __epPropKey: true;
129
+ };
130
+ readonly disabled: BooleanConstructor;
131
+ readonly modelValue: {
132
+ readonly type: import('vue').PropType<string | number | null | undefined>;
133
+ readonly required: false;
134
+ readonly validator: ((val: unknown) => boolean) | undefined;
135
+ __epPropKey: true;
136
+ } & {
137
+ readonly default: "";
138
+ };
139
+ readonly maxlength: {
140
+ readonly type: import('vue').PropType<string | number>;
141
+ readonly required: false;
142
+ readonly validator: ((val: unknown) => boolean) | undefined;
143
+ __epPropKey: true;
144
+ };
145
+ readonly minlength: {
146
+ readonly type: import('vue').PropType<string | number>;
147
+ readonly required: false;
148
+ readonly validator: ((val: unknown) => boolean) | undefined;
149
+ __epPropKey: true;
150
+ };
151
+ readonly type: {
152
+ readonly type: import('vue').PropType<string>;
153
+ readonly required: false;
154
+ readonly validator: ((val: unknown) => boolean) | undefined;
155
+ __epPropKey: true;
156
+ } & {
157
+ readonly default: "text";
158
+ };
159
+ readonly resize: {
160
+ readonly type: import('vue').PropType<"none" | "both" | "horizontal" | "vertical">;
161
+ readonly required: false;
162
+ readonly validator: ((val: unknown) => boolean) | undefined;
163
+ __epPropKey: true;
164
+ };
165
+ readonly autosize: {
166
+ readonly type: import('vue').PropType<import('element-plus').InputAutoSize>;
167
+ readonly required: false;
168
+ readonly validator: ((val: unknown) => boolean) | undefined;
169
+ __epPropKey: true;
170
+ } & {
171
+ readonly default: false;
172
+ };
173
+ readonly autocomplete: {
174
+ readonly type: import('vue').PropType<string>;
175
+ readonly required: false;
176
+ readonly validator: ((val: unknown) => boolean) | undefined;
177
+ __epPropKey: true;
178
+ } & {
179
+ readonly default: "off";
180
+ };
181
+ readonly formatter: {
182
+ readonly type: import('vue').PropType<Function>;
183
+ readonly required: false;
184
+ readonly validator: ((val: unknown) => boolean) | undefined;
185
+ __epPropKey: true;
186
+ };
187
+ readonly parser: {
188
+ readonly type: import('vue').PropType<Function>;
189
+ readonly required: false;
190
+ readonly validator: ((val: unknown) => boolean) | undefined;
191
+ __epPropKey: true;
192
+ };
193
+ readonly placeholder: {
194
+ readonly type: import('vue').PropType<string>;
195
+ readonly required: false;
196
+ readonly validator: ((val: unknown) => boolean) | undefined;
197
+ __epPropKey: true;
198
+ };
199
+ readonly form: {
200
+ readonly type: import('vue').PropType<string>;
201
+ readonly required: false;
202
+ readonly validator: ((val: unknown) => boolean) | undefined;
203
+ __epPropKey: true;
204
+ };
205
+ readonly readonly: BooleanConstructor;
206
+ readonly clearable: BooleanConstructor;
207
+ readonly showPassword: BooleanConstructor;
208
+ readonly showWordLimit: BooleanConstructor;
209
+ readonly suffixIcon: {
210
+ readonly type: import('vue').PropType<string | import('vue').Component>;
211
+ readonly required: false;
212
+ readonly validator: ((val: unknown) => boolean) | undefined;
213
+ __epPropKey: true;
214
+ };
215
+ readonly prefixIcon: {
216
+ readonly type: import('vue').PropType<string | import('vue').Component>;
217
+ readonly required: false;
218
+ readonly validator: ((val: unknown) => boolean) | undefined;
219
+ __epPropKey: true;
220
+ };
221
+ readonly containerRole: {
222
+ readonly type: import('vue').PropType<string>;
223
+ readonly required: false;
224
+ readonly validator: ((val: unknown) => boolean) | undefined;
225
+ __epPropKey: true;
226
+ } & {
227
+ readonly default: undefined;
228
+ };
229
+ readonly tabindex: {
230
+ readonly type: import('vue').PropType<string | number>;
231
+ readonly required: false;
232
+ readonly validator: ((val: unknown) => boolean) | undefined;
233
+ __epPropKey: true;
234
+ } & {
235
+ readonly default: 0;
236
+ };
237
+ readonly validateEvent: {
238
+ readonly type: import('vue').PropType<boolean>;
239
+ readonly required: false;
240
+ readonly validator: ((val: unknown) => boolean) | undefined;
241
+ __epPropKey: true;
242
+ } & {
243
+ readonly default: true;
244
+ };
245
+ readonly inputStyle: {
246
+ readonly type: import('vue').PropType<import('vue').StyleValue>;
247
+ readonly required: false;
248
+ readonly validator: ((val: unknown) => boolean) | undefined;
249
+ __epPropKey: true;
250
+ } & {
251
+ readonly default: () => {};
252
+ };
253
+ readonly autofocus: BooleanConstructor;
254
+ readonly rows: {
255
+ readonly type: import('vue').PropType<number>;
256
+ readonly required: false;
257
+ readonly validator: ((val: unknown) => boolean) | undefined;
258
+ __epPropKey: true;
259
+ } & {
260
+ readonly default: 2;
261
+ };
262
+ }>> & {
263
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
264
+ onChange?: ((value: string) => any) | undefined;
265
+ onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
266
+ onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
267
+ onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
268
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
269
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
270
+ onInput?: ((value: string) => any) | undefined;
271
+ onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
272
+ onMouseenter?: ((evt: MouseEvent) => any) | undefined;
273
+ onMouseleave?: ((evt: MouseEvent) => any) | undefined;
274
+ onClear?: (() => any) | undefined;
275
+ }, {
276
+ input: import('vue').ShallowRef<HTMLInputElement | undefined>;
277
+ textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined>;
278
+ ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
279
+ textareaStyle: import('vue').ComputedRef<import('vue').StyleValue>;
280
+ autosize: import('vue').Ref<import('element-plus').InputAutoSize>;
281
+ isComposing: import('vue').Ref<boolean>;
282
+ focus: () => void | undefined;
283
+ blur: () => void | undefined;
284
+ select: () => void;
285
+ clear: () => void;
286
+ resizeTextarea: () => void;
287
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
288
+ input: (value: string) => void;
289
+ clear: () => void;
290
+ "update:modelValue": (value: string) => void;
291
+ change: (value: string) => void;
292
+ blur: (evt: FocusEvent) => void;
293
+ compositionend: (evt: CompositionEvent) => void;
294
+ compositionstart: (evt: CompositionEvent) => void;
295
+ compositionupdate: (evt: CompositionEvent) => void;
296
+ focus: (evt: FocusEvent) => void;
297
+ keydown: (evt: Event | KeyboardEvent) => void;
298
+ mouseenter: (evt: MouseEvent) => void;
299
+ mouseleave: (evt: MouseEvent) => void;
300
+ }, string, {
301
+ readonly disabled: boolean;
302
+ readonly id: string;
303
+ readonly type: string;
304
+ readonly modelValue: string | number | null | undefined;
305
+ readonly tabindex: string | number;
306
+ readonly readonly: boolean;
307
+ readonly autosize: import('element-plus').InputAutoSize;
308
+ readonly autocomplete: string;
309
+ readonly containerRole: string;
310
+ readonly validateEvent: boolean;
311
+ readonly inputStyle: import('vue').StyleValue;
312
+ readonly rows: number;
313
+ readonly clearable: boolean;
314
+ readonly showPassword: boolean;
315
+ readonly showWordLimit: boolean;
316
+ readonly autofocus: boolean;
317
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
318
+ beforeCreate?: (() => void) | (() => void)[];
319
+ created?: (() => void) | (() => void)[];
320
+ beforeMount?: (() => void) | (() => void)[];
321
+ mounted?: (() => void) | (() => void)[];
322
+ beforeUpdate?: (() => void) | (() => void)[];
323
+ updated?: (() => void) | (() => void)[];
324
+ activated?: (() => void) | (() => void)[];
325
+ deactivated?: (() => void) | (() => void)[];
326
+ beforeDestroy?: (() => void) | (() => void)[];
327
+ beforeUnmount?: (() => void) | (() => void)[];
328
+ destroyed?: (() => void) | (() => void)[];
329
+ unmounted?: (() => void) | (() => void)[];
330
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
331
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
332
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
333
+ };
334
+ $forceUpdate: () => void;
335
+ $nextTick: typeof import('vue').nextTick;
336
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
337
+ } & Readonly<{
66
338
  readonly disabled: boolean;
67
339
  readonly id: string;
68
340
  readonly type: string;
@@ -79,62 +351,7 @@ export declare const JcInputSwitch: SFCWithInstall<import('vue').DefineComponent
79
351
  readonly showPassword: boolean;
80
352
  readonly showWordLimit: boolean;
81
353
  readonly autofocus: boolean;
82
- }> & Omit<{
83
- readonly type: string;
84
- readonly modelValue: string | number | null;
85
- readonly autocomplete: string;
86
- readonly disabled: boolean;
87
- readonly clearable: boolean;
88
- readonly validateEvent: boolean;
89
- readonly tabindex: string | number;
90
- readonly inputStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
91
- readonly autofocus: boolean;
92
- readonly readonly: boolean;
93
- readonly autosize: import('element-plus').InputAutoSize;
94
- readonly showPassword: boolean;
95
- readonly showWordLimit: boolean;
96
- readonly rows: number;
97
- readonly size?: ("" | "small" | "default" | "large") | undefined;
98
- readonly ariaLabel?: string | undefined;
99
- readonly id?: string | undefined;
100
- readonly placeholder?: string | undefined;
101
- readonly suffixIcon?: (string | import('vue').Component) | undefined;
102
- readonly form?: string | undefined;
103
- readonly resize?: ("none" | "both" | "horizontal" | "vertical") | undefined;
104
- readonly prefixIcon?: (string | import('vue').Component) | undefined;
105
- readonly maxlength?: (string | number) | undefined;
106
- readonly minlength?: (string | number) | undefined;
107
- readonly formatter?: Function | undefined;
108
- readonly parser?: Function | undefined;
109
- readonly containerRole?: string | undefined;
110
- "onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
111
- onChange?: ((value: string) => any) | undefined | undefined;
112
- onCompositionend?: ((evt: CompositionEvent) => any) | undefined | undefined;
113
- onCompositionstart?: ((evt: CompositionEvent) => any) | undefined | undefined;
114
- onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined | undefined;
115
- onFocus?: ((evt: FocusEvent) => any) | undefined | undefined;
116
- onBlur?: ((evt: FocusEvent) => any) | undefined | undefined;
117
- onInput?: ((value: string) => any) | undefined | undefined;
118
- onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined | undefined;
119
- onMouseenter?: ((evt: MouseEvent) => any) | undefined | undefined;
120
- onMouseleave?: ((evt: MouseEvent) => any) | undefined | undefined;
121
- onClear?: (() => any) | undefined | undefined;
122
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "id" | "modelValue" | "autocomplete" | "disabled" | "clearable" | "validateEvent" | "tabindex" | "inputStyle" | "autofocus" | "readonly" | "autosize" | "showPassword" | "showWordLimit" | "containerRole" | "rows">;
123
- $attrs: {
124
- [x: string]: unknown;
125
- };
126
- $refs: {
127
- [x: string]: unknown;
128
- };
129
- $slots: Readonly<{
130
- [name: string]: import('vue').Slot<any> | undefined;
131
- }>;
132
- $root: import('vue').ComponentPublicInstance | null;
133
- $parent: import('vue').ComponentPublicInstance | null;
134
- $host: Element | null;
135
- $emit: ((event: "clear") => void) & ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "input", 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);
136
- $el: any;
137
- $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
354
+ }> & Omit<Readonly<import('vue').ExtractPropTypes<{
138
355
  readonly ariaLabel: StringConstructor;
139
356
  readonly id: {
140
357
  readonly type: import('vue').PropType<string>;
@@ -295,7 +512,7 @@ export declare const JcInputSwitch: SFCWithInstall<import('vue').DefineComponent
295
512
  onMouseenter?: ((evt: MouseEvent) => any) | undefined;
296
513
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
297
514
  onClear?: (() => any) | undefined;
298
- }, {
515
+ }, "clear" | "type" | "blur" | "focus" | "id" | "modelValue" | "autocomplete" | "disabled" | "clearable" | "validateEvent" | "tabindex" | "inputStyle" | "select" | "autofocus" | "ref" | "input" | "textarea" | "readonly" | "autosize" | "showPassword" | "showWordLimit" | "containerRole" | "rows" | "textareaStyle" | "isComposing" | "resizeTextarea"> & import('vue').ShallowUnwrapRef<{
299
516
  input: import('vue').ShallowRef<HTMLInputElement | undefined>;
300
517
  textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined>;
301
518
  ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
@@ -307,253 +524,94 @@ export declare const JcInputSwitch: SFCWithInstall<import('vue').DefineComponent
307
524
  select: () => void;
308
525
  clear: () => void;
309
526
  resizeTextarea: () => void;
310
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
311
- input: (value: string) => void;
312
- clear: () => void;
313
- "update:modelValue": (value: string) => void;
314
- change: (value: string) => void;
315
- blur: (evt: FocusEvent) => void;
316
- compositionend: (evt: CompositionEvent) => void;
317
- compositionstart: (evt: CompositionEvent) => void;
318
- compositionupdate: (evt: CompositionEvent) => void;
319
- focus: (evt: FocusEvent) => void;
320
- keydown: (evt: Event | KeyboardEvent) => void;
321
- mouseenter: (evt: MouseEvent) => void;
322
- mouseleave: (evt: MouseEvent) => void;
323
- }, string, {
324
- readonly disabled: boolean;
325
- readonly id: string;
326
- readonly type: string;
327
- readonly modelValue: string | number | null | undefined;
328
- readonly tabindex: string | number;
329
- readonly readonly: boolean;
330
- readonly autosize: import('element-plus').InputAutoSize;
331
- readonly autocomplete: string;
332
- readonly containerRole: string;
333
- readonly validateEvent: boolean;
334
- readonly inputStyle: import('vue').StyleValue;
335
- readonly rows: number;
336
- readonly clearable: boolean;
337
- readonly showPassword: boolean;
338
- readonly showWordLimit: boolean;
339
- readonly autofocus: boolean;
340
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
341
- beforeCreate?: (() => void) | (() => void)[];
342
- created?: (() => void) | (() => void)[];
343
- beforeMount?: (() => void) | (() => void)[];
344
- mounted?: (() => void) | (() => void)[];
345
- beforeUpdate?: (() => void) | (() => void)[];
346
- updated?: (() => void) | (() => void)[];
347
- activated?: (() => void) | (() => void)[];
348
- deactivated?: (() => void) | (() => void)[];
349
- beforeDestroy?: (() => void) | (() => void)[];
350
- beforeUnmount?: (() => void) | (() => void)[];
351
- destroyed?: (() => void) | (() => void)[];
352
- unmounted?: (() => void) | (() => void)[];
353
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
354
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
355
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
356
- };
357
- $forceUpdate: () => void;
358
- $nextTick: typeof import('vue').nextTick;
359
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
360
- } & Readonly<{
361
- readonly disabled: boolean;
362
- readonly id: string;
363
- readonly type: string;
364
- readonly modelValue: string | number | null | undefined;
365
- readonly tabindex: string | number;
366
- readonly readonly: boolean;
367
- readonly autosize: import('element-plus').InputAutoSize;
368
- readonly autocomplete: string;
369
- readonly containerRole: string;
370
- readonly validateEvent: boolean;
371
- readonly inputStyle: import('vue').StyleValue;
372
- readonly rows: number;
373
- readonly clearable: boolean;
374
- readonly showPassword: boolean;
375
- readonly showWordLimit: boolean;
376
- readonly autofocus: boolean;
377
- }> & Omit<Readonly<import('vue').ExtractPropTypes<{
378
- readonly ariaLabel: StringConstructor;
379
- readonly id: {
380
- readonly type: import('vue').PropType<string>;
381
- readonly required: false;
382
- readonly validator: ((val: unknown) => boolean) | undefined;
383
- __epPropKey: true;
384
- } & {
385
- readonly default: undefined;
386
- };
387
- readonly size: {
388
- readonly type: import('vue').PropType<"" | "small" | "default" | "large">;
389
- readonly required: false;
390
- readonly validator: ((val: unknown) => boolean) | undefined;
391
- __epPropKey: true;
392
- };
393
- readonly disabled: BooleanConstructor;
394
- readonly modelValue: {
395
- readonly type: import('vue').PropType<string | number | null | undefined>;
396
- readonly required: false;
397
- readonly validator: ((val: unknown) => boolean) | undefined;
398
- __epPropKey: true;
399
- } & {
400
- readonly default: "";
401
- };
402
- readonly maxlength: {
403
- readonly type: import('vue').PropType<string | number>;
404
- readonly required: false;
405
- readonly validator: ((val: unknown) => boolean) | undefined;
406
- __epPropKey: true;
407
- };
408
- readonly minlength: {
409
- readonly type: import('vue').PropType<string | number>;
410
- readonly required: false;
411
- readonly validator: ((val: unknown) => boolean) | undefined;
412
- __epPropKey: true;
413
- };
414
- readonly type: {
415
- readonly type: import('vue').PropType<string>;
416
- readonly required: false;
417
- readonly validator: ((val: unknown) => boolean) | undefined;
418
- __epPropKey: true;
419
- } & {
420
- readonly default: "text";
421
- };
422
- readonly resize: {
423
- readonly type: import('vue').PropType<"none" | "both" | "horizontal" | "vertical">;
424
- readonly required: false;
425
- readonly validator: ((val: unknown) => boolean) | undefined;
426
- __epPropKey: true;
427
- };
428
- readonly autosize: {
429
- readonly type: import('vue').PropType<import('element-plus').InputAutoSize>;
430
- readonly required: false;
431
- readonly validator: ((val: unknown) => boolean) | undefined;
432
- __epPropKey: true;
433
- } & {
434
- readonly default: false;
435
- };
436
- readonly autocomplete: {
437
- readonly type: import('vue').PropType<string>;
438
- readonly required: false;
439
- readonly validator: ((val: unknown) => boolean) | undefined;
440
- __epPropKey: true;
441
- } & {
442
- readonly default: "off";
443
- };
444
- readonly formatter: {
445
- readonly type: import('vue').PropType<Function>;
446
- readonly required: false;
447
- readonly validator: ((val: unknown) => boolean) | undefined;
448
- __epPropKey: true;
449
- };
450
- readonly parser: {
451
- readonly type: import('vue').PropType<Function>;
452
- readonly required: false;
453
- readonly validator: ((val: unknown) => boolean) | undefined;
454
- __epPropKey: true;
455
- };
456
- readonly placeholder: {
457
- readonly type: import('vue').PropType<string>;
458
- readonly required: false;
459
- readonly validator: ((val: unknown) => boolean) | undefined;
460
- __epPropKey: true;
461
- };
462
- readonly form: {
463
- readonly type: import('vue').PropType<string>;
464
- readonly required: false;
465
- readonly validator: ((val: unknown) => boolean) | undefined;
466
- __epPropKey: true;
467
- };
468
- readonly readonly: BooleanConstructor;
469
- readonly clearable: BooleanConstructor;
470
- readonly showPassword: BooleanConstructor;
471
- readonly showWordLimit: BooleanConstructor;
472
- readonly suffixIcon: {
473
- readonly type: import('vue').PropType<string | import('vue').Component>;
474
- readonly required: false;
475
- readonly validator: ((val: unknown) => boolean) | undefined;
476
- __epPropKey: true;
477
- };
478
- readonly prefixIcon: {
479
- readonly type: import('vue').PropType<string | import('vue').Component>;
480
- readonly required: false;
481
- readonly validator: ((val: unknown) => boolean) | undefined;
482
- __epPropKey: true;
483
- };
484
- readonly containerRole: {
485
- readonly type: import('vue').PropType<string>;
486
- readonly required: false;
487
- readonly validator: ((val: unknown) => boolean) | undefined;
488
- __epPropKey: true;
489
- } & {
490
- readonly default: undefined;
491
- };
492
- readonly tabindex: {
493
- readonly type: import('vue').PropType<string | number>;
494
- readonly required: false;
495
- readonly validator: ((val: unknown) => boolean) | undefined;
496
- __epPropKey: true;
497
- } & {
498
- readonly default: 0;
499
- };
500
- readonly validateEvent: {
501
- readonly type: import('vue').PropType<boolean>;
502
- readonly required: false;
503
- readonly validator: ((val: unknown) => boolean) | undefined;
504
- __epPropKey: true;
505
- } & {
506
- readonly default: true;
527
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
528
+ $slots: {
529
+ prepend?(_: {}): any;
530
+ prefix?(_: {}): any;
531
+ suffix?(_: {}): any;
532
+ append?(_: {}): any;
533
+ };
534
+ }) | null;
535
+ }, any, import('vue').ComponentProvideOptions, {
536
+ P: {};
537
+ B: {};
538
+ D: {};
539
+ C: {};
540
+ M: {};
541
+ Defaults: {};
542
+ }, Readonly<import('vue').ExtractPropTypes<{
543
+ fieldList: {
544
+ type: import('vue').PropType<Array<{
545
+ label: string;
546
+ value: string;
547
+ }>>;
548
+ required: true;
549
+ default: () => never[];
507
550
  };
508
- readonly inputStyle: {
509
- readonly type: import('vue').PropType<import('vue').StyleValue>;
510
- readonly required: false;
511
- readonly validator: ((val: unknown) => boolean) | undefined;
512
- __epPropKey: true;
513
- } & {
514
- readonly default: () => {};
551
+ size: {
552
+ type: import('vue').PropType<"small" | "default" | "large">;
553
+ default: string;
554
+ validator: (value: string) => boolean;
515
555
  };
516
- readonly autofocus: BooleanConstructor;
517
- readonly rows: {
518
- readonly type: import('vue').PropType<number>;
519
- readonly required: false;
520
- readonly validator: ((val: unknown) => boolean) | undefined;
521
- __epPropKey: true;
522
- } & {
523
- readonly default: 2;
556
+ width: {
557
+ type: StringConstructor;
558
+ default: string;
524
559
  };
525
- }>> & {
526
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
527
- onChange?: ((value: string) => any) | undefined;
528
- onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
529
- onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
530
- onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
531
- onFocus?: ((evt: FocusEvent) => any) | undefined;
532
- onBlur?: ((evt: FocusEvent) => any) | undefined;
533
- onInput?: ((value: string) => any) | undefined;
534
- onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
535
- onMouseenter?: ((evt: MouseEvent) => any) | undefined;
536
- onMouseleave?: ((evt: MouseEvent) => any) | undefined;
537
- onClear?: (() => any) | undefined;
538
- }, "clear" | "type" | "blur" | "focus" | "id" | "modelValue" | "autocomplete" | "disabled" | "clearable" | "validateEvent" | "tabindex" | "inputStyle" | "select" | "autofocus" | "ref" | "input" | "textarea" | "readonly" | "autosize" | "showPassword" | "showWordLimit" | "containerRole" | "rows" | "textareaStyle" | "isComposing" | "resizeTextarea"> & import('vue').ShallowUnwrapRef<{
539
- input: import('vue').ShallowRef<HTMLInputElement | undefined>;
540
- textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined>;
541
- ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
542
- textareaStyle: import('vue').ComputedRef<import('vue').StyleValue>;
543
- autosize: import('vue').Ref<import('element-plus').InputAutoSize>;
544
- isComposing: import('vue').Ref<boolean>;
545
- focus: () => void | undefined;
546
- blur: () => void | undefined;
547
- select: () => void;
548
- clear: () => void;
549
- resizeTextarea: () => void;
550
- }> & {} & import('vue').ComponentCustomProperties & {} & {
551
- $slots: {
552
- prepend?(_: {}): any;
553
- prefix?(_: {}): any;
554
- suffix?(_: {}): any;
555
- append?(_: {}): any;
560
+ injectionKey: {
561
+ type: StringConstructor;
562
+ default: string;
556
563
  };
557
- }) | null;
558
- }, any>>;
564
+ }>> & Readonly<{
565
+ onFieldChange?: ((...args: any[]) => any) | undefined;
566
+ }>, {
567
+ [x: string]: any;
568
+ }, {}, {}, {}, {
569
+ size: "small" | "default" | "large";
570
+ injectionKey: string;
571
+ width: string;
572
+ fieldList: {
573
+ label: string;
574
+ value: string;
575
+ }[];
576
+ }>;
577
+ __isFragment?: never;
578
+ __isTeleport?: never;
579
+ __isSuspense?: never;
580
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
581
+ fieldList: {
582
+ type: import('vue').PropType<Array<{
583
+ label: string;
584
+ value: string;
585
+ }>>;
586
+ required: true;
587
+ default: () => never[];
588
+ };
589
+ size: {
590
+ type: import('vue').PropType<"small" | "default" | "large">;
591
+ default: string;
592
+ validator: (value: string) => boolean;
593
+ };
594
+ width: {
595
+ type: StringConstructor;
596
+ default: string;
597
+ };
598
+ injectionKey: {
599
+ type: StringConstructor;
600
+ default: string;
601
+ };
602
+ }>> & Readonly<{
603
+ onFieldChange?: ((...args: any[]) => any) | undefined;
604
+ }>, {
605
+ [x: string]: any;
606
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
607
+ fieldChange: (...args: any[]) => void;
608
+ }, string, {
609
+ size: "small" | "default" | "large";
610
+ injectionKey: string;
611
+ width: string;
612
+ fieldList: {
613
+ label: string;
614
+ value: string;
615
+ }[];
616
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
559
617
  export default JcInputSwitch;