vant 4.1.0 → 4.1.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 (195) 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 +2 -2
  13. package/es/field/index.d.ts +1 -1
  14. package/es/field/types.d.ts +2 -2
  15. package/es/grid-item/GridItem.mjs +1 -1
  16. package/es/image-preview/ImagePreviewItem.mjs +3 -2
  17. package/es/index.d.ts +1 -1
  18. package/es/index.mjs +1 -1
  19. package/es/lazyload/vue-lazyload/index.mjs +5 -0
  20. package/es/lazyload/vue-lazyload/lazy-image.mjs +0 -1
  21. package/es/lazyload/vue-lazyload/lazy.mjs +81 -0
  22. package/es/lazyload/vue-lazyload/listener.mjs +45 -0
  23. package/es/list/List.mjs +3 -2
  24. package/es/number-keyboard/NumberKeyboard.mjs +1 -1
  25. package/es/password-input/PasswordInput.mjs +1 -1
  26. package/es/picker/Picker.mjs +1 -0
  27. package/es/popup/shared.mjs +12 -0
  28. package/es/progress/Progress.mjs +1 -1
  29. package/es/search/Search.mjs +4 -4
  30. package/es/slider/Slider.d.ts +1 -1
  31. package/es/slider/index.d.ts +1 -1
  32. package/es/stepper/Stepper.mjs +2 -2
  33. package/es/sticky/Sticky.mjs +2 -0
  34. package/es/swipe/Swipe.mjs +3 -2
  35. package/es/tabs/Tabs.mjs +1 -1
  36. package/es/tag/Tag.d.ts +1 -1
  37. package/es/tag/index.d.ts +1 -1
  38. package/es/text-ellipsis/index.css +1 -1
  39. package/es/tree-select/TreeSelect.mjs +1 -1
  40. package/es/uploader/Uploader.mjs +1 -1
  41. package/es/uploader/utils.mjs +2 -2
  42. package/lib/action-bar/index.js +4 -0
  43. package/lib/action-bar-button/index.js +4 -0
  44. package/lib/action-bar-icon/index.js +4 -0
  45. package/lib/action-sheet/index.js +4 -0
  46. package/lib/address-edit/AddressEdit.js +4 -0
  47. package/lib/address-edit/index.js +4 -0
  48. package/lib/address-list/AddressList.js +4 -0
  49. package/lib/address-list/index.js +4 -0
  50. package/lib/area/index.js +4 -0
  51. package/lib/area/utils.js +2 -2
  52. package/lib/back-top/BackTop.js +1 -1
  53. package/lib/back-top/index.js +4 -0
  54. package/lib/badge/Badge.js +1 -1
  55. package/lib/badge/index.js +4 -0
  56. package/lib/button/Button.d.ts +1 -1
  57. package/lib/button/index.d.ts +1 -1
  58. package/lib/button/index.js +4 -0
  59. package/lib/calendar/Calendar.js +6 -2
  60. package/lib/calendar/CalendarMonth.js +4 -0
  61. package/lib/calendar/index.js +4 -0
  62. package/lib/calendar/utils.js +1 -1
  63. package/lib/card/index.js +4 -0
  64. package/lib/cascader/index.js +4 -0
  65. package/lib/cell/index.js +4 -0
  66. package/lib/cell-group/index.js +4 -0
  67. package/lib/checkbox/Checkbox.js +5 -1
  68. package/lib/checkbox/index.js +4 -0
  69. package/lib/checkbox-group/index.js +4 -0
  70. package/lib/circle/index.js +4 -0
  71. package/lib/col/index.js +4 -0
  72. package/lib/collapse/index.js +4 -0
  73. package/lib/collapse-item/index.js +4 -0
  74. package/lib/config-provider/index.js +4 -0
  75. package/lib/contact-card/index.js +4 -0
  76. package/lib/contact-edit/index.js +4 -0
  77. package/lib/contact-list/index.js +4 -0
  78. package/lib/count-down/index.js +4 -0
  79. package/lib/coupon/index.js +4 -0
  80. package/lib/coupon-cell/index.js +4 -0
  81. package/lib/coupon-list/index.js +4 -0
  82. package/lib/date-picker/DatePicker.js +1 -1
  83. package/lib/date-picker/index.js +4 -0
  84. package/lib/dialog/function-call.js +4 -0
  85. package/lib/dialog/index.js +4 -0
  86. package/lib/divider/Divider.d.ts +1 -1
  87. package/lib/divider/index.d.ts +1 -1
  88. package/lib/divider/index.js +4 -0
  89. package/lib/dropdown-item/index.js +4 -0
  90. package/lib/dropdown-menu/index.js +4 -0
  91. package/lib/empty/index.js +4 -0
  92. package/lib/field/Field.js +2 -2
  93. package/lib/field/index.d.ts +1 -1
  94. package/lib/field/index.js +4 -0
  95. package/lib/field/types.d.ts +2 -2
  96. package/lib/form/index.js +4 -0
  97. package/lib/grid/index.js +4 -0
  98. package/lib/grid-item/GridItem.js +1 -1
  99. package/lib/grid-item/index.js +4 -0
  100. package/lib/icon/index.js +4 -0
  101. package/lib/image/index.js +4 -0
  102. package/lib/image-preview/ImagePreview.js +4 -0
  103. package/lib/image-preview/ImagePreviewItem.js +3 -2
  104. package/lib/image-preview/function-call.js +4 -0
  105. package/lib/image-preview/index.js +4 -0
  106. package/lib/index-anchor/index.js +4 -0
  107. package/lib/index-bar/index.js +4 -0
  108. package/lib/index.css +1 -1
  109. package/lib/index.d.ts +1 -1
  110. package/lib/index.js +1 -1
  111. package/lib/lazyload/vue-lazyload/index.js +9 -0
  112. package/lib/lazyload/vue-lazyload/lazy-image.js +0 -1
  113. package/lib/lazyload/vue-lazyload/lazy.js +85 -0
  114. package/lib/lazyload/vue-lazyload/listener.js +45 -0
  115. package/lib/list/List.js +3 -2
  116. package/lib/list/index.js +4 -0
  117. package/lib/loading/index.js +4 -0
  118. package/lib/locale/index.js +4 -0
  119. package/lib/nav-bar/index.js +4 -0
  120. package/lib/notice-bar/index.js +4 -0
  121. package/lib/notify/function-call.js +4 -0
  122. package/lib/notify/index.js +4 -0
  123. package/lib/number-keyboard/NumberKeyboard.js +5 -1
  124. package/lib/number-keyboard/index.js +4 -0
  125. package/lib/overlay/index.js +4 -0
  126. package/lib/pagination/index.js +4 -0
  127. package/lib/password-input/PasswordInput.js +1 -1
  128. package/lib/password-input/index.js +4 -0
  129. package/lib/picker/Picker.js +5 -0
  130. package/lib/picker/index.js +4 -0
  131. package/lib/picker-group/PickerGroup.js +4 -0
  132. package/lib/picker-group/index.js +4 -0
  133. package/lib/popover/index.js +4 -0
  134. package/lib/popup/index.js +4 -0
  135. package/lib/popup/shared.js +12 -0
  136. package/lib/progress/Progress.js +1 -1
  137. package/lib/progress/index.js +4 -0
  138. package/lib/pull-refresh/index.js +4 -0
  139. package/lib/radio/Radio.js +4 -0
  140. package/lib/radio/index.js +4 -0
  141. package/lib/radio-group/index.js +4 -0
  142. package/lib/rate/index.js +4 -0
  143. package/lib/row/index.js +4 -0
  144. package/lib/search/Search.js +4 -4
  145. package/lib/search/index.js +4 -0
  146. package/lib/share-sheet/index.js +4 -0
  147. package/lib/sidebar/index.js +4 -0
  148. package/lib/sidebar-item/index.js +4 -0
  149. package/lib/skeleton/Skeleton.js +4 -0
  150. package/lib/skeleton/index.js +4 -0
  151. package/lib/skeleton-avatar/index.js +4 -0
  152. package/lib/skeleton-image/index.js +4 -0
  153. package/lib/skeleton-paragraph/index.js +4 -0
  154. package/lib/skeleton-title/index.js +4 -0
  155. package/lib/slider/Slider.d.ts +1 -1
  156. package/lib/slider/index.d.ts +1 -1
  157. package/lib/slider/index.js +4 -0
  158. package/lib/space/index.js +4 -0
  159. package/lib/step/index.js +4 -0
  160. package/lib/stepper/Stepper.js +2 -2
  161. package/lib/stepper/index.js +4 -0
  162. package/lib/steps/index.js +4 -0
  163. package/lib/sticky/Sticky.js +2 -0
  164. package/lib/sticky/index.js +4 -0
  165. package/lib/submit-bar/index.js +4 -0
  166. package/lib/swipe/Swipe.js +3 -2
  167. package/lib/swipe/index.js +4 -0
  168. package/lib/swipe-cell/index.js +4 -0
  169. package/lib/swipe-item/index.js +4 -0
  170. package/lib/switch/index.js +4 -0
  171. package/lib/tab/index.js +4 -0
  172. package/lib/tabbar/index.js +4 -0
  173. package/lib/tabbar-item/index.js +4 -0
  174. package/lib/tabs/Tabs.js +5 -1
  175. package/lib/tabs/index.js +4 -0
  176. package/lib/tag/Tag.d.ts +1 -1
  177. package/lib/tag/index.d.ts +1 -1
  178. package/lib/tag/index.js +4 -0
  179. package/lib/text-ellipsis/index.css +1 -1
  180. package/lib/text-ellipsis/index.js +4 -0
  181. package/lib/time-picker/index.js +4 -0
  182. package/lib/toast/function-call.js +4 -0
  183. package/lib/toast/index.js +4 -0
  184. package/lib/tree-select/TreeSelect.js +1 -1
  185. package/lib/tree-select/index.js +4 -0
  186. package/lib/uploader/Uploader.js +5 -1
  187. package/lib/uploader/index.js +4 -0
  188. package/lib/uploader/utils.js +2 -2
  189. package/lib/utils/create.js +4 -0
  190. package/lib/vant.cjs.js +182 -34
  191. package/lib/vant.es.js +182 -34
  192. package/lib/vant.js +219 -41
  193. package/lib/vant.min.js +1 -1
  194. package/lib/web-types.json +1 -1
  195. package/package.json +5 -5
