@yimou6/common-ui 1.12.14 → 1.12.15

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.
@@ -1,16 +1,22 @@
1
1
  export declare const IRadio: import("../../types").SFCWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- modelValue: (BooleanConstructor | StringConstructor | NumberConstructor)[];
2
+ modelValue: {
3
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["modelValue"]>;
4
+ };
3
5
  size: {
4
- type: import("vue").PropType<"large" | "default" | "small" | "">;
6
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["size"]>;
5
7
  default: string;
6
8
  };
7
- disabled: BooleanConstructor;
9
+ disabled: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["disabled"]>;
8
10
  textColor: {
9
- type: StringConstructor;
11
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["textColor"]>;
10
12
  default: string;
11
13
  };
12
- fill: StringConstructor;
13
- validateEvent: BooleanConstructor;
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
+ };
14
20
  type: {
15
21
  type: import("vue").PropType<"button" | "">;
16
22
  default: string;
@@ -30,20 +36,29 @@ export declare const IRadio: import("../../types").SFCWithInstall<import("vue").
30
36
  type: StringConstructor;
31
37
  default: string;
32
38
  };
39
+ onChange: {
40
+ type: import("vue").PropType<(value: string | number | boolean | undefined) => void>;
41
+ };
33
42
  }>, {
34
43
  props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
35
- modelValue: (BooleanConstructor | StringConstructor | NumberConstructor)[];
44
+ modelValue: {
45
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["modelValue"]>;
46
+ };
36
47
  size: {
37
- type: import("vue").PropType<"large" | "default" | "small" | "">;
48
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["size"]>;
38
49
  default: string;
39
50
  };
40
- disabled: BooleanConstructor;
51
+ disabled: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["disabled"]>;
41
52
  textColor: {
42
- type: StringConstructor;
53
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["textColor"]>;
43
54
  default: string;
44
55
  };
45
- fill: StringConstructor;
46
- validateEvent: BooleanConstructor;
56
+ fill: {
57
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["fill"]>;
58
+ };
59
+ validateEvent: {
60
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["validateEvent"]>;
61
+ };
47
62
  type: {
48
63
  type: import("vue").PropType<"button" | "">;
49
64
  default: string;
@@ -63,11 +78,14 @@ export declare const IRadio: import("../../types").SFCWithInstall<import("vue").
63
78
  type: StringConstructor;
64
79
  default: string;
65
80
  };
81
+ onChange: {
82
+ type: import("vue").PropType<(value: string | number | boolean | undefined) => void>;
83
+ };
66
84
  }>> & Readonly<{
67
- "onUpdate:modelValue"?: ((_value: string | number | boolean) => any) | undefined;
68
- onChange?: ((_value: string | number | boolean) => any) | undefined;
85
+ "onUpdate:modelValue"?: ((_value: string | number | boolean | undefined) => any) | undefined;
86
+ onChange?: ((_value: string | number | boolean | undefined) => any) | undefined;
69
87
  }> & {}>;
70
- emit: ((event: "update:modelValue", _value: string | number | boolean) => void) & ((event: "change", _value: string | number | boolean) => void);
88
+ emit: ((event: "update:modelValue", _value: string | number | boolean | undefined) => void) & ((event: "change", _value: string | number | boolean | undefined) => void);
71
89
  dictStore: {
72
90
  dict: import("vue").Ref<Record<string, any>>;
73
91
  getDict: (dictType: string) => Promise<any[]>;
@@ -77,7 +95,7 @@ export declare const IRadio: import("../../types").SFCWithInstall<import("vue").
77
95
  setOptions: () => Promise<void>;
78
96
  getList: () => Promise<any[]>;
79
97
  value: import("vue").Ref<string, string>;
80
- handleChange: (val: string | number | boolean) => void;
98
+ handleChange: (val: string | number | boolean | undefined) => void;
81
99
  readonly ElRadio: import("element-plus/es/utils").SFCWithInstall<{
82
100
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
83
101
  readonly border: BooleanConstructor;
@@ -516,21 +534,27 @@ export declare const IRadio: import("../../types").SFCWithInstall<import("vue").
516
534
  };
517
535
  })>;
