vant 3.4.2 → 3.4.3

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 (139) hide show
  1. package/es/address-edit/AddressEditDetail.js +4 -3
  2. package/es/calendar/CalendarMonth.js +1 -1
  3. package/es/contact-card/ContactCard.js +1 -1
  4. package/es/contact-list/ContactList.js +1 -1
  5. package/es/dropdown-menu/index.css +1 -1
  6. package/es/dropdown-menu/index.less +0 -1
  7. package/es/icon/index.css +1 -1
  8. package/es/icon/index.less +1 -0
  9. package/es/image-preview/index.css +1 -1
  10. package/es/image-preview/index.less +0 -1
  11. package/es/index.d.ts +1 -1
  12. package/es/index.js +1 -1
  13. package/es/locale/lang/de-DE-formal.d.ts +2 -11
  14. package/es/locale/lang/de-DE-formal.js +2 -11
  15. package/es/locale/lang/de-DE.d.ts +2 -11
  16. package/es/locale/lang/de-DE.js +2 -11
  17. package/es/locale/lang/en-US.d.ts +2 -11
  18. package/es/locale/lang/en-US.js +2 -11
  19. package/es/locale/lang/es-ES.d.ts +2 -11
  20. package/es/locale/lang/es-ES.js +2 -11
  21. package/es/locale/lang/fr-FR.d.ts +2 -11
  22. package/es/locale/lang/fr-FR.js +2 -11
  23. package/es/locale/lang/hi-IN.d.ts +64 -0
  24. package/es/locale/lang/hi-IN.js +74 -0
  25. package/es/locale/lang/ja-JP.d.ts +2 -12
  26. package/es/locale/lang/ja-JP.js +4 -14
  27. package/es/locale/lang/ko-KR.d.ts +64 -0
  28. package/es/locale/lang/ko-KR.js +74 -0
  29. package/es/locale/lang/nb-NO.d.ts +2 -11
  30. package/es/locale/lang/nb-NO.js +2 -11
  31. package/es/locale/lang/pt-BR.d.ts +2 -11
  32. package/es/locale/lang/pt-BR.js +2 -11
  33. package/es/locale/lang/ro-RO.d.ts +2 -11
  34. package/es/locale/lang/ro-RO.js +2 -11
  35. package/es/locale/lang/ru-RU.d.ts +2 -11
  36. package/es/locale/lang/ru-RU.js +2 -11
  37. package/es/locale/lang/th-TH.d.ts +2 -12
  38. package/es/locale/lang/th-TH.js +4 -14
  39. package/es/locale/lang/tr-TR.d.ts +2 -11
  40. package/es/locale/lang/tr-TR.js +2 -11
  41. package/es/locale/lang/zh-CN.d.ts +2 -12
  42. package/es/locale/lang/zh-CN.js +5 -15
  43. package/es/locale/lang/zh-HK.d.ts +2 -12
  44. package/es/locale/lang/zh-HK.js +5 -15
  45. package/es/locale/lang/zh-TW.d.ts +2 -12
  46. package/es/locale/lang/zh-TW.js +5 -15
  47. package/es/nav-bar/index.css +1 -1
  48. package/es/nav-bar/index.less +0 -1
  49. package/es/number-keyboard/index.css +1 -1
  50. package/es/number-keyboard/index.less +0 -1
  51. package/es/picker/index.css +1 -1
  52. package/es/picker/index.less +0 -1
  53. package/es/popup/index.css +1 -1
  54. package/es/popup/index.less +0 -1
  55. package/es/share-sheet/index.css +1 -1
  56. package/es/share-sheet/index.less +0 -1
  57. package/es/stepper/index.css +1 -1
  58. package/es/stepper/index.less +0 -1
  59. package/es/style/base.css +1 -1
  60. package/es/style/base.less +6 -2
  61. package/es/tag/Tag.js +2 -2
  62. package/es/tag/index.css +1 -1
  63. package/es/tag/index.less +0 -1
  64. package/es/tree-select/TreeSelect.js +3 -2
  65. package/lib/address-edit/AddressEditDetail.js +4 -3
  66. package/lib/calendar/CalendarMonth.js +1 -1
  67. package/lib/contact-card/ContactCard.js +1 -1
  68. package/lib/contact-list/ContactList.js +1 -1
  69. package/lib/dropdown-menu/index.css +1 -1
  70. package/lib/dropdown-menu/index.less +0 -1
  71. package/lib/icon/index.css +1 -1
  72. package/lib/icon/index.less +1 -0
  73. package/lib/image-preview/index.css +1 -1
  74. package/lib/image-preview/index.less +0 -1
  75. package/lib/index.css +1 -1
  76. package/lib/index.d.ts +1 -1
  77. package/lib/index.js +1 -1
  78. package/lib/locale/lang/de-DE-formal.d.ts +2 -11
  79. package/lib/locale/lang/de-DE-formal.js +2 -11
  80. package/lib/locale/lang/de-DE.d.ts +2 -11
  81. package/lib/locale/lang/de-DE.js +2 -11
  82. package/lib/locale/lang/en-US.d.ts +2 -11
  83. package/lib/locale/lang/en-US.js +2 -11
  84. package/lib/locale/lang/es-ES.d.ts +2 -11
  85. package/lib/locale/lang/es-ES.js +2 -11
  86. package/lib/locale/lang/fr-FR.d.ts +2 -11
  87. package/lib/locale/lang/fr-FR.js +2 -11
  88. package/lib/locale/lang/hi-IN.d.ts +64 -0
  89. package/lib/locale/lang/hi-IN.js +81 -0
  90. package/lib/locale/lang/ja-JP.d.ts +2 -12
  91. package/lib/locale/lang/ja-JP.js +4 -14
  92. package/lib/locale/lang/ko-KR.d.ts +64 -0
  93. package/lib/locale/lang/ko-KR.js +81 -0
  94. package/lib/locale/lang/nb-NO.d.ts +2 -11
  95. package/lib/locale/lang/nb-NO.js +2 -11
  96. package/lib/locale/lang/pt-BR.d.ts +2 -11
  97. package/lib/locale/lang/pt-BR.js +2 -11
  98. package/lib/locale/lang/ro-RO.d.ts +2 -11
  99. package/lib/locale/lang/ro-RO.js +2 -11
  100. package/lib/locale/lang/ru-RU.d.ts +2 -11
  101. package/lib/locale/lang/ru-RU.js +2 -11
  102. package/lib/locale/lang/th-TH.d.ts +2 -12
  103. package/lib/locale/lang/th-TH.js +4 -14
  104. package/lib/locale/lang/tr-TR.d.ts +2 -11
  105. package/lib/locale/lang/tr-TR.js +2 -11
  106. package/lib/locale/lang/zh-CN.d.ts +2 -12
  107. package/lib/locale/lang/zh-CN.js +5 -15
  108. package/lib/locale/lang/zh-HK.d.ts +2 -12
  109. package/lib/locale/lang/zh-HK.js +5 -15
  110. package/lib/locale/lang/zh-TW.d.ts +2 -12
  111. package/lib/locale/lang/zh-TW.js +5 -15
  112. package/lib/nav-bar/index.css +1 -1
  113. package/lib/nav-bar/index.less +0 -1
  114. package/lib/number-keyboard/index.css +1 -1
  115. package/lib/number-keyboard/index.less +0 -1
  116. package/lib/picker/index.css +1 -1
  117. package/lib/picker/index.less +0 -1
  118. package/lib/popup/index.css +1 -1
  119. package/lib/popup/index.less +0 -1
  120. package/lib/share-sheet/index.css +1 -1
  121. package/lib/share-sheet/index.less +0 -1
  122. package/lib/stepper/index.css +1 -1
  123. package/lib/stepper/index.less +0 -1
  124. package/lib/style/base.css +1 -1
  125. package/lib/style/base.less +6 -2
  126. package/lib/tag/Tag.js +1 -1
  127. package/lib/tag/index.css +1 -1
  128. package/lib/tag/index.less +0 -1
  129. package/lib/tree-select/TreeSelect.js +3 -2
  130. package/lib/vant.cjs.js +17 -25
  131. package/lib/vant.cjs.min.js +1 -1
  132. package/lib/vant.es.js +17 -25
  133. package/lib/vant.es.min.js +17 -25
  134. package/lib/vant.js +18 -25
  135. package/lib/vant.min.js +1 -1
  136. package/package.json +2 -2
  137. package/vetur/attributes.json +31 -31
  138. package/vetur/tags.json +11 -11
  139. package/vetur/web-types.json +89 -89