@@ -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/rate/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/row/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
  ));
@@ -48,7 +48,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
48
48
  attrs
49
49
  }) {
50
50
  const id = (0, import_use_id.useId)();
51
- const filedRef = (0, import_vue2.ref)();
51
+ const fieldRef = (0, import_vue2.ref)();
52
52
  const onCancel = () => {
53
53
  if (!slots.action) {
54
54
  emit("update:modelValue", "");
@@ -84,11 +84,11 @@ var stdin_default = (0, import_vue2.defineComponent)({
84
84
  };
85
85
  const blur = () => {
86
86
  var _a;
87
- return (_a = filedRef.value) == null ? void 0 : _a.blur();
87
+ return (_a = fieldRef.value) == null ? void 0 : _a.blur();
88
88
  };
89
89
  const focus = () => {
90
90
  var _a;
91
- return (_a = filedRef.value) == null ? void 0 : _a.focus();
91
+ return (_a = fieldRef.value) == null ? void 0 : _a.focus();
92
92
  };
93
93
  const onBlur = (event) => emit("blur", event);
94
94
  const onFocus = (event) => emit("focus", event);
@@ -103,7 +103,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
103
103
  });
104
104
  const onInput = (value) => emit("update:modelValue", value);
105
105
  return (0, import_vue.createVNode)(import_field.Field, (0, import_vue.mergeProps)({
106
- "ref": filedRef,
106
+ "ref": fieldRef,
107
107
  "type": "search",
108
108
  "class": bem("field"),
109
109
  "border": false,
@@ -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
  ));
@@ -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
  ));
@@ -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;
@@ -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/step/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
  ));
