vant 4.6.1 → 4.6.3

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 (104) hide show
  1. package/README.md +1 -1
  2. package/es/address-list/AddressList.d.ts +13 -0
  3. package/es/address-list/AddressList.mjs +3 -2
  4. package/es/address-list/index.d.ts +9 -0
  5. package/es/checkbox/Checkbox.d.ts +14 -23
  6. package/es/checkbox/Checkbox.mjs +2 -1
  7. package/es/checkbox/Checker.d.ts +6 -15
  8. package/es/checkbox/Checker.mjs +18 -6
  9. package/es/checkbox/index.d.ts +2 -9
  10. package/es/checkbox-group/CheckboxGroup.d.ts +14 -1
  11. package/es/checkbox-group/CheckboxGroup.mjs +2 -1
  12. package/es/checkbox-group/index.d.ts +9 -0
  13. package/es/field/Field.d.ts +25 -0
  14. package/es/field/Field.mjs +9 -0
  15. package/es/field/index.d.ts +13 -0
  16. package/es/floating-bubble/FloatingBubble.d.ts +16 -21
  17. package/es/floating-bubble/FloatingBubble.mjs +6 -8
  18. package/es/floating-bubble/index.css +1 -1
  19. package/es/floating-bubble/index.d.ts +19 -19
  20. package/es/floating-bubble/types.d.ts +12 -0
  21. package/es/index.d.ts +1 -1
  22. package/es/index.mjs +1 -1
  23. package/es/pagination/index.css +1 -1
  24. package/es/radio/Radio.d.ts +18 -25
  25. package/es/radio/Radio.mjs +5 -3
  26. package/es/radio/index.css +1 -1
  27. package/es/radio/index.d.ts +4 -9
  28. package/es/radio/types.d.ts +1 -0
  29. package/es/radio-group/RadioGroup.d.ts +4 -0
  30. package/es/radio-group/RadioGroup.mjs +1 -0
  31. package/es/radio-group/index.d.ts +2 -0
  32. package/es/search/Search.d.ts +19 -0
  33. package/es/search/index.d.ts +13 -0
  34. package/es/tab/Tab.mjs +2 -2
  35. package/es/text-ellipsis/TextEllipsis.d.ts +13 -0
  36. package/es/text-ellipsis/TextEllipsis.mjs +50 -19
  37. package/es/text-ellipsis/index.d.ts +9 -0
  38. package/es/utils/basic.d.ts +8 -0
  39. package/es/utils/basic.mjs +28 -7
  40. package/es/utils/create.mjs +1 -2
  41. package/es/utils/deep-assign.mjs +1 -1
  42. package/es/utils/deep-clone.mjs +1 -1
  43. package/es/utils/dom.mjs +1 -1
  44. package/es/utils/format.mjs +1 -1
  45. package/es/utils/index.d.ts +0 -1
  46. package/es/utils/index.mjs +0 -1
  47. package/es/utils/interceptor.mjs +1 -2
  48. package/lib/address-list/AddressList.d.ts +13 -0
  49. package/lib/address-list/AddressList.js +3 -2
  50. package/lib/address-list/index.d.ts +9 -0
  51. package/lib/checkbox/Checkbox.d.ts +14 -23
  52. package/lib/checkbox/Checkbox.js +1 -0
  53. package/lib/checkbox/Checker.d.ts +6 -15
  54. package/lib/checkbox/Checker.js +17 -5
  55. package/lib/checkbox/index.d.ts +2 -9
  56. package/lib/checkbox-group/CheckboxGroup.d.ts +14 -1
  57. package/lib/checkbox-group/CheckboxGroup.js +1 -0
  58. package/lib/checkbox-group/index.d.ts +9 -0
  59. package/lib/field/Field.d.ts +25 -0
  60. package/lib/field/Field.js +9 -0
  61. package/lib/field/index.d.ts +13 -0
  62. package/lib/floating-bubble/FloatingBubble.d.ts +16 -21
  63. package/lib/floating-bubble/FloatingBubble.js +6 -8
  64. package/lib/floating-bubble/index.css +1 -1
  65. package/lib/floating-bubble/index.d.ts +19 -19
  66. package/lib/floating-bubble/types.d.ts +12 -0
  67. package/lib/index.css +1 -1
  68. package/lib/index.d.ts +1 -1
  69. package/lib/index.js +1 -1
  70. package/lib/pagination/index.css +1 -1
  71. package/lib/radio/Radio.d.ts +18 -25
  72. package/lib/radio/Radio.js +4 -2
  73. package/lib/radio/index.css +1 -1
  74. package/lib/radio/index.d.ts +4 -9
  75. package/lib/radio/types.d.ts +1 -0
  76. package/lib/radio-group/RadioGroup.d.ts +4 -0
  77. package/lib/radio-group/RadioGroup.js +1 -0
  78. package/lib/radio-group/index.d.ts +2 -0
  79. package/lib/search/Search.d.ts +19 -0
  80. package/lib/search/index.d.ts +13 -0
  81. package/lib/tab/Tab.js +2 -2
  82. package/lib/text-ellipsis/TextEllipsis.d.ts +13 -0
  83. package/lib/text-ellipsis/TextEllipsis.js +49 -18
  84. package/lib/text-ellipsis/index.d.ts +9 -0
  85. package/lib/utils/basic.d.ts +8 -0
  86. package/lib/utils/basic.js +29 -8
  87. package/lib/utils/create.js +1 -2
  88. package/lib/utils/deep-assign.js +3 -3
  89. package/lib/utils/deep-clone.js +3 -3
  90. package/lib/utils/dom.js +2 -2
  91. package/lib/utils/format.js +4 -4
  92. package/lib/utils/index.d.ts +0 -1
  93. package/lib/utils/index.js +0 -1
  94. package/lib/utils/interceptor.js +1 -2
  95. package/lib/vant.cjs.js +107 -48
  96. package/lib/vant.es.js +107 -48
  97. package/lib/vant.js +172 -59
  98. package/lib/vant.min.js +1 -1
  99. package/lib/web-types.json +1 -1
  100. package/package.json +1 -1
  101. package/es/utils/validate.d.ts +0 -9
  102. package/es/utils/validate.mjs +0 -22
  103. package/lib/utils/validate.d.ts +0 -9
  104. package/lib/utils/validate.js +0 -41