package/lib/vant.es.js CHANGED
@@ -237,13 +237,12 @@ var stdin_default$1D = {
237
237
  loading: "\u52A0\u8F7D\u4E2D...",
238
238
  noCoupon: "\u6682\u65E0\u4F18\u60E0\u5238",
239
239
  nameEmpty: "\u8BF7\u586B\u5199\u59D3\u540D",
240
+ addContact: "\u6DFB\u52A0\u8054\u7CFB\u4EBA",
240
241
  telInvalid: "\u8BF7\u586B\u5199\u6B63\u786E\u7684\u7535\u8BDD",
241
242
  vanCalendar: {
242
243
  end: "\u7ED3\u675F",
243
244
  start: "\u5F00\u59CB",
244
245
  title: "\u65E5\u671F\u9009\u62E9",
245
- confirm: "\u786E\u5B9A",
246
- startEnd: "\u5F00\u59CB/\u7ED3\u675F",
247
246
  weekdays: ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D"],
248
247
  monthTitle: (year, month) => `${year}\u5E74${month}\u6708`,
249
248
  rangePrompt: (maxRange) => `\u6700\u591A\u9009\u62E9 ${maxRange} \u5929`
@@ -251,12 +250,6 @@ var stdin_default$1D = {
251
250
  vanCascader: {
252
251
  select: "\u8BF7\u9009\u62E9"
253
252
  },
254
- vanContactCard: {
255
- addText: "\u6DFB\u52A0\u8054\u7CFB\u4EBA"
256
- },
257
- vanContactList: {
258
- addText: "\u65B0\u5EFA\u8054\u7CFB\u4EBA"
259
- },
260
253
  vanPagination: {
261
254
  prev: "\u4E0A\u4E00\u9875",
262
255
  next: "\u4E0B\u4E00\u9875"
@@ -269,7 +262,7 @@ var stdin_default$1D = {
269
262
  label: "\u5408\u8BA1\uFF1A"
270
263
  },
271
264
  vanCoupon: {
272
- unlimited: "\u65E0\u4F7F\u7528\u95E8\u69DB",
265
+ unlimited: "\u65E0\u95E8\u69DB",
273
266
  discount: (discount) => `${discount}\u6298`,
274
267
  condition: (condition) => `\u6EE1${condition}\u5143\u53EF\u7528`
275
268
  },
@@ -279,10 +272,10 @@ var stdin_default$1D = {
279
272
  },
280
273
  vanCouponList: {
281
274
  exchange: "\u5151\u6362",
282
- close: "\u4E0D\u4F7F\u7528\u4F18\u60E0\u5238",
275
+ close: "\u4E0D\u4F7F\u7528",
283
276
  enable: "\u53EF\u7528",
284
277
  disabled: "\u4E0D\u53EF\u7528",
285
- placeholder: "\u8BF7\u8F93\u5165\u4F18\u60E0\u7801"
278
+ placeholder: "\u8F93\u5165\u4F18\u60E0\u7801"
286
279
  },
287
280
  vanAddressEdit: {
288
281
  area: "\u5730\u533A",
@@ -290,12 +283,9 @@ var stdin_default$1D = {
290
283
  areaEmpty: "\u8BF7\u9009\u62E9\u5730\u533A",
291
284
  addressEmpty: "\u8BF7\u586B\u5199\u8BE6\u7EC6\u5730\u5740",
292
285
  postalEmpty: "\u90AE\u653F\u7F16\u7801\u4E0D\u6B63\u786E",
286
+ addressDetail: "\u8BE6\u7EC6\u5730\u5740",
293
287
  defaultAddress: "\u8BBE\u4E3A\u9ED8\u8BA4\u6536\u8D27\u5730\u5740"
294
288
  },
295
- vanAddressEditDetail: {
296
- label: "\u8BE6\u7EC6\u5730\u5740",
297
- placeholder: "\u8857\u9053\u95E8\u724C\u4FE1\u606F"
298
- },
299
289
  vanAddressList: {
300
290
  add: "\u65B0\u589E\u5730\u5740"
301
291
  }
@@ -3323,7 +3313,8 @@ var stdin_default$1j = defineComponent({
3323
3313
  }
3324
3314
  });
3325
3315
  const Switch = withInstall(stdin_default$1j);
3326
- const [name$1b, bem$17, t$i] = createNamespace("address-edit-detail");
3316
+ const [name$1b, bem$17] = createNamespace("address-edit-detail");
3317
+ const t$i = createNamespace("address-edit")[2];
3327
3318
  var stdin_default$1i = defineComponent({
3328
3319
  name: name$1b,
3329
3320
  props: {
@@ -3386,11 +3377,11 @@ var stdin_default$1i = defineComponent({
3386
3377
  "rows": props.rows,
3387
3378
  "type": "textarea",
3388
3379
  "rules": props.rules,
3389
- "label": t$i("label"),
3380
+ "label": t$i("addressDetail"),
3390
3381
  "border": !showSearchResult(),
3391
3382
  "maxlength": props.maxlength,
3392
3383
  "modelValue": props.value,
3393
- "placeholder": t$i("placeholder"),
3384
+ "placeholder": t$i("addressDetail"),
3394
3385
  "onBlur": onBlur,
3395
3386
  "onFocus": onFocus,
3396
3387
  "onUpdate:modelValue": onInput
@@ -3790,7 +3781,7 @@ var stdin_default$1f = defineComponent({
3790
3781
  }
3791
3782
  const CloseIcon = closeable && createVNode(Icon, {
3792
3783
  "name": "cross",
3793
- "class": bem$14("close"),
3784
+ "class": [bem$14("close"), HAPTICS_FEEDBACK],
3794
3785
  "onClick": onClose
3795
3786
  }, null);
3796
3787
  return createVNode("span", {
@@ -4452,7 +4443,7 @@ var stdin_default$19 = defineComponent({
4452
4443
  return t$f(dayType);
4453
4444
  }
4454
4445
  if (dayType === "start-end") {
4455
- return t$f("startEnd");
4446
+ return `${t$f("start")}/${t$f("end")}`;
4456
4447
  }
4457
4448
  }
4458
4449
  };
@@ -7265,7 +7256,7 @@ var stdin_default$Q = defineComponent({
7265
7256
  };
7266
7257
  const renderContent = () => {
7267
7258
  if (props.type === "add") {
7268
- return props.addText || t$d("addText");
7259
+ return props.addText || t$d("addContact");
7269
7260
  }
7270
7261
  return [createVNode("div", null, [`${t$d("name")}\uFF1A${props.name}`]), createVNode("div", null, [`${t$d("tel")}\uFF1A${props.tel}`])];
7271
7262
  };
@@ -7458,7 +7449,7 @@ var stdin_default$O = defineComponent({
7458
7449
  "block": true,
7459
7450
  "type": "danger",
7460
7451
  "class": bem$H("add"),
7461
- "text": props.addText || t$b("addText"),
7452
+ "text": props.addText || t$b("addContact"),
7462
7453
  "onClick": () => emit("add")
7463
7454
  }, null)])]);
7464
7455
  }
@@ -12941,15 +12932,16 @@ var stdin_default$6 = defineComponent({
12941
12932
  };
12942
12933
  const onSidebarChange = (index) => {
12943
12934
  emit("update:mainActiveIndex", index);
12944
- emit("click-nav", index);
12945
12935
  };
12936
+ const onClickSidebarItem = (index) => emit("click-nav", index);
12946
12937
  const renderSidebar = () => {
12947
12938
  const Items = props.items.map((item) => createVNode(SidebarItem, {
12948
12939
  "dot": item.dot,
12949
12940
  "title": item.text,
12950
12941
  "badge": item.badge,
12951
12942
  "class": [bem$1("nav-item"), item.className],
12952
- "disabled": item.disabled
12943
+ "disabled": item.disabled,
12944
+ "onClick": onClickSidebarItem
12953
12945
  }, null));
12954
12946
  return createVNode(Sidebar, {
12955
12947
  "class": bem$1("nav"),
@@ -14236,7 +14228,7 @@ const Lazyload = {
14236
14228
  });
14237
14229
  }
14238
14230
  };
14239
- const version = "3.4.2";
14231
+ const version = "3.4.3";
14240
14232
  function install(app) {
14241
14233
  const components = [
14242
14234
  ActionBar,
@@ -237,13 +237,12 @@ var stdin_default$1D = {
237
237
  loading: "\u52A0\u8F7D\u4E2D...",
238
238
  noCoupon: "\u6682\u65E0\u4F18\u60E0\u5238",
239
239
  nameEmpty: "\u8BF7\u586B\u5199\u59D3\u540D",
240
+ addContact: "\u6DFB\u52A0\u8054\u7CFB\u4EBA",
240
241
  telInvalid: "\u8BF7\u586B\u5199\u6B63\u786E\u7684\u7535\u8BDD",
241
242
  vanCalendar: {
242
243
  end: "\u7ED3\u675F",
243
244
  start: "\u5F00\u59CB",
244
245
  title: "\u65E5\u671F\u9009\u62E9",
245
- confirm: "\u786E\u5B9A",
246
- startEnd: "\u5F00\u59CB/\u7ED3\u675F",
247
246
  weekdays: ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D"],
248
247
  monthTitle: (year, month) => `${year}\u5E74${month}\u6708`,
249
248
  rangePrompt: (maxRange) => `\u6700\u591A\u9009\u62E9 ${maxRange} \u5929`
@@ -251,12 +250,6 @@ var stdin_default$1D = {
251
250
  vanCascader: {
252
251
  select: "\u8BF7\u9009\u62E9"
253
252
  },
254
- vanContactCard: {
255
- addText: "\u6DFB\u52A0\u8054\u7CFB\u4EBA"
256
- },
257
- vanContactList: {
258
- addText: "\u65B0\u5EFA\u8054\u7CFB\u4EBA"
259
- },
260
253
  vanPagination: {
261
254
  prev: "\u4E0A\u4E00\u9875",
262
255
  next: "\u4E0B\u4E00\u9875"
@@ -269,7 +262,7 @@ var stdin_default$1D = {
269
262
  label: "\u5408\u8BA1\uFF1A"
270
263
  },
271
264
  vanCoupon: {
272
- unlimited: "\u65E0\u4F7F\u7528\u95E8\u69DB",
265
+ unlimited: "\u65E0\u95E8\u69DB",
273
266
  discount: (discount) => `${discount}\u6298`,
274
267
  condition: (condition) => `\u6EE1${condition}\u5143\u53EF\u7528`
275
268
  },
@@ -279,10 +272,10 @@ var stdin_default$1D = {
279
272
  },
280
273
  vanCouponList: {
281
274
  exchange: "\u5151\u6362",
282
- close: "\u4E0D\u4F7F\u7528\u4F18\u60E0\u5238",
275
+ close: "\u4E0D\u4F7F\u7528",
283
276
  enable: "\u53EF\u7528",
284
277
  disabled: "\u4E0D\u53EF\u7528",
285
- placeholder: "\u8BF7\u8F93\u5165\u4F18\u60E0\u7801"
278
+ placeholder: "\u8F93\u5165\u4F18\u60E0\u7801"
286
279
  },
287
280
  vanAddressEdit: {
288
281
  area: "\u5730\u533A",
@@ -290,12 +283,9 @@ var stdin_default$1D = {
290
283
  areaEmpty: "\u8BF7\u9009\u62E9\u5730\u533A",
291
284
  addressEmpty: "\u8BF7\u586B\u5199\u8BE6\u7EC6\u5730\u5740",
292
285
  postalEmpty: "\u90AE\u653F\u7F16\u7801\u4E0D\u6B63\u786E",
286
+ addressDetail: "\u8BE6\u7EC6\u5730\u5740",
293
287
  defaultAddress: "\u8BBE\u4E3A\u9ED8\u8BA4\u6536\u8D27\u5730\u5740"
294
288
  },
295
- vanAddressEditDetail: {
296
- label: "\u8BE6\u7EC6\u5730\u5740",
297
- placeholder: "\u8857\u9053\u95E8\u724C\u4FE1\u606F"
298
- },
299
289
  vanAddressList: {
300
290
  add: "\u65B0\u589E\u5730\u5740"
301
291
  }
@@ -3323,7 +3313,8 @@ var stdin_default$1j = defineComponent({
3323
3313
  }
3324
3314
  });
3325
3315
  const Switch = withInstall(stdin_default$1j);
3326
- const [name$1b, bem$17, t$i] = createNamespace("address-edit-detail");
3316
+ const [name$1b, bem$17] = createNamespace("address-edit-detail");
3317
+ const t$i = createNamespace("address-edit")[2];
3327
3318
  var stdin_default$1i = defineComponent({
3328
3319
  name: name$1b,
3329
3320
  props: {
@@ -3386,11 +3377,11 @@ var stdin_default$1i = defineComponent({
3386
3377
  "rows": props.rows,
3387
3378
  "type": "textarea",
3388
3379
  "rules": props.rules,
3389
- "label": t$i("label"),
3380
+ "label": t$i("addressDetail"),
3390
3381
  "border": !showSearchResult(),
3391
3382
  "maxlength": props.maxlength,
3392
3383
  "modelValue": props.value,
3393
- "placeholder": t$i("placeholder"),
3384
+ "placeholder": t$i("addressDetail"),
3394
3385
  "onBlur": onBlur,
3395
3386
  "onFocus": onFocus,
3396
3387
  "onUpdate:modelValue": onInput
@@ -3790,7 +3781,7 @@ var stdin_default$1f = defineComponent({
3790
3781
  }
3791
3782
  const CloseIcon = closeable && createVNode(Icon, {
3792
3783
  "name": "cross",
3793
- "class": bem$14("close"),
3784
+ "class": [bem$14("close"), HAPTICS_FEEDBACK],
3794
3785
  "onClick": onClose
3795
3786
  }, null);
3796
3787
  return createVNode("span", {
@@ -4452,7 +4443,7 @@ var stdin_default$19 = defineComponent({
4452
4443
  return t$f(dayType);
4453
4444
  }
4454
4445
  if (dayType === "start-end") {
4455
- return t$f("startEnd");
4446
+ return `${t$f("start")}/${t$f("end")}`;
4456
4447
  }
4457
4448
  }
4458
4449
  };
@@ -7265,7 +7256,7 @@ var stdin_default$Q = defineComponent({
7265
7256
  };
7266
7257
  const renderContent = () => {
7267
7258
  if (props.type === "add") {
7268
- return props.addText || t$d("addText");
7259
+ return props.addText || t$d("addContact");
7269
7260
  }
7270
7261
  return [createVNode("div", null, [`${t$d("name")}\uFF1A${props.name}`]), createVNode("div", null, [`${t$d("tel")}\uFF1A${props.tel}`])];
7271
7262
  };
@@ -7458,7 +7449,7 @@ var stdin_default$O = defineComponent({
7458
7449
  "block": true,
7459
7450
  "type": "danger",
7460
7451
  "class": bem$H("add"),
7461
- "text": props.addText || t$b("addText"),
7452
+ "text": props.addText || t$b("addContact"),
7462
7453
  "onClick": () => emit("add")
7463
7454
  }, null)])]);
7464
7455
  }
@@ -12941,15 +12932,16 @@ var stdin_default$6 = defineComponent({
12941
12932
  };
12942
12933
  const onSidebarChange = (index) => {
12943
12934
  emit("update:mainActiveIndex", index);
12944
- emit("click-nav", index);
12945
12935
  };
12936
+ const onClickSidebarItem = (index) => emit("click-nav", index);
12946
12937
  const renderSidebar = () => {
12947
12938
  const Items = props.items.map((item) => createVNode(SidebarItem, {
12948
12939
  "dot": item.dot,
12949
12940
  "title": item.text,
12950
12941
  "badge": item.badge,
12951
12942
  "class": [bem$1("nav-item"), item.className],
12952
- "disabled": item.disabled
12943
+ "disabled": item.disabled,
12944
+ "onClick": onClickSidebarItem
12953
12945
  }, null));
12954
12946
  return createVNode(Sidebar, {
12955
12947
  "class": bem$1("nav"),
@@ -14236,7 +14228,7 @@ const Lazyload = {
14236
14228
  });
14237
14229
  }
14238
14230
  };
14239
- const version = "3.4.2";
14231
+ const version = "3.4.3";
14240
14232
  function install(app) {
14241
14233
  const components = [
14242
14234
  ActionBar,
package/lib/vant.js CHANGED
@@ -116,6 +116,7 @@
116
116
  if (vue.isVNode(child)) {
117
117
  result.push(child);
118
118
  if ((_a = child.component) == null ? void 0 : _a.subTree) {
119
+ result.push(child.component.subTree);
119
120
  traverse(child.component.subTree.children);
120
121
  }
121
122
  if (child.children) {
@@ -590,13 +591,12 @@
590
591
  loading: "\u52A0\u8F7D\u4E2D...",
591
592
  noCoupon: "\u6682\u65E0\u4F18\u60E0\u5238",
592
593
  nameEmpty: "\u8BF7\u586B\u5199\u59D3\u540D",
594
+ addContact: "\u6DFB\u52A0\u8054\u7CFB\u4EBA",
593
595
  telInvalid: "\u8BF7\u586B\u5199\u6B63\u786E\u7684\u7535\u8BDD",
594
596
  vanCalendar: {
595
597
  end: "\u7ED3\u675F",
596
598
  start: "\u5F00\u59CB",
597
599
  title: "\u65E5\u671F\u9009\u62E9",
598
- confirm: "\u786E\u5B9A",
599
- startEnd: "\u5F00\u59CB/\u7ED3\u675F",
600
600
  weekdays: ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D"],
601
601
  monthTitle: (year, month) => `${year}\u5E74${month}\u6708`,
602
602
  rangePrompt: (maxRange) => `\u6700\u591A\u9009\u62E9 ${maxRange} \u5929`
@@ -604,12 +604,6 @@
604
604
  vanCascader: {
605
605
  select: "\u8BF7\u9009\u62E9"
606
606
  },
607
- vanContactCard: {
608
- addText: "\u6DFB\u52A0\u8054\u7CFB\u4EBA"
609
- },
610
- vanContactList: {
611
- addText: "\u65B0\u5EFA\u8054\u7CFB\u4EBA"
612
- },
613
607
  vanPagination: {
614
608
  prev: "\u4E0A\u4E00\u9875",
615
609
  next: "\u4E0B\u4E00\u9875"
@@ -622,7 +616,7 @@
622
616
  label: "\u5408\u8BA1\uFF1A"
623
617
  },
624
618
  vanCoupon: {
625
- unlimited: "\u65E0\u4F7F\u7528\u95E8\u69DB",
619
+ unlimited: "\u65E0\u95E8\u69DB",
626
620
  discount: (discount) => `${discount}\u6298`,
627
621
  condition: (condition) => `\u6EE1${condition}\u5143\u53EF\u7528`
628
622
  },
@@ -632,10 +626,10 @@
632
626
  },
633
627
  vanCouponList: {
634
628
  exchange: "\u5151\u6362",
635
- close: "\u4E0D\u4F7F\u7528\u4F18\u60E0\u5238",
629
+ close: "\u4E0D\u4F7F\u7528",
636
630
  enable: "\u53EF\u7528",
637
631
  disabled: "\u4E0D\u53EF\u7528",
638
- placeholder: "\u8BF7\u8F93\u5165\u4F18\u60E0\u7801"
632
+ placeholder: "\u8F93\u5165\u4F18\u60E0\u7801"
639
633
  },
640
634
  vanAddressEdit: {
641
635
  area: "\u5730\u533A",
@@ -643,12 +637,9 @@
643
637
  areaEmpty: "\u8BF7\u9009\u62E9\u5730\u533A",
644
638
  addressEmpty: "\u8BF7\u586B\u5199\u8BE6\u7EC6\u5730\u5740",
645
639
  postalEmpty: "\u90AE\u653F\u7F16\u7801\u4E0D\u6B63\u786E",
640
+ addressDetail: "\u8BE6\u7EC6\u5730\u5740",
646
641
  defaultAddress: "\u8BBE\u4E3A\u9ED8\u8BA4\u6536\u8D27\u5730\u5740"
647
642
  },
648
- vanAddressEditDetail: {
649
- label: "\u8BE6\u7EC6\u5730\u5740",
650
- placeholder: "\u8857\u9053\u95E8\u724C\u4FE1\u606F"
651
- },
652
643
  vanAddressList: {
653
644
  add: "\u65B0\u589E\u5730\u5740"
654
645
  }
@@ -3676,7 +3667,8 @@
3676
3667
  }
3677
3668
  });
3678
3669
  const Switch = withInstall(stdin_default$1j);
3679
- const [name$1b, bem$17, t$i] = createNamespace("address-edit-detail");
3670
+ const [name$1b, bem$17] = createNamespace("address-edit-detail");
3671
+ const t$i = createNamespace("address-edit")[2];
3680
3672
  var stdin_default$1i = vue.defineComponent({
3681
3673
  name: name$1b,
3682
3674
  props: {
@@ -3739,11 +3731,11 @@
3739
3731
  "rows": props.rows,
3740
3732
  "type": "textarea",
3741
3733
  "rules": props.rules,
3742
- "label": t$i("label"),
3734
+ "label": t$i("addressDetail"),
3743
3735
  "border": !showSearchResult(),
3744
3736
  "maxlength": props.maxlength,
3745
3737
  "modelValue": props.value,
3746
- "placeholder": t$i("placeholder"),
3738
+ "placeholder": t$i("addressDetail"),
3747
3739
  "onBlur": onBlur,
3748
3740
  "onFocus": onFocus,
3749
3741
  "onUpdate:modelValue": onInput
@@ -4143,7 +4135,7 @@
4143
4135
  }
4144
4136
  const CloseIcon = closeable && vue.createVNode(Icon, {
4145
4137
  "name": "cross",
4146
- "class": bem$14("close"),
4138
+ "class": [bem$14("close"), HAPTICS_FEEDBACK],
4147
4139
  "onClick": onClose
4148
4140
  }, null);
4149
4141
  return vue.createVNode("span", {
@@ -4805,7 +4797,7 @@
4805
4797
  return t$f(dayType);
4806
4798
  }
4807
4799
  if (dayType === "start-end") {
4808
- return t$f("startEnd");
4800
+ return `${t$f("start")}/${t$f("end")}`;
4809
4801
  }
4810
4802
  }
4811
4803
  };
@@ -7618,7 +7610,7 @@
7618
7610
  };
7619
7611
  const renderContent = () => {
7620
7612
  if (props.type === "add") {
7621
- return props.addText || t$d("addText");
7613
+ return props.addText || t$d("addContact");
7622
7614
  }
7623
7615
  return [vue.createVNode("div", null, [`${t$d("name")}\uFF1A${props.name}`]), vue.createVNode("div", null, [`${t$d("tel")}\uFF1A${props.tel}`])];
7624
7616
  };
@@ -7811,7 +7803,7 @@
7811
7803
  "block": true,
7812
7804
  "type": "danger",
7813
7805
  "class": bem$H("add"),
7814
- "text": props.addText || t$b("addText"),
7806
+ "text": props.addText || t$b("addContact"),
7815
7807
  "onClick": () => emit("add")
7816
7808
  }, null)])]);
7817
7809
  }
@@ -14151,15 +14143,16 @@
14151
14143
  };
14152
14144
  const onSidebarChange = (index) => {
14153
14145
  emit("update:mainActiveIndex", index);
14154
- emit("click-nav", index);
14155
14146
  };
14147
+ const onClickSidebarItem = (index) => emit("click-nav", index);
14156
14148
  const renderSidebar = () => {
14157
14149
  const Items = props.items.map((item) => vue.createVNode(SidebarItem, {
14158
14150
  "dot": item.dot,
14159
14151
  "title": item.text,
14160
14152
  "badge": item.badge,
14161
14153
  "class": [bem$1("nav-item"), item.className],
14162
- "disabled": item.disabled
14154
+ "disabled": item.disabled,
14155
+ "onClick": onClickSidebarItem
14163
14156
  }, null));
14164
14157
  return vue.createVNode(Sidebar, {
14165
14158
  "class": bem$1("nav"),
@@ -15446,7 +15439,7 @@
15446
15439
  });
15447
15440
  }
15448
15441
  };
15449
- const version = "3.4.2";
15442
+ const version = "3.4.3";
15450
15443
  function install(app) {
15451
15444
  const components = [
15452
15445
  ActionBar,