@@ -91,8 +91,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
91
91
  let actionType;
92
92
  const inputRef = (0, import_vue2.ref)();
93
93
  const current = (0, import_vue2.ref)(getInitialValue());
94
- const minusDisabled = (0, import_vue2.computed)(() => props.disabled || props.disableMinus || current.value <= +props.min);
95
- const plusDisabled = (0, import_vue2.computed)(() => props.disabled || props.disablePlus || current.value >= +props.max);
94
+ const minusDisabled = (0, import_vue2.computed)(() => props.disabled || props.disableMinus || +current.value <= +props.min);
95
+ const plusDisabled = (0, import_vue2.computed)(() => props.disabled || props.disablePlus || +current.value >= +props.max);
96
96
  const inputStyle = (0, import_vue2.computed)(() => ({
97
97
  width: (0, import_utils.addUnit)(props.inputWidth),
98
98
  height: (0, import_utils.addUnit)(props.buttonSize)
@@ -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
  ));
@@ -47,7 +47,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
47
47
  const state = (0, import_vue2.reactive)({
48
48
  fixed: false,
49
49
  width: 0,
50
+ // root width
50
51
  height: 0,
52
+ // root height
51
53
  transform: 0
52
54
  });
53
55
  const offset = (0, import_vue2.computed)(() => (0, import_utils.unitToPx)(props.position === "top" ? props.offsetTop : props.offsetBottom));
@@ -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
  ));
