vant 3.6.4 → 3.6.5

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
@@ -91,4 +91,4 @@ declare namespace _default {
91
91
  }
92
92
  export default _default;
93
93
  export function install(app: any): void;
94
- export const version: "3.6.4";
94
+ export const version: "3.6.5";
package/lib/index.js CHANGED
@@ -196,7 +196,7 @@ __reExport(stdin_exports, require("./tag"), module.exports);
196
196
  __reExport(stdin_exports, require("./toast"), module.exports);
197
197
  __reExport(stdin_exports, require("./tree-select"), module.exports);
198
198
  __reExport(stdin_exports, require("./uploader"), module.exports);
199
- const version = "3.6.4";
199
+ const version = "3.6.5";
200
200
  function install(app) {
201
201
  const components = [
202
202
  import_action_bar.ActionBar,
@@ -23,6 +23,7 @@ module.exports = __toCommonJS(stdin_exports);
23
23
  var import_use = require("@vant/use");
24
24
  var import_util = require("./util");
25
25
  var import_utils = require("../../utils");
26
+ var import_vue = require("vue");
26
27
  var stdin_default = (lazyManager) => ({
27
28
  props: {
28
29
  src: [String, Object],
@@ -31,15 +32,14 @@ var stdin_default = (lazyManager) => ({
31
32
  default: "img"
32
33
  }
33
34
  },
34
- render(h) {
35
- return h(
35
+ render() {
36
+ var _a, _b;
37
+ return (0, import_vue.h)(
36
38
  this.tag,
37
39
  {
38
- attrs: {
39
- src: this.renderSrc
40
- }
40
+ src: this.renderSrc
41
41
  },
42
- this.$slots.default
42
+ (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)
43
43
  );
44
44
  },
45
45
  data() {
package/lib/vant.cjs.js CHANGED
@@ -9596,7 +9596,8 @@ var stdin_default$A = vue.defineComponent({
9596
9596
  },
9597
9597
  emits: ["scale", "close"],
9598
9598
  setup(props, {
9599
- emit
9599
+ emit,
9600
+ slots
9600
9601
  }) {
9601
9602
  const state = vue.reactive({
9602
9603
  scale: 1,
@@ -9814,7 +9815,11 @@ var stdin_default$A = vue.defineComponent({
9814
9815
  "onTouchend": onTouchEnd,
9815
9816
  "onTouchcancel": onTouchEnd
9816
9817
  }, {
9817
- default: () => [vue.createVNode(Image$1, {
9818
+ default: () => [slots.image ? vue.createVNode("div", {
9819
+ "class": bem$v("image-wrap")
9820
+ }, [slots.image({
9821
+ src: props.src
9822
+ })]) : vue.createVNode(Image$1, {
9818
9823
  "src": props.src,
9819
9824
  "fit": "contain",
9820
9825
  "class": bem$v("image", {
@@ -9923,7 +9928,9 @@ var stdin_default$z = vue.defineComponent({
9923
9928
  "rootHeight": state.rootHeight,
9924
9929
  "onScale": emitScale,
9925
9930
  "onClose": emitClose
9926
- }, null))]
9931
+ }, {
9932
+ image: slots.image
9933
+ }))]
9927
9934
  });
9928
9935
  const renderClose = () => {
9929
9936
  if (props.closeable) {
@@ -14838,15 +14845,14 @@ var stdin_default$1 = (lazyManager) => ({
14838
14845
  default: "img"
14839
14846
  }
14840
14847
  },
14841
- render(h) {
14842
- return h(
14848
+ render() {
14849
+ var _a, _b;
14850
+ return vue.h(
14843
14851
  this.tag,
14844
14852
  {
14845
- attrs: {
14846
- src: this.renderSrc
14847
- }
14853
+ src: this.renderSrc
14848
14854
  },
14849
- this.$slots.default
14855
+ (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)
14850
14856
  );
14851
14857
  },
14852
14858
  data() {
@@ -14948,7 +14954,7 @@ const Lazyload = {
14948
14954
  });
14949
14955
  }
14950
14956
  };
14951
- const version = "3.6.4";
14957
+ const version = "3.6.5";
14952
14958
  function install(app) {
14953
14959
  const components = [
14954
14960
  ActionBar,
package/lib/vant.es.js CHANGED
@@ -9594,7 +9594,8 @@ var stdin_default$A = defineComponent({
9594
9594
  },
9595
9595
  emits: ["scale", "close"],
9596
9596
  setup(props, {
9597
- emit
9597
+ emit,
9598
+ slots
9598
9599
  }) {
9599
9600
  const state = reactive({
9600
9601
  scale: 1,
@@ -9812,7 +9813,11 @@ var stdin_default$A = defineComponent({
9812
9813
  "onTouchend": onTouchEnd,
9813
9814
  "onTouchcancel": onTouchEnd
9814
9815
  }, {
9815
- default: () => [createVNode(Image$1, {
9816
+ default: () => [slots.image ? createVNode("div", {
9817
+ "class": bem$v("image-wrap")
9818
+ }, [slots.image({
9819
+ src: props.src
9820
+ })]) : createVNode(Image$1, {
9816
9821
  "src": props.src,
9817
9822
  "fit": "contain",
9818
9823
  "class": bem$v("image", {
@@ -9921,7 +9926,9 @@ var stdin_default$z = defineComponent({
9921
9926
  "rootHeight": state.rootHeight,
9922
9927
  "onScale": emitScale,
9923
9928
  "onClose": emitClose
9924
- }, null))]
9929
+ }, {
9930
+ image: slots.image
9931
+ }))]
9925
9932
  });
9926
9933
  const renderClose = () => {
9927
9934
  if (props.closeable) {
@@ -14836,15 +14843,14 @@ var stdin_default$1 = (lazyManager) => ({
14836
14843
  default: "img"
14837
14844
  }
14838
14845
  },
14839
- render(h2) {
14840
- return h2(
14846
+ render() {
14847
+ var _a, _b;
14848
+ return h(
14841
14849
  this.tag,
14842
14850
  {
14843
- attrs: {
14844
- src: this.renderSrc
14845
- }
14851
+ src: this.renderSrc
14846
14852
  },
14847
- this.$slots.default
14853
+ (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)
14848
14854
  );
14849
14855
  },
14850
14856
  data() {
@@ -14946,7 +14952,7 @@ const Lazyload = {
14946
14952
  });
14947
14953
  }
14948
14954
  };
14949
- const version = "3.6.4";
14955
+ const version = "3.6.5";
14950
14956
  function install(app) {
14951
14957
  const components = [
14952
14958
  ActionBar,
package/lib/vant.js CHANGED
@@ -9913,7 +9913,8 @@
9913
9913
  },
9914
9914
  emits: ["scale", "close"],
9915
9915
  setup(props, {
9916
- emit
9916
+ emit,
9917
+ slots
9917
9918
  }) {
9918
9919
  const state = vue.reactive({
9919
9920
  scale: 1,
@@ -10131,7 +10132,11 @@
10131
10132
  "onTouchend": onTouchEnd,
10132
10133
  "onTouchcancel": onTouchEnd
10133
10134
  }, {
10134
- default: () => [vue.createVNode(Image$1, {
10135
+ default: () => [slots.image ? vue.createVNode("div", {
10136
+ "class": bem$v("image-wrap")
10137
+ }, [slots.image({
10138
+ src: props.src
10139
+ })]) : vue.createVNode(Image$1, {
10135
10140
  "src": props.src,
10136
10141
  "fit": "contain",
10137
10142
  "class": bem$v("image", {
@@ -10240,7 +10245,9 @@
10240
10245
  "rootHeight": state.rootHeight,
10241
10246
  "onScale": emitScale,
10242
10247
  "onClose": emitClose
10243
- }, null))]
10248
+ }, {
10249
+ image: slots.image
10250
+ }))]
10244
10251
  });
10245
10252
  const renderClose = () => {
10246
10253
  if (props.closeable) {
@@ -16040,15 +16047,14 @@
16040
16047
  default: "img"
16041
16048
  }
16042
16049
  },
16043
- render(h) {
16044
- return h(
16050
+ render() {
16051
+ var _a, _b;
16052
+ return vue.h(
16045
16053
  this.tag,
16046
16054
  {
16047
- attrs: {
16048
- src: this.renderSrc
16049
- }
16055
+ src: this.renderSrc
16050
16056
  },
16051
- this.$slots.default
16057
+ (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)
16052
16058
  );
16053
16059
  },
16054
16060
  data() {
@@ -16145,7 +16151,7 @@
16145
16151
  });
16146
16152
  }
16147
16153
  };
16148
- const version = "3.6.4";
16154
+ const version = "3.6.5";
16149
16155
  function install(app) {
16150
16156
  const components = [
16151
16157
  ActionBar,