518
536
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
519
- "update:modelValue": (_value: string | number | boolean) => boolean;
520
- change: (_value: string | number | boolean) => boolean;
537
+ "update:modelValue": (_value: string | number | boolean | undefined) => boolean;
538
+ change: (_value: string | number | boolean | undefined) => boolean;
521
539
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
522
- modelValue: (BooleanConstructor | StringConstructor | NumberConstructor)[];
540
+ modelValue: {
541
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["modelValue"]>;
542
+ };
523
543
  size: {
524
- type: import("vue").PropType<"large" | "default" | "small" | "">;
544
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["size"]>;
525
545
  default: string;
526
546
  };
527
- disabled: BooleanConstructor;
547
+ disabled: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["disabled"]>;
528
548
  textColor: {
529
- type: StringConstructor;
549
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["textColor"]>;
530
550
  default: string;
531
551
  };
532
- fill: StringConstructor;
533
- validateEvent: BooleanConstructor;
552
+ fill: {
553
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["fill"]>;
554
+ };
555
+ validateEvent: {
556
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["validateEvent"]>;
557
+ };
534
558
  type: {
535
559
  type: import("vue").PropType<"button" | "">;
536
560
  default: string;
@@ -550,17 +574,18 @@ export declare const IRadio: import("../../types").SFCWithInstall<import("vue").
550
574
  type: StringConstructor;
551
575
  default: string;
552
576
  };
