vant 4.8.11 → 4.9.1

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 (68) hide show
  1. package/README.md +11 -8
  2. package/es/address-list/AddressList.d.ts +13 -13
  3. package/es/address-list/AddressList.mjs +20 -4
  4. package/es/address-list/AddressListItem.d.ts +3 -0
  5. package/es/address-list/AddressListItem.mjs +19 -7
  6. package/es/address-list/index.d.ts +2 -2
  7. package/es/address-list/style/index.mjs +1 -0
  8. package/es/area/utils.mjs +3 -3
  9. package/es/calendar/Calendar.d.ts +16 -10
  10. package/es/calendar/Calendar.mjs +83 -53
  11. package/es/calendar/CalendarHeader.d.ts +16 -1
  12. package/es/calendar/CalendarHeader.mjs +71 -7
  13. package/es/calendar/CalendarMonth.d.ts +6 -24
  14. package/es/calendar/CalendarMonth.mjs +6 -4
  15. package/es/calendar/index.css +1 -1
  16. package/es/calendar/index.d.ts +11 -7
  17. package/es/calendar/types.d.ts +4 -0
  18. package/es/calendar/utils.d.ts +6 -0
  19. package/es/calendar/utils.mjs +20 -0
  20. package/es/floating-panel/FloatingPanel.mjs +11 -5
  21. package/es/highlight/Highlight.mjs +7 -0
  22. package/es/image-preview/ImagePreviewItem.mjs +2 -0
  23. package/es/index-bar/IndexBar.mjs +10 -2
  24. package/es/index.d.ts +1 -1
  25. package/es/index.mjs +1 -1
  26. package/es/picker-group/PickerGroup.d.ts +13 -0
  27. package/es/picker-group/PickerGroup.mjs +5 -4
  28. package/es/picker-group/index.d.ts +9 -0
  29. package/es/stepper/Stepper.mjs +1 -0
  30. package/es/tabs/index.css +1 -1
  31. package/es/utils/basic.d.ts +1 -1
  32. package/lib/address-list/AddressList.d.ts +13 -13
  33. package/lib/address-list/AddressList.js +19 -3
  34. package/lib/address-list/AddressListItem.d.ts +3 -0
  35. package/lib/address-list/AddressListItem.js +19 -7
  36. package/lib/address-list/index.d.ts +2 -2
  37. package/lib/address-list/style/index.js +1 -0
  38. package/lib/area/utils.js +3 -3
  39. package/lib/calendar/Calendar.d.ts +16 -10
  40. package/lib/calendar/Calendar.js +82 -52
  41. package/lib/calendar/CalendarHeader.d.ts +16 -1
  42. package/lib/calendar/CalendarHeader.js +68 -4
  43. package/lib/calendar/CalendarMonth.d.ts +6 -24
  44. package/lib/calendar/CalendarMonth.js +6 -4
  45. package/lib/calendar/index.css +1 -1
  46. package/lib/calendar/index.d.ts +11 -7
  47. package/lib/calendar/types.d.ts +4 -0
  48. package/lib/calendar/utils.d.ts +6 -0
  49. package/lib/calendar/utils.js +20 -0
  50. package/lib/floating-panel/FloatingPanel.js +11 -5
  51. package/lib/highlight/Highlight.js +7 -0
  52. package/lib/image-preview/ImagePreviewItem.js +2 -0
  53. package/lib/index-bar/IndexBar.js +10 -2
  54. package/lib/index.css +1 -1
  55. package/lib/index.d.ts +1 -1
  56. package/lib/index.js +1 -1
  57. package/lib/picker-group/PickerGroup.d.ts +13 -0
  58. package/lib/picker-group/PickerGroup.js +4 -3
  59. package/lib/picker-group/index.d.ts +9 -0
  60. package/lib/stepper/Stepper.js +1 -0
  61. package/lib/tabs/index.css +1 -1
  62. package/lib/utils/basic.d.ts +1 -1
  63. package/lib/vant.cjs.js +516 -356
  64. package/lib/vant.es.js +516 -356
  65. package/lib/vant.js +518 -358
  66. package/lib/vant.min.js +3 -3
  67. package/lib/web-types.json +1 -1
  68. package/package.json +17 -17
