vant 4.1.0 → 4.1.2

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 (201) hide show
  1. package/es/area/utils.mjs +2 -2
  2. package/es/back-top/BackTop.mjs +1 -1
  3. package/es/badge/Badge.mjs +1 -1
  4. package/es/button/Button.d.ts +1 -1
  5. package/es/button/index.d.ts +1 -1
  6. package/es/calendar/Calendar.mjs +2 -2
  7. package/es/calendar/utils.mjs +1 -1
  8. package/es/checkbox/Checkbox.mjs +1 -1
  9. package/es/date-picker/DatePicker.mjs +1 -1
  10. package/es/divider/Divider.d.ts +1 -1
  11. package/es/divider/index.d.ts +1 -1
  12. package/es/field/Field.mjs +13 -7
  13. package/es/field/index.css +1 -1
  14. package/es/field/index.d.ts +1 -1
  15. package/es/field/types.d.ts +2 -2
  16. package/es/grid-item/GridItem.mjs +1 -1
  17. package/es/image-preview/ImagePreviewItem.mjs +4 -3
  18. package/es/index.d.ts +1 -1
  19. package/es/index.mjs +1 -1
  20. package/es/lazyload/vue-lazyload/index.mjs +5 -0
  21. package/es/lazyload/vue-lazyload/lazy-image.mjs +0 -1
  22. package/es/lazyload/vue-lazyload/lazy.mjs +81 -0
  23. package/es/lazyload/vue-lazyload/listener.mjs +45 -0
  24. package/es/list/List.mjs +3 -2
  25. package/es/locale/lang/km-KH.d.ts +62 -0
  26. package/es/locale/lang/km-KH.mjs +64 -0
  27. package/es/number-keyboard/NumberKeyboard.mjs +1 -1
  28. package/es/password-input/PasswordInput.mjs +1 -1
  29. package/es/picker/Picker.mjs +1 -0
  30. package/es/popup/shared.mjs +12 -0
  31. package/es/progress/Progress.mjs +1 -1
  32. package/es/search/Search.mjs +4 -4
  33. package/es/slider/Slider.d.ts +1 -1
  34. package/es/slider/index.d.ts +1 -1
  35. package/es/stepper/Stepper.mjs +2 -2
  36. package/es/sticky/Sticky.mjs +2 -0
  37. package/es/swipe/Swipe.mjs +3 -2
  38. package/es/tabs/Tabs.mjs +1 -1
  39. package/es/tag/Tag.d.ts +1 -1
  40. package/es/tag/index.d.ts +1 -1
  41. package/es/text-ellipsis/index.css +1 -1
  42. package/es/tree-select/TreeSelect.mjs +1 -1
  43. package/es/uploader/Uploader.mjs +1 -1
  44. package/es/uploader/utils.mjs +2 -2
  45. package/lib/action-bar/index.js +4 -0
  46. package/lib/action-bar-button/index.js +4 -0
  47. package/lib/action-bar-icon/index.js +4 -0
  48. package/lib/action-sheet/index.js +4 -0
  49. package/lib/address-edit/AddressEdit.js +4 -0
  50. package/lib/address-edit/index.js +4 -0
  51. package/lib/address-list/AddressList.js +4 -0
  52. package/lib/address-list/index.js +4 -0
  53. package/lib/area/index.js +4 -0
  54. package/lib/area/utils.js +2 -2
  55. package/lib/back-top/BackTop.js +1 -1
  56. package/lib/back-top/index.js +4 -0
  57. package/lib/badge/Badge.js +1 -1
  58. package/lib/badge/index.js +4 -0
  59. package/lib/button/Button.d.ts +1 -1
  60. package/lib/button/index.d.ts +1 -1
  61. package/lib/button/index.js +4 -0
  62. package/lib/calendar/Calendar.js +6 -2
  63. package/lib/calendar/CalendarMonth.js +4 -0
  64. package/lib/calendar/index.js +4 -0
  65. package/lib/calendar/utils.js +1 -1
  66. package/lib/card/index.js +4 -0
  67. package/lib/cascader/index.js +4 -0
  68. package/lib/cell/index.js +4 -0
  69. package/lib/cell-group/index.js +4 -0
  70. package/lib/checkbox/Checkbox.js +5 -1
  71. package/lib/checkbox/index.js +4 -0
  72. package/lib/checkbox-group/index.js +4 -0
  73. package/lib/circle/index.js +4 -0
  74. package/lib/col/index.js +4 -0
  75. package/lib/collapse/index.js +4 -0
  76. package/lib/collapse-item/index.js +4 -0
  77. package/lib/config-provider/index.js +4 -0
  78. package/lib/contact-card/index.js +4 -0
  79. package/lib/contact-edit/index.js +4 -0
  80. package/lib/contact-list/index.js +4 -0
  81. package/lib/count-down/index.js +4 -0
  82. package/lib/coupon/index.js +4 -0
  83. package/lib/coupon-cell/index.js +4 -0
  84. package/lib/coupon-list/index.js +4 -0
  85. package/lib/date-picker/DatePicker.js +1 -1
  86. package/lib/date-picker/index.js +4 -0
  87. package/lib/dialog/function-call.js +4 -0
  88. package/lib/dialog/index.js +4 -0
  89. package/lib/divider/Divider.d.ts +1 -1
  90. package/lib/divider/index.d.ts +1 -1
  91. package/lib/divider/index.js +4 -0
  92. package/lib/dropdown-item/index.js +4 -0
  93. package/lib/dropdown-menu/index.js +4 -0
  94. package/lib/empty/index.js +4 -0
  95. package/lib/field/Field.js +13 -7
  96. package/lib/field/index.css +1 -1
  97. package/lib/field/index.d.ts +1 -1
  98. package/lib/field/index.js +4 -0
  99. package/lib/field/types.d.ts +2 -2
  100. package/lib/form/index.js +4 -0
  101. package/lib/grid/index.js +4 -0
  102. package/lib/grid-item/GridItem.js +1 -1
  103. package/lib/grid-item/index.js +4 -0
  104. package/lib/icon/index.js +4 -0
  105. package/lib/image/index.js +4 -0
  106. package/lib/image-preview/ImagePreview.js +4 -0
  107. package/lib/image-preview/ImagePreviewItem.js +4 -3
  108. package/lib/image-preview/function-call.js +4 -0
  109. package/lib/image-preview/index.js +4 -0
  110. package/lib/index-anchor/index.js +4 -0
  111. package/lib/index-bar/index.js +4 -0
  112. package/lib/index.css +1 -1
  113. package/lib/index.d.ts +1 -1
  114. package/lib/index.js +1 -1
  115. package/lib/lazyload/vue-lazyload/index.js +9 -0
  116. package/lib/lazyload/vue-lazyload/lazy-image.js +0 -1
  117. package/lib/lazyload/vue-lazyload/lazy.js +85 -0
  118. package/lib/lazyload/vue-lazyload/listener.js +45 -0
  119. package/lib/list/List.js +3 -2
  120. package/lib/list/index.js +4 -0
  121. package/lib/loading/index.js +4 -0
  122. package/lib/locale/index.js +4 -0
  123. package/lib/locale/lang/km-KH.d.ts +62 -0
  124. package/lib/locale/lang/km-KH.js +83 -0
  125. package/lib/nav-bar/index.js +4 -0
  126. package/lib/notice-bar/index.js +4 -0
  127. package/lib/notify/function-call.js +4 -0
  128. package/lib/notify/index.js +4 -0
  129. package/lib/number-keyboard/NumberKeyboard.js +5 -1
  130. package/lib/number-keyboard/index.js +4 -0
  131. package/lib/overlay/index.js +4 -0
  132. package/lib/pagination/index.js +4 -0
  133. package/lib/password-input/PasswordInput.js +1 -1
  134. package/lib/password-input/index.js +4 -0
  135. package/lib/picker/Picker.js +5 -0
  136. package/lib/picker/index.js +4 -0
  137. package/lib/picker-group/PickerGroup.js +4 -0
  138. package/lib/picker-group/index.js +4 -0
  139. package/lib/popover/index.js +4 -0
  140. package/lib/popup/index.js +4 -0
  141. package/lib/popup/shared.js +12 -0
  142. package/lib/progress/Progress.js +1 -1
  143. package/lib/progress/index.js +4 -0
  144. package/lib/pull-refresh/index.js +4 -0
  145. package/lib/radio/Radio.js +4 -0
  146. package/lib/radio/index.js +4 -0
  147. package/lib/radio-group/index.js +4 -0
  148. package/lib/rate/index.js +4 -0
  149. package/lib/row/index.js +4 -0
  150. package/lib/search/Search.js +4 -4
  151. package/lib/search/index.js +4 -0
  152. package/lib/share-sheet/index.js +4 -0
  153. package/lib/sidebar/index.js +4 -0
  154. package/lib/sidebar-item/index.js +4 -0
  155. package/lib/skeleton/Skeleton.js +4 -0
  156. package/lib/skeleton/index.js +4 -0
  157. package/lib/skeleton-avatar/index.js +4 -0
  158. package/lib/skeleton-image/index.js +4 -0
  159. package/lib/skeleton-paragraph/index.js +4 -0
  160. package/lib/skeleton-title/index.js +4 -0
  161. package/lib/slider/Slider.d.ts +1 -1
  162. package/lib/slider/index.d.ts +1 -1
  163. package/lib/slider/index.js +4 -0
  164. package/lib/space/index.js +4 -0
  165. package/lib/step/index.js +4 -0
  166. package/lib/stepper/Stepper.js +2 -2
  167. package/lib/stepper/index.js +4 -0
  168. package/lib/steps/index.js +4 -0
  169. package/lib/sticky/Sticky.js +2 -0
  170. package/lib/sticky/index.js +4 -0
  171. package/lib/submit-bar/index.js +4 -0
  172. package/lib/swipe/Swipe.js +3 -2
  173. package/lib/swipe/index.js +4 -0
  174. package/lib/swipe-cell/index.js +4 -0
  175. package/lib/swipe-item/index.js +4 -0
  176. package/lib/switch/index.js +4 -0
  177. package/lib/tab/index.js +4 -0
  178. package/lib/tabbar/index.js +4 -0
  179. package/lib/tabbar-item/index.js +4 -0
  180. package/lib/tabs/Tabs.js +5 -1
  181. package/lib/tabs/index.js +4 -0
  182. package/lib/tag/Tag.d.ts +1 -1
  183. package/lib/tag/index.d.ts +1 -1
  184. package/lib/tag/index.js +4 -0
  185. package/lib/text-ellipsis/index.css +1 -1
  186. package/lib/text-ellipsis/index.js +4 -0
  187. package/lib/time-picker/index.js +4 -0
  188. package/lib/toast/function-call.js +4 -0
  189. package/lib/toast/index.js +4 -0
  190. package/lib/tree-select/TreeSelect.js +1 -1
  191. package/lib/tree-select/index.js +4 -0
  192. package/lib/uploader/Uploader.js +5 -1
  193. package/lib/uploader/index.js +4 -0
  194. package/lib/uploader/utils.js +2 -2
  195. package/lib/utils/create.js +4 -0
  196. package/lib/vant.cjs.js +194 -40
  197. package/lib/vant.es.js +194 -40
  198. package/lib/vant.js +231 -47
  199. package/lib/vant.min.js +1 -1
  200. package/lib/web-types.json +1 -1
  201. package/package.json +11 -5