577
+ onChange: {
578
+ type: import("vue").PropType<(value: string | number | boolean | undefined) => void>;
579
+ };
553
580
  }>> & Readonly<{
554
- "onUpdate:modelValue"?: ((_value: string | number | boolean) => any) | undefined;
555
- onChange?: ((_value: string | number | boolean) => any) | undefined;
581
+ "onUpdate:modelValue"?: ((_value: string | number | boolean | undefined) => any) | undefined;
582
+ onChange?: ((_value: string | number | boolean | undefined) => any) | undefined;
556
583
  }>, {
557
- size: "" | "small" | "large" | "default";
584
+ size: "" | "small" | "large" | "default" | undefined;
558
585
  type: "" | "button";
559
586
  data: string | Record<string, any>[];
560
587
  optLabel: string;
561
588
  optValue: string;
562
- disabled: boolean;
563
- textColor: string;
564
- validateEvent: boolean;
589
+ textColor: string | undefined;
565
590
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
566
591
  export default IRadio;
@@ -1,18 +1,25 @@
1
1
  import type { ExtractPropTypes, ExtractPublicPropTypes, PropType } from "vue";
2
+ import type { ElRadioGroupProps } from "../../../element-plus.types";
2
3
  import type Radio from "./radio.vue";
3
4
  export declare const RadioProps: {
4
- modelValue: (BooleanConstructor | StringConstructor | NumberConstructor)[];
5
+ modelValue: {
6
+ type: PropType<ElRadioGroupProps["modelValue"]>;
7
+ };
5
8
  size: {
6
- type: PropType<"large" | "default" | "small" | "">;
9
+ type: PropType<ElRadioGroupProps["size"]>;
7
10
  default: string;
8
11
  };
9
- disabled: BooleanConstructor;
12
+ disabled: PropType<ElRadioGroupProps["disabled"]>;
10
13
  textColor: {
11
- type: StringConstructor;
14
+ type: PropType<ElRadioGroupProps["textColor"]>;
12
15
  default: string;
13
16
  };
14
- fill: StringConstructor;
15
- validateEvent: BooleanConstructor;
17
+ fill: {
18
+ type: PropType<ElRadioGroupProps["fill"]>;
19
+ };
20
+ validateEvent: {
21
+ type: PropType<ElRadioGroupProps["validateEvent"]>;
22
+ };
16
23
  type: {
17
24
  type: PropType<"button" | "">;
18
25
  default: string;
@@ -32,10 +39,13 @@ export declare const RadioProps: {
32
39
  type: StringConstructor;
33
40
  default: string;
34
41
  };
42
+ onChange: {
43
+ type: PropType<(value: string | number | boolean | undefined) => void>;
44
+ };
35
45
  };
36
46
  export declare const RadioEmits: {
37
- "update:modelValue": (_value: string | number | boolean) => boolean;
38
- change: (_value: string | number | boolean) => boolean;
47
+ "update:modelValue": (_value: string | number | boolean | undefined) => boolean;
48
+ change: (_value: string | number | boolean | undefined) => boolean;
39
49
  };
40
50
  export declare const excludeRadioKeys: string[];
41
51
  export type RadioPropsType = ExtractPropTypes<typeof RadioProps>;
@@ -1,7 +1,9 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
  const RadioProps = {
4
- modelValue: [String, Number, Boolean],
4
+ modelValue: {
5
+ type: [String, Number, Boolean]
6
+ },
5
7
  size: {
6
8
  type: String,
7
9
  default: ""
@@ -11,8 +13,12 @@ const RadioProps = {
11
13
  type: String,
12
14
  default: ""
13
15
  },
14
- fill: String,
15
- validateEvent: Boolean,
16
+ fill: {
17
+ type: String
18
+ },
19
+ validateEvent: {
20
+ type: Boolean
21
+ },
16
22
  type: {
17
23
  type: String,
18
24
  default: ""
@@ -31,6 +37,9 @@ const RadioProps = {
31
37
  optValue: {
32
38
  type: String,
33
39
  default: "value"
40
+ },
41
+ onChange: {
42
+ type: Function
34
43
  }
35
44
  };
36
45
  const RadioEmits = {
@@ -43,7 +52,8 @@ const excludeRadioKeys = [
43
52
  "dataCallback",
44
53
  "optLabel",
45
54
  "optValue",
46
- "modelValue"
55
+ "modelValue",
56
+ "onChange"
47
57
  ];
48
58
 
49
59
  export { RadioEmits, RadioProps, excludeRadioKeys };
@@ -1 +1 @@
1
- {"version":3,"file":"radio.mjs","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] 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};\n\nexport const RadioEmits = {\n \"update:modelValue\": (_value: string | number | boolean) => true,\n change: (_value: string | number | boolean) => true,\n};\n\nexport const excludeRadioKeys = [\n \"type\",\n \"data\",\n \"dataCallback\",\n \"optLabel\",\n \"optValue\",\n \"modelValue\",\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":";;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,UAAa,GAAA;AAAA,EACxB,mBAAA,kBAAsB,MAAA,CAAA,CAAA,MAAA,KAAsC,IAAvC,EAAA,mBAAA,CAAA;AAAA,EACrB,MAAA,kBAAS,MAAA,CAAA,CAAA,MAAA,KAAsC,IAAvC,EAAA,QAAA;AACV;AAEO,MAAM,gBAAmB,GAAA;AAAA,EAC9B,MAAA;AAAA,EACA,MAAA;AAAA,EACA,cAAA;AAAA,EACA,UAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF;;;;"}
1
+ {"version":3,"file":"radio.mjs","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 onChange: {\n type: Function as PropType<\n (value: string | number | boolean | undefined) => void\n >,\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 \"onChange\",\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,QAAU,EAAA;AAAA,IACR,IAAM,EAAA;AAAA;AAIV;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,16 +1,22 @@
1
1
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- modelValue: (BooleanConstructor | StringConstructor | NumberConstructor)[];
2
+ modelValue: {
3
+ type: import("vue").PropType<import("../../../element-plus.types").ElRadioGroupProps["modelValue"]>;
4
+ };
3
5
  size: {
4
- type: import("vue").PropType<"large" | "default" | "small" | "">;
6
+ type: import("vue").PropType<import("../../../element-plus.types").ElRadioGroupProps["size"]>;
5
7
  default: string;
6
8
  };
7
- disabled: BooleanConstructor;
9
+ disabled: import("vue").PropType<import("../../../element-plus.types").ElRadioGroupProps["disabled"]>;
8
10
  textColor: {
9
- type: StringConstructor;
11
+ type: import("vue").PropType<import("../../../element-plus.types").ElRadioGroupProps["textColor"]>;
10
12
  default: string;
11
13
  };
12
- fill: StringConstructor;
13
- validateEvent: BooleanConstructor;
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
+ };
14
20
  type: {
15
21
  type: import("vue").PropType<"button" | "">;
16
22
  default: string;
@@ -30,20 +36,29 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
30
36
  type: StringConstructor;
31
37
  default: string;
32
38
  };
39
+ onChange: {
40
+ type: import("vue").PropType<(value: string | number | boolean | undefined) => void>;
41
+ };
33
42
  }>, {
34
43
  props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
35
- modelValue: (BooleanConstructor | StringConstructor | NumberConstructor)[];
44
+ modelValue: {
45
+ type: import("vue").PropType<import("../../../element-plus.types").ElRadioGroupProps["modelValue"]>;
46
+ };
36
47
  size: {
37
- type: import("vue").PropType<"large" | "default" | "small" | "">;
48
+ type: import("vue").PropType<import("../../../element-plus.types").ElRadioGroupProps["size"]>;
38
49
  default: string;
39
50
  };
40
- disabled: BooleanConstructor;
51
+ disabled: import("vue").PropType<import("../../../element-plus.types").ElRadioGroupProps["disabled"]>;
41
52
  textColor: {
42
- type: StringConstructor;
53
+ type: import("vue").PropType<import("../../../element-plus.types").ElRadioGroupProps["textColor"]>;
43
54
  default: string;
44
55
  };
45
- fill: StringConstructor;
46
- validateEvent: BooleanConstructor;
56
+ fill: {
57
+ type: import("vue").PropType<import("../../../element-plus.types").ElRadioGroupProps["fill"]>;
58
+ };
59
+ validateEvent: {
60
+ type: import("vue").PropType<import("../../../element-plus.types").ElRadioGroupProps["validateEvent"]>;
61
+ };
47
62
  type: {
48
63
  type: import("vue").PropType<"button" | "">;
49
64
  default: string;
@@ -63,11 +78,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
63
78
  type: StringConstructor;
64
79
  default: string;
65
80
  };
81
+ onChange: {
82
+ type: import("vue").PropType<(value: string | number | boolean | undefined) => void>;
83
+ };
66
84
  }>> & Readonly<{
67
- "onUpdate:modelValue"?: ((_value: string | number | boolean) => any) | undefined;
68
- onChange?: ((_value: string | number | boolean) => any) | undefined;
85
+ "onUpdate:modelValue"?: ((_value: string | number | boolean | undefined) => any) | undefined;
86
+ onChange?: ((_value: string | number | boolean | undefined) => any) | undefined;
69
87
  }> & {}>;
70
- emit: ((event: "update:modelValue", _value: string | number | boolean) => void) & ((event: "change", _value: string | number | boolean) => void);
88
+ emit: ((event: "update:modelValue", _value: string | number | boolean | undefined) => void) & ((event: "change", _value: string | number | boolean | undefined) => void);
71
89
  dictStore: {
72
90
  dict: import("vue").Ref<Record<string, any>>;
73
91
  getDict: (dictType: string) => Promise<any[]>;
@@ -77,7 +95,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
77
95
  setOptions: () => Promise<void>;
78
96
  getList: () => Promise<any[]>;
79
97
  value: import("vue").Ref<string, string>;
80
- handleChange: (val: string | number | boolean) => void;
98
+ handleChange: (val: string | number | boolean | undefined) => void;
81
99
  readonly ElRadio: import("element-plus/es/utils").SFCWithInstall<{
82
100
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
83
101
  readonly border: BooleanConstructor;
@@ -516,21 +534,27 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
516
534
  };
517
535
  })>;
518
536
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
519
- "update:modelValue": (_value: string | number | boolean) => boolean;
520
- change: (_value: string | number | boolean) => boolean;
537
+ "update:modelValue": (_value: string | number | boolean | undefined) => boolean;
538
+ change: (_value: string | number | boolean | undefined) => boolean;
521
539
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
522
- modelValue: (BooleanConstructor | StringConstructor | NumberConstructor)[];
540
+ modelValue: {
541
+ type: import("vue").PropType<import("../../../element-plus.types").ElRadioGroupProps["modelValue"]>;
542
+ };
523
543
  size: {
524
- type: import("vue").PropType<"large" | "default" | "small" | "">;
544
+ type: import("vue").PropType<import("../../../element-plus.types").ElRadioGroupProps["size"]>;
525
545
  default: string;
526
546
  };
527
- disabled: BooleanConstructor;
547
+ disabled: import("vue").PropType<import("../../../element-plus.types").ElRadioGroupProps["disabled"]>;
528
548
  textColor: {
529
- type: StringConstructor;
549
+ type: import("vue").PropType<import("../../../element-plus.types").ElRadioGroupProps["textColor"]>;
530
550
  default: string;
531
551
  };
532
- fill: StringConstructor;
533
- validateEvent: BooleanConstructor;
552
+ fill: {
553
+ type: import("vue").PropType<import("../../../element-plus.types").ElRadioGroupProps["fill"]>;
554
+ };
555
+ validateEvent: {
556
+ type: import("vue").PropType<import("../../../element-plus.types").ElRadioGroupProps["validateEvent"]>;
557
+ };
534
558
  type: {
535
559
  type: import("vue").PropType<"button" | "">;
536
560
  default: string;
@@ -550,17 +574,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
550
574
  type: StringConstructor;
551
575
  default: string;
552
576
  };
577
+ onChange: {
578
+ type: import("vue").PropType<(value: string | number | boolean | undefined) => void>;
579
+ };
553
580
  }>> & Readonly<{
554
- "onUpdate:modelValue"?: ((_value: string | number | boolean) => any) | undefined;
555
- onChange?: ((_value: string | number | boolean) => any) | undefined;
581
+ "onUpdate:modelValue"?: ((_value: string | number | boolean | undefined) => any) | undefined;
582
+ onChange?: ((_value: string | number | boolean | undefined) => any) | undefined;
556
583
  }>, {
557
- size: "" | "small" | "large" | "default";
584
+ size: "" | "small" | "large" | "default" | undefined;
558
585
  type: "" | "button";
559
586
  data: string | Record<string, any>[];
560
587
  optLabel: string;
561
588
  optValue: string;
562
- disabled: boolean;
563
- textColor: string;
564
- validateEvent: boolean;
589
+ textColor: string | undefined;
565
590
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
566
591
  export default _default;
@@ -48,6 +48,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
48
48
  { deep: true, immediate: true }
49
49
  );
50
50
  const handleChange = /* @__PURE__ */ __name((val) => {
51
+ var _a;
52
+ (_a = props.onChange) == null ? void 0 : _a.call(props, val);
51
53
  emit("change", val);
52
54
  emit("update:modelValue", val);
53
55
  }, "handleChange");
@@ -1 +1 @@
1
- {"version":3,"file":"radio.vue2.mjs","sources":["../../../../../../../packages/components/radio/src/radio.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { ElRadio, ElRadioButton, ElRadioGroup } from \"element-plus\";\nimport { computed, inject, onMounted, ref, watch } from \"vue\";\nimport { DICT_STORE, excludeObjectKeys } from \"../../../utils\";\nimport { excludeRadioKeys, RadioEmits, RadioProps } from \"./radio\";\n\ndefineOptions({\n name: \"IRadio\",\n});\nconst props = defineProps(RadioProps);\nconst emit = defineEmits(RadioEmits);\nconst dictStore = inject(DICT_STORE);\nconst bindAttrs = computed(() => excludeObjectKeys(props, excludeRadioKeys));\n\nconst radioOptions = ref<Record<string, any>[]>([]);\nonMounted(() => setOptions());\nwatch(\n () => props.data,\n () => setOptions(),\n { deep: true },\n);\nasync function setOptions() {\n const list = await getList();\n radioOptions.value = props.dataCallback ? props.dataCallback(list) : list;\n}\n\nasync function getList() {\n if (Array.isArray(props.data)) {\n return props.data;\n }\n if (dictStore) {\n return await dictStore.getDict(props.data);\n }\n return [];\n}\n\nconst value = ref(\"\");\nwatch(\n () => props.modelValue,\n (val: any) => (value.value = val),\n { deep: true, immediate: true },\n);\nconst handleChange = (val: string | number | boolean) => {\n emit(\"change\", val);\n emit(\"update:modelValue\", val);\n};\n</script>\n\n<template>\n <ElRadioGroup v-model=\"value\" v-bind=\"bindAttrs\" @change=\"handleChange\">\n <template v-if=\"type === 'button'\">\n <ElRadioButton\n v-for=\"item of radioOptions\"\n :key=\"item[optValue]\"\n :label=\"item[optValue]\"\n :disabled=\"item.disabled\"\n >\n {{ item[optLabel] }}\n </ElRadioButton>\n </template>\n <template v-else>\n <ElRadio\n v-for=\"item of radioOptions\"\n :key=\"item[optValue]\"\n :label=\"item[optValue]\"\n :disabled=\"item.disabled\"\n >\n {{ item[optLabel] }}\n </ElRadio>\n </template>\n </ElRadioGroup>\n</template>\n"],"names":["_openBlock","_createBlock","_unref","_mergeProps","type","_createElementBlock","_Fragment","_renderList","optValue","_createTextVNode","_toDisplayString","optLabel"],"mappings":"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"}
1
+ {"version":3,"file":"radio.vue2.mjs","sources":["../../../../../../../packages/components/radio/src/radio.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { ElRadio, ElRadioButton, ElRadioGroup } from \"element-plus\";\nimport { computed, inject, onMounted, ref, watch } from \"vue\";\nimport { DICT_STORE, excludeObjectKeys } from \"../../../utils\";\nimport { excludeRadioKeys, RadioEmits, RadioProps } from \"./radio\";\n\ndefineOptions({\n name: \"IRadio\",\n});\nconst props = defineProps(RadioProps);\nconst emit = defineEmits(RadioEmits);\nconst dictStore = inject(DICT_STORE);\nconst bindAttrs = computed(() => excludeObjectKeys(props, excludeRadioKeys));\n\nconst radioOptions = ref<Record<string, any>[]>([]);\nonMounted(() => setOptions());\nwatch(\n () => props.data,\n () => setOptions(),\n { deep: true },\n);\nasync function setOptions() {\n const list = await getList();\n radioOptions.value = props.dataCallback ? props.dataCallback(list) : list;\n}\n\nasync function getList() {\n if (Array.isArray(props.data)) {\n return props.data;\n }\n if (dictStore) {\n return await dictStore.getDict(props.data);\n }\n return [];\n}\n\nconst value = ref(\"\");\nwatch(\n () => props.modelValue,\n (val: any) => (value.value = val),\n { deep: true, immediate: true },\n);\nconst handleChange = (val: string | number | boolean | undefined) => {\n props.onChange?.(val);\n emit(\"change\", val);\n emit(\"update:modelValue\", val);\n};\n</script>\n\n<template>\n <ElRadioGroup v-model=\"value\" v-bind=\"bindAttrs\" @change=\"handleChange\">\n <template v-if=\"type === 'button'\">\n <ElRadioButton\n v-for=\"item of radioOptions\"\n :key=\"item[optValue]\"\n :label=\"item[optValue]\"\n :disabled=\"item.disabled\"\n >\n {{ item[optLabel] }}\n </ElRadioButton>\n </template>\n <template v-else>\n <ElRadio\n v-for=\"item of radioOptions\"\n :key=\"item[optValue]\"\n :label=\"item[optValue]\"\n :disabled=\"item.disabled\"\n >\n {{ item[optLabel] }}\n </ElRadio>\n </template>\n </ElRadioGroup>\n</template>\n"],"names":["_openBlock","_createBlock","_unref","_mergeProps","type","_createElementBlock","_Fragment","_renderList","optValue","_createTextVNode","_toDisplayString","optLabel"],"mappings":"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"}
@@ -160,3 +160,12 @@ export interface ElTimePickerProps {
160
160
  disabledSeconds?: (hour: number, minute: number, role: string, comparingDate?: any) => number[];
161
161
  teleported?: boolean;
162
162
  }
163
+ export interface ElRadioGroupProps {
164
+ size?: "" | "small" | "default" | "large";
165
+ disabled?: boolean;
166
+ modelValue?: string | number | boolean;
167
+ fill?: string;
168
+ textColor?: string;
169
+ name?: string;
170
+ validateEvent?: boolean;
171
+ }
@@ -1,16 +1,22 @@
1
1
  export declare const IRadio: import("../../types").SFCWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- modelValue: (BooleanConstructor | StringConstructor | NumberConstructor)[];
2
+ modelValue: {
3
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["modelValue"]>;
4
+ };
3
5
  size: {
4
- type: import("vue").PropType<"large" | "default" | "small" | "">;
6
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["size"]>;
5
7
  default: string;
6
8
  };
7
- disabled: BooleanConstructor;
9
+ disabled: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["disabled"]>;
8
10
  textColor: {
9
- type: StringConstructor;
11
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["textColor"]>;
10
12
  default: string;
11
13
  };
12
- fill: StringConstructor;
13
- validateEvent: BooleanConstructor;
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
+ };
14
20
  type: {
15
21
  type: import("vue").PropType<"button" | "">;
16
22
  default: string;
@@ -30,20 +36,29 @@ export declare const IRadio: import("../../types").SFCWithInstall<import("vue").
30
36
  type: StringConstructor;
31
37
  default: string;
32
38
  };
39
+ onChange: {
40
+ type: import("vue").PropType<(value: string | number | boolean | undefined) => void>;
41
+ };
33
42
  }>, {
34
43
  props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
35
- modelValue: (BooleanConstructor | StringConstructor | NumberConstructor)[];
44
+ modelValue: {
45
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["modelValue"]>;
46
+ };
36
47
  size: {
37
- type: import("vue").PropType<"large" | "default" | "small" | "">;
48
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["size"]>;
38
49
  default: string;
39
50
  };
40
- disabled: BooleanConstructor;
51
+ disabled: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["disabled"]>;
41
52
  textColor: {
42
- type: StringConstructor;
53
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["textColor"]>;
43
54
  default: string;
44
55
  };
45
- fill: StringConstructor;
46
- validateEvent: BooleanConstructor;
56
+ fill: {
57
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["fill"]>;
58
+ };
59
+ validateEvent: {
60
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["validateEvent"]>;
61
+ };
47
62
  type: {
48
63
  type: import("vue").PropType<"button" | "">;
49
64
  default: string;
@@ -63,11 +78,14 @@ export declare const IRadio: import("../../types").SFCWithInstall<import("vue").
63
78
  type: StringConstructor;
64
79
  default: string;
65
80
  };
81
+ onChange: {
82
+ type: import("vue").PropType<(value: string | number | boolean | undefined) => void>;
83
+ };
66
84
  }>> & Readonly<{
67
- "onUpdate:modelValue"?: ((_value: string | number | boolean) => any) | undefined;
68
- onChange?: ((_value: string | number | boolean) => any) | undefined;
85
+ "onUpdate:modelValue"?: ((_value: string | number | boolean | undefined) => any) | undefined;
86
+ onChange?: ((_value: string | number | boolean | undefined) => any) | undefined;
69
87
  }> & {}>;
70
- emit: ((event: "update:modelValue", _value: string | number | boolean) => void) & ((event: "change", _value: string | number | boolean) => void);
88
+ emit: ((event: "update:modelValue", _value: string | number | boolean | undefined) => void) & ((event: "change", _value: string | number | boolean | undefined) => void);
71
89
  dictStore: {
72
90
  dict: import("vue").Ref<Record<string, any>>;
73
91
  getDict: (dictType: string) => Promise<any[]>;
@@ -77,7 +95,7 @@ export declare const IRadio: import("../../types").SFCWithInstall<import("vue").
77
95
  setOptions: () => Promise<void>;
78
96
  getList: () => Promise<any[]>;
79
97
  value: import("vue").Ref<string, string>;
80
- handleChange: (val: string | number | boolean) => void;
98
+ handleChange: (val: string | number | boolean | undefined) => void;
81
99
  readonly ElRadio: import("element-plus/es/utils").SFCWithInstall<{
82
100
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
83
101
  readonly border: BooleanConstructor;
@@ -516,21 +534,27 @@ export declare const IRadio: import("../../types").SFCWithInstall<import("vue").
516
534
  };
517
535
  })>;
