@yimou6/common-ui 1.12.16 → 1.13.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 (42) hide show
  1. package/cdn/index.cdn.js +13 -13
  2. package/cdn/index.cdn.js.map +1 -1
  3. package/cdn/index.cdn.mjs +13 -13
  4. package/cdn/index.cdn.mjs.map +1 -1
  5. package/cdn/index.css +1 -1
  6. package/es/components/radio/index.d.ts +38 -67
  7. package/es/components/radio/src/radio.d.ts +10 -26
  8. package/es/components/radio/src/radio.mjs +5 -27
  9. package/es/components/radio/src/radio.mjs.map +1 -1
  10. package/es/components/radio/src/radio.vue.d.ts +38 -67
  11. package/es/components/radio/src/radio.vue2.mjs +5 -5
  12. package/es/components/radio/src/radio.vue2.mjs.map +1 -1
  13. package/es/components/search/src/search.vue.d.ts +1 -1
  14. package/es/components/search/src/search.vue2.mjs.map +1 -1
  15. package/es/components/select/index.d.ts +0 -9
  16. package/es/components/select/src/select.d.ts +2 -5
  17. package/es/components/select/src/select.mjs +1 -4
  18. package/es/components/select/src/select.mjs.map +1 -1
  19. package/es/components/select/src/select.vue.d.ts +0 -9
  20. package/es/components/select/src/select.vue2.mjs +1 -5
  21. package/es/components/select/src/select.vue2.mjs.map +1 -1
  22. package/es/element-plus.types.d.ts +32 -170
  23. package/lib/components/radio/index.d.ts +38 -67
  24. package/lib/components/radio/src/radio.d.ts +10 -26
  25. package/lib/components/radio/src/radio.js +4 -27
  26. package/lib/components/radio/src/radio.js.map +1 -1
  27. package/lib/components/radio/src/radio.vue.d.ts +38 -67
  28. package/lib/components/radio/src/radio.vue2.js +4 -4
  29. package/lib/components/radio/src/radio.vue2.js.map +1 -1
  30. package/lib/components/search/src/search.vue.d.ts +1 -1
  31. package/lib/components/search/src/search.vue2.js.map +1 -1
  32. package/lib/components/select/index.d.ts +0 -9
  33. package/lib/components/select/src/select.d.ts +2 -5
  34. package/lib/components/select/src/select.js +1 -4
  35. package/lib/components/select/src/select.js.map +1 -1
  36. package/lib/components/select/src/select.vue.d.ts +0 -9
  37. package/lib/components/select/src/select.vue2.js +1 -5
  38. package/lib/components/select/src/select.vue2.js.map +1 -1
  39. package/lib/element-plus.types.d.ts +32 -170
  40. package/package.json +1 -1
  41. package/theme-default/i-tzj-player.css +1 -1
  42. package/theme-default/index.css +1 -1
@@ -1,7 +1,5 @@
1
1
  import type { Component } from "vue";
