vant 3.6.5 → 3.6.6

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/es/cell/Cell.mjs CHANGED
@@ -78,7 +78,7 @@ var stdin_default = defineComponent({
78
78
  return slots["right-icon"]();
79
79
  }
80
80
  if (props.isLink) {
81
- const name2 = props.arrowDirection ? `arrow-${props.arrowDirection}` : "arrow";
81
+ const name2 = props.arrowDirection && props.arrowDirection !== "right" ? `arrow-${props.arrowDirection}` : "arrow";
82
82
  return _createVNode(Icon, {
83
83
  "name": name2,
84
84
  "class": bem("right-icon")
package/es/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.5";
94
+ export const version: "3.6.6";
package/es/index.mjs CHANGED
@@ -84,7 +84,7 @@ import { Tag } from "./tag/index.mjs";
84
84
  import { Toast } from "./toast/index.mjs";
85
85
  import { TreeSelect } from "./tree-select/index.mjs";
86
86
  import { Uploader } from "./uploader/index.mjs";
87
- const version = "3.6.5";
87
+ const version = "3.6.6";
88
88
  function install(app) {
89
89
  const components = [
90
90
  ActionBar,
package/es/list/List.mjs CHANGED
@@ -25,7 +25,7 @@ var stdin_default = defineComponent({
25
25
  emit,
26
26
  slots
27
27
  }) {
28
- const loading = ref(false);
28
+ const loading = ref(props.loading);
29
29
  const root = ref();
30
30
  const placeholder = ref();
31
31
  const tabStatus = useTabStatus();
@@ -1,4 +1,4 @@
1
- import { withDirectives as _withDirectives, vShow as _vShow, createVNode as _createVNode } from "vue";
1
+ import { withDirectives as _withDirectives, mergeProps as _mergeProps, vShow as _vShow, createVNode as _createVNode } from "vue";
2
2
  import { ref, watch, computed, Teleport, Transition, defineComponent } from "vue";
3
3
  import { truthProp, numericProp, getZIndexStyle, makeStringProp, makeNumericProp, stopPropagation, createNamespace, HAPTICS_FEEDBACK } from "../utils/index.mjs";
4
4
  import { useClickAway } from "@vant/use";
@@ -37,11 +37,13 @@ function shuffle(array) {
37
37
  }
38
38
  var stdin_default = defineComponent({
39
39
  name,
40
+ inheritAttrs: false,
40
41
  props: numberKeyboardProps,
41
42
  emits: ["show", "hide", "blur", "input", "close", "delete", "update:modelValue"],
42
43
  setup(props, {
43
44
  emit,
44
- slots
45
+ slots,
46
+ attrs
45
47
  }) {
46
48
  const root = ref();
47
49
  const genBasicKeys = () => {
@@ -197,7 +199,7 @@ var stdin_default = defineComponent({
197
199
  const Content = _createVNode(Transition, {
198
200
  "name": props.transition ? "van-slide-up" : ""
199
201
  }, {
200
- default: () => [_withDirectives(_createVNode("div", {
202
+ default: () => [_withDirectives(_createVNode("div", _mergeProps({
201
203
  "ref": root,
202
204
  "style": getZIndexStyle(props.zIndex),
203
205
  "class": bem({
@@ -206,7 +208,7 @@ var stdin_default = defineComponent({
206
208
  }),
207
209
  "onAnimationend": onAnimationEnd,
208
210
  "onTouchstartPassive": stopPropagation
209
- }, [Title, _createVNode("div", {
211
+ }, attrs), [Title, _createVNode("div", {
210
212
  "class": bem("body")
211
213
  }, [_createVNode("div", {
212
214
  "class": bem("keys")
package/lib/cell/Cell.js CHANGED
@@ -101,7 +101,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
101
101
  return slots["right-icon"]();
102
102
  }
103
103
  if (props.isLink) {
104
- const name2 = props.arrowDirection ? `arrow-${props.arrowDirection}` : "arrow";
104
+ const name2 = props.arrowDirection && props.arrowDirection !== "right" ? `arrow-${props.arrowDirection}` : "arrow";
105
105
  return (0, import_vue.createVNode)(import_icon.Icon, {
106
106
  "name": name2,
107
107
  "class": bem("right-icon")
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.5";
94
+ export const version: "3.6.6";
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.5";
199
+ const version = "3.6.6";
200
200
  function install(app) {
201
201
  const components = [
202
202
  import_action_bar.ActionBar,
package/lib/list/List.js CHANGED
@@ -47,7 +47,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
47
47
  emit,
48
48
  slots
49
49
  }) {
50
- const loading = (0, import_vue2.ref)(false);
50
+ const loading = (0, import_vue2.ref)(props.loading);
51
51
  const root = (0, import_vue2.ref)();
52
52
  const placeholder = (0, import_vue2.ref)();
53
53
  const tabStatus = (0, import_use_tab_status.useTabStatus)();
@@ -65,11 +65,13 @@ function shuffle(array) {
65
65
  }
66
66
  var stdin_default = (0, import_vue2.defineComponent)({
67
67
  name,
68
+ inheritAttrs: false,
68
69
  props: numberKeyboardProps,
69
70
  emits: ["show", "hide", "blur", "input", "close", "delete", "update:modelValue"],
70
71
  setup(props, {
71
72
  emit,
72
- slots
73
+ slots,
74
+ attrs
73
75
  }) {
74
76
  const root = (0, import_vue2.ref)();
75
77
  const genBasicKeys = () => {
@@ -225,7 +227,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
225
227
  const Content = (0, import_vue.createVNode)(import_vue2.Transition, {
226
228
  "name": props.transition ? "van-slide-up" : ""
227
229
  }, {
228
- default: () => [(0, import_vue.withDirectives)((0, import_vue.createVNode)("div", {
230
+ default: () => [(0, import_vue.withDirectives)((0, import_vue.createVNode)("div", (0, import_vue.mergeProps)({
229
231
  "ref": root,
230
232
  "style": (0, import_utils.getZIndexStyle)(props.zIndex),
231
233
  "class": bem({
@@ -234,7 +236,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
234
236
  }),
235
237
  "onAnimationend": onAnimationEnd,
236
238
  "onTouchstartPassive": import_utils.stopPropagation
237
- }, [Title, (0, import_vue.createVNode)("div", {
239
+ }, attrs), [Title, (0, import_vue.createVNode)("div", {
238
240
  "class": bem("body")
239
241
  }, [(0, import_vue.createVNode)("div", {
240
242
  "class": bem("keys")
package/lib/vant.cjs.js CHANGED
@@ -2378,7 +2378,7 @@ var stdin_default$1o = vue.defineComponent({
2378
2378
  return slots["right-icon"]();
2379
2379
  }
2380
2380
  if (props.isLink) {
2381
- const name2 = props.arrowDirection ? `arrow-${props.arrowDirection}` : "arrow";
2381
+ const name2 = props.arrowDirection && props.arrowDirection !== "right" ? `arrow-${props.arrowDirection}` : "arrow";
2382
2382
  return vue.createVNode(Icon, {
2383
2383
  "name": name2,
2384
2384
  "class": bem$1d("right-icon")
@@ -10359,7 +10359,7 @@ var stdin_default$w = vue.defineComponent({
10359
10359
  emit,
10360
10360
  slots
10361
10361
  }) {
10362
- const loading = vue.ref(false);
10362
+ const loading = vue.ref(props.loading);
10363
10363
  const root = vue.ref();
10364
10364
  const placeholder = vue.ref();
10365
10365
  const tabStatus = useTabStatus();
@@ -10929,11 +10929,13 @@ function shuffle(array) {
10929
10929
  }
10930
10930
  var stdin_default$r = vue.defineComponent({
10931
10931
  name: name$m,
10932
+ inheritAttrs: false,
10932
10933
  props: numberKeyboardProps,
10933
10934
  emits: ["show", "hide", "blur", "input", "close", "delete", "update:modelValue"],
10934
10935
  setup(props, {
10935
10936
  emit,
10936
- slots
10937
+ slots,
10938
+ attrs
10937
10939
  }) {
10938
10940
  const root = vue.ref();
10939
10941
  const genBasicKeys = () => {
@@ -11089,7 +11091,7 @@ var stdin_default$r = vue.defineComponent({
11089
11091
  const Content = vue.createVNode(vue.Transition, {
11090
11092
  "name": props.transition ? "van-slide-up" : ""
11091
11093
  }, {
11092
- default: () => [vue.withDirectives(vue.createVNode("div", {
11094
+ default: () => [vue.withDirectives(vue.createVNode("div", vue.mergeProps({
11093
11095
  "ref": root,
11094
11096
  "style": getZIndexStyle(props.zIndex),
11095
11097
  "class": bem$m({
@@ -11098,7 +11100,7 @@ var stdin_default$r = vue.defineComponent({
11098
11100
  }),
11099
11101
  "onAnimationend": onAnimationEnd,
11100
11102
  "onTouchstartPassive": stopPropagation
11101
- }, [Title, vue.createVNode("div", {
11103
+ }, attrs), [Title, vue.createVNode("div", {
11102
11104
  "class": bem$m("body")
11103
11105
  }, [vue.createVNode("div", {
11104
11106
  "class": bem$m("keys")
@@ -14954,7 +14956,7 @@ const Lazyload = {
14954
14956
  });
14955
14957
  }
14956
14958
  };
14957
- const version = "3.6.5";
14959
+ const version = "3.6.6";
14958
14960
  function install(app) {
14959
14961
  const components = [
14960
14962
  ActionBar,
package/lib/vant.es.js CHANGED
@@ -2376,7 +2376,7 @@ var stdin_default$1o = defineComponent({
2376
2376
  return slots["right-icon"]();
2377
2377
  }
2378
2378
  if (props.isLink) {
2379
- const name2 = props.arrowDirection ? `arrow-${props.arrowDirection}` : "arrow";
2379
+ const name2 = props.arrowDirection && props.arrowDirection !== "right" ? `arrow-${props.arrowDirection}` : "arrow";
2380
2380
  return createVNode(Icon, {
2381
2381
  "name": name2,
2382
2382
  "class": bem$1d("right-icon")
@@ -10357,7 +10357,7 @@ var stdin_default$w = defineComponent({
10357
10357
  emit,
10358
10358
  slots
10359
10359
  }) {
10360
- const loading = ref(false);
10360
+ const loading = ref(props.loading);
10361
10361
  const root = ref();
10362
10362
  const placeholder = ref();
10363
10363
  const tabStatus = useTabStatus();
@@ -10927,11 +10927,13 @@ function shuffle(array) {
10927
10927
  }
10928
10928
  var stdin_default$r = defineComponent({
10929
10929
  name: name$m,
10930
+ inheritAttrs: false,
10930
10931
  props: numberKeyboardProps,
10931
10932
  emits: ["show", "hide", "blur", "input", "close", "delete", "update:modelValue"],
10932
10933
  setup(props, {
10933
10934
  emit,
10934
- slots
10935
+ slots,
10936
+ attrs
10935
10937
  }) {
10936
10938
  const root = ref();
10937
10939
  const genBasicKeys = () => {
@@ -11087,7 +11089,7 @@ var stdin_default$r = defineComponent({
11087
11089
  const Content = createVNode(Transition, {
11088
11090
  "name": props.transition ? "van-slide-up" : ""
11089
11091
  }, {
11090
- default: () => [withDirectives(createVNode("div", {
11092
+ default: () => [withDirectives(createVNode("div", mergeProps({
11091
11093
  "ref": root,
11092
11094
  "style": getZIndexStyle(props.zIndex),
11093
11095
  "class": bem$m({
@@ -11096,7 +11098,7 @@ var stdin_default$r = defineComponent({
11096
11098
  }),
11097
11099
  "onAnimationend": onAnimationEnd,
11098
11100
  "onTouchstartPassive": stopPropagation
11099
- }, [Title, createVNode("div", {
11101
+ }, attrs), [Title, createVNode("div", {
11100
11102
  "class": bem$m("body")
11101
11103
  }, [createVNode("div", {
11102
11104
  "class": bem$m("keys")
@@ -14952,7 +14954,7 @@ const Lazyload = {
14952
14954
  });
14953
14955
  }
14954
14956
  };
14955
- const version = "3.6.5";
14957
+ const version = "3.6.6";
14956
14958
  function install(app) {
14957
14959
  const components = [
14958
14960
  ActionBar,
package/lib/vant.js CHANGED
@@ -2737,7 +2737,7 @@
2737
2737
  return slots["right-icon"]();
2738
2738
  }
2739
2739
  if (props.isLink) {
2740
- const name2 = props.arrowDirection ? `arrow-${props.arrowDirection}` : "arrow";
2740
+ const name2 = props.arrowDirection && props.arrowDirection !== "right" ? `arrow-${props.arrowDirection}` : "arrow";
2741
2741
  return vue.createVNode(Icon, {
2742
2742
  "name": name2,
2743
2743
  "class": bem$1d("right-icon")
@@ -10673,7 +10673,7 @@
10673
10673
  emit,
10674
10674
  slots
10675
10675
  }) {
10676
- const loading = vue.ref(false);
10676
+ const loading = vue.ref(props.loading);
10677
10677
  const root = vue.ref();
10678
10678
  const placeholder = vue.ref();
10679
10679
  const tabStatus = useTabStatus();
@@ -11243,11 +11243,13 @@
11243
11243
  }
11244
11244
  var stdin_default$r = vue.defineComponent({
11245
11245
  name: name$m,
11246
+ inheritAttrs: false,
11246
11247
  props: numberKeyboardProps,
11247
11248
  emits: ["show", "hide", "blur", "input", "close", "delete", "update:modelValue"],
11248
11249
  setup(props, {
11249
11250
  emit,
11250
- slots
11251
+ slots,
11252
+ attrs
11251
11253
  }) {
11252
11254
  const root = vue.ref();
11253
11255
  const genBasicKeys = () => {
@@ -11403,7 +11405,7 @@
11403
11405
  const Content = vue.createVNode(vue.Transition, {
11404
11406
  "name": props.transition ? "van-slide-up" : ""
11405
11407
  }, {
11406
- default: () => [vue.withDirectives(vue.createVNode("div", {
11408
+ default: () => [vue.withDirectives(vue.createVNode("div", vue.mergeProps({
11407
11409
  "ref": root,
11408
11410
  "style": getZIndexStyle(props.zIndex),
11409
11411
  "class": bem$m({
@@ -11412,7 +11414,7 @@
11412
11414
  }),
11413
11415
  "onAnimationend": onAnimationEnd,
11414
11416
  "onTouchstartPassive": stopPropagation
11415
- }, [Title, vue.createVNode("div", {
11417
+ }, attrs), [Title, vue.createVNode("div", {
11416
11418
  "class": bem$m("body")
11417
11419
  }, [vue.createVNode("div", {
11418
11420
  "class": bem$m("keys")
@@ -16151,7 +16153,7 @@
16151
16153
  });
16152
16154
  }
16153
16155
  };
16154
- const version = "3.6.5";
16156
+ const version = "3.6.6";
16155
16157
  function install(app) {
16156
16158
  const components = [
16157
16159
  ActionBar,