518
536
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
519
- "update:modelValue": (_value: string | number | boolean) => boolean;
520
- change: (_value: string | number | boolean) => boolean;
537
+ "update:modelValue": (_value: string | number | boolean | undefined) => boolean;
538
+ change: (_value: string | number | boolean | undefined) => boolean;
521
539
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
522
- modelValue: (BooleanConstructor | StringConstructor | NumberConstructor)[];
540
+ modelValue: {
541
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["modelValue"]>;
542
+ };
523
543
  size: {
524
- type: import("vue").PropType<"large" | "default" | "small" | "">;
544
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["size"]>;
525
545
  default: string;
526
546
  };
527
- disabled: BooleanConstructor;
547
+ disabled: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["disabled"]>;
528
548
  textColor: {
529
- type: StringConstructor;
549
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["textColor"]>;
530
550
  default: string;
531
551
  };
532
- fill: StringConstructor;
533
- validateEvent: BooleanConstructor;
552
+ fill: {
553
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["fill"]>;
554
+ };
555
+ validateEvent: {
556
+ type: import("vue").PropType<import("../../element-plus.types").ElRadioGroupProps["validateEvent"]>;
557
+ };
534
558
  type: {
535
559
  type: import("vue").PropType<"button" | "">;
536
560
  default: string;
@@ -550,17 +574,18 @@ export declare const IRadio: import("../../types").SFCWithInstall<import("vue").
550
574
  type: StringConstructor;
551
575
  default: string;
552
576
  };
577
+ onChange: {
578
+ type: import("vue").PropType<(value: string | number | boolean | undefined) => void>;
579
+ };
553
580
  }>> & Readonly<{
554
- "onUpdate:modelValue"?: ((_value: string | number | boolean) => any) | undefined;
555
- onChange?: ((_value: string | number | boolean) => any) | undefined;
581
+ "onUpdate:modelValue"?: ((_value: string | number | boolean | undefined) => any) | undefined;
582
+ onChange?: ((_value: string | number | boolean | undefined) => any) | undefined;
556
583
  }>, {
557
- size: "" | "small" | "large" | "default";
584
+ size: "" | "small" | "large" | "default" | undefined;
558
585
  type: "" | "button";
559
586
  data: string | Record<string, any>[];
560
587
  optLabel: string;
561
588
  optValue: string;
562
- disabled: boolean;
563
- textColor: string;
564
- validateEvent: boolean;
589
+ textColor: string | undefined;
565
590
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
566
591
  export default IRadio;