@@ -0,0 +1,64 @@
1
+ var stdin_default = {
2
+ name: "\u1788\u17D2\u1798\u17C4\u17C7",
3
+ tel: "\u1791\u17BC\u179A\u179F\u17D0\u1796\u17D2\u1791",
4
+ save: "\u179A\u1780\u17D2\u179F\u17B6\u1791\u17BB\u1780",
5
+ confirm: "\u1799\u179B\u17CB\u1796\u17D2\u179A\u1798",
6
+ cancel: "\u1794\u17C4\u17C7\u1794\u1784\u17CB",
7
+ delete: "\u179B\u17BB\u1794",
8
+ loading: "\u1780\u17C6\u1796\u17BB\u1784\u200B\u1795\u17D2\u1791\u17BB\u1780...",
9
+ noCoupon: "\u1782\u17D2\u1798\u17B6\u1793\u1782\u17BC\u1794\u17C9\u17BB\u1784",
10
+ nameEmpty: "\u179F\u17BC\u1798\u1794\u17C6\u1796\u17C1\u1789\u1788\u17D2\u1798\u17C4\u17C7",
11
+ addContact: "\u1794\u1793\u17D2\u1790\u17C2\u1798\u1791\u17C6\u1793\u17B6\u1780\u17CB\u1791\u17C6\u1793\u1784",
12
+ telInvalid: "\u179B\u17C1\u1781\u1791\u17BC\u179A\u179F\u17D0\u1796\u17D2\u1791\u1798\u17B7\u1793\u178F\u17D2\u179A\u17BC\u179C\u1791\u1798\u17D2\u179A\u1784\u17CB",
13
+ vanCalendar: {
14
+ end: "\u1794\u1789\u17D2\u1785\u1794\u17CB",
15
+ start: "\u1785\u17B6\u1794\u17CB\u1796\u17B8",
16
+ title: "\u1794\u17D2\u179A\u178F\u17B7\u1791\u17B7\u1793",
17
+ weekdays: ["\u17A2\u17B6", "\u1785", "\u17A2", "\u1796", "\u1796\u17D2\u179A", "\u179F\u17BB", "\u179F\u17C5"],
18
+ monthTitle: (year, month) => `${year}/${month}`,
19
+ rangePrompt: (maxRange) => `\u1787\u17D2\u179A\u17BE\u179F\u179A\u17BE\u179F\u1798\u17B7\u1793\u179B\u17BE\u179F\u1796\u17B8 ${maxRange} \u1790\u17D2\u1784\u17C3`
20
+ },
21
+ vanCascader: {
22
+ select: "\u1787\u17D2\u179A\u17BE\u179F\u179A\u17BE\u179F"
23
+ },
24
+ vanPagination: {
25
+ prev: "\u1798\u17BB\u1793",
26
+ next: "\u1794\u1793\u17D2\u1791\u17B6\u1794\u17CB"
27
+ },
28
+ vanPullRefresh: {
29
+ pulling: "\u1791\u17B6\u1789\u178A\u17BE\u1798\u17D2\u1794\u17B8\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u17A1\u17BE\u1784\u179C\u17B7\u1789...",
30
+ loosing: "\u1796\u17D2\u179A\u179B\u17C2\u1784\u178A\u17BE\u1798\u17D2\u1794\u17B8\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u17A1\u17BE\u1784\u179C\u17B7\u1789..."
31
+ },
32
+ vanSubmitBar: {
33
+ label: "\u179F\u179A\u17BB\u1794:"
34
+ },
35
+ vanCoupon: {
36
+ unlimited: "\u1782\u17D2\u1798\u17B6\u1793\u178A\u17C2\u1793\u1780\u17C6\u178E\u178F\u17CB",
37
+ discount: (discount) => `\u1794\u1789\u17D2\u1785\u17BB\u17C7\u178F\u1798\u17D2\u179B\u17C3 ${discount * 10}%`,
38
+ condition: (condition) => `\u1799\u17C9\u17B6\u1784\u178F\u17B7\u1785 ${condition}`
39
+ },
40
+ vanCouponCell: {
41
+ title: "\u1782\u17BC\u1794\u17C9\u17BB\u1784",
42
+ count: (count) => `\u17A2\u17D2\u1793\u1780\u1798\u17B6\u1793 ${count}\u1782\u17BC\u1794\u17C9\u17BB\u1784`
43
+ },
44
+ vanCouponList: {
45
+ exchange: "\u1794\u17D2\u178A\u17BC\u179A",
46
+ close: "\u1794\u17B7\u1791",
47
+ enable: "\u1794\u17D2\u179A\u17BE\u1794\u17B6\u1793",
48
+ disabled: "\u1798\u17B7\u1793\u17A2\u17B6\u1785\u1794\u17D2\u179A\u17BE\u1794\u17B6\u1793",
49
+ placeholder: "\u179B\u17C1\u1781\u1780\u17BC\u178A\u1782\u17BC\u1794\u17C9\u17BB\u1784"
50
+ },
51
+ vanAddressEdit: {
52
+ area: "\u1791\u17B8\u178F\u17B6\u17C6\u1784",
53
+ areaEmpty: "\u179F\u17BC\u1798\u1787\u17D2\u179A\u17BE\u179F\u179A\u17BE\u179F\u1791\u17B8\u178F\u17B6\u17C6\u1784\u1791\u1791\u17BD\u179B",
54
+ addressEmpty: "\u178F\u1798\u17D2\u179A\u17BC\u179C\u17A2\u17C4\u1799\u1798\u17B6\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793",
55
+ addressDetail: "\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793",
56
+ defaultAddress: "\u178A\u17B6\u1780\u17CB\u1787\u17B6\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u178A\u17BE\u1798"
57
+ },
58
+ vanAddressList: {
59
+ add: "\u1794\u1793\u17D2\u1790\u17C2\u1798\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u1790\u17D2\u1798\u17B8"
60
+ }
61
+ };
62
+ export {
63
+ stdin_default as default
64
+ };
@@ -117,7 +117,7 @@ var stdin_default = defineComponent({
117
117
  emit("update:modelValue", value.slice(0, value.length - 1));
118
118
  } else if (type === "close") {
119
119
  onClose();
120
- } else if (value.length < props.maxlength) {
120
+ } else if (value.length < +props.maxlength) {
121
121
  emit("input", text);
122
122
  emit("update:modelValue", value + text);
123
123
  }
@@ -27,10 +27,10 @@ var stdin_default = defineComponent({
27
27
  const {
28
28
  mask,
29
29
  value,
30
- length,
31
30
  gutter,
32
31
  focused
33
32
  } = props;
33
+ const length = +props.length;
34
34
  for (let i = 0; i < length; i++) {
35
35
  const char = value[i];
36
36
  const showBorder = i !== 0 && !gutter;
@@ -164,6 +164,7 @@ var stdin_default = defineComponent({
164
164
  watch(() => props.modelValue, (newValues) => {
165
165
  if (!isSameValue(newValues, selectedValues.value) && !isSameValue(newValues, lastEmittedModelValue)) {
166
166
  selectedValues.value = newValues.slice(0);
167
+ lastEmittedModelValue = newValues.slice(0);
167
168
  }
168
169
  }, {
169
170
  deep: true
@@ -1,16 +1,28 @@
1
1
  import { truthProp, unknownProp, numericProp } from "../utils/index.mjs";
2
2
  const popupSharedProps = {
3
+ // whether to show popup
3
4
  show: Boolean,
5
+ // z-index
4
6
  zIndex: numericProp,
7
+ // whether to show overlay
5
8
  overlay: truthProp,
9
+ // transition duration
6
10
  duration: numericProp,
11
+ // teleport
7
12
  teleport: [String, Object],
13
+ // prevent body scroll
8
14
  lockScroll: truthProp,
15
+ // whether to lazy render
9
16
  lazyRender: truthProp,
17
+ // callback function before close
10
18
  beforeClose: Function,
19
+ // overlay custom style
11
20
  overlayStyle: Object,
21
+ // overlay custom class name
12
22
  overlayClass: unknownProp,
23
+ // Initial rendering animation
13
24
  transitionAppear: Boolean,
25
+ // whether to close popup when overlay is clicked
14
26
  closeOnClickOverlay: truthProp
15
27
  };
16
28
  const popupSharedPropKeys = Object.keys(
@@ -14,7 +14,7 @@ const progressProps = {
14
14
  percentage: {
15
15
  type: numericProp,
16
16
  default: 0,
17
- validator: (value) => value >= 0 && value <= 100
17
+ validator: (value) => +value >= 0 && +value <= 100
18
18
  }
19
19
  };
20
20
  var stdin_default = defineComponent({
@@ -25,7 +25,7 @@ var stdin_default = defineComponent({
25
25
  attrs
26
26
  }) {
27
27
  const id = useId();
28
- const filedRef = ref();
28
+ const fieldRef = ref();
29
29
  const onCancel = () => {
30
30
  if (!slots.action) {
31
31
  emit("update:modelValue", "");
@@ -61,11 +61,11 @@ var stdin_default = defineComponent({
61
61
  };
62
62
  const blur = () => {
63
63
  var _a;
64
- return (_a = filedRef.value) == null ? void 0 : _a.blur();
64
+ return (_a = fieldRef.value) == null ? void 0 : _a.blur();
65
65
  };
66
66
  const focus = () => {
67
67
  var _a;
68
- return (_a = filedRef.value) == null ? void 0 : _a.focus();
68
+ return (_a = fieldRef.value) == null ? void 0 : _a.focus();
69
69
  };
70
70
  const onBlur = (event) => emit("blur", event);
71
71
  const onFocus = (event) => emit("focus", event);
@@ -80,7 +80,7 @@ var stdin_default = defineComponent({
80
80
  });
81
81
  const onInput = (value) => emit("update:modelValue", value);
82
82
  return _createVNode(Field, _mergeProps({
83
- "ref": filedRef,
83
+ "ref": fieldRef,
84
84
  "type": "search",
85
85
  "class": bem("field"),
86
86
  "border": false,
@@ -87,9 +87,9 @@ declare const _default: import("vue").DefineComponent<{
87
87
  onDragStart?: ((...args: any[]) => any) | undefined;
88
88
  onDragEnd?: ((...args: any[]) => any) | undefined;
89
89
  }, {
90
+ reverse: boolean;
90
91
  range: boolean;
91
92
  max: string | number;
92
- reverse: boolean;
93
93
  disabled: boolean;
94
94
  modelValue: SliderValue;
95
95
  readonly: boolean;
@@ -56,9 +56,9 @@ export declare const Slider: import("../utils").WithInstall<import("vue").Define
56
56
  onDragStart?: ((...args: any[]) => any) | undefined;
57
57
  onDragEnd?: ((...args: any[]) => any) | undefined;
58
58
  }, {
59
+ reverse: boolean;
59
60
  range: boolean;
60
61
  max: string | number;
61
- reverse: boolean;
62
62
  disabled: boolean;
63
63
  modelValue: number | [number, number];
64
64
  readonly: boolean;
@@ -68,8 +68,8 @@ var stdin_default = defineComponent({
68
68
  let actionType;
69
69
  const inputRef = ref();
70
70
  const current = ref(getInitialValue());
71
- const minusDisabled = computed(() => props.disabled || props.disableMinus || current.value <= +props.min);
72
- const plusDisabled = computed(() => props.disabled || props.disablePlus || current.value >= +props.max);
71
+ const minusDisabled = computed(() => props.disabled || props.disableMinus || +current.value <= +props.min);
72
+ const plusDisabled = computed(() => props.disabled || props.disablePlus || +current.value >= +props.max);
73
73
  const inputStyle = computed(() => ({
74
74
  width: addUnit(props.inputWidth),
75
75
  height: addUnit(props.buttonSize)
@@ -24,7 +24,9 @@ var stdin_default = defineComponent({
24
24
  const state = reactive({
25
25
  fixed: false,
26
26
  width: 0,
27
+ // root width
27
28
  height: 0,
29
+ // root height
28
30
  transform: 0
29
31
  });
30
32
  const offset = computed(() => unitToPx(props.position === "top" ? props.offsetTop : props.offsetBottom));
@@ -165,7 +165,7 @@ var stdin_default = defineComponent({
165
165
  const stopAutoplay = () => clearTimeout(autoplayTimer);
166
166
  const autoplay = () => {
167
167
  stopAutoplay();
168
- if (props.autoplay > 0 && count.value > 1) {
168
+ if (+props.autoplay > 0 && count.value > 1) {
169
169
  autoplayTimer = setTimeout(() => {
170
170
  next();
171
171
  autoplay();
@@ -210,7 +210,8 @@ var stdin_default = defineComponent({
210
210
  const resize = () => initialize(state.active);
211
211
  let touchStartTime;
212
212
  const onTouchStart = (event) => {
213
- if (!props.touchable || event.touches.length > 1)
213
+ if (!props.touchable || // avoid resetting position on multi-finger touch
214
+ event.touches.length > 1)
214
215
  return;
215
216
  touch.start(event);
216
217
  dragging = false;
package/es/tabs/Tabs.mjs CHANGED
@@ -64,7 +64,7 @@ var stdin_default = defineComponent({
64
64
  lineStyle: {},
65
65
  currentIndex: -1
66
66
  });
67
- const scrollable = computed(() => children.length > props.swipeThreshold || !props.ellipsis || props.shrink);
67
+ const scrollable = computed(() => children.length > +props.swipeThreshold || !props.ellipsis || props.shrink);
68
68
  const navStyle = computed(() => ({
69
69
  borderColor: props.color,
70
70
  background: props.background
package/es/tag/Tag.d.ts CHANGED
@@ -56,8 +56,8 @@ declare const _default: import("vue").DefineComponent<{
56
56
  type: TagType;
57
57
  mark: boolean;
58
58
  round: boolean;
59
- show: boolean;
60
59
  plain: boolean;
60
+ show: boolean;
61
61
  closeable: boolean;
62
62
  }>;
63
63
  export default _default;
package/es/tag/index.d.ts CHANGED
@@ -36,8 +36,8 @@ export declare const Tag: import("../utils").WithInstall<import("vue").DefineCom
36
36
  type: import("./types").TagType;
37
37
  mark: boolean;
38
38
  round: boolean;
39
- show: boolean;
40
39
  plain: boolean;
40
+ show: boolean;
41
41
  closeable: boolean;
42
42
  }>>;
43
43
  export default Tag;
@@ -1 +1 @@
1
- :root{--van-text-ellipsis-line-height: 1.6;--van-text-ellipsis-action-color: var(--van-blue)}.van-text-ellipsis{line-height:var(--van-text-ellipsis-line-height);white-space:pre-wrap}.van-text-ellipsis__action{cursor:pointer;color:var(--van-text-ellipsis-action-color)}.van-text-ellipsis__action:active{opacity:var(--van-active-opacity)}
1
+ :root{--van-text-ellipsis-line-height: 1.6;--van-text-ellipsis-action-color: var(--van-blue)}.van-text-ellipsis{line-height:var(--van-text-ellipsis-line-height);white-space:pre-wrap;word-break:break-word}.van-text-ellipsis__action{cursor:pointer;color:var(--van-text-ellipsis-action-color)}.van-text-ellipsis__action:active{opacity:var(--van-active-opacity)}
@@ -36,7 +36,7 @@ var stdin_default = defineComponent({
36
36
  const index = activeId.indexOf(item.id);
37
37
  if (index !== -1) {
38
38
  activeId.splice(index, 1);
39
- } else if (activeId.length < props.max) {
39
+ } else if (activeId.length < +props.max) {
40
40
  activeId.push(item.id);
41
41
  }
42
42
  } else {
@@ -189,7 +189,7 @@ var stdin_default = defineComponent({
189
189
  };
190
190
  const onClickUpload = (event) => emit("clickUpload", event);
191
191
  const renderUpload = () => {
192
- if (props.modelValue.length >= props.maxCount) {
192
+ if (props.modelValue.length >= +props.maxCount) {
193
193
  return;
194
194
  }
195
195
  const Input = props.readonly ? null : _createVNode("input", {
@@ -23,7 +23,7 @@ function isOversize(items, maxSize) {
23
23
  if (isFunction(maxSize)) {
24
24
  return maxSize(item.file);
25
25
  }
26
- return item.file.size > maxSize;
26
+ return item.file.size > +maxSize;
27
27
  }
28
28
  return false;
29
29
  });
@@ -40,7 +40,7 @@ function filterFiles(items, maxSize) {
40
40
  });
41
41
  return { valid, invalid };
42
42
  }
43
- const IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
43
+ const IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg|avif)/i;
44
44
  const isImageUrl = (url) => IMAGE_REGEXP.test(url);
45
45
  function isImageFile(item) {
46
46
  if (item.isImage) {
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
package/lib/area/index.js CHANGED
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
package/lib/area/utils.js CHANGED
@@ -57,8 +57,8 @@ function formatDataForCascade({
57
57
  county_list: county = {},
58
58
  province_list: province = {}
59
59
  } = areaList;
60
- const showCity = columnsNum > 1;
61
- const showCounty = columnsNum > 2;
60
+ const showCity = +columnsNum > 1;
61
+ const showCounty = +columnsNum > 2;
62
62
  const getProvinceChildren = () => {
63
63
  if (showCity) {
64
64
  return placeholder.length ? [
@@ -66,7 +66,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
66
66
  });
67
67
  };
68
68
  const scroll = () => {
69
- show.value = scrollParent.value ? (0, import_utils.getScrollTop)(scrollParent.value) >= props.offset : false;
69
+ show.value = scrollParent.value ? (0, import_utils.getScrollTop)(scrollParent.value) >= +props.offset : false;
70
70
  };
71
71
  const getTarget = () => {
72
72
  const {
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -61,7 +61,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
61
61
  if (slots.content) {
62
62
  return slots.content();
63
63
  }
64
- if ((0, import_utils.isDef)(max) && (0, import_utils.isNumeric)(content) && +content > max) {
64
+ if ((0, import_utils.isDef)(max) && (0, import_utils.isNumeric)(content) && +content > +max) {
65
65
  return `${max}+`;
66
66
  }
67
67
  return content;
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -131,8 +131,8 @@ declare const _default: import("vue").DefineComponent<{
131
131
  size: ButtonSize;
132
132
  loading: boolean;
133
133
  block: boolean;
134
- square: boolean;
135
134
  plain: boolean;
135
+ square: boolean;
136
136
  hairline: boolean;
137
137
  nativeType: ButtonNativeType;
138
138
  iconPosition: ButtonIconPosition;
@@ -87,8 +87,8 @@ export declare const Button: import("../utils").WithInstall<import("vue").Define
87
87
  size: import("./types").ButtonSize;
88
88
  loading: boolean;
89
89
  block: boolean;
90
- square: boolean;
91
90
  plain: boolean;
91
+ square: boolean;
92
92
  hairline: boolean;
93
93
  nativeType: import("./types").ButtonNativeType;
94
94
  iconPosition: import("./types").ButtonIconPosition;
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -251,7 +255,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
251
255
  rangePrompt,
252
256
  showRangePrompt
253
257
  } = props;
254
- if (maxRange && (0, import_utils2.calcDateNum)(date) > maxRange) {
258
+ if (maxRange && (0, import_utils2.calcDateNum)(date) > +maxRange) {
255
259
  if (showRangePrompt) {
256
260
  (0, import_toast.showToast)(rangePrompt || (0, import_utils2.t)("rangePrompt", maxRange));
257
261
  }
@@ -338,7 +342,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
338
342
  if (selectedIndex !== -1) {
339
343
  const [unselectedDate] = dates.splice(selectedIndex, 1);
340
344
  emit("unselect", (0, import_utils2.cloneDate)(unselectedDate));
341
- } else if (props.maxRange && dates.length >= props.maxRange) {
345
+ } else if (props.maxRange && dates.length >= +props.maxRange) {
342
346
  (0, import_toast.showToast)(props.rangePrompt || (0, import_utils2.t)("rangePrompt", props.maxRange));
343
347
  } else {
344
348
  select([...dates, date]);
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -64,7 +64,7 @@ function getDayByOffset(date, offset) {
64
64
  const getPrevDay = (date) => getDayByOffset(date, -1);
65
65
  const getNextDay = (date) => getDayByOffset(date, 1);
66
66
  const getToday = () => {
67
- const today = new Date();
67
+ const today = /* @__PURE__ */ new Date();
68
68
  today.setHours(0, 0, 0, 0);
69
69
  return today;
70
70
  };
package/lib/card/index.js CHANGED
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
package/lib/cell/index.js CHANGED
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));