package/README.md CHANGED
@@ -10,15 +10,18 @@
10
10
  <img src="https://img.shields.io/npm/v/vant?style=flat-square" alt="npm version" />
11
11
  <img src="https://img.shields.io/codecov/c/github/youzan/vant/main.svg?style=flat-square&color=#4fc08d" alt="Coverage Status" />
12
12
  <img src="https://img.shields.io/npm/dm/vant.svg?style=flat-square&color=#4fc08d" alt="downloads" />
13
- <img src="https://img.badgesize.io/https://unpkg.com/vant/lib/vant.min.js?compression=gzip&style=flat-square&label=gzip%20size&color=#4fc08d" alt="Gzip Size" />
14
13
  </p>
15
14
 
16
15
  <p align="center">
17
- 🔥 <a href="https://vant-contrib.gitee.io/vant">文档网站(国内)</a>
16
+ <a href="https://vant-ui.github.io/vant">Documentation</a>
18
17
  &nbsp;
19
- 🌈 <a href="https://vant-ui.github.io/vant">文档网站(GitHub)</a>
18
+ ·
20
19
  &nbsp;
21
- 🇨🇳 <a href="./README.zh-CN.md">中文版介绍</a>
20
+ <a href="https://vant.pro/vant/">Documentation (backup)</a>
21
+ &nbsp;
22
+ ·
23
+ &nbsp;
24
+ <a href="./README.zh-CN.md">中文介绍</a>
22
25
  </p>
23
26
 
24
27
  ---
@@ -95,7 +98,7 @@ const app = createApp();
95
98
  app.use(Button);
