vant 4.9.20 → 4.9.22

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 (112) hide show
  1. package/README.md +2 -2
  2. package/es/action-bar-button/index.css +1 -1
  3. package/es/action-sheet/ActionSheet.d.ts +1 -1
  4. package/es/action-sheet/index.d.ts +1 -1
  5. package/es/address-list/AddressListItem.d.ts +1 -1
  6. package/es/area/Area.d.ts +1 -1
  7. package/es/area/index.d.ts +1 -1
  8. package/es/calendar/index.css +1 -1
  9. package/es/checkbox/Checker.mjs +1 -1
  10. package/es/composables/on-popup-reopen.mjs +1 -1
  11. package/es/composables/use-tab-status.d.ts +3 -0
  12. package/es/composables/use-tab-status.mjs +17 -2
  13. package/es/composables/use-touch.mjs +4 -4
  14. package/es/date-picker/DatePicker.d.ts +1 -1
  15. package/es/date-picker/index.d.ts +1 -1
  16. package/es/dialog/Dialog.d.ts +1 -1
  17. package/es/dialog/index.css +1 -1
  18. package/es/dialog/index.d.ts +1 -1
  19. package/es/field/Field.d.ts +5 -5
  20. package/es/field/Field.mjs +3 -3
  21. package/es/field/index.d.ts +3 -3
  22. package/es/field/types.d.ts +1 -0
  23. package/es/floating-bubble/FloatingBubble.d.ts +3 -22
  24. package/es/floating-bubble/FloatingBubble.mjs +3 -9
  25. package/es/floating-bubble/index.d.ts +2 -15
  26. package/es/floating-panel/FloatingPanel.d.ts +13 -0
  27. package/es/floating-panel/FloatingPanel.mjs +14 -2
  28. package/es/floating-panel/index.d.ts +9 -0
  29. package/es/grid/Grid.d.ts +1 -1
  30. package/es/grid/index.d.ts +1 -1
  31. package/es/index.d.ts +1 -1
  32. package/es/index.mjs +1 -1
  33. package/es/list/List.d.ts +13 -3
  34. package/es/list/List.mjs +7 -4
  35. package/es/list/index.d.ts +9 -2
  36. package/es/picker/Picker.d.ts +1 -1
  37. package/es/picker/index.d.ts +1 -1
  38. package/es/progress/Progress.mjs +6 -3
  39. package/es/search/Search.d.ts +4 -4
  40. package/es/search/Search.mjs +1 -0
  41. package/es/search/index.d.ts +3 -3
  42. package/es/share-sheet/ShareSheet.d.ts +1 -1
  43. package/es/share-sheet/index.d.ts +1 -1
  44. package/es/stepper/Stepper.mjs +3 -0
  45. package/es/tab/Tab.mjs +3 -3
  46. package/es/tab/index.d.ts +1 -0
  47. package/es/tab/index.mjs +4 -1
  48. package/es/tabs/Tabs.d.ts +1 -1
  49. package/es/tabs/index.d.ts +1 -1
  50. package/es/time-picker/TimePicker.d.ts +1 -1
  51. package/es/time-picker/TimePicker.mjs +1 -1
  52. package/es/time-picker/index.d.ts +1 -1
  53. package/es/utils/constant.mjs +1 -1
  54. package/lib/action-bar-button/index.css +1 -1
  55. package/lib/action-sheet/ActionSheet.d.ts +1 -1
  56. package/lib/action-sheet/index.d.ts +1 -1
  57. package/lib/address-list/AddressListItem.d.ts +1 -1
  58. package/lib/area/Area.d.ts +1 -1
  59. package/lib/area/index.d.ts +1 -1
  60. package/lib/calendar/index.css +1 -1
  61. package/lib/checkbox/Checker.js +1 -1
  62. package/lib/composables/on-popup-reopen.js +1 -1
  63. package/lib/composables/use-tab-status.d.ts +3 -0
  64. package/lib/composables/use-tab-status.js +16 -1
  65. package/lib/composables/use-touch.js +4 -4
  66. package/lib/date-picker/DatePicker.d.ts +1 -1
  67. package/lib/date-picker/index.d.ts +1 -1
  68. package/lib/dialog/Dialog.d.ts +1 -1
  69. package/lib/dialog/index.css +1 -1
  70. package/lib/dialog/index.d.ts +1 -1
  71. package/lib/field/Field.d.ts +5 -5
  72. package/lib/field/Field.js +3 -3
  73. package/lib/field/index.d.ts +3 -3
  74. package/lib/field/types.d.ts +1 -0
  75. package/lib/floating-bubble/FloatingBubble.d.ts +3 -22
  76. package/lib/floating-bubble/FloatingBubble.js +3 -9
  77. package/lib/floating-bubble/index.d.ts +2 -15
  78. package/lib/floating-panel/FloatingPanel.d.ts +13 -0
  79. package/lib/floating-panel/FloatingPanel.js +14 -2
  80. package/lib/floating-panel/index.d.ts +9 -0
  81. package/lib/grid/Grid.d.ts +1 -1
  82. package/lib/grid/index.d.ts +1 -1
  83. package/lib/index.css +1 -1
  84. package/lib/index.d.ts +1 -1
  85. package/lib/index.js +1 -1
  86. package/lib/list/List.d.ts +13 -3
  87. package/lib/list/List.js +6 -3
  88. package/lib/list/index.d.ts +9 -2
  89. package/lib/picker/Picker.d.ts +1 -1
  90. package/lib/picker/index.d.ts +1 -1
  91. package/lib/progress/Progress.js +6 -3
  92. package/lib/search/Search.d.ts +4 -4
  93. package/lib/search/Search.js +1 -0
  94. package/lib/search/index.d.ts +3 -3
  95. package/lib/share-sheet/ShareSheet.d.ts +1 -1
  96. package/lib/share-sheet/index.d.ts +1 -1
  97. package/lib/stepper/Stepper.js +3 -0
  98. package/lib/tab/Tab.js +1 -1
  99. package/lib/tab/index.d.ts +1 -0
  100. package/lib/tab/index.js +4 -1
  101. package/lib/tabs/Tabs.d.ts +1 -1
  102. package/lib/tabs/index.d.ts +1 -1
  103. package/lib/time-picker/TimePicker.d.ts +1 -1
  104. package/lib/time-picker/TimePicker.js +1 -1
  105. package/lib/time-picker/index.d.ts +1 -1
  106. package/lib/utils/constant.js +1 -1
  107. package/lib/vant.cjs.js +57 -27
  108. package/lib/vant.es.js +57 -27
  109. package/lib/vant.js +65 -35
  110. package/lib/vant.min.js +3 -3
  111. package/lib/web-types.json +1 -1
  112. package/package.json +12 -12
