vant 4.9.17 → 4.9.18

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.
package/lib/index.d.ts CHANGED
@@ -106,4 +106,4 @@ declare namespace _default {
106
106
  }
107
107
  export default _default;
108
108
  export function install(app: any): void;
109
- export const version: "4.9.17";
109
+ export const version: "4.9.18";
package/lib/index.js CHANGED
@@ -226,7 +226,7 @@ __reExport(stdin_exports, require("./toast"), module.exports);
226
226
  __reExport(stdin_exports, require("./tree-select"), module.exports);
227
227
  __reExport(stdin_exports, require("./uploader"), module.exports);
228
228
  __reExport(stdin_exports, require("./watermark"), module.exports);
229
- const version = "4.9.17";
229
+ const version = "4.9.18";
230
230
  function install(app) {
231
231
  const components = [
232
232
  import_action_bar.ActionBar,
@@ -46,7 +46,8 @@ var stdin_default = (0, import_vue.defineComponent)({
46
46
  props: signatureProps,
47
47
  emits: ["submit", "clear", "start", "end", "signing"],
48
48
  setup(props, {
49
- emit
49
+ emit,
50
+ slots
50
51
  }) {
51
52
  const canvasRef = (0, import_vue.ref)();
52
53
  const wrapRef = (0, import_vue.ref)();
@@ -161,7 +162,7 @@ var stdin_default = (0, import_vue.defineComponent)({
161
162
  "onTouchstartPassive": touchStart,
162
163
  "onTouchmove": touchMove,
163
164
  "onTouchend": touchEnd
164
- }, null) : (0, import_vue.createVNode)("p", null, [props.tips])]), (0, import_vue.createVNode)("div", {
165
+ }, null) : slots.tips ? slots.tips() : (0, import_vue.createVNode)("p", null, [props.tips])]), (0, import_vue.createVNode)("div", {
165
166
  "class": bem("footer")
166
167
  }, [(0, import_vue.createVNode)(import_button.Button, {
167
168
  "size": "small",
@@ -142,8 +142,8 @@ var stdin_default = (0, import_vue.defineComponent)({
142
142
  });
143
143
  }
144
144
  };
145
- const getClickHandler = (position, stop) => (event) => {
146
- if (stop) {
145
+ const getClickHandler = (position) => (event) => {
146
+ if (lockClick || opened) {
147
147
  event.stopPropagation();
148
148
  }
149
149
  if (lockClick) {
@@ -157,7 +157,7 @@ var stdin_default = (0, import_vue.defineComponent)({
157
157
  return (0, import_vue.createVNode)("div", {
158
158
  "ref": ref2,
159
159
  "class": bem(side),
160
- "onClick": getClickHandler(side, true)
160
+ "onClick": getClickHandler(side)
161
161
  }, [contentSlot()]);
162
162
  }
163
163
  };
@@ -180,7 +180,7 @@ var stdin_default = (0, import_vue.defineComponent)({
180
180
  return (0, import_vue.createVNode)("div", {
181
181
  "ref": root,
182
182
  "class": bem(),
183
- "onClick": getClickHandler("cell", lockClick),
183
+ "onClick": getClickHandler("cell"),
184
184
  "onTouchstartPassive": onTouchStart,
185
185
  "onTouchend": onTouchEnd,
186
186
  "onTouchcancel": onTouchEnd
package/lib/vant.cjs.js CHANGED
@@ -9521,9 +9521,10 @@ const dialogProps = extend({}, popupSharedProps, {
9521
9521
  confirmButtonDisabled: Boolean,
9522
9522
  showConfirmButton: truthProp,
9523
9523
  closeOnClickOverlay: Boolean,
9524
- keyboardEnabled: truthProp
9524
+ keyboardEnabled: truthProp,
9525
+ destroyOnClose: Boolean
9525
9526
  });
9526
- const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
9527
+ const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate", "destroyOnClose"];
9527
9528
  var stdin_default$W = vue.defineComponent({
9528
9529
  name: name$N,
9529
9530
  props: dialogProps,
@@ -9736,7 +9737,8 @@ const DEFAULT_OPTIONS = {
9736
9737
  showConfirmButton: true,
9737
9738
  showCancelButton: false,
9738
9739
  closeOnPopstate: true,
9739
- closeOnClickOverlay: false
9740
+ closeOnClickOverlay: false,
9741
+ destroyOnClose: false
9740
9742
  };
9741
9743
  let currentOptions$1 = extend({}, DEFAULT_OPTIONS);
9742
9744
  function initInstance$2() {
@@ -13755,7 +13757,8 @@ var stdin_default$r = vue.defineComponent({
13755
13757
  props: signatureProps,
13756
13758
  emits: ["submit", "clear", "start", "end", "signing"],
13757
13759
  setup(props2, {
13758
- emit
13760
+ emit,
13761
+ slots
13759
13762
  }) {
13760
13763
  const canvasRef = vue.ref();
13761
13764
  const wrapRef = vue.ref();
@@ -13870,7 +13873,7 @@ var stdin_default$r = vue.defineComponent({
13870
13873
  "onTouchstartPassive": touchStart,
13871
13874
  "onTouchmove": touchMove,
13872
13875
  "onTouchend": touchEnd
13873
- }, null) : vue.createVNode("p", null, [props2.tips])]), vue.createVNode("div", {
13876
+ }, null) : slots.tips ? slots.tips() : vue.createVNode("p", null, [props2.tips])]), vue.createVNode("div", {
13874
13877
  "class": bem$i("footer")
13875
13878
  }, [vue.createVNode(Button, {
13876
13879
  "size": "small",
@@ -15025,8 +15028,8 @@ var stdin_default$c = vue.defineComponent({
15025
15028
  });
15026
15029
  }
15027
15030
  };
15028
- const getClickHandler = (position, stop) => (event) => {
15029
- if (stop) {
15031
+ const getClickHandler = (position) => (event) => {
15032
+ if (lockClick2 || opened) {
15030
15033
  event.stopPropagation();
15031
15034
  }
15032
15035
  if (lockClick2) {
@@ -15040,7 +15043,7 @@ var stdin_default$c = vue.defineComponent({
15040
15043
  return vue.createVNode("div", {
15041
15044
  "ref": ref2,
15042
15045
  "class": bem$6(side),
15043
- "onClick": getClickHandler(side, true)
15046
+ "onClick": getClickHandler(side)
15044
15047
  }, [contentSlot()]);
15045
15048
  }
15046
15049
  };
@@ -15063,7 +15066,7 @@ var stdin_default$c = vue.defineComponent({
15063
15066
  return vue.createVNode("div", {
15064
15067
  "ref": root,
15065
15068
  "class": bem$6(),
15066
- "onClick": getClickHandler("cell", lockClick2),
15069
+ "onClick": getClickHandler("cell"),
15067
15070
  "onTouchstartPassive": onTouchStart,
15068
15071
  "onTouchend": onTouchEnd,
15069
15072
  "onTouchcancel": onTouchEnd
@@ -17077,7 +17080,7 @@ const Lazyload = {
17077
17080
  });
17078
17081
  }
17079
17082
  };
17080
- const version = "4.9.17";
17083
+ const version = "4.9.18";
17081
17084
  function install(app) {
17082
17085
  const components = [
17083
17086
  ActionBar,
package/lib/vant.es.js CHANGED
@@ -9519,9 +9519,10 @@ const dialogProps = extend({}, popupSharedProps, {
9519
9519
  confirmButtonDisabled: Boolean,
9520
9520
  showConfirmButton: truthProp,
9521
9521
  closeOnClickOverlay: Boolean,
9522
- keyboardEnabled: truthProp
9522
+ keyboardEnabled: truthProp,
9523
+ destroyOnClose: Boolean
9523
9524
  });
9524
- const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
9525
+ const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate", "destroyOnClose"];
9525
9526
  var stdin_default$W = defineComponent({
9526
9527
  name: name$N,
9527
9528
  props: dialogProps,
@@ -9734,7 +9735,8 @@ const DEFAULT_OPTIONS = {
9734
9735
  showConfirmButton: true,
9735
9736
  showCancelButton: false,
9736
9737
  closeOnPopstate: true,
9737
- closeOnClickOverlay: false
9738
+ closeOnClickOverlay: false,
9739
+ destroyOnClose: false
9738
9740
  };
9739
9741
  let currentOptions$1 = extend({}, DEFAULT_OPTIONS);
9740
9742
  function initInstance$2() {
@@ -13753,7 +13755,8 @@ var stdin_default$r = defineComponent({
13753
13755
  props: signatureProps,
13754
13756
  emits: ["submit", "clear", "start", "end", "signing"],
13755
13757
  setup(props2, {
13756
- emit
13758
+ emit,
13759
+ slots
13757
13760
  }) {
13758
13761
  const canvasRef = ref();
13759
13762
  const wrapRef = ref();
@@ -13868,7 +13871,7 @@ var stdin_default$r = defineComponent({
13868
13871
  "onTouchstartPassive": touchStart,
13869
13872
  "onTouchmove": touchMove,
13870
13873
  "onTouchend": touchEnd
13871
- }, null) : createVNode("p", null, [props2.tips])]), createVNode("div", {
13874
+ }, null) : slots.tips ? slots.tips() : createVNode("p", null, [props2.tips])]), createVNode("div", {
13872
13875
  "class": bem$i("footer")
13873
13876
  }, [createVNode(Button, {
13874
13877
  "size": "small",
@@ -15023,8 +15026,8 @@ var stdin_default$c = defineComponent({
15023
15026
  });
15024
15027
  }
15025
15028
  };
15026
- const getClickHandler = (position, stop) => (event) => {
15027
- if (stop) {
15029
+ const getClickHandler = (position) => (event) => {
15030
+ if (lockClick2 || opened) {
15028
15031
  event.stopPropagation();
15029
15032
  }
15030
15033
  if (lockClick2) {
@@ -15038,7 +15041,7 @@ var stdin_default$c = defineComponent({
15038
15041
  return createVNode("div", {
15039
15042
  "ref": ref2,
15040
15043
  "class": bem$6(side),
15041
- "onClick": getClickHandler(side, true)
15044
+ "onClick": getClickHandler(side)
15042
15045
  }, [contentSlot()]);
15043
15046
  }
15044
15047
  };
@@ -15061,7 +15064,7 @@ var stdin_default$c = defineComponent({
15061
15064
  return createVNode("div", {
15062
15065
  "ref": root,
15063
15066
  "class": bem$6(),
15064
- "onClick": getClickHandler("cell", lockClick2),
15067
+ "onClick": getClickHandler("cell"),
15065
15068
  "onTouchstartPassive": onTouchStart,
15066
15069
  "onTouchend": onTouchEnd,
15067
15070
  "onTouchcancel": onTouchEnd
@@ -17075,7 +17078,7 @@ const Lazyload = {
17075
17078
  });
17076
17079
  }
17077
17080
  };
17078
- const version = "4.9.17";
17081
+ const version = "4.9.18";
17079
17082
  function install(app) {
17080
17083
  const components = [
17081
17084
  ActionBar,
package/lib/vant.js CHANGED
@@ -9942,9 +9942,10 @@
9942
9942
  confirmButtonDisabled: Boolean,
9943
9943
  showConfirmButton: truthProp,
9944
9944
  closeOnClickOverlay: Boolean,
9945
- keyboardEnabled: truthProp
9945
+ keyboardEnabled: truthProp,
9946
+ destroyOnClose: Boolean
9946
9947
  });
9947
- const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
9948
+ const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate", "destroyOnClose"];
9948
9949
  var stdin_default$W = __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent({
9949
9950
  name: name$N,
9950
9951
  props: dialogProps,
@@ -10157,7 +10158,8 @@
10157
10158
  showConfirmButton: true,
10158
10159
  showCancelButton: false,
10159
10160
  closeOnPopstate: true,
10160
- closeOnClickOverlay: false
10161
+ closeOnClickOverlay: false,
10162
+ destroyOnClose: false
10161
10163
  };
10162
10164
  let currentOptions$1 = extend({}, DEFAULT_OPTIONS$1);
10163
10165
  function initInstance$2() {
@@ -13461,7 +13463,7 @@
13461
13463
  };
13462
13464
  function eventListeners_effect(_ref) {
13463
13465
  var state = _ref.state, instance2 = _ref.instance, options = _ref.options;
13464
- var _options$scroll = options.scroll, scroll = void 0 === _options$scroll || _options$scroll, _options$resize = options.resize, resize = void 0 === _options$resize || _options$resize;
13466
+ var _options$scroll = options.scroll, scroll = void 0 === _options$scroll ? true : _options$scroll, _options$resize = options.resize, resize = void 0 === _options$resize ? true : _options$resize;
13465
13467
  var window1 = getWindow(state.elements.popper);
13466
13468
  var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
13467
13469
  if (scroll) scrollParents.forEach(function(scrollParent) {
@@ -13548,7 +13550,7 @@
13548
13550
  }
13549
13551
  return offsets;
13550
13552
  }
13551
- function popperOffsets(_ref) {
13553
+ function popperOffsets_popperOffsets(_ref) {
13552
13554
  var state = _ref.state, name2 = _ref.name;
13553
13555
  state.modifiersData[name2] = computeOffsets({
13554
13556
  reference: state.rects.reference,
@@ -13557,11 +13559,11 @@
13557
13559
  placement: state.placement
13558
13560
  });
13559
13561
  }
13560
- const modifiers_popperOffsets = {
13562
+ const popperOffsets = {
13561
13563
  name: "popperOffsets",
13562
13564
  enabled: true,
13563
13565
  phase: "read",
13564
- fn: popperOffsets,
13566
+ fn: popperOffsets_popperOffsets,
13565
13567
  data: {}
13566
13568
  };
13567
13569
  var unsetSides = {
@@ -13638,9 +13640,9 @@
13638
13640
  }
13639
13641
  return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : "", _Object$assign2[sideX] = hasX ? x + "px" : "", _Object$assign2.transform = "", _Object$assign2));
13640
13642
  }
13641
- function computeStyles(_ref5) {
13643
+ function computeStyles_computeStyles(_ref5) {
13642
13644
  var state = _ref5.state, options = _ref5.options;
13643
- var _options$gpuAccelerat = options.gpuAcceleration, gpuAcceleration = void 0 === _options$gpuAccelerat || _options$gpuAccelerat, _options$adaptive = options.adaptive, adaptive = void 0 === _options$adaptive || _options$adaptive, _options$roundOffsets = options.roundOffsets, roundOffsets = void 0 === _options$roundOffsets || _options$roundOffsets;
13645
+ var _options$gpuAccelerat = options.gpuAcceleration, gpuAcceleration = void 0 === _options$gpuAccelerat ? true : _options$gpuAccelerat, _options$adaptive = options.adaptive, adaptive = void 0 === _options$adaptive ? true : _options$adaptive, _options$roundOffsets = options.roundOffsets, roundOffsets = void 0 === _options$roundOffsets ? true : _options$roundOffsets;
13644
13646
  var commonStyles = {
13645
13647
  placement: getBasePlacement(state.placement),
13646
13648
  variation: getVariation(state.placement),
@@ -13665,14 +13667,14 @@
13665
13667
  "data-popper-placement": state.placement
13666
13668
  });
13667
13669
  }
13668
- const modifiers_computeStyles = {
13670
+ const computeStyles = {
13669
13671
  name: "computeStyles",
13670
13672
  enabled: true,
13671
13673
  phase: "beforeWrite",
13672
- fn: computeStyles,
13674
+ fn: computeStyles_computeStyles,
13673
13675
  data: {}
13674
13676
  };
13675
- function applyStyles(_ref) {
13677
+ function applyStyles_applyStyles(_ref) {
13676
13678
  var state = _ref.state;
13677
13679
  Object.keys(state.elements).forEach(function(name2) {
13678
13680
  var style = state.styles[name2] || {};
@@ -13721,11 +13723,11 @@
13721
13723
  });
13722
13724
  };
13723
13725
  }
13724
- const modifiers_applyStyles = {
13726
+ const applyStyles = {
13725
13727
  name: "applyStyles",
13726
13728
  enabled: true,
13727
13729
  phase: "write",
13728
- fn: applyStyles,
13730
+ fn: applyStyles_applyStyles,
13729
13731
  effect: applyStyles_effect,
13730
13732
  requires: [
13731
13733
  "computeStyles"
@@ -13733,9 +13735,9 @@
13733
13735
  };
13734
13736
  var popper_lite_defaultModifiers = [
13735
13737
  eventListeners,
13736
- modifiers_popperOffsets,
13737
- modifiers_computeStyles,
13738
- modifiers_applyStyles
13738
+ popperOffsets,
13739
+ computeStyles,
13740
+ applyStyles
13739
13741
  ];
13740
13742
  var popper_lite_createPopper = /* @__PURE__ */ popperGenerator({
13741
13743
  defaultModifiers: popper_lite_defaultModifiers
@@ -14916,7 +14918,8 @@
14916
14918
  props: signatureProps,
14917
14919
  emits: ["submit", "clear", "start", "end", "signing"],
14918
14920
  setup(props2, {
14919
- emit
14921
+ emit,
14922
+ slots
14920
14923
  }) {
14921
14924
  const canvasRef = __WEBPACK_EXTERNAL_MODULE_vue__.ref();
14922
14925
  const wrapRef = __WEBPACK_EXTERNAL_MODULE_vue__.ref();
@@ -15031,7 +15034,7 @@
15031
15034
  "onTouchstartPassive": touchStart,
15032
15035
  "onTouchmove": touchMove,
15033
15036
  "onTouchend": touchEnd
15034
- }, null) : __WEBPACK_EXTERNAL_MODULE_vue__.createVNode("p", null, [props2.tips])]), __WEBPACK_EXTERNAL_MODULE_vue__.createVNode("div", {
15037
+ }, null) : slots.tips ? slots.tips() : __WEBPACK_EXTERNAL_MODULE_vue__.createVNode("p", null, [props2.tips])]), __WEBPACK_EXTERNAL_MODULE_vue__.createVNode("div", {
15035
15038
  "class": bem$i("footer")
15036
15039
  }, [__WEBPACK_EXTERNAL_MODULE_vue__.createVNode(Button, {
15037
15040
  "size": "small",
@@ -16183,8 +16186,8 @@
16183
16186
  });
16184
16187
  }
16185
16188
  };
16186
- const getClickHandler = (position, stop) => (event) => {
16187
- if (stop) {
16189
+ const getClickHandler = (position) => (event) => {
16190
+ if (lockClick2 || opened) {
16188
16191
  event.stopPropagation();
16189
16192
  }
16190
16193
  if (lockClick2) {
@@ -16198,7 +16201,7 @@
16198
16201
  return __WEBPACK_EXTERNAL_MODULE_vue__.createVNode("div", {
16199
16202
  "ref": ref2,
16200
16203
  "class": bem$6(side),
16201
- "onClick": getClickHandler(side, true)
16204
+ "onClick": getClickHandler(side)
16202
16205
  }, [contentSlot()]);
16203
16206
  }
16204
16207
  };
@@ -16221,7 +16224,7 @@
16221
16224
  return __WEBPACK_EXTERNAL_MODULE_vue__.createVNode("div", {
16222
16225
  "ref": root,
16223
16226
  "class": bem$6(),
16224
- "onClick": getClickHandler("cell", lockClick2),
16227
+ "onClick": getClickHandler("cell"),
16225
16228
  "onTouchstartPassive": onTouchStart,
16226
16229
  "onTouchend": onTouchEnd,
16227
16230
  "onTouchcancel": onTouchEnd
@@ -18212,7 +18215,7 @@
18212
18215
  });
18213
18216
  }
18214
18217
  };
18215
- const version = "4.9.17";
18218
+ const version = "4.9.18";
18216
18219
  function install(app) {
18217
18220
  const components = [
18218
18221
  ActionBar,