96
99
  ```
97
100
 
98
- See more in [Quickstart](https://vant-ui.github.io/vant#/en-US/quickstart).
101
+ See more in [Quickstart](https://vant-ui.github.io/vant/#/en-US/quickstart).
99
102
 
100
103
  ## Browser Support
101
104
 
@@ -120,7 +123,6 @@ Vant 3/4 supports modern browsers and Chrome >= 51、iOS >= 10.0 (same as Vue 3)
120
123
  | --- | --- |
121
124
  | [3lang3/react-vant](https://github.com/3lang3/react-vant) | React mobile UI Components based on Vant |
122
125
  | [vant-aliapp](https://github.com/ant-move/Vant-Aliapp) | Alipay MiniProgram UI |
123
- | [taroify](https://gitee.com/mallfoundry/taroify) | Vant Taro |
124
126
  | [vant-theme](https://github.com/Aisen60/vant-theme) | Online theme preview built on Vant UI |
125
127
  | [@antmjs/vantui](https://github.com/antmjs/vantui) | Mobile UI Components based on Vant, supporting Taro and React |
126
128
  | [vant-playground](https://github.com/LadyChatterleyLover/vant-playground) | Vant Playground |
@@ -131,8 +133,9 @@ Vant 3/4 supports modern browsers and Chrome >= 51、iOS >= 10.0 (same as Vue 3)
131
133
 
132
134
  ## Links
133
135
 
134
- - [Documentation](https://vant-ui.github.io/vant)
135
- - [Changelog](https://vant-ui.github.io/vant#/en-US/changelog)
136
+ - [Documentation](https://vant-ui.github.io/vant/)
137
+ - [Documentation (backup)](https://vant.pro/vant/)
138
+ - [Changelog](https://vant-ui.github.io/vant/#/en-US/changelog)
136
139
  - [Discussions](https://github.com/vant-ui/vant/discussions)
137
140
 
138
141
  ## Preview
@@ -1,18 +1,18 @@
1
- import { type ExtractPropTypes } from 'vue';
1
+ import { type ExtractPropTypes, type PropType } from 'vue';
2
2
  import { AddressListAddress } from './AddressListItem';
3
3
  export declare const addressListProps: {
4
4
  list: {
5
- type: import("vue").PropType<AddressListAddress[]>;
5
+ type: PropType<AddressListAddress[]>;
6
6
  default: () => never[];
7
7
  };
8
- modelValue: (NumberConstructor | StringConstructor)[];
8
+ modelValue: PropType<string | number | (string | number)[]>;
9
9
  switchable: {
10
10
  type: BooleanConstructor;
11
11
  default: true;
12
12
  };
13
13
  disabledText: StringConstructor;
14
14
  disabledList: {
15
- type: import("vue").PropType<AddressListAddress[]>;
15
+ type: PropType<AddressListAddress[]>;
16
16
  default: () => never[];
17
17
  };
18
18
  showAddButton: {
@@ -22,24 +22,24 @@ export declare const addressListProps: {
22
22
  addButtonText: StringConstructor;
23
23
  defaultTagText: StringConstructor;
24
24
  rightIcon: {
25
- type: import("vue").PropType<string>;
25
+ type: PropType<string>;
26
26
  default: string;
27
27
  };
28
28
  };
29
29
  export type AddressListProps = ExtractPropTypes<typeof addressListProps>;
30
30
  declare const _default: import("vue").DefineComponent<{
31
31
  list: {
32
- type: import("vue").PropType<AddressListAddress[]>;
32
+ type: PropType<AddressListAddress[]>;
33
33
  default: () => never[];
34
34
  };
35
- modelValue: (NumberConstructor | StringConstructor)[];
35
+ modelValue: PropType<string | number | (string | number)[]>;
36
36
  switchable: {
37
37
  type: BooleanConstructor;
38
38
  default: true;
39
39
  };
40
40
  disabledText: StringConstructor;
41
41
  disabledList: {
42
- type: import("vue").PropType<AddressListAddress[]>;
42
+ type: PropType<AddressListAddress[]>;
43
43
  default: () => never[];
44
44
  };
45
45
  showAddButton: {
@@ -49,22 +49,22 @@ declare const _default: import("vue").DefineComponent<{
49
49
  addButtonText: StringConstructor;
50
50
  defaultTagText: StringConstructor;
51
51
  rightIcon: {
52
- type: import("vue").PropType<string>;
52
+ type: PropType<string>;
53
53
  default: string;
54
54
  };
55
55
  }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "add" | "update:modelValue" | "edit" | "clickItem" | "editDisabled" | "selectDisabled")[], "select" | "add" | "update:modelValue" | "edit" | "clickItem" | "editDisabled" | "selectDisabled", import("vue").PublicProps, Readonly<ExtractPropTypes<{
56
56
  list: {
57
- type: import("vue").PropType<AddressListAddress[]>;
57
+ type: PropType<AddressListAddress[]>;
58
58
  default: () => never[];
59
59
  };
60
- modelValue: (NumberConstructor | StringConstructor)[];
60
+ modelValue: PropType<string | number | (string | number)[]>;
61
61
  switchable: {
62
62
  type: BooleanConstructor;
63
63
  default: true;
64
64
  };
65
65
  disabledText: StringConstructor;
66
66
  disabledList: {
67
- type: import("vue").PropType<AddressListAddress[]>;
67
+ type: PropType<AddressListAddress[]>;
68
68
  default: () => never[];
69
69
  };
70
70
  showAddButton: {
@@ -74,7 +74,7 @@ declare const _default: import("vue").DefineComponent<{
74
74
  addButtonText: StringConstructor;
75
75
  defaultTagText: StringConstructor;
76
76
  rightIcon: {
77
- type: import("vue").PropType<string>;
77
+ type: PropType<string>;
78
78
  default: string;
79
79
  };
80
80
  }>> & {
@@ -1,13 +1,14 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
- import { defineComponent } from "vue";
2
+ import { defineComponent, computed } from "vue";
3
3
  import { truthProp, numericProp, makeArrayProp, createNamespace, makeStringProp } from "../utils/index.mjs";
4
4
  import { Button } from "../button/index.mjs";
5
5
  import { RadioGroup } from "../radio-group/index.mjs";
6
+ import { CheckboxGroup } from "../checkbox-group/index.mjs";
6
7
  import AddressListItem from "./AddressListItem.mjs";
7
8
  const [name, bem, t] = createNamespace("address-list");
8
9
  const addressListProps = {
9
10
  list: makeArrayProp(),
10
- modelValue: numericProp,
11
+ modelValue: [...numericProp, Array],
11
12
  switchable: truthProp,
12
13
  disabledText: String,
13
14
  disabledList: makeArrayProp(),
@@ -24,6 +25,7 @@ var stdin_default = defineComponent({
24
25
  slots,
25
26
  emit
26
27
  }) {
28
+ const singleChoice = computed(() => !Array.isArray(props.modelValue));
27
29
  const renderItem = (item, index, disabled) => {
28
30
  const onEdit = () => emit(disabled ? "editDisabled" : "edit", item, index);
29
31
  const onClick = (event) => emit("clickItem", item, index, {
@@ -32,7 +34,16 @@ var stdin_default = defineComponent({
32
34
  const onSelect = () => {
33
35
  emit(disabled ? "selectDisabled" : "select", item, index);
34
36
  if (!disabled) {
35
- emit("update:modelValue", item.id);
37
+ if (singleChoice.value) {
38
+ emit("update:modelValue", item.id);
39
+ } else {
40
+ const value = props.modelValue;
41
+ if (value.includes(item.id)) {
42
+ emit("update:modelValue", value.filter((id) => id !== item.id));
43
+ } else {
44
+ emit("update:modelValue", [...value, item.id]);
45
+ }
46
+ }
36
47
  }
37
48
  };
38
49
  return _createVNode(AddressListItem, {
@@ -40,6 +51,7 @@ var stdin_default = defineComponent({
40
51
  "address": item,
41
52
  "disabled": disabled,
42
53
  "switchable": props.switchable,
54
+ "singleChoice": singleChoice.value,
43
55
  "defaultTagText": props.defaultTagText,
44
56
  "rightIcon": props.rightIcon,
45
57
  "onEdit": onEdit,
@@ -74,7 +86,11 @@ var stdin_default = defineComponent({
74
86
  }, [props.disabledText]);
75
87
  return _createVNode("div", {
76
88
  "class": bem()
77
- }, [(_a = slots.top) == null ? void 0 : _a.call(slots), _createVNode(RadioGroup, {
89
+ }, [(_a = slots.top) == null ? void 0 : _a.call(slots), !singleChoice.value && Array.isArray(props.modelValue) ? _createVNode(CheckboxGroup, {
90
+ "modelValue": props.modelValue
91
+ }, {
92
+ default: () => [List]
93
+ }) : _createVNode(RadioGroup, {
78
94
  "modelValue": props.modelValue
79
95
  }, {
80
96
  default: () => [List]
@@ -14,6 +14,7 @@ declare const _default: import("vue").DefineComponent<{
14
14
  };
15
15
  disabled: BooleanConstructor;
16
16
  switchable: BooleanConstructor;
17
+ singleChoice: BooleanConstructor;
17
18
  defaultTagText: StringConstructor;
18
19
  rightIcon: {
19
20
  type: PropType<string>;
@@ -26,6 +27,7 @@ declare const _default: import("vue").DefineComponent<{
26
27
  };
27
28
  disabled: BooleanConstructor;
28
29
  switchable: BooleanConstructor;
30
+ singleChoice: BooleanConstructor;
29
31
  defaultTagText: StringConstructor;
30
32
  rightIcon: {
31
33
  type: PropType<string>;
@@ -39,5 +41,6 @@ declare const _default: import("vue").DefineComponent<{
39
41
  disabled: boolean;
40
42
  rightIcon: string;
41
43
  switchable: boolean;
44
+ singleChoice: boolean;
42
45
  }, {}>;
43
46
  export default _default;
@@ -5,6 +5,7 @@ import { Tag } from "../tag/index.mjs";
5
5
  import { Icon } from "../icon/index.mjs";
6
6
  import { Cell } from "../cell/index.mjs";
7
7
  import { Radio } from "../radio/index.mjs";
8
+ import { Checkbox } from "../checkbox/index.mjs";
8
9
  const [name, bem] = createNamespace("address-item");
9
10
  var stdin_default = defineComponent({
10
11
  name,
@@ -12,6 +13,7 @@ var stdin_default = defineComponent({
12
13
  address: makeRequiredProp(Object),
13
14
  disabled: Boolean,
14
15
  switchable: Boolean,
16
+ singleChoice: Boolean,
15
17
  defaultTagText: String,
16
18
  rightIcon: makeStringProp("edit")
17
19
  },
@@ -53,7 +55,8 @@ var stdin_default = defineComponent({
53
55
  const {
54
56
  address,
55
57
  disabled,
56
- switchable
58
+ switchable,
59
+ singleChoice
57
60
  } = props;
58
61
  const Info = [_createVNode("div", {
59
62
  "class": bem("name")
@@ -61,12 +64,21 @@ var stdin_default = defineComponent({
61
64
  "class": bem("address")
62
65
  }, [address.address])];
63
66
  if (switchable && !disabled) {
64
- return _createVNode(Radio, {
65
- "name": address.id,
66
- "iconSize": 18
67
- }, {
68
- default: () => [Info]
69
- });
67
+ if (singleChoice) {
68
+ return _createVNode(Radio, {
69
+ "name": address.id,
70
+ "iconSize": 18
71
+ }, {
72
+ default: () => [Info]
73
+ });
74
+ } else {
75
+ return _createVNode(Checkbox, {
76
+ "name": address.id,
77
+ "iconSize": 18
78
+ }, {
79
+ default: () => [Info]
80
+ });
81
+ }
70
82
  }
71
83
  return Info;
72
84
  };
@@ -3,7 +3,7 @@ export declare const AddressList: import("../utils").WithInstall<import("vue").D
3
3
  type: import("vue").PropType<import("./AddressListItem").AddressListAddress[]>;
4
4
  default: () => never[];
5
5
  };
6
- modelValue: (NumberConstructor | StringConstructor)[];
6
+ modelValue: import("vue").PropType<string | number | (string | number)[]>;
7
7
  switchable: {
8
8
  type: BooleanConstructor;
9
9
  default: true;
@@ -28,7 +28,7 @@ export declare const AddressList: import("../utils").WithInstall<import("vue").D
28
28
  type: import("vue").PropType<import("./AddressListItem").AddressListAddress[]>;
29
29
  default: () => never[];
30
30
  };
31
- modelValue: (NumberConstructor | StringConstructor)[];
31
+ modelValue: import("vue").PropType<string | number | (string | number)[]>;
32
32
  switchable: {
33
33
  type: BooleanConstructor;
34
34
  default: true;
@@ -6,6 +6,7 @@ import "../../cell/index.css";
6
6
  import "../../loading/index.css";
7
7
  import "../../button/index.css";
8
8
  import "../../radio-group/index.css";
9
+ import "../../checkbox-group/index.css";
9
10
  import "../../checkbox/index.css";
10
11
  import "../../radio/index.css";
11
12
  import "../index.css";
package/es/area/utils.mjs CHANGED
@@ -36,9 +36,9 @@ function formatDataForCascade({
36
36
  const showCounty = +columnsNum > 2;
37
37
  const getProvinceChildren = () => {
38
38
  if (showCity) {
39
- return placeholder.length ? [
39
+ return placeholder.length > 1 ? [
40
40
  makeOption(
41
- placeholder[0],
41
+ placeholder[1],
42
42
  AREA_EMPTY_CODE,
43
43
  showCounty ? [] : void 0
44
44
  )
@@ -56,7 +56,7 @@ function formatDataForCascade({
56
56
  if (showCity) {
57
57
  const getCityChildren = () => {
58
58
  if (showCounty) {
59
- return placeholder.length ? [makeOption(placeholder[1])] : [];
59
+ return placeholder.length > 2 ? [makeOption(placeholder[2])] : [];
60
60
  }
61
61
  };
62
62
  Object.keys(city).forEach((code) => {
@@ -1,12 +1,16 @@
1
1
  import { type PropType, type ExtractPropTypes } from 'vue';
2
2
  import { PopupPosition } from '../popup';
3
- import type { CalendarType, CalendarDayItem } from './types';
3
+ import type { CalendarType, CalendarSwitchMode, CalendarDayItem } from './types';
4
4
  export declare const calendarProps: {
5
5
  show: BooleanConstructor;
6
6
  type: {
7
7
  type: PropType<CalendarType>;
8
8
  default: CalendarType;
9
9
  };
10
+ switchMode: {
11
+ type: PropType<CalendarSwitchMode>;
12
+ default: CalendarSwitchMode;
13
+ };
10
14
  title: StringConstructor;
11
15
  color: StringConstructor;
12
16
  round: {
@@ -74,12 +78,10 @@ export declare const calendarProps: {
74
78
  minDate: {
75
79
  type: DateConstructor;
76
80
  validator: (val: unknown) => val is Date;
77
- default: () => Date;
78
81
  };
79
82
  maxDate: {
80
83
  type: DateConstructor;
81
84
  validator: (val: unknown) => val is Date;
82
- default: () => Date;
83
85
  };
84
86
  firstDayOfWeek: {
85
87
  type: (NumberConstructor | StringConstructor)[];
@@ -94,6 +96,10 @@ declare const _default: import("vue").DefineComponent<{
94
96
  type: PropType<CalendarType>;
95
97
  default: CalendarType;
96
98
  };
99
+ switchMode: {
100
+ type: PropType<CalendarSwitchMode>;
101
+ default: CalendarSwitchMode;
102
+ };
97
103
  title: StringConstructor;
98
104
  color: StringConstructor;
99
105
  round: {
@@ -161,24 +167,26 @@ declare const _default: import("vue").DefineComponent<{
161
167
  minDate: {
162
168
  type: DateConstructor;
163
169
  validator: (val: unknown) => val is Date;
164
- default: () => Date;
165
170
  };
166
171
  maxDate: {
167
172
  type: DateConstructor;
168
173
  validator: (val: unknown) => val is Date;
169
- default: () => Date;
170
174
  };
171
175
  firstDayOfWeek: {
172
176
  type: (NumberConstructor | StringConstructor)[];
173
177
  default: number;
174
178
  validator: (val: number) => boolean;
175
179
  };
176
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "confirm" | "clickDisabledDate" | "clickSubtitle" | "unselect" | "monthShow" | "overRange")[], "select" | "update:show" | "confirm" | "clickDisabledDate" | "clickSubtitle" | "unselect" | "monthShow" | "overRange", import("vue").PublicProps, Readonly<ExtractPropTypes<{
180
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "confirm" | "clickDisabledDate" | "clickSubtitle" | "panelChange" | "unselect" | "monthShow" | "overRange")[], "select" | "update:show" | "confirm" | "clickDisabledDate" | "clickSubtitle" | "panelChange" | "unselect" | "monthShow" | "overRange", import("vue").PublicProps, Readonly<ExtractPropTypes<{
177
181
  show: BooleanConstructor;
178
182
  type: {
179
183
  type: PropType<CalendarType>;
180
184
  default: CalendarType;
181
185
  };
186
+ switchMode: {
187
+ type: PropType<CalendarSwitchMode>;
188
+ default: CalendarSwitchMode;
189
+ };
182
190
  title: StringConstructor;
183
191
  color: StringConstructor;
184
192
  round: {
@@ -246,12 +254,10 @@ declare const _default: import("vue").DefineComponent<{
246
254
  minDate: {
247
255
  type: DateConstructor;
248
256
  validator: (val: unknown) => val is Date;
249
- default: () => Date;
250
257
  };
251
258
  maxDate: {
252
259
  type: DateConstructor;
253
260
  validator: (val: unknown) => val is Date;
254
- default: () => Date;
255
261
  };
256
262
  firstDayOfWeek: {
257
263
  type: (NumberConstructor | StringConstructor)[];
@@ -264,6 +270,7 @@ declare const _default: import("vue").DefineComponent<{
264
270
  onConfirm?: ((...args: any[]) => any) | undefined;
265
271
  onClickDisabledDate?: ((...args: any[]) => any) | undefined;
266
272
  onClickSubtitle?: ((...args: any[]) => any) | undefined;
273
+ onPanelChange?: ((...args: any[]) => any) | undefined;
267
274
  onUnselect?: ((...args: any[]) => any) | undefined;
268
275
  onMonthShow?: ((...args: any[]) => any) | undefined;
269
276
  onOverRange?: ((...args: any[]) => any) | undefined;
@@ -278,6 +285,7 @@ declare const _default: import("vue").DefineComponent<{
278
285
  closeOnClickOverlay: boolean;
279
286
  closeOnPopstate: boolean;
280
287
  safeAreaInsetTop: boolean;
288
+ switchMode: CalendarSwitchMode;
281
289
  poppable: boolean;
282
290
  maxRange: string | number;
283
291
  showMark: boolean;
@@ -286,8 +294,6 @@ declare const _default: import("vue").DefineComponent<{
286
294
  allowSameDay: boolean;
287
295
  showSubtitle: boolean;
288
296
  showRangePrompt: boolean;
289
- minDate: Date;
290
- maxDate: Date;
291
297
  firstDayOfWeek: string | number;
292
298
  }, {}>;
293
299
  export default _default;