package/es/list/List.d.ts CHANGED
@@ -15,7 +15,10 @@ export declare const listProps: {
15
15
  type: PropType<ListDirection>;
16
16
  default: ListDirection;
17
17
  };
18
- loadingText: StringConstructor;
18
+ loadingText: {
19
+ type: PropType<string | null>;
20
+ default: string;
21
+ };
19
22
  finishedText: StringConstructor;
20
23
  immediateCheck: {
21
24
  type: BooleanConstructor;
@@ -38,7 +41,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
38
41
  type: PropType<ListDirection>;
39
42
  default: ListDirection;
40
43
  };
41
- loadingText: StringConstructor;
44
+ loadingText: {
45
+ type: PropType<string | null>;
46
+ default: string;
47
+ };
42
48
  finishedText: StringConstructor;
43
49
  immediateCheck: {
44
50
  type: BooleanConstructor;
@@ -59,7 +65,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
59
65
  type: PropType<ListDirection>;
60
66
  default: ListDirection;
61
67
  };
62
- loadingText: StringConstructor;
68
+ loadingText: {
69
+ type: PropType<string | null>;
70
+ default: string;
71
+ };
63
72
  finishedText: StringConstructor;
64
73
  immediateCheck: {
65
74
  type: BooleanConstructor;
@@ -74,6 +83,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
74
83
  disabled: boolean;
75
84
  error: boolean;
76
85
  loading: boolean;
86
+ loadingText: string | null;
77
87
  direction: ListDirection;
78
88
  finished: boolean;
79
89
  immediateCheck: boolean;
package/es/list/List.mjs CHANGED
@@ -2,7 +2,7 @@ import { ref, watch, computed, nextTick, onUpdated, onMounted, defineComponent,
2
2
  import { isHidden, truthProp, makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
3
3
  import { useRect, useScrollParent, useEventListener } from "@vant/use";
4
4
  import { useExpose } from "../composables/use-expose.mjs";
5
- import { useTabStatus } from "../composables/use-tab-status.mjs";
5
+ import { useAllTabStatus } from "../composables/use-tab-status.mjs";
6
6
  import { Loading } from "../loading/index.mjs";
7
7
  const [name, bem, t] = createNamespace("list");
8
8
  const listProps = {
@@ -14,7 +14,10 @@ const listProps = {
14
14
  scroller: Object,
15
15
  errorText: String,
16
16
  direction: makeStringProp("down"),
17
- loadingText: String,
17
+ loadingText: {
18
+ type: String,
19
+ default: ""
20
+ },
18
21
  finishedText: String,
19
22
  immediateCheck: truthProp
20
23
  };
@@ -29,7 +32,7 @@ var stdin_default = defineComponent({
29
32
  const loading = ref(props.loading);
30
33
  const root = ref();
31
34
  const placeholder = ref();
32
- const tabStatus = useTabStatus();
35
+ const tabStatus = useAllTabStatus();
33
36
  const scrollParent = useScrollParent(root);
34
37
  const scroller = computed(() => props.scroller || scrollParent.value);
35
38
  const check = () => {
@@ -91,7 +94,7 @@ var stdin_default = defineComponent({
91
94
  if (loading.value && !props.finished && !props.disabled) {
92
95
  return _createVNode("div", {
93
96
  "class": bem("loading")
94
- }, [slots.loading ? slots.loading() : _createVNode(Loading, {
97
+ }, [slots.loading ? slots.loading() : props.loadingText != null && _createVNode(Loading, {
95
98
  "class": bem("loading-icon")
96
99
  }, {
97
100
  default: () => [props.loadingText || t("loading")]
@@ -14,7 +14,10 @@ export declare const List: import("../utils").WithInstall<import("vue").DefineCo
14
14
  type: import("vue").PropType<import("./types").ListDirection>;
15
15
  default: import("./types").ListDirection;
16
16
  };
17
- loadingText: StringConstructor;
17
+ loadingText: {
18
+ type: import("vue").PropType<string | null>;
19
+ default: string;
20
+ };
18
21
  finishedText: StringConstructor;
19
22
  immediateCheck: {
20
23
  type: BooleanConstructor;
@@ -35,7 +38,10 @@ export declare const List: import("../utils").WithInstall<import("vue").DefineCo
35
38
  type: import("vue").PropType<import("./types").ListDirection>;
36
39
  default: import("./types").ListDirection;
37
40
  };
38
- loadingText: StringConstructor;
41
+ loadingText: {
42
+ type: import("vue").PropType<string | null>;
43
+ default: string;
44
+ };
39
45
  finishedText: StringConstructor;
40
46
  immediateCheck: {
41
47
  type: BooleanConstructor;
@@ -50,6 +56,7 @@ export declare const List: import("../utils").WithInstall<import("vue").DefineCo
50
56
  disabled: boolean;
51
57
  error: boolean;
52
58
  loading: boolean;
59
+ loadingText: string | null;
53
60
  direction: import("./types").ListDirection;
54
61
  finished: boolean;
55
62
  immediateCheck: boolean;
@@ -144,8 +144,8 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
144
144
  columnsFieldNames: PropType<PickerFieldNames>;
145
145
  }>> & Readonly<{
146
146
  onChange?: ((...args: any[]) => any) | undefined;
147
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
148
147
  onCancel?: ((...args: any[]) => any) | undefined;
148
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
149
149
  onClickOption?: ((...args: any[]) => any) | undefined;
150
150
  onScrollInto?: ((...args: any[]) => any) | undefined;
151
151
  onConfirm?: ((...args: any[]) => any) | undefined;
@@ -77,8 +77,8 @@ export declare const Picker: import("../utils").WithInstall<import("vue").Define
77
77
  columnsFieldNames: import("vue").PropType<import("./types").PickerFieldNames>;
78
78
  }>> & Readonly<{
79
79
  onChange?: ((...args: any[]) => any) | undefined;
80
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
81
80
  onCancel?: ((...args: any[]) => any) | undefined;
81
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
82
82
  onClickOption?: ((...args: any[]) => any) | undefined;
83
83
  onScrollInto?: ((...args: any[]) => any) | undefined;
84
84
  onConfirm?: ((...args: any[]) => any) | undefined;
@@ -21,6 +21,7 @@ var stdin_default = defineComponent({
21
21
  props: progressProps,
22
22
  setup(props) {
23
23
  const background = computed(() => props.inactive ? void 0 : props.color);
24
+ const format = (rate) => Math.min(Math.max(+rate, 0), 100);
24
25
  const renderPivot = () => {
25
26
  const {
26
27
  textColor,
@@ -28,12 +29,13 @@ var stdin_default = defineComponent({
28
29
  pivotColor,
29
30
  percentage
30
31
  } = props;
32
+ const safePercentage = format(percentage);
31
33
  const text = pivotText != null ? pivotText : `${percentage}%`;
32
34
  if (props.showPivot && text) {
33
35
  const style = {
34
36
  color: textColor,
35
- left: `${+percentage}%`,
36
- transform: `translate(-${+percentage}%,-50%)`,
37
+ left: `${safePercentage}%`,
38
+ transform: `translate(-${safePercentage}%,-50%)`,
37
39
  background: pivotColor || background.value
38
40
  };
39
41
  return _createVNode("span", {
@@ -50,12 +52,13 @@ var stdin_default = defineComponent({
50
52
  percentage,
51
53
  strokeWidth
52
54
  } = props;
55
+ const safePercentage = format(percentage);
53
56
  const rootStyle = {
54
57
  background: trackColor,
55
58
  height: addUnit(strokeWidth)
56
59
  };
57
60
  const portionStyle = {
58
- width: `${percentage}%`,
61
+ width: `${safePercentage}%`,
59
62
  background: background.value
60
63
  };
61
64
  return _createVNode("div", {
@@ -25,7 +25,7 @@ export declare const searchProps: {
25
25
  autocapitalize: StringConstructor;
26
26
  autocorrect: StringConstructor;
27
27
  errorMessage: StringConstructor;
28
- enterkeyhint: StringConstructor;
28
+ enterkeyhint: import("vue").PropType<import("../field").FieldEnterKeyHint>;
29
29
  clearTrigger: {
30
30
  type: import("vue").PropType<import("../field").FieldClearTrigger>;
31
31
  default: import("../field").FieldClearTrigger;
@@ -95,7 +95,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
95
95
  autocapitalize: StringConstructor;
96
96
  autocorrect: StringConstructor;
97
97
  errorMessage: StringConstructor;
98
- enterkeyhint: StringConstructor;
98
+ enterkeyhint: import("vue").PropType<import("../field").FieldEnterKeyHint>;
99
99
  clearTrigger: {
100
100
  type: import("vue").PropType<import("../field").FieldClearTrigger>;
101
101
  default: import("../field").FieldClearTrigger;
@@ -163,7 +163,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
163
163
  autocapitalize: StringConstructor;
164
164
  autocorrect: StringConstructor;
165
165
  errorMessage: StringConstructor;
166
- enterkeyhint: StringConstructor;
166
+ enterkeyhint: import("vue").PropType<import("../field").FieldEnterKeyHint>;
167
167
  clearTrigger: {
168
168
  type: import("vue").PropType<import("../field").FieldClearTrigger>;
169
169
  default: import("../field").FieldClearTrigger;
@@ -209,12 +209,12 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
209
209
  }>> & Readonly<{
210
210
  onFocus?: ((...args: any[]) => any) | undefined;
211
211
  onBlur?: ((...args: any[]) => any) | undefined;
212
+ onCancel?: ((...args: any[]) => any) | undefined;
212
213
  onClear?: ((...args: any[]) => any) | undefined;
213
214
  onClickInput?: ((...args: any[]) => any) | undefined;
214
215
  onClickLeftIcon?: ((...args: any[]) => any) | undefined;
215
216
  onClickRightIcon?: ((...args: any[]) => any) | undefined;
216
217
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
217
- onCancel?: ((...args: any[]) => any) | undefined;
218
218
  onSearch?: ((...args: any[]) => any) | undefined;
219
219
  }>, {
220
220
  autofocus: boolean;
@@ -86,6 +86,7 @@ var stdin_default = defineComponent({
86
86
  "with-message": fieldAttrs.errorMessage
87
87
  }),
88
88
  "border": false,
89
+ "labelAlign": "left",
89
90
  "onBlur": onBlur,
90
91
  "onFocus": onFocus,
91
92
  "onClear": onClear,
@@ -24,7 +24,7 @@ export declare const Search: import("../utils").WithInstall<import("vue").Define
24
24
  autocapitalize: StringConstructor;
25
25
  autocorrect: StringConstructor;
26
26
  errorMessage: StringConstructor;
27
- enterkeyhint: StringConstructor;
27
+ enterkeyhint: import("vue").PropType<import("..").FieldEnterKeyHint>;
28
28
  clearTrigger: {
29
29
  type: import("vue").PropType<import("..").FieldClearTrigger>;
30
30
  default: import("..").FieldClearTrigger;
@@ -92,7 +92,7 @@ export declare const Search: import("../utils").WithInstall<import("vue").Define
92
92
  autocapitalize: StringConstructor;
93
93
  autocorrect: StringConstructor;
94
94
  errorMessage: StringConstructor;
95
- enterkeyhint: StringConstructor;
95
+ enterkeyhint: import("vue").PropType<import("..").FieldEnterKeyHint>;
96
96
  clearTrigger: {
97
97
  type: import("vue").PropType<import("..").FieldClearTrigger>;
98
98
  default: import("..").FieldClearTrigger;
@@ -138,12 +138,12 @@ export declare const Search: import("../utils").WithInstall<import("vue").Define
138
138
  }>> & Readonly<{
139
139
  onFocus?: ((...args: any[]) => any) | undefined;
140
140
  onBlur?: ((...args: any[]) => any) | undefined;
141
+ onCancel?: ((...args: any[]) => any) | undefined;
141
142
  onClear?: ((...args: any[]) => any) | undefined;
142
143
  onClickInput?: ((...args: any[]) => any) | undefined;
143
144
  onClickLeftIcon?: ((...args: any[]) => any) | undefined;
144
145
  onClickRightIcon?: ((...args: any[]) => any) | undefined;
145
146
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
146
- onCancel?: ((...args: any[]) => any) | undefined;
147
147
  onSearch?: ((...args: any[]) => any) | undefined;
148
148
  }>, {
149
149
  autofocus: boolean;
@@ -148,8 +148,8 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
148
148
  };
149
149
  }>> & Readonly<{
150
150
  onSelect?: ((...args: any[]) => any) | undefined;
151
- "onUpdate:show"?: ((...args: any[]) => any) | undefined;
152
151
  onCancel?: ((...args: any[]) => any) | undefined;
152
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
153
153
  }>, {
154
154
  round: boolean;
155
155
  overlay: boolean;
@@ -92,8 +92,8 @@ export declare const ShareSheet: import("../utils").WithInstall<import("vue").De
92
92
  };
93
93
  }>> & Readonly<{
94
94
  onSelect?: ((...args: any[]) => any) | undefined;
95
- "onUpdate:show"?: ((...args: any[]) => any) | undefined;
96
95
  onCancel?: ((...args: any[]) => any) | undefined;
96
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
97
97
  }>, {
98
98
  round: boolean;
99
99
  overlay: boolean;
@@ -46,6 +46,9 @@ var stdin_default = defineComponent({
46
46
  if (allowEmpty && value === "") {
47
47
  return value;
48
48
  }
49
+ if (typeof value === "number" && String(value).includes("e")) {
50
+ value = value.toFixed(decimalLength ? +decimalLength : 17);
51
+ }
49
52
  value = formatNumber(String(value), !props.integer);
50
53
  value = value === "" ? 0 : +value;
51
54
  value = Number.isNaN(value) ? +min : value;
package/es/tab/Tab.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { ref, watch, provide, computed, nextTick, watchEffect, defineComponent, getCurrentInstance, mergeProps as _mergeProps, createVNode as _createVNode, vShow as _vShow, withDirectives as _withDirectives } from "vue";
1
+ import { ref, watch, computed, nextTick, watchEffect, defineComponent, getCurrentInstance, mergeProps as _mergeProps, createVNode as _createVNode, vShow as _vShow, withDirectives as _withDirectives } from "vue";
2
2
  import { normalizeClass, normalizeStyle, stringifyStyle } from "@vue/shared";
3
3
  import { pick, extend, truthProp, unknownProp, numericProp, createNamespace } from "../utils/index.mjs";
4
4
  import { TABS_KEY } from "../tabs/Tabs.mjs";
@@ -6,7 +6,7 @@ import { doubleRaf, useParent } from "@vant/use";
6
6
  import { useId } from "../composables/use-id.mjs";
7
7
  import { useExpose } from "../composables/use-expose.mjs";
8
8
  import { routeProps } from "../composables/use-route.mjs";
9
- import { TAB_STATUS_KEY } from "../composables/use-tab-status.mjs";
9
+ import { useProvideTabStatus } from "../composables/use-tab-status.mjs";
10
10
  import { TabTitle } from "./TabTitle.mjs";
11
11
  import { SwipeItem } from "../swipe-item/index.mjs";
12
12
  const [name, bem] = createNamespace("tab");
@@ -97,7 +97,7 @@ var stdin_default = defineComponent({
97
97
  parent.setLine();
98
98
  parent.scrollIntoView();
99
99
  });
100
- provide(TAB_STATUS_KEY, active);
100
+ useProvideTabStatus(active);
101
101
  useExpose({
102
102
  id,
103
103
  renderTitle
package/es/tab/index.d.ts CHANGED
@@ -38,6 +38,7 @@ export declare const Tab: import("../utils").WithInstall<import("vue").DefineCom
38
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
39
39
  export default Tab;
40
40
  export { tabProps } from './Tab';
41
+ export { useTabStatus, useAllTabStatus } from '../composables/use-tab-status';
41
42
  export type { TabProps } from './Tab';
42
43
  declare module 'vue' {
43
44
  interface GlobalComponents {
package/es/tab/index.mjs CHANGED
@@ -3,8 +3,11 @@ import _Tab from "./Tab.mjs";
3
3
  const Tab = withInstall(_Tab);
4
4
  var stdin_default = Tab;
5
5
  import { tabProps } from "./Tab.mjs";
6
+ import { useTabStatus, useAllTabStatus } from "../composables/use-tab-status.mjs";
6
7
  export {
7
8
  Tab,
8
9
  stdin_default as default,
9
- tabProps
10
+ tabProps,
11
+ useAllTabStatus,
12
+ useTabStatus
10
13
  };
package/es/tabs/Tabs.d.ts CHANGED
@@ -150,8 +150,8 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
150
150
  "onUpdate:active"?: ((...args: any[]) => any) | undefined;
151
151
  }>, {
152
152
  type: TabsType;
153
- ellipsis: boolean;
154
153
  sticky: boolean;
154
+ ellipsis: boolean;
155
155
  border: boolean;
156
156
  active: string | number;
157
157
  duration: string | number;
@@ -99,8 +99,8 @@ export declare const Tabs: import("../utils").WithInstall<import("vue").DefineCo
99
99
  "onUpdate:active"?: ((...args: any[]) => any) | undefined;
100
100
  }>, {
101
101
  type: import("./types").TabsType;
102
- ellipsis: boolean;
103
102
  sticky: boolean;
103
+ ellipsis: boolean;
104
104
  border: boolean;
105
105
  active: string | number;
106
106
  duration: string | number;
@@ -222,8 +222,8 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
222
222
  };
223
223
  }>> & Readonly<{
224
224
  onChange?: ((...args: any[]) => any) | undefined;
225
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
226
225
  onCancel?: ((...args: any[]) => any) | undefined;
226
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
227
227
  onConfirm?: ((...args: any[]) => any) | undefined;
228
228
  }>, {
229
229
  formatter: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
@@ -95,7 +95,7 @@ var stdin_default = defineComponent({
95
95
  return genOptions(+minSecond, +maxSecond, type, formatter, filter, currentValues.value);
96
96
  default:
97
97
  if (process.env.NODE_ENV !== "production") {
98
- throw new Error(`[Vant] DatePicker: unsupported columns type: ${type}`);
98
+ throw new Error(`[Vant] TimePicker: unsupported columns type: ${type}`);
99
99
  }
100
100
  return [];
101
101
  }
@@ -143,8 +143,8 @@ export declare const TimePicker: import("../utils").WithInstall<import("vue").De
143
143
  };
144
144
  }>> & Readonly<{
145
145
  onChange?: ((...args: any[]) => any) | undefined;
146
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
147
146
  onCancel?: ((...args: any[]) => any) | undefined;
147
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
148
148
  onConfirm?: ((...args: any[]) => any) | undefined;
149
149
  }>, {
150
150
  formatter: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
@@ -7,7 +7,7 @@ const BORDER_SURROUND = `${BORDER}--surround`;
7
7
  const BORDER_TOP_BOTTOM = `${BORDER}--top-bottom`;
8
8
  const BORDER_UNSET_TOP_BOTTOM = `${BORDER}-unset--top-bottom`;
9
9
  const HAPTICS_FEEDBACK = "van-haptics-feedback";
10
- const FORM_KEY = Symbol("van-form");
10
+ const FORM_KEY = /* @__PURE__ */ Symbol("van-form");
11
11
  const LONG_PRESS_START_TIME = 500;
12
12
  const TAP_OFFSET = 5;
13
13
  export {
@@ -1 +1 @@
1
- :root,:host{--van-action-bar-button-height: 40px;--van-action-bar-button-warning-color: var(--van-gradient-orange);--van-action-bar-button-danger-color: var(--van-gradient-red)}.van-action-bar-button{flex:1;height:var(--van-action-bar-button-height);font-weight:var(--van-font-bold);font-size:var(--van-font-size-md);border:none;border-radius:0}.van-action-bar-button--first{margin-left:5px;border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-action-bar-button--last{margin-right:5px;border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-action-bar-button--warning{background:var(--van-action-bar-button-warning-color)}.van-action-bar-button--danger{background:var(--van-action-bar-button-danger-color)}@media (max-width: 321px){.van-action-bar-button{font-size:13px}}
1
+ :root,:host{--van-action-bar-button-height: 40px;--van-action-bar-button-warning-color: var(--van-gradient-orange);--van-action-bar-button-danger-color: var(--van-gradient-red)}.van-action-bar-button{flex:1;height:var(--van-action-bar-button-height);font-weight:var(--van-font-bold);font-size:var(--van-font-size-md);border:none;border-radius:0}.van-action-bar-button--first{margin-left:5px;border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-action-bar-button--last{margin-right:5px;border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-action-bar-button--warning{background:var(--van-action-bar-button-warning-color)}.van-action-bar-button--danger{background:var(--van-action-bar-button-danger-color)}@media(max-width:321px){.van-action-bar-button{font-size:13px}}
@@ -178,8 +178,8 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
178
178
  };
179
179
  }>> & Readonly<{
180
180
  onSelect?: ((...args: any[]) => any) | undefined;
181
- "onUpdate:show"?: ((...args: any[]) => any) | undefined;
182
181
  onCancel?: ((...args: any[]) => any) | undefined;
182
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
183
183
  }>, {
184
184
  round: boolean;
185
185
  overlay: boolean;
@@ -110,8 +110,8 @@ export declare const ActionSheet: import("../utils").WithInstall<import("vue").D
110
110
  };
111
111
  }>> & Readonly<{
112
112
  onSelect?: ((...args: any[]) => any) | undefined;
113
- "onUpdate:show"?: ((...args: any[]) => any) | undefined;
114
113
  onCancel?: ((...args: any[]) => any) | undefined;
114
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
115
115
  }>, {
116
116
  round: boolean;
117
117
  overlay: boolean;
@@ -34,8 +34,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
34
34
  default: string;
35
35
  };
36
36
  }>> & Readonly<{
37
- onClick?: ((...args: any[]) => any) | undefined;
38
37
  onSelect?: ((...args: any[]) => any) | undefined;
38
+ onClick?: ((...args: any[]) => any) | undefined;
39
39
  onEdit?: ((...args: any[]) => any) | undefined;
40
40
  }>, {
41
41
  disabled: boolean;
@@ -118,8 +118,8 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<import(".
118
118
  };
119
119
  }>> & Readonly<{
120
120
  onChange?: ((...args: any[]) => any) | undefined;
121
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
122
121
  onCancel?: ((...args: any[]) => any) | undefined;
122
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
123
123
  onConfirm?: ((...args: any[]) => any) | undefined;
124
124
  }>, {
125
125
  readonly: boolean;
@@ -76,8 +76,8 @@ export declare const Area: import("../utils").WithInstall<import("vue").DefineCo
76
76
  };
77
77
  }>> & Readonly<{
78
78
  onChange?: ((...args: any[]) => any) | undefined;
79
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
80
79
  onCancel?: ((...args: any[]) => any) | undefined;
80
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
81
81
  onConfirm?: ((...args: any[]) => any) | undefined;
82
82
  }>, {
83
83
  readonly: boolean;
@@ -1 +1 @@
1
- :root,:host{--van-calendar-background: var(--van-background-2);--van-calendar-popup-height: 80%;--van-calendar-header-shadow: 0 2px 10px rgba(125, 126, 128, .16);--van-calendar-header-title-height: 44px;--van-calendar-header-title-font-size: var(--van-font-size-lg);--van-calendar-header-subtitle-font-size: var(--van-font-size-md);--van-calendar-header-action-width: 28px;--van-calendar-header-action-color: var(--van-text-color);--van-calendar-header-action-disabled-color: var(--van-text-color-3);--van-calendar-weekdays-height: 30px;--van-calendar-weekdays-font-size: var(--van-font-size-sm);--van-calendar-month-title-font-size: var(--van-font-size-md);--van-calendar-month-mark-color: rgba(242, 243, 245, .8);--van-calendar-month-mark-font-size: 160px;--van-calendar-day-height: 64px;--van-calendar-day-font-size: var(--van-font-size-lg);--van-calendar-day-margin-bottom: 4px;--van-calendar-day-disabled-color: var(--van-text-color-3);--van-calendar-range-edge-color: var(--van-white);--van-calendar-range-edge-background: var(--van-primary-color);--van-calendar-range-middle-color: var(--van-primary-color);--van-calendar-range-middle-background-opacity: .1;--van-calendar-selected-day-size: 54px;--van-calendar-selected-day-color: var(--van-white);--van-calendar-selected-day-background: var(--van-primary-color);--van-calendar-info-font-size: var(--van-font-size-xs);--van-calendar-info-line-height: var(--van-line-height-xs);--van-calendar-confirm-button-height: 36px;--van-calendar-confirm-button-margin: 7px 0}.van-theme-dark{--van-calendar-month-mark-color: rgba(100, 101, 102, .2);--van-calendar-day-disabled-color: var(--van-gray-7)}.van-calendar{display:flex;flex-direction:column;height:100%;background:var(--van-calendar-background)}.van-calendar__popup.van-popup--top,.van-calendar__popup.van-popup--bottom{height:var(--van-calendar-popup-height)}.van-calendar__popup.van-popup--left,.van-calendar__popup.van-popup--right{height:100%}.van-calendar__popup .van-popup__close-icon{top:11px}.van-calendar__header{flex-shrink:0;box-shadow:var(--van-calendar-header-shadow)}.van-calendar__month-title,.van-calendar__header-title,.van-calendar__header-subtitle{color:var(--van-text-color);height:var(--van-calendar-header-title-height);font-weight:var(--van-font-bold);line-height:var(--van-calendar-header-title-height);text-align:center}.van-calendar__header-title{font-size:var(--van-calendar-header-title-font-size)}.van-calendar__header-subtitle{font-size:var(--van-calendar-header-subtitle-font-size)}.van-calendar__header-subtitle--with-switch{display:flex;align-items:center;padding:0 var(--van-padding-base)}.van-calendar__header-subtitle-text{flex:1}.van-calendar__header-action{display:flex;align-items:center;justify-content:center;min-width:var(--van-calendar-header-action-width);height:100%;color:var(--van-calendar-header-action-color);cursor:pointer}.van-calendar__header-action--disabled{color:var(--van-calendar-header-action-disabled-color);cursor:not-allowed}.van-calendar__month-title{font-size:var(--van-calendar-month-title-font-size)}.van-calendar__weekdays{display:flex}.van-calendar__weekday{flex:1;font-size:var(--van-calendar-weekdays-font-size);line-height:var(--van-calendar-weekdays-height);text-align:center}.van-calendar__body{flex:1;overflow:auto;-webkit-overflow-scrolling:touch}.van-calendar__days{position:relative;display:flex;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.van-calendar__month-mark{position:absolute;top:50%;left:50%;z-index:0;color:var(--van-calendar-month-mark-color);font-size:var(--van-calendar-month-mark-font-size);transform:translate(-50%,-50%);pointer-events:none}.van-calendar__day,.van-calendar__selected-day{display:flex;align-items:center;justify-content:center;text-align:center}.van-calendar__day{position:relative;width:14.285%;height:var(--van-calendar-day-height);font-size:var(--van-calendar-day-font-size);margin-bottom:var(--van-calendar-day-margin-bottom);cursor:pointer}.van-calendar__day--end,.van-calendar__day--start,.van-calendar__day--start-end,.van-calendar__day--multiple-middle,.van-calendar__day--multiple-selected{color:var(--van-calendar-range-edge-color);background:var(--van-calendar-range-edge-background)}.van-calendar__day--start{border-radius:var(--van-radius-md) 0 0 var(--van-radius-md)}.van-calendar__day--end{border-radius:0 var(--van-radius-md) var(--van-radius-md) 0}.van-calendar__day--start-end,.van-calendar__day--multiple-selected{border-radius:var(--van-radius-md)}.van-calendar__day--middle{color:var(--van-calendar-range-middle-color)}.van-calendar__day--middle:after{position:absolute;top:0;right:0;bottom:0;left:0;background-color:currentColor;opacity:var(--van-calendar-range-middle-background-opacity);content:""}.van-calendar__day--disabled{color:var(--van-calendar-day-disabled-color);cursor:default}.van-calendar__top-info,.van-calendar__bottom-info{position:absolute;right:0;left:0;font-size:var(--van-calendar-info-font-size);line-height:var(--van-calendar-info-line-height)}@media (max-width: 350px){.van-calendar__top-info,.van-calendar__bottom-info{font-size:9px}}.van-calendar__top-info{top:6px}.van-calendar__bottom-info{bottom:6px}.van-calendar__selected-day{width:var(--van-calendar-selected-day-size);height:var(--van-calendar-selected-day-size);color:var(--van-calendar-selected-day-color);background:var(--van-calendar-selected-day-background);border-radius:var(--van-radius-md)}.van-calendar__footer{flex-shrink:0;padding-left:var(--van-padding-md);padding-right:var(--van-padding-md)}.van-calendar__confirm{height:var(--van-calendar-confirm-button-height);margin:var(--van-calendar-confirm-button-margin)}
1
+ :root,:host{--van-calendar-background: var(--van-background-2);--van-calendar-popup-height: 80%;--van-calendar-header-shadow: 0 2px 10px rgba(125, 126, 128, .16);--van-calendar-header-title-height: 44px;--van-calendar-header-title-font-size: var(--van-font-size-lg);--van-calendar-header-subtitle-font-size: var(--van-font-size-md);--van-calendar-header-action-width: 28px;--van-calendar-header-action-color: var(--van-text-color);--van-calendar-header-action-disabled-color: var(--van-text-color-3);--van-calendar-weekdays-height: 30px;--van-calendar-weekdays-font-size: var(--van-font-size-sm);--van-calendar-month-title-font-size: var(--van-font-size-md);--van-calendar-month-mark-color: rgba(242, 243, 245, .8);--van-calendar-month-mark-font-size: 160px;--van-calendar-day-height: 64px;--van-calendar-day-font-size: var(--van-font-size-lg);--van-calendar-day-margin-bottom: 4px;--van-calendar-day-disabled-color: var(--van-text-color-3);--van-calendar-range-edge-color: var(--van-white);--van-calendar-range-edge-background: var(--van-primary-color);--van-calendar-range-middle-color: var(--van-primary-color);--van-calendar-range-middle-background-opacity: .1;--van-calendar-selected-day-size: 54px;--van-calendar-selected-day-color: var(--van-white);--van-calendar-selected-day-background: var(--van-primary-color);--van-calendar-info-font-size: var(--van-font-size-xs);--van-calendar-info-line-height: var(--van-line-height-xs);--van-calendar-confirm-button-height: 36px;--van-calendar-confirm-button-margin: 7px 0}.van-theme-dark{--van-calendar-month-mark-color: rgba(100, 101, 102, .2);--van-calendar-day-disabled-color: var(--van-gray-7)}.van-calendar{display:flex;flex-direction:column;height:100%;background:var(--van-calendar-background)}.van-calendar__popup.van-popup--top,.van-calendar__popup.van-popup--bottom{height:var(--van-calendar-popup-height)}.van-calendar__popup.van-popup--left,.van-calendar__popup.van-popup--right{height:100%}.van-calendar__popup .van-popup__close-icon{top:11px}.van-calendar__header{flex-shrink:0;box-shadow:var(--van-calendar-header-shadow)}.van-calendar__month-title,.van-calendar__header-title,.van-calendar__header-subtitle{color:var(--van-text-color);height:var(--van-calendar-header-title-height);font-weight:var(--van-font-bold);line-height:var(--van-calendar-header-title-height);text-align:center}.van-calendar__header-title{font-size:var(--van-calendar-header-title-font-size)}.van-calendar__header-subtitle{font-size:var(--van-calendar-header-subtitle-font-size)}.van-calendar__header-subtitle--with-switch{display:flex;align-items:center;padding:0 var(--van-padding-base)}.van-calendar__header-subtitle-text{flex:1}.van-calendar__header-action{display:flex;align-items:center;justify-content:center;min-width:var(--van-calendar-header-action-width);height:100%;color:var(--van-calendar-header-action-color);cursor:pointer}.van-calendar__header-action--disabled{color:var(--van-calendar-header-action-disabled-color);cursor:not-allowed}.van-calendar__month-title{font-size:var(--van-calendar-month-title-font-size)}.van-calendar__weekdays{display:flex}.van-calendar__weekday{flex:1;font-size:var(--van-calendar-weekdays-font-size);line-height:var(--van-calendar-weekdays-height);text-align:center}.van-calendar__body{flex:1;overflow:auto;-webkit-overflow-scrolling:touch}.van-calendar__days{position:relative;display:flex;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.van-calendar__month-mark{position:absolute;top:50%;left:50%;z-index:0;color:var(--van-calendar-month-mark-color);font-size:var(--van-calendar-month-mark-font-size);transform:translate(-50%,-50%);pointer-events:none}.van-calendar__day,.van-calendar__selected-day{display:flex;align-items:center;justify-content:center;text-align:center}.van-calendar__day{position:relative;width:14.285%;height:var(--van-calendar-day-height);font-size:var(--van-calendar-day-font-size);margin-bottom:var(--van-calendar-day-margin-bottom);cursor:pointer}.van-calendar__day--end,.van-calendar__day--start,.van-calendar__day--start-end,.van-calendar__day--multiple-middle,.van-calendar__day--multiple-selected{color:var(--van-calendar-range-edge-color);background:var(--van-calendar-range-edge-background)}.van-calendar__day--start{border-radius:var(--van-radius-md) 0 0 var(--van-radius-md)}.van-calendar__day--end{border-radius:0 var(--van-radius-md) var(--van-radius-md) 0}.van-calendar__day--start-end,.van-calendar__day--multiple-selected{border-radius:var(--van-radius-md)}.van-calendar__day--middle{color:var(--van-calendar-range-middle-color)}.van-calendar__day--middle:after{position:absolute;top:0;right:0;bottom:0;left:0;background-color:currentColor;opacity:var(--van-calendar-range-middle-background-opacity);content:""}.van-calendar__day--disabled{color:var(--van-calendar-day-disabled-color);cursor:default}.van-calendar__top-info,.van-calendar__bottom-info{position:absolute;right:0;left:0;font-size:var(--van-calendar-info-font-size);line-height:var(--van-calendar-info-line-height)}@media(max-width:350px){.van-calendar__top-info,.van-calendar__bottom-info{font-size:9px}}.van-calendar__top-info{top:6px}.van-calendar__bottom-info{bottom:6px}.van-calendar__selected-day{width:var(--van-calendar-selected-day-size);height:var(--van-calendar-selected-day-size);color:var(--van-calendar-selected-day-color);background:var(--van-calendar-selected-day-background);border-radius:var(--van-radius-md)}.van-calendar__footer{flex-shrink:0;padding-left:var(--van-padding-md);padding-right:var(--van-padding-md)}.van-calendar__confirm{height:var(--van-calendar-confirm-button-height);margin:var(--van-calendar-confirm-button-margin)}
@@ -73,7 +73,7 @@ var stdin_default = (0, import_vue.defineComponent)({
73
73
  const direction = (0, import_vue.computed)(() => getParentProp("direction"));
74
74
  const iconStyle = (0, import_vue.computed)(() => {
75
75
  const checkedColor = props.checkedColor || getParentProp("checkedColor");
76
- if (checkedColor && props.checked && !disabled.value) {
76
+ if (checkedColor && (props.checked || props.indeterminate) && !disabled.value) {
77
77
  return {
78
78
  borderColor: checkedColor,
79
79
  backgroundColor: checkedColor
@@ -22,7 +22,7 @@ __export(stdin_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(stdin_exports);
24
24
  var import_vue = require("vue");
25
- const POPUP_TOGGLE_KEY = Symbol();
25
+ const POPUP_TOGGLE_KEY = /* @__PURE__ */ Symbol();
26
26
  function onPopupReopen(callback) {
27
27
  const popupToggleStatus = (0, import_vue.inject)(POPUP_TOGGLE_KEY, null);
28
28
  if (popupToggleStatus) {
@@ -1,3 +1,6 @@
1
1
  import { ComputedRef, InjectionKey } from 'vue';
2
2
  export declare const TAB_STATUS_KEY: InjectionKey<ComputedRef<boolean>>;
3
+ export declare const ALL_TAB_STATUS_KEY: InjectionKey<ComputedRef<boolean>>;
3
4
  export declare const useTabStatus: () => ComputedRef<boolean> | null;
5
+ export declare const useAllTabStatus: () => ComputedRef<boolean> | null;
6
+ export declare const useProvideTabStatus: (status: ComputedRef<boolean>) => void;
@@ -17,10 +17,25 @@ var __copyProps = (to, from, except, desc) => {
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
18
  var stdin_exports = {};
19
19
  __export(stdin_exports, {
20
+ ALL_TAB_STATUS_KEY: () => ALL_TAB_STATUS_KEY,
20
21
  TAB_STATUS_KEY: () => TAB_STATUS_KEY,
22
+ useAllTabStatus: () => useAllTabStatus,
23
+ useProvideTabStatus: () => useProvideTabStatus,
21
24
  useTabStatus: () => useTabStatus
22
25
  });
23
26
  module.exports = __toCommonJS(stdin_exports);
24
27
  var import_vue = require("vue");
25
- const TAB_STATUS_KEY = Symbol();
28
+ const TAB_STATUS_KEY = /* @__PURE__ */ Symbol();
29
+ const ALL_TAB_STATUS_KEY = /* @__PURE__ */ Symbol();
26
30
  const useTabStatus = () => (0, import_vue.inject)(TAB_STATUS_KEY, null);
31
+ const useAllTabStatus = () => (0, import_vue.inject)(ALL_TAB_STATUS_KEY, null);
32
+ const useProvideTabStatus = (status) => {
33
+ const allTabStatus = useAllTabStatus();
34
+ (0, import_vue.provide)(TAB_STATUS_KEY, status);
35
+ (0, import_vue.provide)(
36
+ ALL_TAB_STATUS_KEY,
37
+ (0, import_vue.computed)(() => {
38
+ return (allTabStatus == null || allTabStatus.value) && status.value;
39
+ })
40
+ );
41
+ };
@@ -50,12 +50,12 @@ function useTouch() {
50
50
  direction.value = "";
51
51
  isTap.value = true;
52
52
  };
53
- const start = (event) => {
53
+ const start = ((event) => {
54
54
  reset();
55
55
  startX.value = event.touches[0].clientX;
56
56
  startY.value = event.touches[0].clientY;
57
- };
58
- const move = (event) => {
57
+ });
58
+ const move = ((event) => {
59
59
  const touch = event.touches[0];
60
60
  deltaX.value = (touch.clientX < 0 ? 0 : touch.clientX) - startX.value;
61
61
  deltaY.value = touch.clientY - startY.value;
@@ -68,7 +68,7 @@ function useTouch() {
68
68
  if (isTap.value && (offsetX.value > import_utils.TAP_OFFSET || offsetY.value > import_utils.TAP_OFFSET)) {
69
69
  isTap.value = false;
70
70
  }
71
- };
71
+ });
72
72
  return {
73
73
  move,
74
74
  start,
@@ -156,8 +156,8 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
156
156
  };
157
157
  }>> & Readonly<{
158
158
  onChange?: ((...args: any[]) => any) | undefined;
159
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
160
159
  onCancel?: ((...args: any[]) => any) | undefined;
160
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
161
161
  onConfirm?: ((...args: any[]) => any) | undefined;
162
162
  }>, {
163
163
  formatter: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
@@ -99,8 +99,8 @@ export declare const DatePicker: import("../utils").WithInstall<import("vue").De
99
99
  };
100
100
  }>> & Readonly<{
101
101
  onChange?: ((...args: any[]) => any) | undefined;
102
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
103
102
  onCancel?: ((...args: any[]) => any) | undefined;
103
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
104
104
  onConfirm?: ((...args: any[]) => any) | undefined;
105
105
  }>, {
106
106
  formatter: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
@@ -184,8 +184,8 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
184
184
  destroyOnClose: BooleanConstructor;
185
185
  }>> & Readonly<{
186
186
  onKeydown?: ((...args: any[]) => any) | undefined;
187
- "onUpdate:show"?: ((...args: any[]) => any) | undefined;
188
187
  onCancel?: ((...args: any[]) => any) | undefined;
188
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
189
189
  onConfirm?: ((...args: any[]) => any) | undefined;
190
190
  }>, {
191
191
  overlay: boolean;
@@ -1 +1 @@
1
- :root,:host{--van-dialog-width: 320px;--van-dialog-small-screen-width: 90%;--van-dialog-font-size: var(--van-font-size-lg);--van-dialog-transition: var(--van-duration-base);--van-dialog-radius: 16px;--van-dialog-background: var(--van-background-2);--van-dialog-header-font-weight: var(--van-font-bold);--van-dialog-header-line-height: 24px;--van-dialog-header-padding-top: 26px;--van-dialog-header-isolated-padding: var(--van-padding-lg) 0;--van-dialog-message-padding: var(--van-padding-lg);--van-dialog-message-font-size: var(--van-font-size-md);--van-dialog-message-line-height: var(--van-line-height-md);--van-dialog-message-max-height: 60vh;--van-dialog-has-title-message-text-color: var(--van-gray-7);--van-dialog-has-title-message-padding-top: var(--van-padding-xs);--van-dialog-button-height: 48px;--van-dialog-round-button-height: 36px;--van-dialog-confirm-button-text-color: var(--van-primary-color)}.van-dialog{top:45%;width:var(--van-dialog-width);overflow:hidden;font-size:var(--van-dialog-font-size);background:var(--van-dialog-background);border-radius:var(--van-dialog-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--van-dialog-transition);transition-property:transform,opacity}@media (max-width: 321px){.van-dialog{width:var(--van-dialog-small-screen-width)}}.van-dialog__header{color:var(--van-text-color);padding-top:var(--van-dialog-header-padding-top);font-weight:var(--van-dialog-header-font-weight);line-height:var(--van-dialog-header-line-height);text-align:center}.van-dialog__header--isolated{padding:var(--van-dialog-header-isolated-padding)}.van-dialog__content--isolated{display:flex;align-items:center;min-height:104px}.van-dialog__message{color:var(--van-text-color);flex:1;max-height:var(--van-dialog-message-max-height);padding:26px var(--van-dialog-message-padding);overflow-y:auto;font-size:var(--van-dialog-message-font-size);line-height:var(--van-dialog-message-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:var(--van-dialog-has-title-message-padding-top);color:var(--van-dialog-has-title-message-text-color)}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-dialog__confirm,.van-dialog__cancel{flex:1;height:var(--van-dialog-button-height);margin:0;border:0;border-radius:0}.van-dialog__confirm,.van-dialog__confirm:active{color:var(--van-dialog-confirm-button-text-color)}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:var(--van-padding-xs) var(--van-padding-lg) var(--van-padding-md)}.van-dialog--round-button .van-dialog__message{padding-bottom:var(--van-padding-md);color:var(--van-text-color)}.van-dialog--round-button .van-dialog__confirm,.van-dialog--round-button .van-dialog__cancel{height:var(--van-dialog-round-button-height)}.van-dialog--round-button .van-dialog__confirm{color:var(--van-white)}.van-dialog--round-button .van-action-bar-button--first{border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-dialog--round-button .van-action-bar-button--last{border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-dialog-bounce-enter-from{transform:translate3d(0,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{transform:translate3d(0,-50%,0) scale(.9);opacity:0}
1
+ :root,:host{--van-dialog-width: 320px;--van-dialog-small-screen-width: 90%;--van-dialog-font-size: var(--van-font-size-lg);--van-dialog-transition: var(--van-duration-base);--van-dialog-radius: 16px;--van-dialog-background: var(--van-background-2);--van-dialog-header-font-weight: var(--van-font-bold);--van-dialog-header-line-height: 24px;--van-dialog-header-padding-top: 26px;--van-dialog-header-isolated-padding: var(--van-padding-lg) 0;--van-dialog-message-padding: var(--van-padding-lg);--van-dialog-message-font-size: var(--van-font-size-md);--van-dialog-message-line-height: var(--van-line-height-md);--van-dialog-message-max-height: 60vh;--van-dialog-has-title-message-text-color: var(--van-gray-7);--van-dialog-has-title-message-padding-top: var(--van-padding-xs);--van-dialog-button-height: 48px;--van-dialog-round-button-height: 36px;--van-dialog-confirm-button-text-color: var(--van-primary-color)}.van-dialog{top:45%;width:var(--van-dialog-width);overflow:hidden;font-size:var(--van-dialog-font-size);background:var(--van-dialog-background);border-radius:var(--van-dialog-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--van-dialog-transition);transition-property:transform,opacity}@media(max-width:321px){.van-dialog{width:var(--van-dialog-small-screen-width)}}.van-dialog__header{color:var(--van-text-color);padding-top:var(--van-dialog-header-padding-top);font-weight:var(--van-dialog-header-font-weight);line-height:var(--van-dialog-header-line-height);text-align:center}.van-dialog__header--isolated{padding:var(--van-dialog-header-isolated-padding)}.van-dialog__content--isolated{display:flex;align-items:center;min-height:104px}.van-dialog__message{color:var(--van-text-color);flex:1;max-height:var(--van-dialog-message-max-height);padding:26px var(--van-dialog-message-padding);overflow-y:auto;font-size:var(--van-dialog-message-font-size);line-height:var(--van-dialog-message-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:var(--van-dialog-has-title-message-padding-top);color:var(--van-dialog-has-title-message-text-color)}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-dialog__confirm,.van-dialog__cancel{flex:1;height:var(--van-dialog-button-height);margin:0;border:0;border-radius:0}.van-dialog__confirm,.van-dialog__confirm:active{color:var(--van-dialog-confirm-button-text-color)}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:var(--van-padding-xs) var(--van-padding-lg) var(--van-padding-md)}.van-dialog--round-button .van-dialog__message{padding-bottom:var(--van-padding-md);color:var(--van-text-color)}.van-dialog--round-button .van-dialog__confirm,.van-dialog--round-button .van-dialog__cancel{height:var(--van-dialog-round-button-height)}.van-dialog--round-button .van-dialog__confirm{color:var(--van-white)}.van-dialog--round-button .van-action-bar-button--first{border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-dialog--round-button .van-action-bar-button--last{border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-dialog-bounce-enter-from{transform:translate3d(0,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{transform:translate3d(0,-50%,0) scale(.9);opacity:0}