@@ -189,7 +189,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
189
189
  const stopAutoplay = () => clearTimeout(autoplayTimer);
190
190
  const autoplay = () => {
191
191
  stopAutoplay();
192
- if (props.autoplay > 0 && count.value > 1) {
192
+ if (+props.autoplay > 0 && count.value > 1) {
193
193
  autoplayTimer = setTimeout(() => {
194
194
  next();
195
195
  autoplay();
@@ -234,7 +234,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
234
234
  const resize = () => initialize(state.active);
235
235
  let touchStartTime;
236
236
  const onTouchStart = (event) => {
237
- if (!props.touchable || event.touches.length > 1)
237
+ if (!props.touchable || // avoid resetting position on multi-finger touch
238
+ event.touches.length > 1)
238
239
  return;
239
240
  touch.start(event);
240
241
  dragging = false;
@@ -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/tab/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
  ));
@@ -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/tabs/Tabs.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
  ));
@@ -94,7 +98,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
94
98
  lineStyle: {},
95
99
  currentIndex: -1
96
100
  });
97
- const scrollable = (0, import_vue2.computed)(() => children.length > props.swipeThreshold || !props.ellipsis || props.shrink);
101
+ const scrollable = (0, import_vue2.computed)(() => children.length > +props.swipeThreshold || !props.ellipsis || props.shrink);
98
102
  const navStyle = (0, import_vue2.computed)(() => ({
99
103
  borderColor: props.color,
100
104
  background: props.background
package/lib/tabs/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/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;
@@ -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;
package/lib/tag/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
  ));
@@ -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)}
@@ -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
  ));
@@ -59,7 +59,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
59
59
  const index = activeId.indexOf(item.id);
60
60
  if (index !== -1) {
61
61
  activeId.splice(index, 1);
62
- } else if (activeId.length < props.max) {
62
+ } else if (activeId.length < +props.max) {
63
63
  activeId.push(item.id);
64
64
  }
65
65
  } else {
@@ -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
  ));
@@ -218,7 +222,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
218
222
  };
219
223
  const onClickUpload = (event) => emit("clickUpload", event);
220
224
  const renderUpload = () => {
221
- if (props.modelValue.length >= props.maxCount) {
225
+ if (props.modelValue.length >= +props.maxCount) {
222
226
  return;
223
227
  }
224
228
  const Input = props.readonly ? null : (0, import_vue.createVNode)("input", {