2
2
  export interface ElInputProps {
3
- ariaLabel?: string;
4
- id?: string;
5
3
  size?: "" | "default" | "small" | "large";
6
4
  disabled?: boolean;
7
5
  modelValue?: string | number | null | undefined;
@@ -9,9 +7,8 @@ export interface ElInputProps {
9
7
  minlength?: string | number;
10
8
  type?: string;
11
9
  resize?: "none" | "both" | "horizontal" | "vertical";
12
- autosize?: boolean | Record<string, number>;
10
+ autosize?: boolean | object;
13
11
  autocomplete?: string;
14
- name?: string;
15
12
  formatter?: Function;
16
13
  parser?: Function;
17
14
  placeholder?: string;
@@ -22,17 +19,14 @@ export interface ElInputProps {
22
19
  showWordLimit?: boolean;
23
20
  suffixIcon?: string | Component;
24
21
  prefixIcon?: string | Component;
25
- containerRole?: string;
22
+ containerRole?: string | undefined;
26
23
  tabindex?: string | number;
27
24
  validateEvent?: boolean;
28
25
  autofocus?: boolean;
29
- inputStyle?: Record<string, unknown> | string;
26
+ inputStyle?: object | any[] | string;
30
27
  rows?: number;
31
28
  }
32
29
  export interface ElSelectProps {
33
- ariaLabel?: string;
34
- id?: string;
35
- modelValue?: string | number | boolean | Record<string, unknown> | unknown[];
36
30
  multiple?: boolean;
37
31
  disabled?: boolean;
38
32
  valueKey?: string;
@@ -40,44 +34,30 @@ export interface ElSelectProps {
40
34
  clearable?: boolean;
41
35
  collapseTags?: boolean;
42
36
  collapseTagsTooltip?: boolean;
43
- maxCollapseTags?: number;
44
37
  multipleLimit?: number;
45
38
  name?: string;
46
- effect?: "dark" | "light" | string;
39
+ effect?: "dark" | "light";
47
40
  autocomplete?: string;
48
41
  placeholder?: string;
49
42
  filterable?: boolean;
50
43
  allowCreate?: boolean;
51
- filterMethod?: Function;
44
+ filterMethod?: () => void;
52
45
  remote?: boolean;
53
- remoteMethod?: Function;
46
+ remoteMethod?: () => void;
54
47
  remoteShowSuffix?: boolean;
55
48
  loading?: boolean;
56
49
  loadingText?: string;
57
50
  noMatchText?: string;
58
51
  noDataText?: string;
59
52
  popperClass?: string;
60
- popperOptions?: Record<string, unknown>;
61
53
  reserveKeyword?: boolean;
62
54
  defaultFirstOption?: boolean;
63
55
  teleported?: boolean;
64
56
  persistent?: boolean;
65
- clearIcon?: string | Component;
57
+ clearIcon?: string | object;
66
58
  fitInputWidth?: boolean;
67
- suffixIcon?: string | Component;
68
- tagType?: "success" | "info" | "warning" | "danger" | "" | undefined;
69
- emptyValues?: unknown[];
70
- valueOnClear?: string | number | boolean | (() => string | number | boolean);
71
- placement?: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
72
- offset?: number;
73
- fallbackPlacements?: string[];
74
- suffixTransition?: boolean;
75
- automaticDropdown?: boolean;
76
59
  }
77
60
  export interface ElInputNumberProps {
78
- ariaLabel?: string;
79
- id?: string;
80
- modelValue?: number | undefined;
81
61
  min?: number;
82
62
  max?: number;
83
63
  step?: number;
@@ -88,15 +68,8 @@ export interface ElInputNumberProps {
88
68
  disabled?: boolean;
89
69
  controls?: boolean;
90
70
  controlsPosition?: "" | "right";
91
- name?: string;
92
- placeholder?: string;
93
- valueOnClear?: number | null | "min" | "max";
94
- validateEvent?: boolean;
95
71
  }
96
72
  export interface ElDatePickerProps {
97
- ariaLabel?: string;
98
- id?: string;
99
- modelValue?: Date | number | string | [Date, Date] | [number, number] | [string, string];
100
73
  readonly?: boolean;
101
74
  disabled?: boolean;
102
75
  size?: "" | "large" | "default" | "small";
@@ -108,69 +81,48 @@ export interface ElDatePickerProps {
108
81
  type?: "year" | "years" | "month" | "months" | "date" | "dates" | "datetime" | "week" | "datetimerange" | "daterange" | "monthrange" | "yearrange";
109
82
  format?: string;
110
83
  popperClass?: string;
111
- popperOptions?: Record<string, unknown>;
84
+ popperOptions?: object;
112
85
  rangeSeparator?: string;
113
- defaultValue?: Date | [Date, Date];
114
- defaultTime?: Date | [Date, Date];
86
+ defaultValue?: object;
87
+ defaultTime?: object;
115
88
  valueFormat?: string;
116
89
  unlinkPanels?: boolean;
117
- shortcuts?: {
118
- text: string;
119
- value: Date | (() => Date);
120
- }[];
90
+ shortcuts?: object;
121
91
  teleported?: boolean;
122
- disabledDate?: Function;
123
- cellClassName?: Function;
124
- prefixIcon?: string | Component;
125
- clearIcon?: string | Component;
126
- suffixIcon?: string | Component;
127
- name?: string;
92
+ disabledDate?: (date: any) => boolean;
128
93
  }
129
94
  export interface ElCascaderProps {
130
- ariaLabel?: string;
131
- id?: string;
132
- modelValue?: string | number | (string | number)[] | null;
133
95
  size?: "" | "large" | "default" | "small";
134
96
  disabled?: boolean;
135
97
  clearable?: boolean;
136
98
  filterable?: boolean;
137
- filterMethod?: Function;
99
+ filterMethod?: () => void;
138
100
  separator?: string;
139
101
  showAllLevels?: boolean;
140
102
  collapseTags?: boolean;
141
103
  collapseTagsTooltip?: boolean;
142
- maxCollapseTags?: number;
143
104
  debounce?: number;
144
- beforeFilter?: Function;
105
+ beforeFilter?: () => void;
145
106
  popperClass?: string;
146
107
  placeholder?: string;
147
- props?: CascaderPanelProps;
108
+ props?: {
109
+ multiple?: boolean;
110
+ value?: string;
111
+ label?: string;
112
+ children?: string;
113
+ disabled?: string;
114
+ leaf?: string;
115
+ checkStrictly?: boolean;
116
+ emitPath?: boolean;
117
+ expandTrigger?: "click" | "hover";
118
+ lazy?: boolean;
119
+ lazyLoad?: () => void;
120
+ hoverThreshold?: number;
121
+ };
148
122
  expandTrigger?: "click" | "hover";
149
123
  options?: Record<string, unknown>[];
150
- tagType?: "success" | "info" | "warning" | "danger" | "" | undefined;
151
- popperOptions?: Record<string, unknown>;
152
- placement?: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
153
- offset?: number;
154
- validateEvent?: boolean;
155
- teleported?: boolean;
156
- }
157
- export interface CascaderPanelProps {
158
- multiple?: boolean;
159
- value?: string;
160
- label?: string;
161
- children?: string;
162
- disabled?: string;
163
- leaf?: string;
164
- checkStrictly?: boolean;
165
- emitPath?: boolean;
166
- expandTrigger?: "click" | "hover";
167
- lazy?: boolean;
168
- lazyLoad?: Function;
169
- hoverThreshold?: number;
170
124
  }
171
125
  export interface ElSwitchProps {
172
- ariaLabel?: string;
173
- id?: string;
174
126
  disabled?: boolean;
175
127
  loading?: boolean;
176
128
  inlinePrompt?: boolean;
@@ -186,14 +138,8 @@ export interface ElSwitchProps {
186
138
  name?: string;
187
139
  validateEvent?: boolean;
188
140
  tabindex?: string | number;
189
- beforeChange?: Function;
190
- activeIcon?: string | Component;
191
- inactiveIcon?: string | Component;
192
141
  }
193
142
  export interface ElTimePickerProps {
194
- ariaLabel?: string;
195
- id?: string;
196
- modelValue?: Date | string | [Date, Date] | [string, string];
197
143
  readonly?: boolean;
198
144
  disabled?: boolean;
199
145
  size?: "" | "large" | "default" | "small";
@@ -205,96 +151,12 @@ export interface ElTimePickerProps {
205
151
  format?: string;
206
152
  valueFormat?: string;
207
153
  rangeSeparator?: string;
208
- defaultValue?: Date | [Date, Date];
154
+ defaultValue?: object;
209
155
  isRange?: boolean;
210
156
  arrowControl?: boolean;
211
157
  popperClass?: string;
212
- disabledHours?: Function;
213
- disabledMinutes?: Function;
214
- disabledSeconds?: Function;
158
+ disabledHours?: (role: string, comparingDate?: any) => number[];
159
+ disabledMinutes?: (hour: number, role: string, comparingDate?: any) => number[];
160
+ disabledSeconds?: (hour: number, minute: number, role: string, comparingDate?: any) => number[];
215
161
  teleported?: boolean;
216
- name?: string;
217
- prefixIcon?: string | Component;
218
- clearIcon?: string | Component;
219
- suffixIcon?: string | Component;
220
- }
221
- export interface ElRadioGroupProps {
222
- ariaLabel?: string;
223
- id?: string;
224
- size?: "" | "small" | "default" | "large";
225
- disabled?: boolean;
226
- modelValue?: string | number | boolean;
227
- fill?: string;
228
- textColor?: string;
229
- name?: string;
230
- validateEvent?: boolean;
231
- }
232
- export interface ElCheckboxProps {
233
- ariaLabel?: string;
234
- id?: string;
235
- modelValue?: string | number | boolean;
236
- label?: string | number | boolean | Record<string, unknown>;
237
- indeterminate?: boolean;
238
- disabled?: boolean;
239
- checked?: boolean;
240
- name?: string;
241
- trueLabel?: string | number;
242
- falseLabel?: string | number;
243
- border?: boolean;
244
- size?: "" | "large" | "default" | "small";
245
- tabindex?: string | number;
246
- validateEvent?: boolean;
247
- }
248
- export interface ElRateProps {
249
- ariaLabel?: string;
250
- id?: string;
251
- modelValue?: number;
252
- lowThreshold?: number;
253
- highThreshold?: number;
254
- max?: number;
255
- disabled?: boolean;
256
- allowHalf?: boolean;
257
- showText?: boolean;
258
- showScore?: boolean;
259
- textColor?: string;
260
- texts?: string[];
261
- scoreTemplate?: string;
262
- size?: "" | "large" | "default" | "small";
263
- clearable?: boolean;
264
- voidColor?: string;
265
- disabledVoidColor?: string;
266
- voidIcon?: string | Component;
267
- disabledVoidIcon?: string | Component;
268
- icons?: (string | Component)[];
269
- colors?: string[] | Record<number, string>;
270
- }
271
- export interface ElSliderProps {
272
- ariaLabel?: string;
273
- id?: string;
274
- modelValue?: number | [number, number];
275
- min?: number;
276
- max?: number;
277
- step?: number;
278
- disabled?: boolean;
279
- showInput?: boolean;
280
- showInputControls?: boolean;
281
- inputSize?: "" | "large" | "default" | "small";
282
- showStops?: boolean;
283
- showTooltip?: boolean;
284
- formatTooltip?: Function;
285
- formatValueText?: Function;
286
- vertical?: boolean;
287
- height?: string;
288
- debounce?: number;
289
- range?: boolean;
290
- rangeStartLabel?: string;
291
- rangeEndLabel?: string;
292
- tooltipClass?: string;
293
- marks?: Record<number, string | {
294
- style: Record<string, unknown>;
295
- label: string;
296
- }>;
297
- placement?: "top" | "bottom" | "right" | "left";
298
- validateEvent?: boolean;
299
- persistent?: boolean;
300
162
  }
@@ -1,32 +1,26 @@
1
1
  export declare const IRadio: import("../../types").SFCWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- modelValue: {
3
- type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["modelValue"]>;
4
- };
2
+ modelValue: (BooleanConstructor | StringConstructor | NumberConstructor)[];
5
3
  size: {
6
- type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["size"]>;
4
+ type: import("vue").PropType<"large" | "default" | "small" | "">;
7
5
  default: string;
8
6
  };
9
- disabled: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["disabled"]>;
7
+ disabled: BooleanConstructor;
10
8
  textColor: {
11
- type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["textColor"]>;
9
+ type: StringConstructor;
12
10
  default: string;
13
11
  };
14
- fill: {
15
- type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["fill"]>;
16
- };
17
- validateEvent: {
18
- type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["validateEvent"]>;
19
- };
12
+ fill: StringConstructor;
13
+ validateEvent: BooleanConstructor;
20
14
  type: {
21
15
  type: import("vue").PropType<"button" | "">;
22
16
  default: string;
23
17
  };
24
18
  data: {
25
- type: import("vue").PropType<string | Record<string, any>[]>;
19
+ type: (StringConstructor | ArrayConstructor)[];
26
20
  default: () => never[];
27
21
  };
28
22
  dataCallback: {
29
- type: import("vue").PropType<(list: Record<string, any>[]) => any[]>;
23
+ type: FunctionConstructor;
30
24
  };
31
25
  optLabel: {
32
26
  type: StringConstructor;
@@ -36,40 +30,30 @@ export declare const IRadio: import("../../types").SFCWithInstall<import("vue").
36
30
  type: StringConstructor;
37
31
  default: string;
38
32
  };
39
- changeHandler: {
40
- type: import("vue").PropType<(value: string | number | boolean | undefined) => void>;
41
- default: undefined;
42
- };
43
33
  }>, {
44
34
  props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
45
- modelValue: {
46
- type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["modelValue"]>;
47
- };
35
+ modelValue: (BooleanConstructor | StringConstructor | NumberConstructor)[];
48
36
  size: {
49
- type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["size"]>;
37
+ type: import("vue").PropType<"large" | "default" | "small" | "">;
50
38
  default: string;
51
39
  };
52
- disabled: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["disabled"]>;
40
+ disabled: BooleanConstructor;
53
41
  textColor: {
54
- type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["textColor"]>;
42
+ type: StringConstructor;
55
43
  default: string;
56
44
  };
57
- fill: {
58
- type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["fill"]>;
59
- };
60
- validateEvent: {
61
- type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["validateEvent"]>;
62
- };
45
+ fill: StringConstructor;
46
+ validateEvent: BooleanConstructor;
63
47
  type: {
64
48
  type: import("vue").PropType<"button" | "">;
65
49
  default: string;
66
50
  };
67
51
  data: {
68
- type: import("vue").PropType<string | Record<string, any>[]>;
52
+ type: (StringConstructor | ArrayConstructor)[];
69
53
  default: () => never[];
70
54
  };
71
55
  dataCallback: {
72
- type: import("vue").PropType<(list: Record<string, any>[]) => any[]>;
56
+ type: FunctionConstructor;
73
57
  };
74
58
  optLabel: {
75
59
  type: StringConstructor;
@@ -79,25 +63,21 @@ export declare const IRadio: import("../../types").SFCWithInstall<import("vue").
79
63
  type: StringConstructor;
80
64
  default: string;
81
65
  };
82
- changeHandler: {
83
- type: import("vue").PropType<(value: string | number | boolean | undefined) => void>;
84
- default: undefined;
85
- };
86
66
  }>> & Readonly<{
87
- "onUpdate:modelValue"?: ((_value: string | number | boolean | undefined) => any) | undefined;
88
- onChange?: ((_value: string | number | boolean | undefined) => any) | undefined;
67
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
68
+ onChange?: ((value: any) => any) | undefined;
89
69
  }> & {}>;
90
- emit: ((event: "update:modelValue", _value: string | number | boolean | undefined) => void) & ((event: "change", _value: string | number | boolean | undefined) => void);
70
+ emit: ((event: "update:modelValue", value: any) => void) & ((event: "change", value: any) => void);
91
71
  dictStore: {
92
72
  dict: import("vue").Ref<Record<string, any>>;
93
73
  getDict: (dictType: string) => Promise<any[]>;
94
74
  } | undefined;
95
75
  bindAttrs: import("vue").ComputedRef<any>;
96
- radioOptions: import("vue").Ref<Record<string, any>[], Record<string, any>[]>;
76
+ radioOptions: import("vue").Ref<any[], any[]>;
97
77
  setOptions: () => Promise<void>;
98
78
  getList: () => Promise<any[]>;
99
79
  value: import("vue").Ref<string, string>;
100
- handleChange: (val: string | number | boolean | undefined) => void;
80
+ handleChange: (val: any) => void;
101
81
  readonly ElRadio: import("element-plus/es/utils").SFCWithInstall<{
102
82
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
103
83
  readonly border: BooleanConstructor;
@@ -536,37 +516,31 @@ export declare const IRadio: import("../../types").SFCWithInstall<import("vue").
536
516
  };
537
517
  })>;
538
518
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
539
- "update:modelValue": (_value: string | number | boolean | undefined) => boolean;
540
- change: (_value: string | number | boolean | undefined) => boolean;
519
+ "update:modelValue": (value: any) => any;
520
+ change: (value: any) => any;
541
521
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
542
- modelValue: {
543
- type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["modelValue"]>;
544
- };
522
+ modelValue: (BooleanConstructor | StringConstructor | NumberConstructor)[];
545
523
  size: {
546
- type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["size"]>;
524
+ type: import("vue").PropType<"large" | "default" | "small" | "">;
547
525
  default: string;
548
526
  };
549
- disabled: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["disabled"]>;
527
+ disabled: BooleanConstructor;
550
528
  textColor: {
551
- type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["textColor"]>;
529
+ type: StringConstructor;
552
530
  default: string;
553
531
  };
554
- fill: {
555
- type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["fill"]>;
556
- };
557
- validateEvent: {
558
- type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["validateEvent"]>;
559
- };
532
+ fill: StringConstructor;
533
+ validateEvent: BooleanConstructor;
560
534
  type: {
561
535
  type: import("vue").PropType<"button" | "">;
562
536
  default: string;
563
537
  };
564
538
  data: {
565
- type: import("vue").PropType<string | Record<string, any>[]>;
539
+ type: (StringConstructor | ArrayConstructor)[];
566
540
  default: () => never[];
567
541
  };
568
542
  dataCallback: {
569
- type: import("vue").PropType<(list: Record<string, any>[]) => any[]>;
543
+ type: FunctionConstructor;
570
544
  };
571
545
  optLabel: {
572
546
  type: StringConstructor;
@@ -576,20 +550,17 @@ export declare const IRadio: import("../../types").SFCWithInstall<import("vue").
576
550
  type: StringConstructor;
577
551
  default: string;
578
552
  };
579
- changeHandler: {
580
- type: import("vue").PropType<(value: string | number | boolean | undefined) => void>;
581
- default: undefined;
582
- };
583
553
  }>> & Readonly<{
584
- "onUpdate:modelValue"?: ((_value: string | number | boolean | undefined) => any) | undefined;
585
- onChange?: ((_value: string | number | boolean | undefined) => any) | undefined;
554
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
555
+ onChange?: ((value: any) => any) | undefined;
586
556
  }>, {
587
- size: "" | "small" | "large" | "default" | undefined;
557
+ size: "" | "small" | "large" | "default";
588
558
  type: "" | "button";
589
- data: string | Record<string, any>[];
559
+ data: string | unknown[];
590
560
  optLabel: string;
591
561
  optValue: string;
592
- textColor: string | undefined;
593
- changeHandler: (value: string | number | boolean | undefined) => void;
562
+ disabled: boolean;
563
+ textColor: string;
564
+ validateEvent: boolean;
594
565
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
595
566
  export default IRadio;
@@ -1,35 +1,28 @@
1
- import type { ExtractPropTypes, ExtractPublicPropTypes, PropType } from "vue";
2
- import type { ElRadioGroupProps } from "../../../element-plus.types";
3
- import type Radio from "./radio.vue";
1
+ import type { ExtractPropTypes, ExtractPublicPropTypes, PropType } from 'vue';
2
+ import type Radio from './radio.vue';
4
3
  export declare const RadioProps: {
5
- modelValue: {
6
- type: PropType<ElRadioGroupProps["modelValue"]>;
7
- };
4
+ modelValue: (BooleanConstructor | StringConstructor | NumberConstructor)[];
8
5
  size: {
9
- type: PropType<ElRadioGroupProps["size"]>;
6
+ type: PropType<"large" | "default" | "small" | "">;
10
7
  default: string;
11
8
  };
12
- disabled: PropType<ElRadioGroupProps["disabled"]>;
9
+ disabled: BooleanConstructor;
13
10
  textColor: {
14
- type: PropType<ElRadioGroupProps["textColor"]>;
11
+ type: StringConstructor;
15
12
  default: string;
16
13
  };
17
- fill: {
18
- type: PropType<ElRadioGroupProps["fill"]>;
19
- };
20
- validateEvent: {
21
- type: PropType<ElRadioGroupProps["validateEvent"]>;
22
- };
14
+ fill: StringConstructor;
15
+ validateEvent: BooleanConstructor;
23
16
  type: {
24
17
  type: PropType<"button" | "">;
25
18
  default: string;
26
19
  };
27
20
  data: {
28
- type: PropType<string | Record<string, any>[]>;
21
+ type: (StringConstructor | ArrayConstructor)[];
29
22
  default: () => never[];
30
23
  };
31
24
  dataCallback: {
32
- type: PropType<(list: Record<string, any>[]) => any[]>;
25
+ type: FunctionConstructor;
33
26
  };
34
27
  optLabel: {
35
28
  type: StringConstructor;
@@ -39,17 +32,8 @@ export declare const RadioProps: {
39
32
  type: StringConstructor;
40
33
  default: string;
41
34
  };
42
- changeHandler: {
43
- type: PropType<(value: string | number | boolean | undefined) => void>;
44
- default: undefined;
45
- };
46
- };
47
- export declare const RadioEmits: {
48
- "update:modelValue": (_value: string | number | boolean | undefined) => boolean;
49
- change: (_value: string | number | boolean | undefined) => boolean;
50
35
  };
51
36
  export declare const excludeRadioKeys: string[];
52
37
  export type RadioPropsType = ExtractPropTypes<typeof RadioProps>;
53
38
  export type RadioPublicPropsType = ExtractPublicPropTypes<typeof RadioProps>;
54
39
  export type RadioInstance = InstanceType<typeof Radio>;
55
- export type RadioEmitsType = typeof RadioEmits;
@@ -3,9 +3,7 @@
3
3
  var __defProp = Object.defineProperty;
4
4
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
5
5
  const RadioProps = {
6
- modelValue: {
7
- type: [String, Number, Boolean]
8
- },
6
+ modelValue: [String, Number, Boolean],
9
7
  size: {
10
8
  type: String,
11
9
  default: ""
@@ -15,12 +13,8 @@ const RadioProps = {
15
13
  type: String,
16
14
  default: ""
17
15
  },
18
- fill: {
19
- type: String
20
- },
21
- validateEvent: {
22
- type: Boolean
23
- },
16
+ fill: String,
17
+ validateEvent: Boolean,
24
18
  type: {
25
19
  type: String,
26
20
  default: ""
@@ -39,27 +33,10 @@ const RadioProps = {
39
33
  optValue: {
40
34
  type: String,
41
35
  default: "value"
42
- },
43
- changeHandler: {
44
- type: Function,
45
- default: void 0
46
36
  }
47
37
  };
48
- const RadioEmits = {
49
- "update:modelValue": /* @__PURE__ */ __name((_value) => true, "update:modelValue"),
50
- change: /* @__PURE__ */ __name((_value) => true, "change")
51
- };
52
- const excludeRadioKeys = [
53
- "type",
54
- "data",
55
- "dataCallback",
56
- "optLabel",
57
- "optValue",
58
- "modelValue",
59
- "changeHandler"
60
- ];
38
+ const excludeRadioKeys = ["type", "data", "dataCallback", "optLabel", "optValue", "modelValue"];
61
39
 
62
- exports.RadioEmits = RadioEmits;
63
40
  exports.RadioProps = RadioProps;
64
41
  exports.excludeRadioKeys = excludeRadioKeys;
65
42
  //# sourceMappingURL=radio.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio.js","sources":["../../../../../../../packages/components/radio/src/radio.ts"],"sourcesContent":["import type { ExtractPropTypes, ExtractPublicPropTypes, PropType } from \"vue\";\nimport type { ElRadioGroupProps } from \"../../../element-plus.types\";\nimport type Radio from \"./radio.vue\";\n\nexport const RadioProps = {\n modelValue: {\n type: [String, Number, Boolean] as PropType<\n ElRadioGroupProps[\"modelValue\"]\n >,\n },\n size: {\n type: String as PropType<ElRadioGroupProps[\"size\"]>,\n default: \"\",\n },\n disabled: Boolean as PropType<ElRadioGroupProps[\"disabled\"]>,\n textColor: {\n type: String as PropType<ElRadioGroupProps[\"textColor\"]>,\n default: \"\",\n },\n fill: {\n type: String as PropType<ElRadioGroupProps[\"fill\"]>,\n },\n validateEvent: {\n type: Boolean as PropType<ElRadioGroupProps[\"validateEvent\"]>,\n },\n type: {\n type: String as PropType<\"button\" | \"\">,\n default: \"\",\n },\n data: {\n type: [String, Array] as PropType<string | Record<string, any>[]>,\n default: () => [],\n },\n dataCallback: {\n type: Function as PropType<(list: Record<string, any>[]) => any[]>,\n },\n optLabel: {\n type: String,\n default: \"label\",\n },\n optValue: {\n type: String,\n default: \"value\",\n },\n changeHandler: {\n type: Function as unknown as PropType<\n (value: string | number | boolean | undefined) => void\n >,\n default: undefined,\n },\n};\n\nexport const RadioEmits = {\n \"update:modelValue\": (_value: string | number | boolean | undefined) => true,\n change: (_value: string | number | boolean | undefined) => true,\n};\n\nexport const excludeRadioKeys = [\n \"type\",\n \"data\",\n \"dataCallback\",\n \"optLabel\",\n \"optValue\",\n \"modelValue\",\n \"changeHandler\",\n];\n\nexport type RadioPropsType = ExtractPropTypes<typeof RadioProps>;\nexport type RadioPublicPropsType = ExtractPublicPropTypes<typeof RadioProps>;\nexport type RadioInstance = InstanceType<typeof Radio>;\nexport type RadioEmitsType = typeof RadioEmits;\n"],"names":[],"mappings":";;;;AAIO,MAAM,UAAa,GAAA;AAAA,EACxB,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,CAAC,MAAQ,EAAA,MAAA,EAAQ,OAAO;AAAA,GAGhC;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA;AAAA,GACX;AAAA,EACA,QAAU,EAAA,OAAA;AAAA,EACV,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA;AAAA,GACX;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA;AAAA,GACR;AAAA,EACA,aAAe,EAAA;AAAA,IACb,IAAM,EAAA;AAAA,GACR;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA;AAAA,GACX;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,IAAA,EAAM,CAAC,MAAA,EAAQ,KAAK,CAAA;AAAA,IACpB,OAAA,kBAAe,MAAA,CAAA,MAAA,EAAN,EAAA,SAAA;AAAA,GACX;AAAA,EACA,YAAc,EAAA;AAAA,IACZ,IAAM,EAAA;AAAA,GACR;AAAA,EACA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA;AAAA,GACX;AAAA,EACA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA;AAAA,GACX;AAAA,EACA,aAAe,EAAA;AAAA,IACb,IAAM,EAAA,QAAA;AAAA,IAGN,OAAS,EAAA,KAAA;AAAA;AAEb;AAEO,MAAM,UAAa,GAAA;AAAA,EACxB,mBAAA,kBAAsB,MAAA,CAAA,CAAA,MAAA,KAAkD,IAAnD,EAAA,mBAAA,CAAA;AAAA,EACrB,MAAA,kBAAS,MAAA,CAAA,CAAA,MAAA,KAAkD,IAAnD,EAAA,QAAA;AACV;AAEO,MAAM,gBAAmB,GAAA;AAAA,EAC9B,MAAA;AAAA,EACA,MAAA;AAAA,EACA,cAAA;AAAA,EACA,UAAA;AAAA,EACA,UAAA;AAAA,EACA,YAAA;AAAA,EACA;AACF;;;;;;"}
1
+ {"version":3,"file":"radio.js","sources":["../../../../../../../packages/components/radio/src/radio.ts"],"sourcesContent":["import type { ExtractPropTypes, ExtractPublicPropTypes, PropType } from 'vue';\nimport type Radio from './radio.vue';\n\nexport const RadioProps = {\n modelValue: [String, Number, Boolean],\n size: {\n type: String as PropType<'large' | 'default' | 'small' | ''>,\n default: '',\n },\n disabled: Boolean,\n textColor: {\n type: String,\n default: '',\n },\n fill: String,\n validateEvent: Boolean,\n type: {\n type: String as PropType<'button' | ''>,\n default: '',\n },\n data: {\n type: [String, Array],\n default: () => [],\n },\n dataCallback: {\n type: Function,\n },\n optLabel: {\n type: String,\n default: 'label',\n },\n optValue: {\n type: String,\n default: 'value',\n },\n};\n\nexport const excludeRadioKeys = ['type', 'data', 'dataCallback', 'optLabel', 'optValue', 'modelValue'];\n\nexport type RadioPropsType = ExtractPropTypes<typeof RadioProps>;\nexport type RadioPublicPropsType = ExtractPublicPropTypes<typeof RadioProps>;\nexport type RadioInstance = InstanceType<typeof Radio>;\n"],"names":[],"mappings":";;;;AAGO,MAAM,UAAa,GAAA;AAAA,EACxB,UAAY,EAAA,CAAC,MAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA,EACpC,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA;AAAA,GACX;AAAA,EACA,QAAU,EAAA,OAAA;AAAA,EACV,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA;AAAA,GACX;AAAA,EACA,IAAM,EAAA,MAAA;AAAA,EACN,aAAe,EAAA,OAAA;AAAA,EACf,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA;AAAA,GACX;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,IAAA,EAAM,CAAC,MAAA,EAAQ,KAAK,CAAA;AAAA,IACpB,OAAA,kBAAe,MAAA,CAAA,MAAA,EAAN,EAAA,SAAA;AAAA,GACX;AAAA,EACA,YAAc,EAAA;AAAA,IACZ,IAAM,EAAA;AAAA,GACR;AAAA,EACA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA;AAAA,GACX;AAAA,EACA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA;AAAA;AAEb;AAEO,MAAM,mBAAmB,CAAC,MAAA,EAAQ,QAAQ,cAAgB,EAAA,UAAA,EAAY,YAAY,YAAY;;;;;"}