package/README.md CHANGED
@@ -26,7 +26,7 @@
26
26
  ## Features
27
27
 
28
28
  - 🚀 1KB Component average size (min+gzip)
29
- - 🚀 70+ High quality components
29
+ - 🚀 80+ High quality components
30
30
  - 🚀 Zero third-party dependencies
31
31
  - 💪 90%+ Unit test coverage
32
32
  - 💪 Written in TypeScript
@@ -15,6 +15,10 @@ export declare const addressListProps: {
15
15
  type: import("vue").PropType<AddressListAddress[]>;
16
16
  default: () => never[];
17
17
  };
18
+ showAddButton: {
19
+ type: BooleanConstructor;
20
+ default: true;
21
+ };
18
22
  addButtonText: StringConstructor;
19
23
  defaultTagText: StringConstructor;
20
24
  rightIcon: {
@@ -38,6 +42,10 @@ declare const _default: import("vue").DefineComponent<{
38
42
  type: import("vue").PropType<AddressListAddress[]>;
39
43
  default: () => never[];
40
44
  };
45
+ showAddButton: {
46
+ type: BooleanConstructor;
47
+ default: true;
48
+ };
41
49
  addButtonText: StringConstructor;
42
50
  defaultTagText: StringConstructor;
43
51
  rightIcon: {
@@ -59,6 +67,10 @@ declare const _default: import("vue").DefineComponent<{
59
67
  type: import("vue").PropType<AddressListAddress[]>;
60
68
  default: () => never[];
61
69
  };
70
+ showAddButton: {
71
+ type: BooleanConstructor;
72
+ default: true;
73
+ };
62
74
  addButtonText: StringConstructor;
63
75
  defaultTagText: StringConstructor;
64
76
  rightIcon: {
@@ -78,5 +90,6 @@ declare const _default: import("vue").DefineComponent<{
78
90
  switchable: boolean;
79
91
  list: AddressListAddress[];
80
92
  disabledList: AddressListAddress[];
93
+ showAddButton: boolean;
81
94
  }, {}>;
82
95
  export default _default;
@@ -11,6 +11,7 @@ const addressListProps = {
11
11
  switchable: truthProp,
12
12
  disabledText: String,
13
13
  disabledList: makeArrayProp(),
14
+ showAddButton: truthProp,
14
15
  addButtonText: String,
15
16
  defaultTagText: String,
16
17
  rightIcon: makeStringProp("edit")
@@ -52,7 +53,7 @@ var stdin_default = defineComponent({
52
53
  return list.map((item, index) => renderItem(item, index, disabled));
53
54
  }
54
55
  };
55
- const renderBottom = () => _createVNode("div", {
56
+ const renderBottom = () => props.showAddButton ? _createVNode("div", {
56
57
  "class": [bem("bottom"), "van-safe-area-bottom"]
57
58
  }, [_createVNode(Button, {
58
59
  "round": true,
@@ -61,7 +62,7 @@ var stdin_default = defineComponent({
61
62
  "text": props.addButtonText || t("add"),
62
63
  "class": bem("add"),
63
64
  "onClick": () => emit("add")
64
- }, null)]);
65
+ }, null)]) : void 0;
65
66
  return () => {
66
67
  var _a, _b;
67
68
  const List = renderList(props.list);
@@ -13,6 +13,10 @@ export declare const AddressList: import("../utils").WithInstall<import("vue").D
13
13
  type: import("vue").PropType<import("./AddressListItem").AddressListAddress[]>;
14
14
  default: () => never[];
15
15
  };
16
+ showAddButton: {
17
+ type: BooleanConstructor;
18
+ default: true;
19
+ };
16
20
  addButtonText: StringConstructor;
17
21
  defaultTagText: StringConstructor;
18
22
  rightIcon: {
@@ -34,6 +38,10 @@ export declare const AddressList: import("../utils").WithInstall<import("vue").D
34
38
  type: import("vue").PropType<import("./AddressListItem").AddressListAddress[]>;
35
39
  default: () => never[];
36
40
  };
41
+ showAddButton: {
42
+ type: BooleanConstructor;
43
+ default: true;
44
+ };
37
45
  addButtonText: StringConstructor;
38
46
  defaultTagText: StringConstructor;
39
47
  rightIcon: {
@@ -53,6 +61,7 @@ export declare const AddressList: import("../utils").WithInstall<import("vue").D
53
61
  switchable: boolean;
54
62
  list: import("./AddressListItem").AddressListAddress[];
55
63
  disabledList: import("./AddressListItem").AddressListAddress[];
64
+ showAddButton: boolean;
56
65
  }, {}>>;
57
66
  export default AddressList;
58
67
  export { addressListProps } from './AddressList';
@@ -1,17 +1,15 @@
1
- import { type ExtractPropTypes } from 'vue';
1
+ import { type PropType, type ExtractPropTypes } from 'vue';
2
+ import { type CheckerShape } from './Checker';
2
3
  export declare const checkboxProps: {
3
- name: import("vue").PropType<unknown>;
4
- shape: {
5
- type: import("vue").PropType<import("./Checker").CheckerShape>;
6
- default: import("./Checker").CheckerShape;
7
- };
4
+ name: PropType<unknown>;
8
5
  disabled: BooleanConstructor;
9
6
  iconSize: (NumberConstructor | StringConstructor)[];
10
- modelValue: import("vue").PropType<unknown>;
7
+ modelValue: PropType<unknown>;
11
8
  checkedColor: StringConstructor;
12
- labelPosition: import("vue").PropType<import("./Checker").CheckerLabelPosition>;
9
+ labelPosition: PropType<import("./Checker").CheckerLabelPosition>;
13
10
  labelDisabled: BooleanConstructor;
14
11
  } & {
12
+ shape: PropType<CheckerShape>;
15
13
  bindGroup: {
16
14
  type: BooleanConstructor;
17
15
  default: true;
@@ -19,35 +17,29 @@ export declare const checkboxProps: {
19
17
  };
20
18
  export type CheckboxProps = ExtractPropTypes<typeof checkboxProps>;
21
19
  declare const _default: import("vue").DefineComponent<{
22
- name: import("vue").PropType<unknown>;
23
- shape: {
24
- type: import("vue").PropType<import("./Checker").CheckerShape>;
25
- default: import("./Checker").CheckerShape;
26
- };
20
+ name: PropType<unknown>;
27
21
  disabled: BooleanConstructor;
28
22
  iconSize: (NumberConstructor | StringConstructor)[];
29
- modelValue: import("vue").PropType<unknown>;
23
+ modelValue: PropType<unknown>;
30
24
  checkedColor: StringConstructor;
31
- labelPosition: import("vue").PropType<import("./Checker").CheckerLabelPosition>;
25
+ labelPosition: PropType<import("./Checker").CheckerLabelPosition>;
32
26
  labelDisabled: BooleanConstructor;
33
27
  } & {
28
+ shape: PropType<CheckerShape>;
34
29
  bindGroup: {
35
30
  type: BooleanConstructor;
36
31
  default: true;
37
32
  };
38
33
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
39
- name: import("vue").PropType<unknown>;
40
- shape: {
41
- type: import("vue").PropType<import("./Checker").CheckerShape>;
42
- default: import("./Checker").CheckerShape;
43
- };
34
+ name: PropType<unknown>;
44
35
  disabled: BooleanConstructor;
45
36
  iconSize: (NumberConstructor | StringConstructor)[];
46
- modelValue: import("vue").PropType<unknown>;
37
+ modelValue: PropType<unknown>;
47
38
  checkedColor: StringConstructor;
48
- labelPosition: import("vue").PropType<import("./Checker").CheckerLabelPosition>;
39
+ labelPosition: PropType<import("./Checker").CheckerLabelPosition>;
49
40
  labelDisabled: BooleanConstructor;
50
41
  } & {
42
+ shape: PropType<CheckerShape>;
51
43
  bindGroup: {
52
44
  type: BooleanConstructor;
53
45
  default: true;
@@ -57,7 +49,6 @@ declare const _default: import("vue").DefineComponent<{
57
49
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
58
50
  }, {
59
51
  disabled: boolean;
60
- shape: import("./Checker").CheckerShape;
61
52
  labelDisabled: boolean;
62
53
  bindGroup: boolean;
63
54
  }, {}>;
@@ -1,12 +1,13 @@
1
1
  import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
2
2
  import { watch, computed, defineComponent } from "vue";
3
- import { createNamespace, extend, pick, truthProp } from "../utils/index.mjs";
3
+ import { pick, extend, truthProp, createNamespace } from "../utils/index.mjs";
4
4
  import { CHECKBOX_GROUP_KEY } from "../checkbox-group/CheckboxGroup.mjs";
5
5
  import { useParent, useCustomFieldValue } from "@vant/use";
6
6
  import { useExpose } from "../composables/use-expose.mjs";
7
7
  import Checker, { checkerProps } from "./Checker.mjs";
8
8
  const [name, bem] = createNamespace("checkbox");
9
9
  const checkboxProps = extend({}, checkerProps, {
10
+ shape: String,
10
11
  bindGroup: truthProp
11
12
  });
12
13
  var stdin_default = defineComponent({
@@ -1,24 +1,22 @@
1
1
  import { type PropType } from 'vue';
2
2
  import { type Numeric } from '../utils';
3
+ import type { RadioShape } from '../radio';
3
4
  export type CheckerShape = 'square' | 'round';
4
5
  export type CheckerDirection = 'horizontal' | 'vertical';
5
6
  export type CheckerLabelPosition = 'left' | 'right';
6
7
  export type CheckerParent = {
7
8
  props: {
9
+ max?: Numeric;
10
+ shape?: CheckerShape | RadioShape;
8
11
  disabled?: boolean;
9
12
  iconSize?: Numeric;
10
13
  direction?: CheckerDirection;
11
- checkedColor?: string;
12
14
  modelValue?: unknown | unknown[];
13
- max?: Numeric;
15
+ checkedColor?: string;
14
16
  };
15
17
  };
16
18
  export declare const checkerProps: {
17
19
  name: PropType<unknown>;
18
- shape: {
19
- type: PropType<CheckerShape>;
20
- default: CheckerShape;
21
- };
22
20
  disabled: BooleanConstructor;
23
21
  iconSize: (NumberConstructor | StringConstructor)[];
24
22
  modelValue: PropType<unknown>;
@@ -28,10 +26,6 @@ export declare const checkerProps: {
28
26
  };
29
27
  declare const _default: import("vue").DefineComponent<{
30
28
  name: PropType<unknown>;
31
- shape: {
32
- type: PropType<CheckerShape>;
33
- default: CheckerShape;
34
- };
35
29
  disabled: BooleanConstructor;
36
30
  iconSize: (NumberConstructor | StringConstructor)[];
37
31
  modelValue: PropType<unknown>;
@@ -44,6 +38,7 @@ declare const _default: import("vue").DefineComponent<{
44
38
  required: true;
45
39
  };
46
40
  role: StringConstructor;
41
+ shape: PropType<"dot" | "round" | "square">;
47
42
  parent: PropType<CheckerParent | null>;
48
43
  checked: BooleanConstructor;
49
44
  bindGroup: {
@@ -52,10 +47,6 @@ declare const _default: import("vue").DefineComponent<{
52
47
  };
53
48
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "toggle")[], "click" | "toggle", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
54
49
  name: PropType<unknown>;
55
- shape: {
56
- type: PropType<CheckerShape>;
57
- default: CheckerShape;
58
- };
59
50
  disabled: BooleanConstructor;
60
51
  iconSize: (NumberConstructor | StringConstructor)[];
61
52
  modelValue: PropType<unknown>;
@@ -68,6 +59,7 @@ declare const _default: import("vue").DefineComponent<{
68
59
  required: true;
69
60
  };
70
61
  role: StringConstructor;
62
+ shape: PropType<"dot" | "round" | "square">;
71
63
  parent: PropType<CheckerParent | null>;
72
64
  checked: BooleanConstructor;
73
65
  bindGroup: {
@@ -80,7 +72,6 @@ declare const _default: import("vue").DefineComponent<{
80
72
  }, {
81
73
  checked: boolean;
82
74
  disabled: boolean;
83
- shape: CheckerShape;
84
75
  labelDisabled: boolean;
85
76
  bindGroup: boolean;
86
77
  }, {}>;
@@ -1,10 +1,9 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { ref, computed, defineComponent } from "vue";
3
- import { extend, addUnit, truthProp, numericProp, unknownProp, makeStringProp, makeRequiredProp } from "../utils/index.mjs";
3
+ import { extend, addUnit, truthProp, numericProp, unknownProp, makeRequiredProp } from "../utils/index.mjs";
4
4
  import { Icon } from "../icon/index.mjs";
5
5
  const checkerProps = {
6
6
  name: unknownProp,
7
- shape: makeStringProp("round"),
8
7
  disabled: Boolean,
9
8
  iconSize: numericProp,
10
9
  modelValue: unknownProp,
@@ -16,6 +15,7 @@ var stdin_default = defineComponent({
16
15
  props: extend({}, checkerProps, {
17
16
  bem: makeRequiredProp(Function),
18
17
  role: String,
18
+ shape: String,
19
19
  parent: Object,
20
20
  checked: Boolean,
21
21
  bindGroup: truthProp
@@ -54,6 +54,9 @@ var stdin_default = defineComponent({
54
54
  };
55
55
  }
56
56
  });
57
+ const shape = computed(() => {
58
+ return props.shape || getParentProp("shape") || "round";
59
+ });
57
60
  const onClick = (event) => {
58
61
  const {
59
62
  target
@@ -66,27 +69,36 @@ var stdin_default = defineComponent({
66
69
  emit("click", event);
67
70
  };
68
71
  const renderIcon = () => {
72
+ var _a, _b;
69
73
  const {
70
74
  bem,
71
- shape,
72
75
  checked
73
76
  } = props;
74
77
  const iconSize = props.iconSize || getParentProp("iconSize");
75
78
  return _createVNode("div", {
76
79
  "ref": iconRef,
77
- "class": bem("icon", [shape, {
80
+ "class": bem("icon", [shape.value, {
78
81
  disabled: disabled.value,
79
82
  checked
80
83
  }]),
81
- "style": {
84
+ "style": shape.value !== "dot" ? {
82
85
  fontSize: addUnit(iconSize)
86
+ } : {
87
+ width: addUnit(iconSize),
88
+ height: addUnit(iconSize),
89
+ borderColor: (_a = iconStyle.value) == null ? void 0 : _a.borderColor
83
90
  }
84
91
  }, [slots.icon ? slots.icon({
85
92
  checked,
86
93
  disabled: disabled.value
87
- }) : _createVNode(Icon, {
94
+ }) : shape.value !== "dot" ? _createVNode(Icon, {
88
95
  "name": "success",
89
96
  "style": iconStyle.value
97
+ }, null) : _createVNode("div", {
98
+ "class": bem("icon--dot__icon"),
99
+ "style": {
100
+ backgroundColor: (_b = iconStyle.value) == null ? void 0 : _b.backgroundColor
101
+ }
90
102
  }, null)]);
91
103
  };
92
104
  const renderLabel = () => {
@@ -1,9 +1,5 @@
1
1
  export declare const Checkbox: import("../utils").WithInstall<import("vue").DefineComponent<{
2
2
  name: import("vue").PropType<unknown>;
3
- shape: {
4
- type: import("vue").PropType<import("./Checker").CheckerShape>;
5
- default: import("./Checker").CheckerShape;
6
- };
7
3
  disabled: BooleanConstructor;
8
4
  iconSize: (NumberConstructor | StringConstructor)[];
9
5
  modelValue: import("vue").PropType<unknown>;
@@ -11,16 +7,13 @@ export declare const Checkbox: import("../utils").WithInstall<import("vue").Defi
11
7
  labelPosition: import("vue").PropType<import("./Checker").CheckerLabelPosition>;
12
8
  labelDisabled: BooleanConstructor;
13
9
  } & {
10
+ shape: import("vue").PropType<import("./Checker").CheckerShape>;
14
11
  bindGroup: {
15
12
  type: BooleanConstructor;
16
13
  default: true;
17
14
  };
18
15
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
16
  name: import("vue").PropType<unknown>;
20
- shape: {
21
- type: import("vue").PropType<import("./Checker").CheckerShape>;
22
- default: import("./Checker").CheckerShape;
23
- };
24
17
  disabled: BooleanConstructor;
25
18
  iconSize: (NumberConstructor | StringConstructor)[];
26
19
  modelValue: import("vue").PropType<unknown>;
@@ -28,6 +21,7 @@ export declare const Checkbox: import("../utils").WithInstall<import("vue").Defi
28
21
  labelPosition: import("vue").PropType<import("./Checker").CheckerLabelPosition>;
29
22
  labelDisabled: BooleanConstructor;
30
23
  } & {
24
+ shape: import("vue").PropType<import("./Checker").CheckerShape>;
31
25
  bindGroup: {
32
26
  type: BooleanConstructor;
33
27
  default: true;
@@ -37,7 +31,6 @@ export declare const Checkbox: import("../utils").WithInstall<import("vue").Defi
37
31
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
38
32
  }, {
39
33
  disabled: boolean;
40
- shape: import("./Checker").CheckerShape;
41
34
  labelDisabled: boolean;
42
35
  bindGroup: boolean;
43
36
  }, {}>>;
@@ -1,8 +1,12 @@
1
1
  import { type PropType, type InjectionKey, type ExtractPropTypes } from 'vue';
2
- import type { CheckerDirection } from '../checkbox/Checker';
2
+ import type { CheckerShape, CheckerDirection } from '../checkbox/Checker';
3
3
  import type { CheckboxGroupProvide } from './types';
4
4
  export declare const checkboxGroupProps: {
5
5
  max: (NumberConstructor | StringConstructor)[];
6
+ shape: {
7
+ type: PropType<CheckerShape>;
8
+ default: CheckerShape;
9
+ };
6
10
  disabled: BooleanConstructor;
7
11
  iconSize: (NumberConstructor | StringConstructor)[];
8
12
  direction: PropType<CheckerDirection>;
@@ -16,6 +20,10 @@ export type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>;
16
20
  export declare const CHECKBOX_GROUP_KEY: InjectionKey<CheckboxGroupProvide>;
17
21
  declare const _default: import("vue").DefineComponent<{
18
22
  max: (NumberConstructor | StringConstructor)[];
23
+ shape: {
24
+ type: PropType<CheckerShape>;
25
+ default: CheckerShape;
26
+ };
19
27
  disabled: BooleanConstructor;
20
28
  iconSize: (NumberConstructor | StringConstructor)[];
21
29
  direction: PropType<CheckerDirection>;
@@ -26,6 +34,10 @@ declare const _default: import("vue").DefineComponent<{
26
34
  checkedColor: StringConstructor;
27
35
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
28
36
  max: (NumberConstructor | StringConstructor)[];
37
+ shape: {
38
+ type: PropType<CheckerShape>;
39
+ default: CheckerShape;
40
+ };
29
41
  disabled: BooleanConstructor;
30
42
  iconSize: (NumberConstructor | StringConstructor)[];
31
43
  direction: PropType<CheckerDirection>;
@@ -39,6 +51,7 @@ declare const _default: import("vue").DefineComponent<{
39
51
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
40
52
  }, {
41
53
  disabled: boolean;
54
+ shape: CheckerShape;
42
55
  modelValue: unknown[];
43
56
  }, {}>;
44
57
  export default _default;
@@ -1,11 +1,12 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { watch, defineComponent } from "vue";
3
- import { numericProp, createNamespace, makeArrayProp } from "../utils/index.mjs";
3
+ import { numericProp, makeArrayProp, makeStringProp, createNamespace } from "../utils/index.mjs";
4
4
  import { useChildren, useCustomFieldValue } from "@vant/use";
5
5
  import { useExpose } from "../composables/use-expose.mjs";
6
6
  const [name, bem] = createNamespace("checkbox-group");
7
7
  const checkboxGroupProps = {
8
8
  max: numericProp,
9
+ shape: makeStringProp("round"),
9
10
  disabled: Boolean,
10
11
  iconSize: numericProp,
11
12
  direction: String,
@@ -1,5 +1,9 @@
1
1
  export declare const CheckboxGroup: import("../utils").WithInstall<import("vue").DefineComponent<{
2
2
  max: (NumberConstructor | StringConstructor)[];
3
+ shape: {
4
+ type: import("vue").PropType<import("../checkbox/Checker").CheckerShape>;
5
+ default: import("../checkbox/Checker").CheckerShape;
6
+ };
3
7
  disabled: BooleanConstructor;
4
8
  iconSize: (NumberConstructor | StringConstructor)[];
5
9
  direction: import("vue").PropType<import("../checkbox/Checker").CheckerDirection>;
@@ -10,6 +14,10 @@ export declare const CheckboxGroup: import("../utils").WithInstall<import("vue")
10
14
  checkedColor: StringConstructor;
11
15
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
16
  max: (NumberConstructor | StringConstructor)[];
17
+ shape: {
18
+ type: import("vue").PropType<import("../checkbox/Checker").CheckerShape>;
19
+ default: import("../checkbox/Checker").CheckerShape;
20
+ };
13
21
  disabled: BooleanConstructor;
14
22
  iconSize: (NumberConstructor | StringConstructor)[];
15
23
  direction: import("vue").PropType<import("../checkbox/Checker").CheckerDirection>;
@@ -23,6 +31,7 @@ export declare const CheckboxGroup: import("../utils").WithInstall<import("vue")
23
31
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
24
32
  }, {
25
33
  disabled: boolean;
34
+ shape: import("../checkbox/Checker").CheckerShape;
26
35
  modelValue: unknown[];
27
36
  }, {}>>;
28
37
  export default CheckboxGroup;
@@ -20,8 +20,14 @@ export declare const fieldSharedProps: {
20
20
  inputAlign: PropType<FieldTextAlign>;
21
21
  placeholder: StringConstructor;
22
22
  autocomplete: StringConstructor;
23
+ autocapitalize: StringConstructor;
24
+ autocorrect: StringConstructor;
23
25
  errorMessage: StringConstructor;
24
26
  enterkeyhint: StringConstructor;
27
+ spellcheck: {
28
+ type: BooleanConstructor;
29
+ default: null;
30
+ };
25
31
  clearTrigger: {
26
32
  type: PropType<FieldClearTrigger>;
27
33
  default: FieldClearTrigger;
@@ -90,8 +96,14 @@ export declare const fieldProps: {
90
96
  inputAlign: PropType<FieldTextAlign>;
91
97
  placeholder: StringConstructor;
92
98
  autocomplete: StringConstructor;
99
+ autocapitalize: StringConstructor;
100
+ autocorrect: StringConstructor;
93
101
  errorMessage: StringConstructor;
94
102
  enterkeyhint: StringConstructor;
103
+ spellcheck: {
104
+ type: BooleanConstructor;
105
+ default: null;
106
+ };
95
107
  clearTrigger: {
96
108
  type: PropType<FieldClearTrigger>;
97
109
  default: FieldClearTrigger;
@@ -178,8 +190,14 @@ declare const _default: import("vue").DefineComponent<{
178
190
  inputAlign: PropType<FieldTextAlign>;
179
191
  placeholder: StringConstructor;
180
192
  autocomplete: StringConstructor;
193
+ autocapitalize: StringConstructor;
194
+ autocorrect: StringConstructor;
181
195
  errorMessage: StringConstructor;
182
196
  enterkeyhint: StringConstructor;
197
+ spellcheck: {
198
+ type: BooleanConstructor;
199
+ default: null;
200
+ };
183
201
  clearTrigger: {
184
202
  type: PropType<FieldClearTrigger>;
185
203
  default: FieldClearTrigger;
@@ -264,8 +282,14 @@ declare const _default: import("vue").DefineComponent<{
264
282
  inputAlign: PropType<FieldTextAlign>;
265
283
  placeholder: StringConstructor;
266
284
  autocomplete: StringConstructor;
285
+ autocapitalize: StringConstructor;
286
+ autocorrect: StringConstructor;
267
287
  errorMessage: StringConstructor;
268
288
  enterkeyhint: StringConstructor;
289
+ spellcheck: {
290
+ type: BooleanConstructor;
291
+ default: null;
292
+ };
269
293
  clearTrigger: {
270
294
  type: PropType<FieldClearTrigger>;
271
295
  default: FieldClearTrigger;
@@ -327,6 +351,7 @@ declare const _default: import("vue").DefineComponent<{
327
351
  clearable: boolean;
328
352
  clearIcon: string;
329
353
  modelValue: string | number;
354
+ spellcheck: boolean;
330
355
  clearTrigger: FieldClearTrigger;
331
356
  formatTrigger: FieldFormatTrigger;
332
357
  error: boolean;
@@ -23,8 +23,14 @@ const fieldSharedProps = {
23
23
  inputAlign: String,
24
24
  placeholder: String,
25
25
  autocomplete: String,
26
+ autocapitalize: String,
27
+ autocorrect: String,
26
28
  errorMessage: String,
27
29
  enterkeyhint: String,
30
+ spellcheck: {
31
+ type: Boolean,
32
+ default: null
33
+ },
28
34
  clearTrigger: makeStringProp("focus"),
29
35
  formatTrigger: makeStringProp("onChange"),
30
36
  error: {
@@ -352,7 +358,10 @@ var stdin_default = defineComponent({
352
358
  autofocus: props.autofocus,
353
359
  placeholder: props.placeholder,
354
360
  autocomplete: props.autocomplete,
361
+ autocapitalize: props.autocapitalize,
362
+ autocorrect: props.autocorrect,
355
363
  enterkeyhint: props.enterkeyhint,
364
+ spellcheck: props.spellcheck,
356
365
  "aria-labelledby": props.label ? `${id}-label` : void 0,
357
366
  onBlur,
358
367
  onFocus,
@@ -46,8 +46,14 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
46
46
  inputAlign: import("vue").PropType<import("./types").FieldTextAlign>;
47
47
  placeholder: StringConstructor;
48
48
  autocomplete: StringConstructor;
49
+ autocapitalize: StringConstructor;
50
+ autocorrect: StringConstructor;
49
51
  errorMessage: StringConstructor;
50
52
  enterkeyhint: StringConstructor;
53
+ spellcheck: {
54
+ type: BooleanConstructor;
55
+ default: null;
56
+ };
51
57
  clearTrigger: {
52
58
  type: import("vue").PropType<import("./types").FieldClearTrigger>;
53
59
  default: import("./types").FieldClearTrigger;
@@ -132,8 +138,14 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
132
138
  inputAlign: import("vue").PropType<import("./types").FieldTextAlign>;
133
139
  placeholder: StringConstructor;
134
140
  autocomplete: StringConstructor;
141
+ autocapitalize: StringConstructor;
142
+ autocorrect: StringConstructor;
135
143
  errorMessage: StringConstructor;
136
144
  enterkeyhint: StringConstructor;
145
+ spellcheck: {
146
+ type: BooleanConstructor;
147
+ default: null;
148
+ };
137
149
  clearTrigger: {
138
150
  type: import("vue").PropType<import("./types").FieldClearTrigger>;
139
151
  default: import("./types").FieldClearTrigger;
@@ -195,6 +207,7 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
195
207
  clearable: boolean;
196
208
  clearIcon: string;
197
209
  modelValue: string | number;
210
+ spellcheck: boolean;
198
211
  clearTrigger: import("./types").FieldClearTrigger;
199
212
  formatTrigger: import("./types").FieldFormatTrigger;
200
213
  error: boolean;