vant 4.0.0-rc.5 → 4.0.0-rc.7

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 (120) hide show
  1. package/es/action-sheet/index.css +1 -1
  2. package/es/calendar/Calendar.mjs +10 -3
  3. package/es/calendar/CalendarHeader.d.ts +2 -0
  4. package/es/calendar/CalendarHeader.mjs +5 -1
  5. package/es/cell/Cell.d.ts +17 -0
  6. package/es/cell/Cell.mjs +11 -4
  7. package/es/cell/index.d.ts +9 -0
  8. package/es/collapse-item/CollapseItem.d.ts +13 -0
  9. package/es/collapse-item/index.d.ts +9 -0
  10. package/es/composables/use-sync-prop-ref.d.ts +2 -0
  11. package/es/composables/use-sync-prop-ref.mjs +18 -0
  12. package/es/coupon/index.css +1 -1
  13. package/es/coupon-list/index.css +1 -1
  14. package/es/date-picker/DatePicker.mjs +4 -1
  15. package/es/field/Field.d.ts +13 -0
  16. package/es/field/index.d.ts +9 -0
  17. package/es/image-preview/ImagePreview.d.ts +2 -1
  18. package/es/image-preview/ImagePreview.mjs +9 -4
  19. package/es/image-preview/ImagePreviewItem.d.ts +2 -1
  20. package/es/image-preview/ImagePreviewItem.mjs +22 -13
  21. package/es/image-preview/index.css +1 -1
  22. package/es/image-preview/index.d.ts +2 -1
  23. package/es/index.d.ts +1 -1
  24. package/es/index.mjs +1 -1
  25. package/es/lazyload/vue-lazyload/lazy-image.mjs +5 -5
  26. package/es/picker/Picker.mjs +4 -2
  27. package/es/picker/PickerColumn.mjs +5 -4
  28. package/es/popover/Popover.mjs +13 -8
  29. package/es/skeleton/Skeleton.d.ts +23 -23
  30. package/es/skeleton/Skeleton.mjs +28 -23
  31. package/es/skeleton/SkeletonAvatar.d.ts +26 -0
  32. package/es/skeleton/SkeletonAvatar.mjs +22 -0
  33. package/es/skeleton/SkeletonImage.d.ts +26 -0
  34. package/es/skeleton/SkeletonImage.mjs +26 -0
  35. package/es/skeleton/SkeletonParagraph.d.ts +27 -0
  36. package/es/skeleton/SkeletonParagraph.mjs +31 -0
  37. package/es/skeleton/SkeletonTitle.d.ts +16 -0
  38. package/es/skeleton/SkeletonTitle.mjs +26 -0
  39. package/es/skeleton/index.css +1 -1
  40. package/es/skeleton/index.d.ts +85 -18
  41. package/es/skeleton/index.mjs +22 -2
  42. package/es/skeleton/style/index.mjs +2 -0
  43. package/es/skeleton/types.d.ts +7 -3
  44. package/es/stepper/Stepper.d.ts +1 -1
  45. package/es/stepper/Stepper.mjs +1 -2
  46. package/es/stepper/index.d.ts +1 -1
  47. package/es/swipe/Swipe.mjs +1 -1
  48. package/es/time-picker/TimePicker.mjs +4 -1
  49. package/es/toast/Toast.d.ts +4 -1
  50. package/es/toast/Toast.mjs +2 -1
  51. package/es/toast/index.css +1 -1
  52. package/es/toast/index.d.ts +3 -1
  53. package/es/toast/types.d.ts +2 -0
  54. package/es/uploader/Uploader.mjs +4 -4
  55. package/es/utils/constant.d.ts +1 -0
  56. package/es/utils/constant.mjs +3 -1
  57. package/lib/action-sheet/index.css +1 -1
  58. package/lib/calendar/Calendar.js +10 -3
  59. package/lib/calendar/CalendarHeader.d.ts +2 -0
  60. package/lib/calendar/CalendarHeader.js +5 -1
  61. package/lib/cell/Cell.d.ts +17 -0
  62. package/lib/cell/Cell.js +10 -3
  63. package/lib/cell/index.d.ts +9 -0
  64. package/lib/collapse-item/CollapseItem.d.ts +13 -0
  65. package/lib/collapse-item/index.d.ts +9 -0
  66. package/lib/composables/use-sync-prop-ref.d.ts +2 -0
  67. package/lib/composables/use-sync-prop-ref.js +37 -0
  68. package/lib/coupon/index.css +1 -1
  69. package/lib/coupon-list/index.css +1 -1
  70. package/lib/date-picker/DatePicker.js +4 -1
  71. package/lib/field/Field.d.ts +13 -0
  72. package/lib/field/index.d.ts +9 -0
  73. package/lib/image-preview/ImagePreview.d.ts +2 -1
  74. package/lib/image-preview/ImagePreview.js +9 -4
  75. package/lib/image-preview/ImagePreviewItem.d.ts +2 -1
  76. package/lib/image-preview/ImagePreviewItem.js +21 -12
  77. package/lib/image-preview/index.css +1 -1
  78. package/lib/image-preview/index.d.ts +2 -1
  79. package/lib/index.css +1 -1
  80. package/lib/index.d.ts +1 -1
  81. package/lib/index.js +1 -1
  82. package/lib/lazyload/vue-lazyload/lazy-image.js +6 -6
  83. package/lib/picker/Picker.js +3 -1
  84. package/lib/picker/PickerColumn.js +5 -4
  85. package/lib/popover/Popover.js +13 -8
  86. package/lib/skeleton/Skeleton.d.ts +23 -23
  87. package/lib/skeleton/Skeleton.js +34 -23
  88. package/lib/skeleton/SkeletonAvatar.d.ts +26 -0
  89. package/lib/skeleton/SkeletonAvatar.js +41 -0
  90. package/lib/skeleton/SkeletonImage.d.ts +26 -0
  91. package/lib/skeleton/SkeletonImage.js +45 -0
  92. package/lib/skeleton/SkeletonParagraph.d.ts +27 -0
  93. package/lib/skeleton/SkeletonParagraph.js +50 -0
  94. package/lib/skeleton/SkeletonTitle.d.ts +16 -0
  95. package/lib/skeleton/SkeletonTitle.js +45 -0
  96. package/lib/skeleton/index.css +1 -1
  97. package/lib/skeleton/index.d.ts +85 -18
  98. package/lib/skeleton/index.js +22 -2
  99. package/lib/skeleton/style/index.js +2 -0
  100. package/lib/skeleton/types.d.ts +7 -3
  101. package/lib/stepper/Stepper.d.ts +1 -1
  102. package/lib/stepper/Stepper.js +1 -2
  103. package/lib/stepper/index.d.ts +1 -1
  104. package/lib/swipe/Swipe.js +1 -1
  105. package/lib/time-picker/TimePicker.js +4 -1
  106. package/lib/toast/Toast.d.ts +4 -1
  107. package/lib/toast/Toast.js +2 -1
  108. package/lib/toast/index.css +1 -1
  109. package/lib/toast/index.d.ts +3 -1
  110. package/lib/toast/types.d.ts +2 -0
  111. package/lib/uploader/Uploader.js +3 -3
  112. package/lib/utils/constant.d.ts +1 -0
  113. package/lib/utils/constant.js +3 -1
  114. package/lib/vant.cjs.js +936 -788
  115. package/lib/vant.es.js +936 -788
  116. package/lib/vant.js +930 -788
  117. package/lib/vant.min.js +1 -1
  118. package/lib/web-types.json +1 -12150
  119. package/package.json +1 -1
  120. package/changelog.generated.md +0 -71
package/lib/vant.cjs.js CHANGED
@@ -237,7 +237,7 @@ function deepAssign(to, from) {
237
237
  });
238
238
  return to;
239
239
  }
240
- var stdin_default$1F = {
240
+ var stdin_default$1J = {
241
241
  name: "\u59D3\u540D",
242
242
  tel: "\u7535\u8BDD",
243
243
  save: "\u4FDD\u5B58",
@@ -300,7 +300,7 @@ var stdin_default$1F = {
300
300
  };
301
301
  const lang = vue.ref("zh-CN");
302
302
  const messages = vue.reactive({
303
- "zh-CN": stdin_default$1F
303
+ "zh-CN": stdin_default$1J
304
304
  });
305
305
  const Locale = {
306
306
  messages() {
@@ -314,11 +314,11 @@ const Locale = {
314
314
  deepAssign(messages, newMessages);
315
315
  }
316
316
  };
317
- var stdin_default$1E = Locale;
317
+ var stdin_default$1I = Locale;
318
318
  function createTranslate(name2) {
319
319
  const prefix = camelize(name2) + ".";
320
320
  return (path, ...args) => {
321
- const messages2 = stdin_default$1E.messages();
321
+ const messages2 = stdin_default$1I.messages();
322
322
  const message = get(messages2, prefix + path) || get(messages2, path);
323
323
  return isFunction(message) ? message(...args) : message;
324
324
  };
@@ -368,6 +368,7 @@ const BORDER_TOP_BOTTOM = `${BORDER}--top-bottom`;
368
368
  const BORDER_UNSET_TOP_BOTTOM = `${BORDER}-unset--top-bottom`;
369
369
  const HAPTICS_FEEDBACK = "van-haptics-feedback";
370
370
  const FORM_KEY = Symbol("van-form");
371
+ const LONG_PRESS_START_TIME = 500;
371
372
  function callInterceptor(interceptor, {
372
373
  args = [],
373
374
  done,
@@ -438,20 +439,20 @@ function usePlaceholder(contentRef, bem2) {
438
439
  }
439
440
  }, [renderContent()]);
440
441
  }
441
- const [name$1w, bem$1r] = createNamespace("action-bar");
442
- const ACTION_BAR_KEY = Symbol(name$1w);
442
+ const [name$1A, bem$1v] = createNamespace("action-bar");
443
+ const ACTION_BAR_KEY = Symbol(name$1A);
443
444
  const actionBarProps = {
444
445
  placeholder: Boolean,
445
446
  safeAreaInsetBottom: truthProp
446
447
  };
447
- var stdin_default$1D = vue.defineComponent({
448
- name: name$1w,
448
+ var stdin_default$1H = vue.defineComponent({
449
+ name: name$1A,
449
450
  props: actionBarProps,
450
451
  setup(props, {
451
452
  slots
452
453
  }) {
453
454
  const root = vue.ref();
454
- const renderPlaceholder = usePlaceholder(root, bem$1r);
455
+ const renderPlaceholder = usePlaceholder(root, bem$1v);
455
456
  const {
456
457
  linkChildren
457
458
  } = use.useChildren(ACTION_BAR_KEY);
@@ -460,7 +461,7 @@ var stdin_default$1D = vue.defineComponent({
460
461
  var _a;
461
462
  return vue.createVNode("div", {
462
463
  "ref": root,
463
- "class": [bem$1r(), {
464
+ "class": [bem$1v(), {
464
465
  "van-safe-area-bottom": props.safeAreaInsetBottom
465
466
  }]
466
467
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
@@ -473,7 +474,7 @@ var stdin_default$1D = vue.defineComponent({
473
474
  };
474
475
  }
475
476
  });
476
- const ActionBar = withInstall(stdin_default$1D);
477
+ const ActionBar = withInstall(stdin_default$1H);
477
478
  function useExpose(apis) {
478
479
  const instance2 = vue.getCurrentInstance();
479
480
  if (instance2) {
@@ -501,7 +502,7 @@ function useRoute() {
501
502
  const vm = vue.getCurrentInstance().proxy;
502
503
  return () => route(vm);
503
504
  }
504
- const [name$1v, bem$1q] = createNamespace("badge");
505
+ const [name$1z, bem$1u] = createNamespace("badge");
505
506
  const badgeProps = {
506
507
  dot: Boolean,
507
508
  max: numericProp,
@@ -512,8 +513,8 @@ const badgeProps = {
512
513
  showZero: truthProp,
513
514
  position: makeStringProp("top-right")
514
515
  };
515
- var stdin_default$1C = vue.defineComponent({
516
- name: name$1v,
516
+ var stdin_default$1G = vue.defineComponent({
517
+ name: name$1z,
517
518
  props: badgeProps,
518
519
  setup(props, {
519
520
  slots
@@ -567,7 +568,7 @@ var stdin_default$1C = vue.defineComponent({
567
568
  const renderBadge = () => {
568
569
  if (hasContent() || props.dot) {
569
570
  return vue.createVNode("div", {
570
- "class": bem$1q([props.position, {
571
+ "class": bem$1u([props.position, {
571
572
  dot: props.dot,
572
573
  fixed: !!slots.default
573
574
  }]),
@@ -581,7 +582,7 @@ var stdin_default$1C = vue.defineComponent({
581
582
  tag
582
583
  } = props;
583
584
  return vue.createVNode(tag, {
584
- "class": bem$1q("wrapper")
585
+ "class": bem$1u("wrapper")
585
586
  }, {
586
587
  default: () => [slots.default(), renderBadge()]
587
588
  });
@@ -590,14 +591,14 @@ var stdin_default$1C = vue.defineComponent({
590
591
  };
591
592
  }
592
593
  });
593
- const Badge = withInstall(stdin_default$1C);
594
+ const Badge = withInstall(stdin_default$1G);
594
595
  let globalZIndex = 2e3;
595
596
  const useGlobalZIndex = () => ++globalZIndex;
596
597
  const setGlobalZIndex = (val) => {
597
598
  globalZIndex = val;
598
599
  };
599
- const [name$1u, bem$1p] = createNamespace("config-provider");
600
- const CONFIG_PROVIDER_KEY = Symbol(name$1u);
600
+ const [name$1y, bem$1t] = createNamespace("config-provider");
601
+ const CONFIG_PROVIDER_KEY = Symbol(name$1y);
601
602
  const configProviderProps = {
602
603
  tag: makeStringProp("div"),
603
604
  theme: makeStringProp("light"),
@@ -614,8 +615,8 @@ function mapThemeVarsToCSSVars(themeVars) {
614
615
  });
615
616
  return cssVars;
616
617
  }
617
- var stdin_default$1B = vue.defineComponent({
618
- name: name$1u,
618
+ var stdin_default$1F = vue.defineComponent({
619
+ name: name$1y,
619
620
  props: configProviderProps,
620
621
  setup(props, {
621
622
  slots
@@ -647,7 +648,7 @@ var stdin_default$1B = vue.defineComponent({
647
648
  }
648
649
  });
649
650
  return () => vue.createVNode(props.tag, {
650
- "class": bem$1p(),
651
+ "class": bem$1t(),
651
652
  "style": style.value
652
653
  }, {
653
654
  default: () => {
@@ -657,7 +658,7 @@ var stdin_default$1B = vue.defineComponent({
657
658
  });
658
659
  }
659
660
  });
660
- const [name$1t, bem$1o] = createNamespace("icon");
661
+ const [name$1x, bem$1s] = createNamespace("icon");
661
662
  const isImage = (name2) => name2 == null ? void 0 : name2.includes("/");
662
663
  const iconProps = {
663
664
  dot: Boolean,
@@ -669,14 +670,14 @@ const iconProps = {
669
670
  badgeProps: Object,
670
671
  classPrefix: String
671
672
  };
672
- var stdin_default$1A = vue.defineComponent({
673
- name: name$1t,
673
+ var stdin_default$1E = vue.defineComponent({
674
+ name: name$1x,
674
675
  props: iconProps,
675
676
  setup(props, {
676
677
  slots
677
678
  }) {
678
679
  const config = vue.inject(CONFIG_PROVIDER_KEY, null);
679
- const classPrefix = vue.computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1o());
680
+ const classPrefix = vue.computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1s());
680
681
  return () => {
681
682
  const {
682
683
  tag,
@@ -700,7 +701,7 @@ var stdin_default$1A = vue.defineComponent({
700
701
  default: () => {
701
702
  var _a;
702
703
  return [(_a = slots.default) == null ? void 0 : _a.call(slots), isImageIcon && vue.createVNode("img", {
703
- "class": bem$1o("image"),
704
+ "class": bem$1s("image"),
704
705
  "src": name2
705
706
  }, null)];
706
707
  }
@@ -708,13 +709,13 @@ var stdin_default$1A = vue.defineComponent({
708
709
  };
709
710
  }
710
711
  });
711
- const Icon = withInstall(stdin_default$1A);
712
- const [name$1s, bem$1n] = createNamespace("loading");
712
+ const Icon = withInstall(stdin_default$1E);
713
+ const [name$1w, bem$1r] = createNamespace("loading");
713
714
  const SpinIcon = Array(12).fill(null).map((_, index) => vue.createVNode("i", {
714
- "class": bem$1n("line", String(index + 1))
715
+ "class": bem$1r("line", String(index + 1))
715
716
  }, null));
716
717
  const CircularIcon = vue.createVNode("svg", {
717
- "class": bem$1n("circular"),
718
+ "class": bem$1r("circular"),
718
719
  "viewBox": "25 25 50 50"
719
720
  }, [vue.createVNode("circle", {
720
721
  "cx": "50",
@@ -730,8 +731,8 @@ const loadingProps = {
730
731
  textSize: numericProp,
731
732
  textColor: String
732
733
  };
733
- var stdin_default$1z = vue.defineComponent({
734
- name: name$1s,
734
+ var stdin_default$1D = vue.defineComponent({
735
+ name: name$1w,
735
736
  props: loadingProps,
736
737
  setup(props, {
737
738
  slots
@@ -742,7 +743,7 @@ var stdin_default$1z = vue.defineComponent({
742
743
  const renderIcon = () => {
743
744
  const DefaultIcon = props.type === "spinner" ? SpinIcon : CircularIcon;
744
745
  return vue.createVNode("span", {
745
- "class": bem$1n("spinner", props.type),
746
+ "class": bem$1r("spinner", props.type),
746
747
  "style": spinnerStyle.value
747
748
  }, [slots.icon ? slots.icon() : DefaultIcon]);
748
749
  };
@@ -750,7 +751,7 @@ var stdin_default$1z = vue.defineComponent({
750
751
  var _a;
751
752
  if (slots.default) {
752
753
  return vue.createVNode("span", {
753
- "class": bem$1n("text"),
754
+ "class": bem$1r("text"),
754
755
  "style": {
755
756
  fontSize: addUnit(props.textSize),
756
757
  color: (_a = props.textColor) != null ? _a : props.color
@@ -764,7 +765,7 @@ var stdin_default$1z = vue.defineComponent({
764
765
  vertical
765
766
  } = props;
766
767
  return vue.createVNode("div", {
767
- "class": bem$1n([type, {
768
+ "class": bem$1r([type, {
768
769
  vertical
769
770
  }]),
770
771
  "aria-live": "polite",
@@ -773,8 +774,8 @@ var stdin_default$1z = vue.defineComponent({
773
774
  };
774
775
  }
775
776
  });
776
- const Loading = withInstall(stdin_default$1z);
777
- const [name$1r, bem$1m] = createNamespace("button");
777
+ const Loading = withInstall(stdin_default$1D);
778
+ const [name$1v, bem$1q] = createNamespace("button");
778
779
  const buttonProps = extend({}, routeProps, {
779
780
  tag: makeStringProp("button"),
780
781
  text: String,
@@ -796,8 +797,8 @@ const buttonProps = extend({}, routeProps, {
796
797
  loadingType: String,
797
798
  iconPosition: makeStringProp("left")
798
799
  });
799
- var stdin_default$1y = vue.defineComponent({
800
- name: name$1r,
800
+ var stdin_default$1C = vue.defineComponent({
801
+ name: name$1v,
801
802
  props: buttonProps,
802
803
  emits: ["click"],
803
804
  setup(props, {
@@ -812,7 +813,7 @@ var stdin_default$1y = vue.defineComponent({
812
813
  return vue.createVNode(Loading, {
813
814
  "size": props.loadingSize,
814
815
  "type": props.loadingType,
815
- "class": bem$1m("loading")
816
+ "class": bem$1q("loading")
816
817
  }, null);
817
818
  };
818
819
  const renderIcon = () => {
@@ -821,13 +822,13 @@ var stdin_default$1y = vue.defineComponent({
821
822
  }
822
823
  if (slots.icon) {
823
824
  return vue.createVNode("div", {
824
- "class": bem$1m("icon")
825
+ "class": bem$1q("icon")
825
826
  }, [slots.icon()]);
826
827
  }
827
828
  if (props.icon) {
828
829
  return vue.createVNode(Icon, {
829
830
  "name": props.icon,
830
- "class": bem$1m("icon"),
831
+ "class": bem$1q("icon"),
831
832
  "classPrefix": props.iconPrefix
832
833
  }, null);
833
834
  }
@@ -841,7 +842,7 @@ var stdin_default$1y = vue.defineComponent({
841
842
  }
842
843
  if (text) {
843
844
  return vue.createVNode("span", {
844
- "class": bem$1m("text")
845
+ "class": bem$1q("text")
845
846
  }, [text]);
846
847
  }
847
848
  };
@@ -888,7 +889,7 @@ var stdin_default$1y = vue.defineComponent({
888
889
  nativeType,
889
890
  iconPosition
890
891
  } = props;
891
- const classes = [bem$1m([type, size, {
892
+ const classes = [bem$1q([type, size, {
892
893
  plain,
893
894
  block,
894
895
  round,
@@ -907,14 +908,14 @@ var stdin_default$1y = vue.defineComponent({
907
908
  "onClick": onClick
908
909
  }, {
909
910
  default: () => [vue.createVNode("div", {
910
- "class": bem$1m("content")
911
+ "class": bem$1q("content")
911
912
  }, [iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon()])]
912
913
  });
913
914
  };
914
915
  }
915
916
  });
916
- const Button = withInstall(stdin_default$1y);
917
- const [name$1q, bem$1l] = createNamespace("action-bar-button");
917
+ const Button = withInstall(stdin_default$1C);
918
+ const [name$1u, bem$1p] = createNamespace("action-bar-button");
918
919
  const actionBarButtonProps = extend({}, routeProps, {
919
920
  type: String,
920
921
  text: String,
@@ -923,8 +924,8 @@ const actionBarButtonProps = extend({}, routeProps, {
923
924
  loading: Boolean,
924
925
  disabled: Boolean
925
926
  });
926
- var stdin_default$1x = vue.defineComponent({
927
- name: name$1q,
927
+ var stdin_default$1B = vue.defineComponent({
928
+ name: name$1u,
928
929
  props: actionBarButtonProps,
929
930
  setup(props, {
930
931
  slots
@@ -959,7 +960,7 @@ var stdin_default$1x = vue.defineComponent({
959
960
  disabled
960
961
  } = props;
961
962
  return vue.createVNode(Button, {
962
- "class": bem$1l([type, {
963
+ "class": bem$1p([type, {
963
964
  last: isLast.value,
964
965
  first: isFirst.value
965
966
  }]),
@@ -976,8 +977,8 @@ var stdin_default$1x = vue.defineComponent({
976
977
  };
977
978
  }
978
979
  });
979
- const ActionBarButton = withInstall(stdin_default$1x);
980
- const [name$1p, bem$1k] = createNamespace("action-bar-icon");
980
+ const ActionBarButton = withInstall(stdin_default$1B);
981
+ const [name$1t, bem$1o] = createNamespace("action-bar-icon");
981
982
  const actionBarIconProps = extend({}, routeProps, {
982
983
  dot: Boolean,
983
984
  text: String,
@@ -988,8 +989,8 @@ const actionBarIconProps = extend({}, routeProps, {
988
989
  badgeProps: Object,
989
990
  iconPrefix: String
990
991
  });
991
- var stdin_default$1w = vue.defineComponent({
992
- name: name$1p,
992
+ var stdin_default$1A = vue.defineComponent({
993
+ name: name$1t,
993
994
  props: actionBarIconProps,
994
995
  setup(props, {
995
996
  slots
@@ -1009,7 +1010,7 @@ var stdin_default$1w = vue.defineComponent({
1009
1010
  if (slots.icon) {
1010
1011
  return vue.createVNode(Badge, vue.mergeProps({
1011
1012
  "dot": dot,
1012
- "class": bem$1k("icon"),
1013
+ "class": bem$1o("icon"),
1013
1014
  "content": badge
1014
1015
  }, badgeProps2), {
1015
1016
  default: slots.icon
@@ -1021,20 +1022,20 @@ var stdin_default$1w = vue.defineComponent({
1021
1022
  "name": icon,
1022
1023
  "badge": badge,
1023
1024
  "color": color,
1024
- "class": [bem$1k("icon"), iconClass],
1025
+ "class": [bem$1o("icon"), iconClass],
1025
1026
  "badgeProps": badgeProps2,
1026
1027
  "classPrefix": iconPrefix
1027
1028
  }, null);
1028
1029
  };
1029
1030
  return () => vue.createVNode("div", {
1030
1031
  "role": "button",
1031
- "class": bem$1k(),
1032
+ "class": bem$1o(),
1032
1033
  "tabindex": 0,
1033
1034
  "onClick": route2
1034
1035
  }, [renderIcon(), slots.default ? slots.default() : props.text]);
1035
1036
  }
1036
1037
  });
1037
- const ActionBarIcon = withInstall(stdin_default$1w);
1038
+ const ActionBarIcon = withInstall(stdin_default$1A);
1038
1039
  const popupSharedProps = {
1039
1040
  show: Boolean,
1040
1041
  zIndex: numericProp,
@@ -1173,7 +1174,7 @@ function useLazyRender(show) {
1173
1174
  );
1174
1175
  return (render) => () => inited.value ? render() : null;
1175
1176
  }
1176
- const [name$1o, bem$1j] = createNamespace("overlay");
1177
+ const [name$1s, bem$1n] = createNamespace("overlay");
1177
1178
  const overlayProps = {
1178
1179
  show: Boolean,
1179
1180
  zIndex: numericProp,
@@ -1183,8 +1184,8 @@ const overlayProps = {
1183
1184
  lazyRender: truthProp,
1184
1185
  customStyle: Object
1185
1186
  };
1186
- var stdin_default$1v = vue.defineComponent({
1187
- name: name$1o,
1187
+ var stdin_default$1z = vue.defineComponent({
1188
+ name: name$1s,
1188
1189
  props: overlayProps,
1189
1190
  setup(props, {
1190
1191
  slots
@@ -1205,7 +1206,7 @@ var stdin_default$1v = vue.defineComponent({
1205
1206
  return vue.withDirectives(vue.createVNode("div", {
1206
1207
  "ref": root,
1207
1208
  "style": style,
1208
- "class": [bem$1j(), props.className]
1209
+ "class": [bem$1n(), props.className]
1209
1210
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), [[vue.vShow, props.show]]);
1210
1211
  });
1211
1212
  use.useEventListener("touchmove", onTouchMove, {
@@ -1219,7 +1220,7 @@ var stdin_default$1v = vue.defineComponent({
1219
1220
  });
1220
1221
  }
1221
1222
  });
1222
- const Overlay = withInstall(stdin_default$1v);
1223
+ const Overlay = withInstall(stdin_default$1z);
1223
1224
  const popupProps$2 = extend({}, popupSharedProps, {
1224
1225
  round: Boolean,
1225
1226
  position: makeStringProp("center"),
@@ -1232,9 +1233,9 @@ const popupProps$2 = extend({}, popupSharedProps, {
1232
1233
  safeAreaInsetTop: Boolean,
1233
1234
  safeAreaInsetBottom: Boolean
1234
1235
  });
1235
- const [name$1n, bem$1i] = createNamespace("popup");
1236
- var stdin_default$1u = vue.defineComponent({
1237
- name: name$1n,
1236
+ const [name$1r, bem$1m] = createNamespace("popup");
1237
+ var stdin_default$1y = vue.defineComponent({
1238
+ name: name$1r,
1238
1239
  inheritAttrs: false,
1239
1240
  props: popupProps$2,
1240
1241
  emits: ["open", "close", "opened", "closed", "keydown", "update:show", "clickOverlay", "clickCloseIcon"],
@@ -1308,7 +1309,7 @@ var stdin_default$1u = vue.defineComponent({
1308
1309
  "role": "button",
1309
1310
  "tabindex": 0,
1310
1311
  "name": props.closeIcon,
1311
- "class": [bem$1i("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
1312
+ "class": [bem$1m("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
1312
1313
  "classPrefix": props.iconPrefix,
1313
1314
  "onClick": onClickCloseIcon
1314
1315
  }, null);
@@ -1330,7 +1331,7 @@ var stdin_default$1u = vue.defineComponent({
1330
1331
  "style": style.value,
1331
1332
  "role": "dialog",
1332
1333
  "tabindex": 0,
1333
- "class": [bem$1i({
1334
+ "class": [bem$1m({
1334
1335
  round,
1335
1336
  [position]: position
1336
1337
  }), {
@@ -1411,8 +1412,8 @@ var stdin_default$1u = vue.defineComponent({
1411
1412
  };
1412
1413
  }
1413
1414
  });
1414
- const Popup = withInstall(stdin_default$1u);
1415
- const [name$1m, bem$1h] = createNamespace("action-sheet");
1415
+ const Popup = withInstall(stdin_default$1y);
1416
+ const [name$1q, bem$1l] = createNamespace("action-sheet");
1416
1417
  const actionSheetProps = extend({}, popupSharedProps, {
1417
1418
  title: String,
1418
1419
  round: truthProp,
@@ -1426,8 +1427,8 @@ const actionSheetProps = extend({}, popupSharedProps, {
1426
1427
  safeAreaInsetBottom: truthProp
1427
1428
  });
1428
1429
  const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
1429
- var stdin_default$1t = vue.defineComponent({
1430
- name: name$1m,
1430
+ var stdin_default$1x = vue.defineComponent({
1431
+ name: name$1q,
1431
1432
  props: actionSheetProps,
1432
1433
  emits: ["select", "cancel", "update:show"],
1433
1434
  setup(props, {
@@ -1442,10 +1443,10 @@ var stdin_default$1t = vue.defineComponent({
1442
1443
  const renderHeader = () => {
1443
1444
  if (props.title) {
1444
1445
  return vue.createVNode("div", {
1445
- "class": bem$1h("header")
1446
+ "class": bem$1l("header")
1446
1447
  }, [props.title, props.closeable && vue.createVNode(Icon, {
1447
1448
  "name": props.closeIcon,
1448
- "class": [bem$1h("close"), HAPTICS_FEEDBACK],
1449
+ "class": [bem$1l("close"), HAPTICS_FEEDBACK],
1449
1450
  "onClick": onCancel
1450
1451
  }, null)]);
1451
1452
  }
@@ -1453,10 +1454,10 @@ var stdin_default$1t = vue.defineComponent({
1453
1454
  const renderCancel = () => {
1454
1455
  if (slots.cancel || props.cancelText) {
1455
1456
  return [vue.createVNode("div", {
1456
- "class": bem$1h("gap")
1457
+ "class": bem$1l("gap")
1457
1458
  }, null), vue.createVNode("button", {
1458
1459
  "type": "button",
1459
- "class": bem$1h("cancel"),
1460
+ "class": bem$1l("cancel"),
1460
1461
  "onClick": onCancel
1461
1462
  }, [slots.cancel ? slots.cancel() : props.cancelText])];
1462
1463
  }
@@ -1464,7 +1465,7 @@ var stdin_default$1t = vue.defineComponent({
1464
1465
  const renderActionContent = (action, index) => {
1465
1466
  if (action.loading) {
1466
1467
  return vue.createVNode(Loading, {
1467
- "class": bem$1h("loading-icon")
1468
+ "class": bem$1l("loading-icon")
1468
1469
  }, null);
1469
1470
  }
1470
1471
  if (slots.action) {
@@ -1474,9 +1475,9 @@ var stdin_default$1t = vue.defineComponent({
1474
1475
  });
1475
1476
  }
1476
1477
  return [vue.createVNode("span", {
1477
- "class": bem$1h("name")
1478
+ "class": bem$1l("name")
1478
1479
  }, [action.name]), action.subname && vue.createVNode("div", {
1479
- "class": bem$1h("subname")
1480
+ "class": bem$1l("subname")
1480
1481
  }, [action.subname])];
1481
1482
  };
1482
1483
  const renderAction = (action, index) => {
@@ -1504,7 +1505,7 @@ var stdin_default$1t = vue.defineComponent({
1504
1505
  "style": {
1505
1506
  color
1506
1507
  },
1507
- "class": [bem$1h("item", {
1508
+ "class": [bem$1l("item", {
1508
1509
  loading,
1509
1510
  disabled
1510
1511
  }), className],
@@ -1515,26 +1516,26 @@ var stdin_default$1t = vue.defineComponent({
1515
1516
  if (props.description || slots.description) {
1516
1517
  const content = slots.description ? slots.description() : props.description;
1517
1518
  return vue.createVNode("div", {
1518
- "class": bem$1h("description")
1519
+ "class": bem$1l("description")
1519
1520
  }, [content]);
1520
1521
  }
1521
1522
  };
1522
1523
  return () => vue.createVNode(Popup, vue.mergeProps({
1523
- "class": bem$1h(),
1524
+ "class": bem$1l(),
1524
1525
  "position": "bottom",
1525
1526
  "onUpdate:show": updateShow
1526
1527
  }, pick(props, popupInheritKeys$2)), {
1527
1528
  default: () => {
1528
1529
  var _a;
1529
1530
  return [renderHeader(), renderDescription(), vue.createVNode("div", {
1530
- "class": bem$1h("content")
1531
+ "class": bem$1l("content")
1531
1532
  }, [props.actions.map(renderAction), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderCancel()];
1532
1533
  }
1533
1534
  });
1534
1535
  }
1535
1536
  });
1536
- const ActionSheet = withInstall(stdin_default$1t);
1537
- const [name$1l, bem$1g, t$j] = createNamespace("picker");
1537
+ const ActionSheet = withInstall(stdin_default$1x);
1538
+ const [name$1p, bem$1k, t$j] = createNamespace("picker");
1538
1539
  const getFirstEnabledOption = (options) => options.find((option) => !option.disabled) || options[0];
1539
1540
  function getColumnsType(columns, fields) {
1540
1541
  const firstColumn = columns[0];
@@ -1603,10 +1604,10 @@ function assignDefaultFields(fields) {
1603
1604
  const DEFAULT_DURATION = 200;
1604
1605
  const MOMENTUM_TIME = 300;
1605
1606
  const MOMENTUM_DISTANCE = 15;
1606
- const [name$1k, bem$1f] = createNamespace("picker-column");
1607
- const PICKER_KEY = Symbol(name$1k);
1608
- var stdin_default$1s = vue.defineComponent({
1609
- name: name$1k,
1607
+ const [name$1o, bem$1j] = createNamespace("picker-column");
1608
+ const PICKER_KEY = Symbol(name$1o);
1609
+ var stdin_default$1w = vue.defineComponent({
1610
+ name: name$1o,
1610
1611
  props: {
1611
1612
  value: numericProp,
1612
1613
  fields: makeRequiredProp(Object),
@@ -1650,8 +1651,9 @@ var stdin_default$1s = vue.defineComponent({
1650
1651
  }
1651
1652
  currentOffset.value = offset;
1652
1653
  };
1654
+ const isReadonly = () => props.readonly || !props.options.length;
1653
1655
  const onClickOption = (index) => {
1654
- if (moving || props.readonly) {
1656
+ if (moving || isReadonly()) {
1655
1657
  return;
1656
1658
  }
1657
1659
  transitionEndTrigger = null;
@@ -1676,7 +1678,7 @@ var stdin_default$1s = vue.defineComponent({
1676
1678
  }
1677
1679
  };
1678
1680
  const onTouchStart = (event) => {
1679
- if (props.readonly) {
1681
+ if (isReadonly()) {
1680
1682
  return;
1681
1683
  }
1682
1684
  touch.start(event);
@@ -1691,7 +1693,7 @@ var stdin_default$1s = vue.defineComponent({
1691
1693
  transitionEndTrigger = null;
1692
1694
  };
1693
1695
  const onTouchMove = (event) => {
1694
- if (props.readonly) {
1696
+ if (isReadonly()) {
1695
1697
  return;
1696
1698
  }
1697
1699
  touch.move(event);
@@ -1707,7 +1709,7 @@ var stdin_default$1s = vue.defineComponent({
1707
1709
  }
1708
1710
  };
1709
1711
  const onTouchEnd = () => {
1710
- if (props.readonly) {
1712
+ if (isReadonly()) {
1711
1713
  return;
1712
1714
  }
1713
1715
  const distance = currentOffset.value - momentumOffset;
@@ -1738,7 +1740,7 @@ var stdin_default$1s = vue.defineComponent({
1738
1740
  role: "button",
1739
1741
  style: optionStyle,
1740
1742
  tabindex: disabled ? -1 : 0,
1741
- class: [bem$1f("item", {
1743
+ class: [bem$1j("item", {
1742
1744
  disabled,
1743
1745
  selected: value === props.value
1744
1746
  }), option.className],
@@ -1766,7 +1768,7 @@ var stdin_default$1s = vue.defineComponent({
1766
1768
  });
1767
1769
  return () => vue.createVNode("div", {
1768
1770
  "ref": root,
1769
- "class": bem$1f(),
1771
+ "class": bem$1j(),
1770
1772
  "onTouchstartPassive": onTouchStart,
1771
1773
  "onTouchend": onTouchEnd,
1772
1774
  "onTouchcancel": onTouchEnd
@@ -1777,12 +1779,12 @@ var stdin_default$1s = vue.defineComponent({
1777
1779
  transitionDuration: `${currentDuration.value}ms`,
1778
1780
  transitionProperty: currentDuration.value ? "all" : "none"
1779
1781
  },
1780
- "class": bem$1f("wrapper"),
1782
+ "class": bem$1j("wrapper"),
1781
1783
  "onTransitionend": stopMomentum
1782
1784
  }, [renderOptions()])]);
1783
1785
  }
1784
1786
  });
1785
- const [name$1j] = createNamespace("picker-toolbar");
1787
+ const [name$1n] = createNamespace("picker-toolbar");
1786
1788
  const pickerToolbarProps = {
1787
1789
  title: String,
1788
1790
  cancelButtonText: String,
@@ -1790,8 +1792,8 @@ const pickerToolbarProps = {
1790
1792
  };
1791
1793
  const pickerToolbarSlots = ["cancel", "confirm", "title", "toolbar"];
1792
1794
  const pickerToolbarPropKeys = Object.keys(pickerToolbarProps);
1793
- var stdin_default$1r = vue.defineComponent({
1794
- name: name$1j,
1795
+ var stdin_default$1v = vue.defineComponent({
1796
+ name: name$1n,
1795
1797
  props: pickerToolbarProps,
1796
1798
  emits: ["confirm", "cancel"],
1797
1799
  setup(props, {
@@ -1804,7 +1806,7 @@ var stdin_default$1r = vue.defineComponent({
1804
1806
  }
1805
1807
  if (props.title) {
1806
1808
  return vue.createVNode("div", {
1807
- "class": [bem$1g("title"), "van-ellipsis"]
1809
+ "class": [bem$1k("title"), "van-ellipsis"]
1808
1810
  }, [props.title]);
1809
1811
  }
1810
1812
  };
@@ -1814,7 +1816,7 @@ var stdin_default$1r = vue.defineComponent({
1814
1816
  const text = props.cancelButtonText || t$j("cancel");
1815
1817
  return vue.createVNode("button", {
1816
1818
  "type": "button",
1817
- "class": [bem$1g("cancel"), HAPTICS_FEEDBACK],
1819
+ "class": [bem$1k("cancel"), HAPTICS_FEEDBACK],
1818
1820
  "onClick": onCancel
1819
1821
  }, [slots.cancel ? slots.cancel() : text]);
1820
1822
  };
@@ -1822,12 +1824,12 @@ var stdin_default$1r = vue.defineComponent({
1822
1824
  const text = props.confirmButtonText || t$j("confirm");
1823
1825
  return vue.createVNode("button", {
1824
1826
  "type": "button",
1825
- "class": [bem$1g("confirm"), HAPTICS_FEEDBACK],
1827
+ "class": [bem$1k("confirm"), HAPTICS_FEEDBACK],
1826
1828
  "onClick": onConfirm
1827
1829
  }, [slots.confirm ? slots.confirm() : text]);
1828
1830
  };
1829
1831
  return () => vue.createVNode("div", {
1830
- "class": bem$1g("toolbar")
1832
+ "class": bem$1k("toolbar")
1831
1833
  }, [slots.toolbar ? slots.toolbar() : [renderCancel(), renderTitle(), renderConfirm()]]);
1832
1834
  }
1833
1835
  });
@@ -1911,7 +1913,7 @@ function useVisibilityChange(target, onChange) {
1911
1913
  vue.onBeforeUnmount(unobserve);
1912
1914
  use.onMountedOrActivated(observe);
1913
1915
  }
1914
- const [name$1i, bem$1e] = createNamespace("sticky");
1916
+ const [name$1m, bem$1i] = createNamespace("sticky");
1915
1917
  const stickyProps = {
1916
1918
  zIndex: numericProp,
1917
1919
  position: makeStringProp("top"),
@@ -1919,8 +1921,8 @@ const stickyProps = {
1919
1921
  offsetTop: makeNumericProp(0),
1920
1922
  offsetBottom: makeNumericProp(0)
1921
1923
  };
1922
- var stdin_default$1q = vue.defineComponent({
1923
- name: name$1i,
1924
+ var stdin_default$1u = vue.defineComponent({
1925
+ name: name$1m,
1924
1926
  props: stickyProps,
1925
1927
  emits: ["scroll", "change"],
1926
1928
  setup(props, {
@@ -2015,7 +2017,7 @@ var stdin_default$1q = vue.defineComponent({
2015
2017
  "ref": root,
2016
2018
  "style": rootStyle.value
2017
2019
  }, [vue.createVNode("div", {
2018
- "class": bem$1e({
2020
+ "class": bem$1i({
2019
2021
  fixed: state.fixed
2020
2022
  }),
2021
2023
  "style": stickyStyle.value
@@ -2023,10 +2025,10 @@ var stdin_default$1q = vue.defineComponent({
2023
2025
  };
2024
2026
  }
2025
2027
  });
2026
- const Sticky = withInstall(stdin_default$1q);
2027
- const [name$1h, bem$1d] = createNamespace("tab");
2028
- var stdin_default$1p = vue.defineComponent({
2029
- name: name$1h,
2028
+ const Sticky = withInstall(stdin_default$1u);
2029
+ const [name$1l, bem$1h] = createNamespace("tab");
2030
+ var stdin_default$1t = vue.defineComponent({
2031
+ name: name$1l,
2030
2032
  props: {
2031
2033
  id: String,
2032
2034
  dot: Boolean,
@@ -2075,7 +2077,7 @@ var stdin_default$1p = vue.defineComponent({
2075
2077
  });
2076
2078
  const renderText = () => {
2077
2079
  const Text2 = vue.createVNode("span", {
2078
- "class": bem$1d("text", {
2080
+ "class": bem$1h("text", {
2079
2081
  ellipsis: !props.scrollable
2080
2082
  })
2081
2083
  }, [slots.title ? slots.title() : props.title]);
@@ -2093,7 +2095,7 @@ var stdin_default$1p = vue.defineComponent({
2093
2095
  return () => vue.createVNode("div", {
2094
2096
  "id": props.id,
2095
2097
  "role": "tab",
2096
- "class": [bem$1d([props.type, {
2098
+ "class": [bem$1h([props.type, {
2097
2099
  grow: props.scrollable && !props.shrink,
2098
2100
  shrink: props.shrink,
2099
2101
  active: props.isActive,
@@ -2107,7 +2109,7 @@ var stdin_default$1p = vue.defineComponent({
2107
2109
  }, [renderText()]);
2108
2110
  }
2109
2111
  });
2110
- const [name$1g, bem$1c] = createNamespace("swipe");
2112
+ const [name$1k, bem$1g] = createNamespace("swipe");
2111
2113
  const swipeProps = {
2112
2114
  loop: truthProp,
2113
2115
  width: numericProp,
@@ -2122,9 +2124,9 @@ const swipeProps = {
2122
2124
  showIndicators: truthProp,
2123
2125
  stopPropagation: truthProp
2124
2126
  };
2125
- const SWIPE_KEY = Symbol(name$1g);
2126
- var stdin_default$1o = vue.defineComponent({
2127
- name: name$1g,
2127
+ const SWIPE_KEY = Symbol(name$1k);
2128
+ var stdin_default$1s = vue.defineComponent({
2129
+ name: name$1k,
2128
2130
  props: swipeProps,
2129
2131
  emits: ["change"],
2130
2132
  setup(props, {
@@ -2156,7 +2158,7 @@ var stdin_default$1o = vue.defineComponent({
2156
2158
  }
2157
2159
  return 0;
2158
2160
  });
2159
- const maxCount = vue.computed(() => Math.ceil(Math.abs(minOffset.value) / size.value));
2161
+ const maxCount = vue.computed(() => size.value ? Math.ceil(Math.abs(minOffset.value) / size.value) : count.value);
2160
2162
  const trackSize = vue.computed(() => count.value * size.value);
2161
2163
  const activeIndicator = vue.computed(() => (state.active + count.value) % count.value);
2162
2164
  const isCorrectDirection = vue.computed(() => {
@@ -2386,7 +2388,7 @@ var stdin_default$1o = vue.defineComponent({
2386
2388
  } : void 0;
2387
2389
  return vue.createVNode("i", {
2388
2390
  "style": style,
2389
- "class": bem$1c("indicator", {
2391
+ "class": bem$1g("indicator", {
2390
2392
  active
2391
2393
  })
2392
2394
  }, null);
@@ -2400,7 +2402,7 @@ var stdin_default$1o = vue.defineComponent({
2400
2402
  }
2401
2403
  if (props.showIndicators && count.value > 1) {
2402
2404
  return vue.createVNode("div", {
2403
- "class": bem$1c("indicators", {
2405
+ "class": bem$1g("indicators", {
2404
2406
  vertical: props.vertical
2405
2407
  })
2406
2408
  }, [Array(count.value).fill("").map(renderDot)]);
@@ -2442,11 +2444,11 @@ var stdin_default$1o = vue.defineComponent({
2442
2444
  var _a;
2443
2445
  return vue.createVNode("div", {
2444
2446
  "ref": root,
2445
- "class": bem$1c()
2447
+ "class": bem$1g()
2446
2448
  }, [vue.createVNode("div", {
2447
2449
  "ref": track,
2448
2450
  "style": trackStyle.value,
2449
- "class": bem$1c("track", {
2451
+ "class": bem$1g("track", {
2450
2452
  vertical: props.vertical
2451
2453
  }),
2452
2454
  "onTouchstartPassive": onTouchStart,
@@ -2456,10 +2458,10 @@ var stdin_default$1o = vue.defineComponent({
2456
2458
  };
2457
2459
  }
2458
2460
  });
2459
- const Swipe = withInstall(stdin_default$1o);
2460
- const [name$1f, bem$1b] = createNamespace("tabs");
2461
- var stdin_default$1n = vue.defineComponent({
2462
- name: name$1f,
2461
+ const Swipe = withInstall(stdin_default$1s);
2462
+ const [name$1j, bem$1f] = createNamespace("tabs");
2463
+ var stdin_default$1r = vue.defineComponent({
2464
+ name: name$1j,
2463
2465
  props: {
2464
2466
  count: makeRequiredProp(Number),
2465
2467
  inited: Boolean,
@@ -2483,7 +2485,7 @@ var stdin_default$1n = vue.defineComponent({
2483
2485
  return vue.createVNode(Swipe, {
2484
2486
  "ref": swipeRef,
2485
2487
  "loop": false,
2486
- "class": bem$1b("track"),
2488
+ "class": bem$1f("track"),
2487
2489
  "duration": +props.duration * 1e3,
2488
2490
  "touchable": props.swipeable,
2489
2491
  "lazyRender": props.lazyRender,
@@ -2511,13 +2513,13 @@ var stdin_default$1n = vue.defineComponent({
2511
2513
  swipeRef
2512
2514
  });
2513
2515
  return () => vue.createVNode("div", {
2514
- "class": bem$1b("content", {
2516
+ "class": bem$1f("content", {
2515
2517
  animated: props.animated || props.swipeable
2516
2518
  })
2517
2519
  }, [renderChildren()]);
2518
2520
  }
2519
2521
  });
2520
- const [name$1e, bem$1a] = createNamespace("tabs");
2522
+ const [name$1i, bem$1e] = createNamespace("tabs");
2521
2523
  const tabsProps = {
2522
2524
  type: makeStringProp("line"),
2523
2525
  color: String,
@@ -2540,9 +2542,9 @@ const tabsProps = {
2540
2542
  titleActiveColor: String,
2541
2543
  titleInactiveColor: String
2542
2544
  };
2543
- const TABS_KEY = Symbol(name$1e);
2544
- var stdin_default$1m = vue.defineComponent({
2545
- name: name$1e,
2545
+ const TABS_KEY = Symbol(name$1i);
2546
+ var stdin_default$1q = vue.defineComponent({
2547
+ name: name$1i,
2546
2548
  props: tabsProps,
2547
2549
  emits: ["change", "scroll", "rendered", "clickTab", "update:active"],
2548
2550
  setup(props, {
@@ -2731,7 +2733,7 @@ var stdin_default$1m = vue.defineComponent({
2731
2733
  setCurrentIndex(index);
2732
2734
  }
2733
2735
  };
2734
- const renderNav = () => children.map((item, index) => vue.createVNode(stdin_default$1p, vue.mergeProps({
2736
+ const renderNav = () => children.map((item, index) => vue.createVNode(stdin_default$1t, vue.mergeProps({
2735
2737
  "key": item.id,
2736
2738
  "id": `${id}-${index}`,
2737
2739
  "ref": setTitleRefs(index),
@@ -2752,7 +2754,7 @@ var stdin_default$1m = vue.defineComponent({
2752
2754
  const renderLine = () => {
2753
2755
  if (props.type === "line" && children.length) {
2754
2756
  return vue.createVNode("div", {
2755
- "class": bem$1a("line"),
2757
+ "class": bem$1e("line"),
2756
2758
  "style": state.lineStyle
2757
2759
  }, null);
2758
2760
  }
@@ -2766,13 +2768,13 @@ var stdin_default$1m = vue.defineComponent({
2766
2768
  } = props;
2767
2769
  const Header = [vue.createVNode("div", {
2768
2770
  "ref": sticky ? void 0 : wrapRef,
2769
- "class": [bem$1a("wrap"), {
2771
+ "class": [bem$1e("wrap"), {
2770
2772
  [BORDER_TOP_BOTTOM]: type === "line" && border
2771
2773
  }]
2772
2774
  }, [vue.createVNode("div", {
2773
2775
  "ref": navRef,
2774
2776
  "role": "tablist",
2775
- "class": bem$1a("nav", [type, {
2777
+ "class": bem$1e("nav", [type, {
2776
2778
  shrink: props.shrink,
2777
2779
  complete: scrollable.value
2778
2780
  }]),
@@ -2840,14 +2842,14 @@ var stdin_default$1m = vue.defineComponent({
2840
2842
  });
2841
2843
  return () => vue.createVNode("div", {
2842
2844
  "ref": root,
2843
- "class": bem$1a([props.type])
2845
+ "class": bem$1e([props.type])
2844
2846
  }, [props.sticky ? vue.createVNode(Sticky, {
2845
2847
  "container": root.value,
2846
2848
  "offsetTop": offsetTopPx.value,
2847
2849
  "onScroll": onStickyScroll
2848
2850
  }, {
2849
2851
  default: () => [renderHeader()]
2850
- }) : renderHeader(), vue.createVNode(stdin_default$1n, {
2852
+ }) : renderHeader(), vue.createVNode(stdin_default$1r, {
2851
2853
  "ref": contentRef,
2852
2854
  "count": children.length,
2853
2855
  "inited": state.inited,
@@ -2867,9 +2869,9 @@ var stdin_default$1m = vue.defineComponent({
2867
2869
  });
2868
2870
  const TAB_STATUS_KEY = Symbol();
2869
2871
  const useTabStatus = () => vue.inject(TAB_STATUS_KEY, null);
2870
- const [name$1d, bem$19] = createNamespace("swipe-item");
2871
- var stdin_default$1l = vue.defineComponent({
2872
- name: name$1d,
2872
+ const [name$1h, bem$1d] = createNamespace("swipe-item");
2873
+ var stdin_default$1p = vue.defineComponent({
2874
+ name: name$1h,
2873
2875
  setup(props, {
2874
2876
  slots
2875
2877
  }) {
@@ -2934,14 +2936,14 @@ var stdin_default$1l = vue.defineComponent({
2934
2936
  return () => {
2935
2937
  var _a;
2936
2938
  return vue.createVNode("div", {
2937
- "class": bem$19(),
2939
+ "class": bem$1d(),
2938
2940
  "style": style.value
2939
2941
  }, [shouldRender.value ? (_a = slots.default) == null ? void 0 : _a.call(slots) : null]);
2940
2942
  };
2941
2943
  }
2942
2944
  });
2943
- const SwipeItem = withInstall(stdin_default$1l);
2944
- const [name$1c, bem$18] = createNamespace("tab");
2945
+ const SwipeItem = withInstall(stdin_default$1p);
2946
+ const [name$1g, bem$1c] = createNamespace("tab");
2945
2947
  const tabProps = extend({}, routeProps, {
2946
2948
  dot: Boolean,
2947
2949
  name: numericProp,
@@ -2952,8 +2954,8 @@ const tabProps = extend({}, routeProps, {
2952
2954
  titleStyle: [String, Object],
2953
2955
  showZeroBadge: truthProp
2954
2956
  });
2955
- var stdin_default$1k = vue.defineComponent({
2956
- name: name$1c,
2957
+ var stdin_default$1o = vue.defineComponent({
2958
+ name: name$1g,
2957
2959
  props: tabProps,
2958
2960
  setup(props, {
2959
2961
  slots
@@ -3021,7 +3023,7 @@ var stdin_default$1k = vue.defineComponent({
3021
3023
  return vue.createVNode(SwipeItem, {
3022
3024
  "id": id,
3023
3025
  "role": "tabpanel",
3024
- "class": bem$18("panel-wrapper", {
3026
+ "class": bem$1c("panel-wrapper", {
3025
3027
  inactive: hasInactiveClass.value
3026
3028
  }),
3027
3029
  "tabindex": active.value ? 0 : -1,
@@ -3031,7 +3033,7 @@ var stdin_default$1k = vue.defineComponent({
3031
3033
  default: () => {
3032
3034
  var _a2;
3033
3035
  return [vue.createVNode("div", {
3034
- "class": bem$18("panel")
3036
+ "class": bem$1c("panel")
3035
3037
  }, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)])];
3036
3038
  }
3037
3039
  });
@@ -3044,22 +3046,22 @@ var stdin_default$1k = vue.defineComponent({
3044
3046
  return vue.withDirectives(vue.createVNode("div", {
3045
3047
  "id": id,
3046
3048
  "role": "tabpanel",
3047
- "class": bem$18("panel"),
3049
+ "class": bem$1c("panel"),
3048
3050
  "tabindex": show ? 0 : -1,
3049
3051
  "aria-labelledby": label
3050
3052
  }, [Content]), [[vue.vShow, show]]);
3051
3053
  };
3052
3054
  }
3053
3055
  });
3054
- const Tab = withInstall(stdin_default$1k);
3055
- const Tabs = withInstall(stdin_default$1m);
3056
- const [name$1b, bem$17] = createNamespace("picker-group");
3057
- const PICKER_GROUP_KEY = Symbol(name$1b);
3056
+ const Tab = withInstall(stdin_default$1o);
3057
+ const Tabs = withInstall(stdin_default$1q);
3058
+ const [name$1f, bem$1b] = createNamespace("picker-group");
3059
+ const PICKER_GROUP_KEY = Symbol(name$1f);
3058
3060
  const pickerGroupProps = extend({
3059
3061
  tabs: makeArrayProp()
3060
3062
  }, pickerToolbarProps);
3061
- var stdin_default$1j = vue.defineComponent({
3062
- name: name$1b,
3063
+ var stdin_default$1n = vue.defineComponent({
3064
+ name: name$1f,
3063
3065
  props: pickerGroupProps,
3064
3066
  emits: ["confirm", "cancel"],
3065
3067
  setup(props, {
@@ -3079,18 +3081,18 @@ var stdin_default$1j = vue.defineComponent({
3079
3081
  var _a;
3080
3082
  const childNodes = (_a = slots.default) == null ? void 0 : _a.call(slots);
3081
3083
  return vue.createVNode("div", {
3082
- "class": bem$17()
3083
- }, [vue.createVNode(stdin_default$1r, vue.mergeProps(props, {
3084
+ "class": bem$1b()
3085
+ }, [vue.createVNode(stdin_default$1v, vue.mergeProps(props, {
3084
3086
  "onConfirm": onConfirm,
3085
3087
  "onCancel": onCancel
3086
3088
  }), null), vue.createVNode(Tabs, {
3087
3089
  "shrink": true,
3088
- "class": bem$17("tabs"),
3090
+ "class": bem$1b("tabs"),
3089
3091
  "animated": true
3090
3092
  }, {
3091
3093
  default: () => [props.tabs.map((title, index) => vue.createVNode(Tab, {
3092
3094
  "title": title,
3093
- "titleClass": bem$17("tab-title")
3095
+ "titleClass": bem$1b("tab-title")
3094
3096
  }, {
3095
3097
  default: () => [childNodes == null ? void 0 : childNodes[index]]
3096
3098
  }))]
@@ -3113,8 +3115,8 @@ const pickerProps = extend({}, pickerSharedProps, {
3113
3115
  toolbarPosition: makeStringProp("top"),
3114
3116
  columnsFieldNames: Object
3115
3117
  });
3116
- var stdin_default$1i = vue.defineComponent({
3117
- name: name$1l,
3118
+ var stdin_default$1m = vue.defineComponent({
3119
+ name: name$1p,
3118
3120
  props: pickerProps,
3119
3121
  emits: ["confirm", "cancel", "change", "clickOption", "update:modelValue"],
3120
3122
  setup(props, {
@@ -3181,11 +3183,13 @@ var stdin_default$1i = vue.defineComponent({
3181
3183
  const confirm = () => {
3182
3184
  children.forEach((child) => child.stopMomentum());
3183
3185
  const params = getEventParams();
3184
- emit("confirm", params);
3186
+ vue.nextTick(() => {
3187
+ emit("confirm", params);
3188
+ });
3185
3189
  return params;
3186
3190
  };
3187
3191
  const cancel = () => emit("cancel", getEventParams());
3188
- const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$1s, {
3192
+ const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$1w, {
3189
3193
  "value": selectedValues.value[columnIndex],
3190
3194
  "fields": fields.value,
3191
3195
  "options": options,
@@ -3208,10 +3212,10 @@ var stdin_default$1i = vue.defineComponent({
3208
3212
  backgroundSize: `100% ${(wrapHeight - optionHeight.value) / 2}px`
3209
3213
  };
3210
3214
  return [vue.createVNode("div", {
3211
- "class": bem$1g("mask"),
3215
+ "class": bem$1k("mask"),
3212
3216
  "style": maskStyle
3213
3217
  }, null), vue.createVNode("div", {
3214
- "class": [BORDER_UNSET_TOP_BOTTOM, bem$1g("frame")],
3218
+ "class": [BORDER_UNSET_TOP_BOTTOM, bem$1k("frame")],
3215
3219
  "style": frameStyle
3216
3220
  }, null)];
3217
3221
  }
@@ -3223,13 +3227,13 @@ var stdin_default$1i = vue.defineComponent({
3223
3227
  };
3224
3228
  return vue.createVNode("div", {
3225
3229
  "ref": columnsRef,
3226
- "class": bem$1g("columns"),
3230
+ "class": bem$1k("columns"),
3227
3231
  "style": columnsStyle
3228
3232
  }, [renderColumnItems(), renderMask(wrapHeight)]);
3229
3233
  };
3230
3234
  const renderToolbar = () => {
3231
3235
  if (props.showToolbar && !parent) {
3232
- return vue.createVNode(stdin_default$1r, vue.mergeProps(pick(props, pickerToolbarPropKeys), {
3236
+ return vue.createVNode(stdin_default$1v, vue.mergeProps(pick(props, pickerToolbarPropKeys), {
3233
3237
  "onConfirm": confirm,
3234
3238
  "onCancel": cancel
3235
3239
  }), pick(slots, pickerToolbarSlots));
@@ -3271,9 +3275,9 @@ var stdin_default$1i = vue.defineComponent({
3271
3275
  return () => {
3272
3276
  var _a, _b;
3273
3277
  return vue.createVNode("div", {
3274
- "class": bem$1g()
3278
+ "class": bem$1k()
3275
3279
  }, [props.toolbarPosition === "top" ? renderToolbar() : null, props.loading ? vue.createVNode(Loading, {
3276
- "class": bem$1g("loading")
3280
+ "class": bem$1k("loading")
3277
3281
  }, null) : null, (_a = slots["columns-top"]) == null ? void 0 : _a.call(slots), renderColumns(), (_b = slots["columns-bottom"]) == null ? void 0 : _b.call(slots), props.toolbarPosition === "bottom" ? renderToolbar() : null]);
3278
3282
  };
3279
3283
  }
@@ -3364,8 +3368,8 @@ function formatDataForCascade({
3364
3368
  }
3365
3369
  return options;
3366
3370
  }
3367
- const Picker = withInstall(stdin_default$1i);
3368
- const [name$1a, bem$16] = createNamespace("area");
3371
+ const Picker = withInstall(stdin_default$1m);
3372
+ const [name$1e, bem$1a] = createNamespace("area");
3369
3373
  const areaProps = extend({}, pickerSharedProps, {
3370
3374
  modelValue: String,
3371
3375
  columnsNum: makeNumericProp(3),
@@ -3375,8 +3379,8 @@ const areaProps = extend({}, pickerSharedProps, {
3375
3379
  default: () => ({})
3376
3380
  }
3377
3381
  });
3378
- var stdin_default$1h = vue.defineComponent({
3379
- name: name$1a,
3382
+ var stdin_default$1l = vue.defineComponent({
3383
+ name: name$1e,
3380
3384
  props: areaProps,
3381
3385
  emits: ["change", "confirm", "cancel", "update:modelValue"],
3382
3386
  setup(props, {
@@ -3423,7 +3427,7 @@ var stdin_default$1h = vue.defineComponent({
3423
3427
  "ref": picker,
3424
3428
  "modelValue": codes.value,
3425
3429
  "onUpdate:modelValue": ($event) => codes.value = $event,
3426
- "class": bem$16(),
3430
+ "class": bem$1a(),
3427
3431
  "columns": columns.value,
3428
3432
  "onChange": onChange,
3429
3433
  "onCancel": onCancel,
@@ -3431,9 +3435,10 @@ var stdin_default$1h = vue.defineComponent({
3431
3435
  }, pick(props, INHERIT_PROPS)), pick(slots, INHERIT_SLOTS));
3432
3436
  }
3433
3437
  });
3434
- const Area = withInstall(stdin_default$1h);
3435
- const [name$19, bem$15] = createNamespace("cell");
3438
+ const Area = withInstall(stdin_default$1l);
3439
+ const [name$1d, bem$19] = createNamespace("cell");
3436
3440
  const cellSharedProps = {
3441
+ tag: makeStringProp("div"),
3437
3442
  icon: String,
3438
3443
  size: String,
3439
3444
  title: numericProp,
@@ -3455,8 +3460,8 @@ const cellSharedProps = {
3455
3460
  }
3456
3461
  };
3457
3462
  const cellProps = extend({}, cellSharedProps, routeProps);
3458
- var stdin_default$1g = vue.defineComponent({
3459
- name: name$19,
3463
+ var stdin_default$1k = vue.defineComponent({
3464
+ name: name$1d,
3460
3465
  props: cellProps,
3461
3466
  setup(props, {
3462
3467
  slots
@@ -3466,14 +3471,14 @@ var stdin_default$1g = vue.defineComponent({
3466
3471
  const showLabel = slots.label || isDef(props.label);
3467
3472
  if (showLabel) {
3468
3473
  return vue.createVNode("div", {
3469
- "class": [bem$15("label"), props.labelClass]
3474
+ "class": [bem$19("label"), props.labelClass]
3470
3475
  }, [slots.label ? slots.label() : props.label]);
3471
3476
  }
3472
3477
  };
3473
3478
  const renderTitle = () => {
3474
3479
  if (slots.title || isDef(props.title)) {
3475
3480
  return vue.createVNode("div", {
3476
- "class": [bem$15("title"), props.titleClass],
3481
+ "class": [bem$19("title"), props.titleClass],
3477
3482
  "style": props.titleStyle
3478
3483
  }, [slots.title ? slots.title() : vue.createVNode("span", null, [props.title]), renderLabel()]);
3479
3484
  }
@@ -3483,7 +3488,7 @@ var stdin_default$1g = vue.defineComponent({
3483
3488
  const hasValue = slot || isDef(props.value);
3484
3489
  if (hasValue) {
3485
3490
  return vue.createVNode("div", {
3486
- "class": [bem$15("value"), props.valueClass]
3491
+ "class": [bem$19("value"), props.valueClass]
3487
3492
  }, [slot ? slot() : vue.createVNode("span", null, [props.value])]);
3488
3493
  }
3489
3494
  };
@@ -3494,7 +3499,7 @@ var stdin_default$1g = vue.defineComponent({
3494
3499
  if (props.icon) {
3495
3500
  return vue.createVNode(Icon, {
3496
3501
  "name": props.icon,
3497
- "class": bem$15("left-icon"),
3502
+ "class": bem$19("left-icon"),
3498
3503
  "classPrefix": props.iconPrefix
3499
3504
  }, null);
3500
3505
  }
@@ -3507,13 +3512,14 @@ var stdin_default$1g = vue.defineComponent({
3507
3512
  const name2 = props.arrowDirection ? `arrow-${props.arrowDirection}` : "arrow";
3508
3513
  return vue.createVNode(Icon, {
3509
3514
  "name": name2,
3510
- "class": bem$15("right-icon")
3515
+ "class": bem$19("right-icon")
3511
3516
  }, null);
3512
3517
  }
3513
3518
  };
3514
3519
  return () => {
3515
- var _a, _b;
3520
+ var _a;
3516
3521
  const {
3522
+ tag,
3517
3523
  size,
3518
3524
  center,
3519
3525
  border,
@@ -3530,17 +3536,22 @@ var stdin_default$1g = vue.defineComponent({
3530
3536
  if (size) {
3531
3537
  classes[size] = !!size;
3532
3538
  }
3533
- return vue.createVNode("div", {
3534
- "class": bem$15(classes),
3539
+ return vue.createVNode(tag, {
3540
+ "class": bem$19(classes),
3535
3541
  "role": clickable ? "button" : void 0,
3536
3542
  "tabindex": clickable ? 0 : void 0,
3537
3543
  "onClick": route2
3538
- }, [renderLeftIcon(), renderTitle(), renderValue(), renderRightIcon(), (_b = slots.extra) == null ? void 0 : _b.call(slots)]);
3544
+ }, {
3545
+ default: () => {
3546
+ var _a2;
3547
+ return [renderLeftIcon(), renderTitle(), renderValue(), renderRightIcon(), (_a2 = slots.extra) == null ? void 0 : _a2.call(slots)];
3548
+ }
3549
+ });
3539
3550
  };
3540
3551
  }
3541
3552
  });
3542
- const Cell = withInstall(stdin_default$1g);
3543
- const [name$18, bem$14] = createNamespace("form");
3553
+ const Cell = withInstall(stdin_default$1k);
3554
+ const [name$1c, bem$18] = createNamespace("form");
3544
3555
  const formProps = {
3545
3556
  colon: Boolean,
3546
3557
  disabled: Boolean,
@@ -3559,8 +3570,8 @@ const formProps = {
3559
3570
  default: "onBlur"
3560
3571
  }
3561
3572
  };
3562
- var stdin_default$1f = vue.defineComponent({
3563
- name: name$18,
3573
+ var stdin_default$1j = vue.defineComponent({
3574
+ name: name$1c,
3564
3575
  props: formProps,
3565
3576
  emits: ["submit", "failed"],
3566
3577
  setup(props, {
@@ -3684,13 +3695,13 @@ var stdin_default$1f = vue.defineComponent({
3684
3695
  return () => {
3685
3696
  var _a;
3686
3697
  return vue.createVNode("form", {
3687
- "class": bem$14(),
3698
+ "class": bem$18(),
3688
3699
  "onSubmit": onSubmit
3689
3700
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
3690
3701
  };
3691
3702
  }
3692
3703
  });
3693
- const Form = withInstall(stdin_default$1f);
3704
+ const Form = withInstall(stdin_default$1j);
3694
3705
  function isEmptyValue(value) {
3695
3706
  if (Array.isArray(value)) {
3696
3707
  return !value.length;
@@ -3779,7 +3790,7 @@ function getStringLength(str) {
3779
3790
  function cutString(str, maxlength) {
3780
3791
  return [...str].slice(0, maxlength).join("");
3781
3792
  }
3782
- const [name$17, bem$13] = createNamespace("field");
3793
+ const [name$1b, bem$17] = createNamespace("field");
3783
3794
  const fieldSharedProps = {
3784
3795
  id: String,
3785
3796
  name: String,
@@ -3826,8 +3837,8 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
3826
3837
  default: null
3827
3838
  }
3828
3839
  });
3829
- var stdin_default$1e = vue.defineComponent({
3830
- name: name$17,
3840
+ var stdin_default$1i = vue.defineComponent({
3841
+ name: name$1b,
3831
3842
  props: fieldProps,
3832
3843
  emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
3833
3844
  setup(props, {
@@ -4056,7 +4067,7 @@ var stdin_default$1e = vue.defineComponent({
4056
4067
  const getInputId = () => props.id || `${id}-input`;
4057
4068
  const getValidationStatus = () => state.status;
4058
4069
  const renderInput = () => {
4059
- const controlClass = bem$13("control", [getProp("inputAlign"), {
4070
+ const controlClass = bem$17("control", [getProp("inputAlign"), {
4060
4071
  error: showError.value,
4061
4072
  custom: !!slots.input,
4062
4073
  "min-height": props.type === "textarea" && !props.autosize
@@ -4098,7 +4109,7 @@ var stdin_default$1e = vue.defineComponent({
4098
4109
  const leftIconSlot = slots["left-icon"];
4099
4110
  if (props.leftIcon || leftIconSlot) {
4100
4111
  return vue.createVNode("div", {
4101
- "class": bem$13("left-icon"),
4112
+ "class": bem$17("left-icon"),
4102
4113
  "onClick": onClickLeftIcon
4103
4114
  }, [leftIconSlot ? leftIconSlot() : vue.createVNode(Icon, {
4104
4115
  "name": props.leftIcon,
@@ -4110,7 +4121,7 @@ var stdin_default$1e = vue.defineComponent({
4110
4121
  const rightIconSlot = slots["right-icon"];
4111
4122
  if (props.rightIcon || rightIconSlot) {
4112
4123
  return vue.createVNode("div", {
4113
- "class": bem$13("right-icon"),
4124
+ "class": bem$17("right-icon"),
4114
4125
  "onClick": onClickRightIcon
4115
4126
  }, [rightIconSlot ? rightIconSlot() : vue.createVNode(Icon, {
4116
4127
  "name": props.rightIcon,
@@ -4122,9 +4133,9 @@ var stdin_default$1e = vue.defineComponent({
4122
4133
  if (props.showWordLimit && props.maxlength) {
4123
4134
  const count = getStringLength(getModelValue());
4124
4135
  return vue.createVNode("div", {
4125
- "class": bem$13("word-limit")
4136
+ "class": bem$17("word-limit")
4126
4137
  }, [vue.createVNode("span", {
4127
- "class": bem$13("word-num")
4138
+ "class": bem$17("word-num")
4128
4139
  }, [count]), vue.createTextVNode("/"), props.maxlength]);
4129
4140
  }
4130
4141
  };
@@ -4137,7 +4148,7 @@ var stdin_default$1e = vue.defineComponent({
4137
4148
  const slot = slots["error-message"];
4138
4149
  const errorMessageAlign = getProp("errorMessageAlign");
4139
4150
  return vue.createVNode("div", {
4140
- "class": bem$13("error-message", errorMessageAlign)
4151
+ "class": bem$17("error-message", errorMessageAlign)
4141
4152
  }, [slot ? slot({
4142
4153
  message
4143
4154
  }) : message]);
@@ -4156,13 +4167,13 @@ var stdin_default$1e = vue.defineComponent({
4156
4167
  }
4157
4168
  };
4158
4169
  const renderFieldBody = () => [vue.createVNode("div", {
4159
- "class": bem$13("body")
4170
+ "class": bem$17("body")
4160
4171
  }, [renderInput(), showClear.value && vue.createVNode(Icon, {
4161
4172
  "ref": clearIconRef,
4162
4173
  "name": props.clearIcon,
4163
- "class": bem$13("clear")
4174
+ "class": bem$17("clear")
4164
4175
  }, null), renderRightIcon(), slots.button && vue.createVNode("div", {
4165
- "class": bem$13("button")
4176
+ "class": bem$17("button")
4166
4177
  }, [slots.button()])]), renderWordLimit(), renderMessage()];
4167
4178
  useExpose({
4168
4179
  blur,
@@ -4201,7 +4212,7 @@ var stdin_default$1e = vue.defineComponent({
4201
4212
  const renderTitle = () => labelAlign === "top" ? [LeftIcon, Label] : Label;
4202
4213
  return vue.createVNode(Cell, {
4203
4214
  "size": props.size,
4204
- "class": bem$13({
4215
+ "class": bem$17({
4205
4216
  error: showError.value,
4206
4217
  disabled,
4207
4218
  [`label-${labelAlign}`]: labelAlign
@@ -4211,8 +4222,8 @@ var stdin_default$1e = vue.defineComponent({
4211
4222
  "isLink": props.isLink,
4212
4223
  "clickable": props.clickable,
4213
4224
  "titleStyle": labelStyle.value,
4214
- "valueClass": bem$13("value"),
4215
- "titleClass": [bem$13("label", [labelAlign, {
4225
+ "valueClass": bem$17("value"),
4226
+ "titleClass": [bem$17("label", [labelAlign, {
4216
4227
  required: props.required
4217
4228
  }]), props.labelClass],
4218
4229
  "arrowDirection": props.arrowDirection
@@ -4225,7 +4236,7 @@ var stdin_default$1e = vue.defineComponent({
4225
4236
  };
4226
4237
  }
4227
4238
  });
4228
- const Field = withInstall(stdin_default$1e);
4239
+ const Field = withInstall(stdin_default$1i);
4229
4240
  let lockCount = 0;
4230
4241
  function lockClick(lock) {
4231
4242
  if (lock) {
@@ -4240,7 +4251,7 @@ function lockClick(lock) {
4240
4251
  }
4241
4252
  }
4242
4253
  }
4243
- const [name$16, bem$12] = createNamespace("toast");
4254
+ const [name$1a, bem$16] = createNamespace("toast");
4244
4255
  const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
4245
4256
  const toastProps = {
4246
4257
  icon: String,
@@ -4252,6 +4263,7 @@ const toastProps = {
4252
4263
  duration: makeNumberProp(2e3),
4253
4264
  position: makeStringProp("middle"),
4254
4265
  teleport: [String, Object],
4266
+ wordBreak: String,
4255
4267
  className: unknownProp,
4256
4268
  iconPrefix: String,
4257
4269
  transition: makeStringProp("van-fade"),
@@ -4262,8 +4274,8 @@ const toastProps = {
4262
4274
  closeOnClick: Boolean,
4263
4275
  closeOnClickOverlay: Boolean
4264
4276
  };
4265
- var stdin_default$1d = vue.defineComponent({
4266
- name: name$16,
4277
+ var stdin_default$1h = vue.defineComponent({
4278
+ name: name$1a,
4267
4279
  props: toastProps,
4268
4280
  emits: ["update:show"],
4269
4281
  setup(props, {
@@ -4299,13 +4311,13 @@ var stdin_default$1d = vue.defineComponent({
4299
4311
  return vue.createVNode(Icon, {
4300
4312
  "name": icon || type,
4301
4313
  "size": iconSize,
4302
- "class": bem$12("icon"),
4314
+ "class": bem$16("icon"),
4303
4315
  "classPrefix": iconPrefix
4304
4316
  }, null);
4305
4317
  }
4306
4318
  if (type === "loading") {
4307
4319
  return vue.createVNode(Loading, {
4308
- "class": bem$12("loading"),
4320
+ "class": bem$16("loading"),
4309
4321
  "size": iconSize,
4310
4322
  "type": loadingType
4311
4323
  }, null);
@@ -4318,16 +4330,16 @@ var stdin_default$1d = vue.defineComponent({
4318
4330
  } = props;
4319
4331
  if (slots.message) {
4320
4332
  return vue.createVNode("div", {
4321
- "class": bem$12("text")
4333
+ "class": bem$16("text")
4322
4334
  }, [slots.message()]);
4323
4335
  }
4324
4336
  if (isDef(message) && message !== "") {
4325
4337
  return type === "html" ? vue.createVNode("div", {
4326
4338
  "key": 0,
4327
- "class": bem$12("text"),
4339
+ "class": bem$16("text"),
4328
4340
  "innerHTML": String(message)
4329
4341
  }, null) : vue.createVNode("div", {
4330
- "class": bem$12("text")
4342
+ "class": bem$16("text")
4331
4343
  }, [message]);
4332
4344
  }
4333
4345
  };
@@ -4343,7 +4355,7 @@ var stdin_default$1d = vue.defineComponent({
4343
4355
  vue.onMounted(toggleClickable);
4344
4356
  vue.onUnmounted(toggleClickable);
4345
4357
  return () => vue.createVNode(Popup, vue.mergeProps({
4346
- "class": [bem$12([props.position, {
4358
+ "class": [bem$16([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
4347
4359
  [props.type]: !props.icon
4348
4360
  }]), props.className],
4349
4361
  "lockScroll": false,
@@ -4444,7 +4456,7 @@ function createInstance() {
4444
4456
  onClosed,
4445
4457
  "onUpdate:show": toggle
4446
4458
  };
4447
- return vue.createVNode(stdin_default$1d, vue.mergeProps(state, attrs), null);
4459
+ return vue.createVNode(stdin_default$1h, vue.mergeProps(state, attrs), null);
4448
4460
  };
4449
4461
  vue.watch(message, (val) => {
4450
4462
  state.message = val;
@@ -4514,8 +4526,8 @@ const resetToastDefaultOptions = (type) => {
4514
4526
  const allowMultipleToast = (value = true) => {
4515
4527
  allowMultiple = value;
4516
4528
  };
4517
- const Toast = withInstall(stdin_default$1d);
4518
- const [name$15, bem$11] = createNamespace("switch");
4529
+ const Toast = withInstall(stdin_default$1h);
4530
+ const [name$19, bem$15] = createNamespace("switch");
4519
4531
  const switchProps = {
4520
4532
  size: numericProp,
4521
4533
  loading: Boolean,
@@ -4532,8 +4544,8 @@ const switchProps = {
4532
4544
  default: false
4533
4545
  }
4534
4546
  };
4535
- var stdin_default$1c = vue.defineComponent({
4536
- name: name$15,
4547
+ var stdin_default$1g = vue.defineComponent({
4548
+ name: name$19,
4537
4549
  props: switchProps,
4538
4550
  emits: ["change", "update:modelValue"],
4539
4551
  setup(props, {
@@ -4552,7 +4564,7 @@ var stdin_default$1c = vue.defineComponent({
4552
4564
  if (props.loading) {
4553
4565
  const color = isChecked() ? props.activeColor : props.inactiveColor;
4554
4566
  return vue.createVNode(Loading, {
4555
- "class": bem$11("loading"),
4567
+ "class": bem$15("loading"),
4556
4568
  "color": color
4557
4569
  }, null);
4558
4570
  }
@@ -4577,7 +4589,7 @@ var stdin_default$1c = vue.defineComponent({
4577
4589
  };
4578
4590
  return vue.createVNode("div", {
4579
4591
  "role": "switch",
4580
- "class": bem$11({
4592
+ "class": bem$15({
4581
4593
  on: checked,
4582
4594
  loading,
4583
4595
  disabled
@@ -4587,16 +4599,16 @@ var stdin_default$1c = vue.defineComponent({
4587
4599
  "aria-checked": checked,
4588
4600
  "onClick": onClick
4589
4601
  }, [vue.createVNode("div", {
4590
- "class": bem$11("node")
4602
+ "class": bem$15("node")
4591
4603
  }, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
4592
4604
  };
4593
4605
  }
4594
4606
  });
4595
- const Switch = withInstall(stdin_default$1c);
4596
- const [name$14, bem$10] = createNamespace("address-edit-detail");
4607
+ const Switch = withInstall(stdin_default$1g);
4608
+ const [name$18, bem$14] = createNamespace("address-edit-detail");
4597
4609
  const t$i = createNamespace("address-edit")[2];
4598
- var stdin_default$1b = vue.defineComponent({
4599
- name: name$14,
4610
+ var stdin_default$1f = vue.defineComponent({
4611
+ name: name$18,
4600
4612
  props: {
4601
4613
  show: Boolean,
4602
4614
  rows: numericProp,
@@ -4630,7 +4642,7 @@ var stdin_default$1b = vue.defineComponent({
4630
4642
  "icon": "location-o",
4631
4643
  "title": express.name,
4632
4644
  "label": express.address,
4633
- "class": bem$10("search-item"),
4645
+ "class": bem$14("search-item"),
4634
4646
  "border": false,
4635
4647
  "onClick": () => onSelect(express)
4636
4648
  }, null));
@@ -4644,7 +4656,7 @@ var stdin_default$1b = vue.defineComponent({
4644
4656
  "autosize": true,
4645
4657
  "clearable": true,
4646
4658
  "ref": field,
4647
- "class": bem$10(),
4659
+ "class": bem$14(),
4648
4660
  "rows": props.rows,
4649
4661
  "type": "textarea",
4650
4662
  "rules": props.rules,
@@ -4661,7 +4673,7 @@ var stdin_default$1b = vue.defineComponent({
4661
4673
  };
4662
4674
  }
4663
4675
  });
4664
- const [name$13, bem$$, t$h] = createNamespace("address-edit");
4676
+ const [name$17, bem$13, t$h] = createNamespace("address-edit");
4665
4677
  const DEFAULT_DATA = {
4666
4678
  name: "",
4667
4679
  tel: "",
@@ -4701,8 +4713,8 @@ const addressEditProps = {
4701
4713
  default: isMobile
4702
4714
  }
4703
4715
  };
4704
- var stdin_default$1a = vue.defineComponent({
4705
- name: name$13,
4716
+ var stdin_default$1e = vue.defineComponent({
4717
+ name: name$17,
4706
4718
  props: addressEditProps,
4707
4719
  emits: ["save", "focus", "delete", "clickArea", "changeArea", "changeDetail", "selectSearch", "changeDefault"],
4708
4720
  setup(props, {
@@ -4813,7 +4825,7 @@ var stdin_default$1a = vue.defineComponent({
4813
4825
  return vue.withDirectives(vue.createVNode(Cell, {
4814
4826
  "center": true,
4815
4827
  "title": t$h("defaultAddress"),
4816
- "class": bem$$("default")
4828
+ "class": bem$13("default")
4817
4829
  }, slots2), [[vue.vShow, !hideBottomFields.value]]);
4818
4830
  }
4819
4831
  };
@@ -4839,13 +4851,13 @@ var stdin_default$1a = vue.defineComponent({
4839
4851
  disableArea
4840
4852
  } = props;
4841
4853
  return vue.createVNode(Form, {
4842
- "class": bem$$(),
4854
+ "class": bem$13(),
4843
4855
  "onSubmit": onSave
4844
4856
  }, {
4845
4857
  default: () => {
4846
4858
  var _a;
4847
4859
  return [vue.createVNode("div", {
4848
- "class": bem$$("fields")
4860
+ "class": bem$13("fields")
4849
4861
  }, [vue.createVNode(Field, {
4850
4862
  "modelValue": data.name,
4851
4863
  "onUpdate:modelValue": ($event) => data.name = $event,
@@ -4876,7 +4888,7 @@ var stdin_default$1a = vue.defineComponent({
4876
4888
  emit("clickArea");
4877
4889
  showAreaPopup.value = !disableArea;
4878
4890
  }
4879
- }, null), [[vue.vShow, props.showArea]]), vue.createVNode(stdin_default$1b, {
4891
+ }, null), [[vue.vShow, props.showArea]]), vue.createVNode(stdin_default$1f, {
4880
4892
  "show": props.showDetail,
4881
4893
  "rows": props.detailRows,
4882
4894
  "rules": rules.value.addressDetail,
@@ -4890,19 +4902,19 @@ var stdin_default$1a = vue.defineComponent({
4890
4902
  "onInput": onChangeDetail,
4891
4903
  "onSelectSearch": (event) => emit("selectSearch", event)
4892
4904
  }, null), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), vue.withDirectives(vue.createVNode("div", {
4893
- "class": bem$$("buttons")
4905
+ "class": bem$13("buttons")
4894
4906
  }, [vue.createVNode(Button, {
4895
4907
  "block": true,
4896
4908
  "round": true,
4897
4909
  "type": "primary",
4898
4910
  "text": props.saveButtonText || t$h("save"),
4899
- "class": bem$$("button"),
4911
+ "class": bem$13("button"),
4900
4912
  "loading": props.isSaving,
4901
4913
  "nativeType": "submit"
4902
4914
  }, null), props.showDelete && vue.createVNode(Button, {
4903
4915
  "block": true,
4904
4916
  "round": true,
4905
- "class": bem$$("button"),
4917
+ "class": bem$13("button"),
4906
4918
  "loading": props.isDeleting,
4907
4919
  "text": props.deleteButtonText || t$h("delete"),
4908
4920
  "onClick": onDelete
@@ -4932,8 +4944,8 @@ var stdin_default$1a = vue.defineComponent({
4932
4944
  };
4933
4945
  }
4934
4946
  });
4935
- const AddressEdit = withInstall(stdin_default$1a);
4936
- const [name$12, bem$_] = createNamespace("radio-group");
4947
+ const AddressEdit = withInstall(stdin_default$1e);
4948
+ const [name$16, bem$12] = createNamespace("radio-group");
4937
4949
  const radioGroupProps = {
4938
4950
  disabled: Boolean,
4939
4951
  iconSize: numericProp,
@@ -4941,9 +4953,9 @@ const radioGroupProps = {
4941
4953
  modelValue: unknownProp,
4942
4954
  checkedColor: String
4943
4955
  };
4944
- const RADIO_KEY = Symbol(name$12);
4945
- var stdin_default$19 = vue.defineComponent({
4946
- name: name$12,
4956
+ const RADIO_KEY = Symbol(name$16);
4957
+ var stdin_default$1d = vue.defineComponent({
4958
+ name: name$16,
4947
4959
  props: radioGroupProps,
4948
4960
  emits: ["change", "update:modelValue"],
4949
4961
  setup(props, {
@@ -4963,14 +4975,14 @@ var stdin_default$19 = vue.defineComponent({
4963
4975
  return () => {
4964
4976
  var _a;
4965
4977
  return vue.createVNode("div", {
4966
- "class": bem$_([props.direction]),
4978
+ "class": bem$12([props.direction]),
4967
4979
  "role": "radiogroup"
4968
4980
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
4969
4981
  };
4970
4982
  }
4971
4983
  });
4972
- const RadioGroup = withInstall(stdin_default$19);
4973
- const [name$11, bem$Z] = createNamespace("tag");
4984
+ const RadioGroup = withInstall(stdin_default$1d);
4985
+ const [name$15, bem$11] = createNamespace("tag");
4974
4986
  const tagProps = {
4975
4987
  size: String,
4976
4988
  mark: Boolean,
@@ -4982,8 +4994,8 @@ const tagProps = {
4982
4994
  textColor: String,
4983
4995
  closeable: Boolean
4984
4996
  };
4985
- var stdin_default$18 = vue.defineComponent({
4986
- name: name$11,
4997
+ var stdin_default$1c = vue.defineComponent({
4998
+ name: name$15,
4987
4999
  props: tagProps,
4988
5000
  emits: ["close"],
4989
5001
  setup(props, {
@@ -5026,12 +5038,12 @@ var stdin_default$18 = vue.defineComponent({
5026
5038
  }
5027
5039
  const CloseIcon = closeable && vue.createVNode(Icon, {
5028
5040
  "name": "cross",
5029
- "class": [bem$Z("close"), HAPTICS_FEEDBACK],
5041
+ "class": [bem$11("close"), HAPTICS_FEEDBACK],
5030
5042
  "onClick": onClose
5031
5043
  }, null);
5032
5044
  return vue.createVNode("span", {
5033
5045
  "style": getStyle(),
5034
- "class": bem$Z([classes, type])
5046
+ "class": bem$11([classes, type])
5035
5047
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
5036
5048
  };
5037
5049
  return () => vue.createVNode(vue.Transition, {
@@ -5041,7 +5053,7 @@ var stdin_default$18 = vue.defineComponent({
5041
5053
  });
5042
5054
  }
5043
5055
  });
5044
- const Tag = withInstall(stdin_default$18);
5056
+ const Tag = withInstall(stdin_default$1c);
5045
5057
  const checkerProps = {
5046
5058
  name: unknownProp,
5047
5059
  shape: makeStringProp("round"),
@@ -5052,7 +5064,7 @@ const checkerProps = {
5052
5064
  labelPosition: String,
5053
5065
  labelDisabled: Boolean
5054
5066
  };
5055
- var stdin_default$17 = vue.defineComponent({
5067
+ var stdin_default$1b = vue.defineComponent({
5056
5068
  props: extend({}, checkerProps, {
5057
5069
  bem: makeRequiredProp(Function),
5058
5070
  role: String,
@@ -5142,9 +5154,9 @@ var stdin_default$17 = vue.defineComponent({
5142
5154
  }
5143
5155
  });
5144
5156
  const radioProps = checkerProps;
5145
- const [name$10, bem$Y] = createNamespace("radio");
5146
- var stdin_default$16 = vue.defineComponent({
5147
- name: name$10,
5157
+ const [name$14, bem$10] = createNamespace("radio");
5158
+ var stdin_default$1a = vue.defineComponent({
5159
+ name: name$14,
5148
5160
  props: checkerProps,
5149
5161
  emits: ["update:modelValue"],
5150
5162
  setup(props, {
@@ -5165,8 +5177,8 @@ var stdin_default$16 = vue.defineComponent({
5165
5177
  emit("update:modelValue", props.name);
5166
5178
  }
5167
5179
  };
5168
- return () => vue.createVNode(stdin_default$17, vue.mergeProps({
5169
- "bem": bem$Y,
5180
+ return () => vue.createVNode(stdin_default$1b, vue.mergeProps({
5181
+ "bem": bem$10,
5170
5182
  "role": "radio",
5171
5183
  "parent": parent,
5172
5184
  "checked": checked(),
@@ -5174,10 +5186,10 @@ var stdin_default$16 = vue.defineComponent({
5174
5186
  }, props), pick(slots, ["default", "icon"]));
5175
5187
  }
5176
5188
  });
5177
- const Radio = withInstall(stdin_default$16);
5178
- const [name$$, bem$X] = createNamespace("address-item");
5179
- var stdin_default$15 = vue.defineComponent({
5180
- name: name$$,
5189
+ const Radio = withInstall(stdin_default$1a);
5190
+ const [name$13, bem$$] = createNamespace("address-item");
5191
+ var stdin_default$19 = vue.defineComponent({
5192
+ name: name$13,
5181
5193
  props: {
5182
5194
  address: makeRequiredProp(Object),
5183
5195
  disabled: Boolean,
@@ -5197,7 +5209,7 @@ var stdin_default$15 = vue.defineComponent({
5197
5209
  };
5198
5210
  const renderRightIcon = () => vue.createVNode(Icon, {
5199
5211
  "name": "edit",
5200
- "class": bem$X("edit"),
5212
+ "class": bem$$("edit"),
5201
5213
  "onClick": (event) => {
5202
5214
  event.stopPropagation();
5203
5215
  emit("edit");
@@ -5212,7 +5224,7 @@ var stdin_default$15 = vue.defineComponent({
5212
5224
  return vue.createVNode(Tag, {
5213
5225
  "type": "primary",
5214
5226
  "round": true,
5215
- "class": bem$X("tag")
5227
+ "class": bem$$("tag")
5216
5228
  }, {
5217
5229
  default: () => [props.defaultTagText]
5218
5230
  });
@@ -5225,9 +5237,9 @@ var stdin_default$15 = vue.defineComponent({
5225
5237
  switchable
5226
5238
  } = props;
5227
5239
  const Info = [vue.createVNode("div", {
5228
- "class": bem$X("name")
5240
+ "class": bem$$("name")
5229
5241
  }, [`${address.name} ${address.tel}`, renderTag()]), vue.createVNode("div", {
5230
- "class": bem$X("address")
5242
+ "class": bem$$("address")
5231
5243
  }, [address.address])];
5232
5244
  if (switchable && !disabled) {
5233
5245
  return vue.createVNode(Radio, {
@@ -5245,13 +5257,13 @@ var stdin_default$15 = vue.defineComponent({
5245
5257
  disabled
5246
5258
  } = props;
5247
5259
  return vue.createVNode("div", {
5248
- "class": bem$X({
5260
+ "class": bem$$({
5249
5261
  disabled
5250
5262
  }),
5251
5263
  "onClick": onClick
5252
5264
  }, [vue.createVNode(Cell, {
5253
5265
  "border": false,
5254
- "titleClass": bem$X("title")
5266
+ "titleClass": bem$$("title")
5255
5267
  }, {
5256
5268
  title: renderContent,
5257
5269
  "right-icon": renderRightIcon
@@ -5261,7 +5273,7 @@ var stdin_default$15 = vue.defineComponent({
5261
5273
  };
5262
5274
  }
5263
5275
  });
5264
- const [name$_, bem$W, t$g] = createNamespace("address-list");
5276
+ const [name$12, bem$_, t$g] = createNamespace("address-list");
5265
5277
  const addressListProps = {
5266
5278
  list: makeArrayProp(),
5267
5279
  modelValue: numericProp,
@@ -5271,8 +5283,8 @@ const addressListProps = {
5271
5283
  addButtonText: String,
5272
5284
  defaultTagText: String
5273
5285
  };
5274
- var stdin_default$14 = vue.defineComponent({
5275
- name: name$_,
5286
+ var stdin_default$18 = vue.defineComponent({
5287
+ name: name$12,
5276
5288
  props: addressListProps,
5277
5289
  emits: ["add", "edit", "select", "clickItem", "editDisabled", "selectDisabled", "update:modelValue"],
5278
5290
  setup(props, {
@@ -5288,7 +5300,7 @@ var stdin_default$14 = vue.defineComponent({
5288
5300
  emit("update:modelValue", item.id);
5289
5301
  }
5290
5302
  };
5291
- return vue.createVNode(stdin_default$15, {
5303
+ return vue.createVNode(stdin_default$19, {
5292
5304
  "key": item.id,
5293
5305
  "address": item,
5294
5306
  "disabled": disabled,
@@ -5308,13 +5320,13 @@ var stdin_default$14 = vue.defineComponent({
5308
5320
  }
5309
5321
  };
5310
5322
  const renderBottom = () => vue.createVNode("div", {
5311
- "class": [bem$W("bottom"), "van-safe-area-bottom"]
5323
+ "class": [bem$_("bottom"), "van-safe-area-bottom"]
5312
5324
  }, [vue.createVNode(Button, {
5313
5325
  "round": true,
5314
5326
  "block": true,
5315
5327
  "type": "primary",
5316
5328
  "text": props.addButtonText || t$g("add"),
5317
- "class": bem$W("add"),
5329
+ "class": bem$_("add"),
5318
5330
  "onClick": () => emit("add")
5319
5331
  }, null)]);
5320
5332
  return () => {
@@ -5322,10 +5334,10 @@ var stdin_default$14 = vue.defineComponent({
5322
5334
  const List2 = renderList(props.list);
5323
5335
  const DisabledList = renderList(props.disabledList, true);
5324
5336
  const DisabledText = props.disabledText && vue.createVNode("div", {
5325
- "class": bem$W("disabled-text")
5337
+ "class": bem$_("disabled-text")
5326
5338
  }, [props.disabledText]);
5327
5339
  return vue.createVNode("div", {
5328
- "class": bem$W()
5340
+ "class": bem$_()
5329
5341
  }, [(_a = slots.top) == null ? void 0 : _a.call(slots), vue.createVNode(RadioGroup, {
5330
5342
  "modelValue": props.modelValue
5331
5343
  }, {
@@ -5334,8 +5346,8 @@ var stdin_default$14 = vue.defineComponent({
5334
5346
  };
5335
5347
  }
5336
5348
  });
5337
- const AddressList = withInstall(stdin_default$14);
5338
- const [name$Z, bem$V, t$f] = createNamespace("calendar");
5349
+ const AddressList = withInstall(stdin_default$18);
5350
+ const [name$11, bem$Z, t$f] = createNamespace("calendar");
5339
5351
  const formatMonthTitle = (date) => t$f("monthTitle", date.getFullYear(), date.getMonth() + 1);
5340
5352
  function compareMonth(date1, date2) {
5341
5353
  const year1 = date1.getFullYear();
@@ -5416,9 +5428,9 @@ const formatValueRange = (values, columns) => values.map((value, index) => {
5416
5428
  }
5417
5429
  return value;
5418
5430
  });
5419
- const [name$Y] = createNamespace("calendar-day");
5420
- var stdin_default$13 = vue.defineComponent({
5421
- name: name$Y,
5431
+ const [name$10] = createNamespace("calendar-day");
5432
+ var stdin_default$17 = vue.defineComponent({
5433
+ name: name$10,
5422
5434
  props: {
5423
5435
  item: makeRequiredProp(Object),
5424
5436
  color: String,
@@ -5480,7 +5492,7 @@ var stdin_default$13 = vue.defineComponent({
5480
5492
  } = props.item;
5481
5493
  if (topInfo || slots["top-info"]) {
5482
5494
  return vue.createVNode("div", {
5483
- "class": bem$V("top-info")
5495
+ "class": bem$Z("top-info")
5484
5496
  }, [slots["top-info"] ? slots["top-info"](props.item) : topInfo]);
5485
5497
  }
5486
5498
  };
@@ -5490,7 +5502,7 @@ var stdin_default$13 = vue.defineComponent({
5490
5502
  } = props.item;
5491
5503
  if (bottomInfo || slots["bottom-info"]) {
5492
5504
  return vue.createVNode("div", {
5493
- "class": bem$V("bottom-info")
5505
+ "class": bem$Z("bottom-info")
5494
5506
  }, [slots["bottom-info"] ? slots["bottom-info"](props.item) : bottomInfo]);
5495
5507
  }
5496
5508
  };
@@ -5507,7 +5519,7 @@ var stdin_default$13 = vue.defineComponent({
5507
5519
  const Nodes = [renderTopInfo(), text, renderBottomInfo()];
5508
5520
  if (type === "selected") {
5509
5521
  return vue.createVNode("div", {
5510
- "class": bem$V("selected-day"),
5522
+ "class": bem$Z("selected-day"),
5511
5523
  "style": {
5512
5524
  width: rowHeight,
5513
5525
  height: rowHeight,
@@ -5524,21 +5536,21 @@ var stdin_default$13 = vue.defineComponent({
5524
5536
  } = props.item;
5525
5537
  if (type === "placeholder") {
5526
5538
  return vue.createVNode("div", {
5527
- "class": bem$V("day"),
5539
+ "class": bem$Z("day"),
5528
5540
  "style": style.value
5529
5541
  }, null);
5530
5542
  }
5531
5543
  return vue.createVNode("div", {
5532
5544
  "role": "gridcell",
5533
5545
  "style": style.value,
5534
- "class": [bem$V("day", type), className],
5546
+ "class": [bem$Z("day", type), className],
5535
5547
  "tabindex": type === "disabled" ? void 0 : -1,
5536
5548
  "onClick": onClick
5537
5549
  }, [renderContent()]);
5538
5550
  };
5539
5551
  }
5540
5552
  });
5541
- const [name$X] = createNamespace("calendar-month");
5553
+ const [name$$] = createNamespace("calendar-month");
5542
5554
  const calendarMonthProps = {
5543
5555
  date: makeRequiredProp(Date),
5544
5556
  type: String,
@@ -5555,8 +5567,8 @@ const calendarMonthProps = {
5555
5567
  showMonthTitle: Boolean,
5556
5568
  firstDayOfWeek: Number
5557
5569
  };
5558
- var stdin_default$12 = vue.defineComponent({
5559
- name: name$X,
5570
+ var stdin_default$16 = vue.defineComponent({
5571
+ name: name$$,
5560
5572
  props: calendarMonthProps,
5561
5573
  emits: ["click"],
5562
5574
  setup(props, {
@@ -5661,14 +5673,14 @@ var stdin_default$12 = vue.defineComponent({
5661
5673
  const renderTitle = () => {
5662
5674
  if (props.showMonthTitle) {
5663
5675
  return vue.createVNode("div", {
5664
- "class": bem$V("month-title")
5676
+ "class": bem$Z("month-title")
5665
5677
  }, [title.value]);
5666
5678
  }
5667
5679
  };
5668
5680
  const renderMark = () => {
5669
5681
  if (props.showMark && shouldRender.value) {
5670
5682
  return vue.createVNode("div", {
5671
- "class": bem$V("month-mark")
5683
+ "class": bem$Z("month-mark")
5672
5684
  }, [props.date.getMonth() + 1]);
5673
5685
  }
5674
5686
  };
@@ -5708,7 +5720,7 @@ var stdin_default$12 = vue.defineComponent({
5708
5720
  setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - use.useRect(body).top);
5709
5721
  }
5710
5722
  };
5711
- const renderDay = (item, index) => vue.createVNode(stdin_default$13, {
5723
+ const renderDay = (item, index) => vue.createVNode(stdin_default$17, {
5712
5724
  "item": item,
5713
5725
  "index": index,
5714
5726
  "color": props.color,
@@ -5719,7 +5731,7 @@ var stdin_default$12 = vue.defineComponent({
5719
5731
  const renderDays = () => vue.createVNode("div", {
5720
5732
  "ref": daysRef,
5721
5733
  "role": "grid",
5722
- "class": bem$V("days")
5734
+ "class": bem$Z("days")
5723
5735
  }, [renderMark(), (shouldRender.value ? days : placeholders).value.map(renderDay)]);
5724
5736
  useExpose({
5725
5737
  getTitle,
@@ -5729,15 +5741,16 @@ var stdin_default$12 = vue.defineComponent({
5729
5741
  disabledDays
5730
5742
  });
5731
5743
  return () => vue.createVNode("div", {
5732
- "class": bem$V("month"),
5744
+ "class": bem$Z("month"),
5733
5745
  "ref": monthRef
5734
5746
  }, [renderTitle(), renderDays()]);
5735
5747
  }
5736
5748
  });
5737
- const [name$W] = createNamespace("calendar-header");
5738
- var stdin_default$11 = vue.defineComponent({
5739
- name: name$W,
5749
+ const [name$_] = createNamespace("calendar-header");
5750
+ var stdin_default$15 = vue.defineComponent({
5751
+ name: name$_,
5740
5752
  props: {
5753
+ date: Date,
5741
5754
  title: String,
5742
5755
  subtitle: String,
5743
5756
  showTitle: Boolean,
@@ -5754,16 +5767,19 @@ var stdin_default$11 = vue.defineComponent({
5754
5767
  const text = props.title || t$f("title");
5755
5768
  const title = slots.title ? slots.title() : text;
5756
5769
  return vue.createVNode("div", {
5757
- "class": bem$V("header-title")
5770
+ "class": bem$Z("header-title")
5758
5771
  }, [title]);
5759
5772
  }
5760
5773
  };
5761
5774
  const onClickSubtitle = (event) => emit("clickSubtitle", event);
5762
5775
  const renderSubtitle = () => {
5763
5776
  if (props.showSubtitle) {
5764
- const title = slots.subtitle ? slots.subtitle() : props.subtitle;
5777
+ const title = slots.subtitle ? slots.subtitle({
5778
+ date: props.date,
5779
+ text: props.subtitle
5780
+ }) : props.subtitle;
5765
5781
  return vue.createVNode("div", {
5766
- "class": bem$V("header-subtitle"),
5782
+ "class": bem$Z("header-subtitle"),
5767
5783
  "onClick": onClickSubtitle
5768
5784
  }, [title]);
5769
5785
  }
@@ -5775,13 +5791,13 @@ var stdin_default$11 = vue.defineComponent({
5775
5791
  const weekdays = t$f("weekdays");
5776
5792
  const renderWeekDays2 = [...weekdays.slice(firstDayOfWeek, 7), ...weekdays.slice(0, firstDayOfWeek)];
5777
5793
  return vue.createVNode("div", {
5778
- "class": bem$V("weekdays")
5794
+ "class": bem$Z("weekdays")
5779
5795
  }, [renderWeekDays2.map((text) => vue.createVNode("span", {
5780
- "class": bem$V("weekday")
5796
+ "class": bem$Z("weekday")
5781
5797
  }, [text]))]);
5782
5798
  };
5783
5799
  return () => vue.createVNode("div", {
5784
- "class": bem$V("header")
5800
+ "class": bem$Z("header")
5785
5801
  }, [renderTitle(), renderSubtitle(), renderWeekDays()]);
5786
5802
  }
5787
5803
  });
@@ -5832,8 +5848,8 @@ const calendarProps = {
5832
5848
  validator: (val) => val >= 0 && val <= 6
5833
5849
  }
5834
5850
  };
5835
- var stdin_default$10 = vue.defineComponent({
5836
- name: name$Z,
5851
+ var stdin_default$14 = vue.defineComponent({
5852
+ name: name$11,
5837
5853
  props: calendarProps,
5838
5854
  emits: ["select", "confirm", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle"],
5839
5855
  setup(props, {
@@ -5881,7 +5897,10 @@ var stdin_default$10 = vue.defineComponent({
5881
5897
  };
5882
5898
  let bodyHeight;
5883
5899
  const bodyRef = vue.ref();
5884
- const subtitle = vue.ref("");
5900
+ const subtitle = vue.ref({
5901
+ text: "",
5902
+ date: void 0
5903
+ });
5885
5904
  const currentDate = vue.ref(getInitialDate());
5886
5905
  const [monthRefs, setMonthRefs] = useRefs();
5887
5906
  const dayOffset = vue.computed(() => props.firstDayOfWeek ? +props.firstDayOfWeek % 7 : 0);
@@ -5942,7 +5961,10 @@ var stdin_default$10 = vue.defineComponent({
5942
5961
  monthRefs.value[index].setVisible(visible);
5943
5962
  });
5944
5963
  if (currentMonth) {
5945
- subtitle.value = currentMonth.getTitle();
5964
+ subtitle.value = {
5965
+ text: currentMonth.getTitle(),
5966
+ date: currentMonth.date
5967
+ };
5946
5968
  }
5947
5969
  };
5948
5970
  const scrollToDate = (targetDate) => {
@@ -6090,7 +6112,7 @@ var stdin_default$10 = vue.defineComponent({
6090
6112
  const updateShow = (value) => emit("update:show", value);
6091
6113
  const renderMonth = (date, index) => {
6092
6114
  const showMonthTitle = index !== 0 || !props.showSubtitle;
6093
- return vue.createVNode(stdin_default$12, vue.mergeProps({
6115
+ return vue.createVNode(stdin_default$16, vue.mergeProps({
6094
6116
  "ref": setMonthRefs(index),
6095
6117
  "date": date,
6096
6118
  "currentDate": currentDate.value,
@@ -6113,7 +6135,7 @@ var stdin_default$10 = vue.defineComponent({
6113
6135
  "block": true,
6114
6136
  "type": "primary",
6115
6137
  "color": props.color,
6116
- "class": bem$V("confirm"),
6138
+ "class": bem$Z("confirm"),
6117
6139
  "disabled": disabled,
6118
6140
  "nativeType": "button",
6119
6141
  "onClick": onConfirm
@@ -6125,22 +6147,23 @@ var stdin_default$10 = vue.defineComponent({
6125
6147
  }
6126
6148
  };
6127
6149
  const renderFooter = () => vue.createVNode("div", {
6128
- "class": [bem$V("footer"), {
6150
+ "class": [bem$Z("footer"), {
6129
6151
  "van-safe-area-bottom": props.safeAreaInsetBottom
6130
6152
  }]
6131
6153
  }, [renderFooterButton()]);
6132
6154
  const renderCalendar = () => vue.createVNode("div", {
6133
- "class": bem$V()
6134
- }, [vue.createVNode(stdin_default$11, {
6155
+ "class": bem$Z()
6156
+ }, [vue.createVNode(stdin_default$15, {
6157
+ "date": subtitle.value.date,
6135
6158
  "title": props.title,
6136
- "subtitle": subtitle.value,
6159
+ "subtitle": subtitle.value.text,
6137
6160
  "showTitle": props.showTitle,
6138
6161
  "showSubtitle": props.showSubtitle,
6139
6162
  "firstDayOfWeek": dayOffset.value,
6140
6163
  "onClickSubtitle": (event) => emit("clickSubtitle", event)
6141
6164
  }, pick(slots, ["title", "subtitle"])), vue.createVNode("div", {
6142
6165
  "ref": bodyRef,
6143
- "class": bem$V("body"),
6166
+ "class": bem$Z("body"),
6144
6167
  "onScroll": onScroll
6145
6168
  }, [months.value.map(renderMonth)]), renderFooter()]);
6146
6169
  vue.watch(() => props.show, init);
@@ -6159,7 +6182,7 @@ var stdin_default$10 = vue.defineComponent({
6159
6182
  if (props.poppable) {
6160
6183
  return vue.createVNode(Popup, {
6161
6184
  "show": props.show,
6162
- "class": bem$V("popup"),
6185
+ "class": bem$Z("popup"),
6163
6186
  "round": props.round,
6164
6187
  "position": props.position,
6165
6188
  "closeable": props.showTitle || props.showSubtitle,
@@ -6176,8 +6199,8 @@ var stdin_default$10 = vue.defineComponent({
6176
6199
  };
6177
6200
  }
6178
6201
  });
6179
- const Calendar = withInstall(stdin_default$10);
6180
- const [name$V, bem$U] = createNamespace("image");
6202
+ const Calendar = withInstall(stdin_default$14);
6203
+ const [name$Z, bem$Y] = createNamespace("image");
6181
6204
  const imageProps = {
6182
6205
  src: String,
6183
6206
  alt: String,
@@ -6196,8 +6219,8 @@ const imageProps = {
6196
6219
  showLoading: truthProp,
6197
6220
  loadingIcon: makeStringProp("photo")
6198
6221
  };
6199
- var stdin_default$$ = vue.defineComponent({
6200
- name: name$V,
6222
+ var stdin_default$13 = vue.defineComponent({
6223
+ name: name$Z,
6201
6224
  props: imageProps,
6202
6225
  emits: ["load", "error"],
6203
6226
  setup(props, {
@@ -6248,13 +6271,13 @@ var stdin_default$$ = vue.defineComponent({
6248
6271
  const renderPlaceholder = () => {
6249
6272
  if (loading.value && props.showLoading) {
6250
6273
  return vue.createVNode("div", {
6251
- "class": bem$U("loading")
6252
- }, [renderIcon(props.loadingIcon, bem$U("loading-icon"), slots.loading)]);
6274
+ "class": bem$Y("loading")
6275
+ }, [renderIcon(props.loadingIcon, bem$Y("loading-icon"), slots.loading)]);
6253
6276
  }
6254
6277
  if (error.value && props.showError) {
6255
6278
  return vue.createVNode("div", {
6256
- "class": bem$U("error")
6257
- }, [renderIcon(props.errorIcon, bem$U("error-icon"), slots.error)]);
6279
+ "class": bem$Y("error")
6280
+ }, [renderIcon(props.errorIcon, bem$Y("error-icon"), slots.error)]);
6258
6281
  }
6259
6282
  };
6260
6283
  const renderImage = () => {
@@ -6263,7 +6286,7 @@ var stdin_default$$ = vue.defineComponent({
6263
6286
  }
6264
6287
  const attrs = {
6265
6288
  alt: props.alt,
6266
- class: bem$U("img"),
6289
+ class: bem$Y("img"),
6267
6290
  style: {
6268
6291
  objectFit: props.fit,
6269
6292
  objectPosition: props.position
@@ -6312,7 +6335,7 @@ var stdin_default$$ = vue.defineComponent({
6312
6335
  return () => {
6313
6336
  var _a;
6314
6337
  return vue.createVNode("div", {
6315
- "class": bem$U({
6338
+ "class": bem$Y({
6316
6339
  round: props.round,
6317
6340
  block: props.block
6318
6341
  }),
@@ -6321,8 +6344,8 @@ var stdin_default$$ = vue.defineComponent({
6321
6344
  };
6322
6345
  }
6323
6346
  });
6324
- const Image$1 = withInstall(stdin_default$$);
6325
- const [name$U, bem$T] = createNamespace("card");
6347
+ const Image$1 = withInstall(stdin_default$13);
6348
+ const [name$Y, bem$X] = createNamespace("card");
6326
6349
  const cardProps = {
6327
6350
  tag: String,
6328
6351
  num: numericProp,
@@ -6336,8 +6359,8 @@ const cardProps = {
6336
6359
  thumbLink: String,
6337
6360
  originPrice: numericProp
6338
6361
  };
6339
- var stdin_default$_ = vue.defineComponent({
6340
- name: name$U,
6362
+ var stdin_default$12 = vue.defineComponent({
6363
+ name: name$Y,
6341
6364
  props: cardProps,
6342
6365
  emits: ["clickThumb"],
6343
6366
  setup(props, {
@@ -6350,14 +6373,14 @@ var stdin_default$_ = vue.defineComponent({
6350
6373
  }
6351
6374
  if (props.title) {
6352
6375
  return vue.createVNode("div", {
6353
- "class": [bem$T("title"), "van-multi-ellipsis--l2"]
6376
+ "class": [bem$X("title"), "van-multi-ellipsis--l2"]
6354
6377
  }, [props.title]);
6355
6378
  }
6356
6379
  };
6357
6380
  const renderThumbTag = () => {
6358
6381
  if (slots.tag || props.tag) {
6359
6382
  return vue.createVNode("div", {
6360
- "class": bem$T("tag")
6383
+ "class": bem$X("tag")
6361
6384
  }, [slots.tag ? slots.tag() : vue.createVNode(Tag, {
6362
6385
  "mark": true,
6363
6386
  "type": "primary"
@@ -6382,7 +6405,7 @@ var stdin_default$_ = vue.defineComponent({
6382
6405
  if (slots.thumb || props.thumb) {
6383
6406
  return vue.createVNode("a", {
6384
6407
  "href": props.thumbLink,
6385
- "class": bem$T("thumb"),
6408
+ "class": bem$X("thumb"),
6386
6409
  "onClick": (event) => emit("clickThumb", event)
6387
6410
  }, [renderThumbImage(), renderThumbTag()]);
6388
6411
  }
@@ -6393,18 +6416,18 @@ var stdin_default$_ = vue.defineComponent({
6393
6416
  }
6394
6417
  if (props.desc) {
6395
6418
  return vue.createVNode("div", {
6396
- "class": [bem$T("desc"), "van-ellipsis"]
6419
+ "class": [bem$X("desc"), "van-ellipsis"]
6397
6420
  }, [props.desc]);
6398
6421
  }
6399
6422
  };
6400
6423
  const renderPriceText = () => {
6401
6424
  const priceArr = props.price.toString().split(".");
6402
6425
  return vue.createVNode("div", null, [vue.createVNode("span", {
6403
- "class": bem$T("price-currency")
6426
+ "class": bem$X("price-currency")
6404
6427
  }, [props.currency]), vue.createVNode("span", {
6405
- "class": bem$T("price-integer")
6428
+ "class": bem$X("price-integer")
6406
6429
  }, [priceArr[0]]), vue.createTextVNode("."), vue.createVNode("span", {
6407
- "class": bem$T("price-decimal")
6430
+ "class": bem$X("price-decimal")
6408
6431
  }, [priceArr[1]])]);
6409
6432
  };
6410
6433
  return () => {
@@ -6414,34 +6437,34 @@ var stdin_default$_ = vue.defineComponent({
6414
6437
  const showOriginPrice = slots["origin-price"] || isDef(props.originPrice);
6415
6438
  const showBottom = showNum || showPrice || showOriginPrice || slots.bottom;
6416
6439
  const Price = showPrice && vue.createVNode("div", {
6417
- "class": bem$T("price")
6440
+ "class": bem$X("price")
6418
6441
  }, [slots.price ? slots.price() : renderPriceText()]);
6419
6442
  const OriginPrice = showOriginPrice && vue.createVNode("div", {
6420
- "class": bem$T("origin-price")
6443
+ "class": bem$X("origin-price")
6421
6444
  }, [slots["origin-price"] ? slots["origin-price"]() : `${props.currency} ${props.originPrice}`]);
6422
6445
  const Num = showNum && vue.createVNode("div", {
6423
- "class": bem$T("num")
6446
+ "class": bem$X("num")
6424
6447
  }, [slots.num ? slots.num() : `x${props.num}`]);
6425
6448
  const Footer = slots.footer && vue.createVNode("div", {
6426
- "class": bem$T("footer")
6449
+ "class": bem$X("footer")
6427
6450
  }, [slots.footer()]);
6428
6451
  const Bottom = showBottom && vue.createVNode("div", {
6429
- "class": bem$T("bottom")
6452
+ "class": bem$X("bottom")
6430
6453
  }, [(_a = slots["price-top"]) == null ? void 0 : _a.call(slots), Price, OriginPrice, Num, (_b = slots.bottom) == null ? void 0 : _b.call(slots)]);
6431
6454
  return vue.createVNode("div", {
6432
- "class": bem$T()
6455
+ "class": bem$X()
6433
6456
  }, [vue.createVNode("div", {
6434
- "class": bem$T("header")
6457
+ "class": bem$X("header")
6435
6458
  }, [renderThumb(), vue.createVNode("div", {
6436
- "class": bem$T("content", {
6459
+ "class": bem$X("content", {
6437
6460
  centered: props.centered
6438
6461
  })
6439
6462
  }, [vue.createVNode("div", null, [renderTitle(), renderDesc(), (_c = slots.tags) == null ? void 0 : _c.call(slots)]), Bottom])]), Footer]);
6440
6463
  };
6441
6464
  }
6442
6465
  });
6443
- const Card = withInstall(stdin_default$_);
6444
- const [name$T, bem$S, t$e] = createNamespace("cascader");
6466
+ const Card = withInstall(stdin_default$12);
6467
+ const [name$X, bem$W, t$e] = createNamespace("cascader");
6445
6468
  const cascaderProps = {
6446
6469
  title: String,
6447
6470
  options: makeArrayProp(),
@@ -6454,8 +6477,8 @@ const cascaderProps = {
6454
6477
  placeholder: String,
6455
6478
  activeColor: String
6456
6479
  };
6457
- var stdin_default$Z = vue.defineComponent({
6458
- name: name$T,
6480
+ var stdin_default$11 = vue.defineComponent({
6481
+ name: name$X,
6459
6482
  props: cascaderProps,
6460
6483
  emits: ["close", "change", "finish", "clickTab", "update:modelValue"],
6461
6484
  setup(props, {
@@ -6563,12 +6586,12 @@ var stdin_default$Z = vue.defineComponent({
6563
6586
  title
6564
6587
  }) => emit("clickTab", name2, title);
6565
6588
  const renderHeader = () => props.showHeader ? vue.createVNode("div", {
6566
- "class": bem$S("header")
6589
+ "class": bem$W("header")
6567
6590
  }, [vue.createVNode("h2", {
6568
- "class": bem$S("title")
6591
+ "class": bem$W("title")
6569
6592
  }, [slots.title ? slots.title() : props.title]), props.closeable ? vue.createVNode(Icon, {
6570
6593
  "name": props.closeIcon,
6571
- "class": [bem$S("close-icon"), HAPTICS_FEEDBACK],
6594
+ "class": [bem$W("close-icon"), HAPTICS_FEEDBACK],
6572
6595
  "onClick": onClose
6573
6596
  }, null) : null]) : null;
6574
6597
  const renderOption = (option, selectedOption, tabIndex) => {
@@ -6583,7 +6606,7 @@ var stdin_default$Z = vue.defineComponent({
6583
6606
  }) : vue.createVNode("span", null, [option[textKey]]);
6584
6607
  return vue.createVNode("li", {
6585
6608
  "role": "menuitemradio",
6586
- "class": [bem$S("option", {
6609
+ "class": [bem$W("option", {
6587
6610
  selected,
6588
6611
  disabled
6589
6612
  }), option.className],
@@ -6596,12 +6619,12 @@ var stdin_default$Z = vue.defineComponent({
6596
6619
  "onClick": () => onSelect(option, tabIndex)
6597
6620
  }, [Text2, selected ? vue.createVNode(Icon, {
6598
6621
  "name": "success",
6599
- "class": bem$S("selected-icon")
6622
+ "class": bem$W("selected-icon")
6600
6623
  }, null) : null]);
6601
6624
  };
6602
6625
  const renderOptions = (options, selectedOption, tabIndex) => vue.createVNode("ul", {
6603
6626
  "role": "menu",
6604
- "class": bem$S("options")
6627
+ "class": bem$W("options")
6605
6628
  }, [options.map((option) => renderOption(option, selectedOption, tabIndex))]);
6606
6629
  const renderTab = (tab, tabIndex) => {
6607
6630
  const {
@@ -6612,7 +6635,7 @@ var stdin_default$Z = vue.defineComponent({
6612
6635
  const title = selected ? selected[textKey] : placeholder;
6613
6636
  return vue.createVNode(Tab, {
6614
6637
  "title": title,
6615
- "titleClass": bem$S("tab", {
6638
+ "titleClass": bem$W("tab", {
6616
6639
  unselected: !selected
6617
6640
  })
6618
6641
  }, {
@@ -6631,7 +6654,7 @@ var stdin_default$Z = vue.defineComponent({
6631
6654
  "onUpdate:active": ($event) => activeTab.value = $event,
6632
6655
  "shrink": true,
6633
6656
  "animated": true,
6634
- "class": bem$S("tabs"),
6657
+ "class": bem$W("tabs"),
6635
6658
  "color": props.activeColor,
6636
6659
  "swipeable": props.swipeable,
6637
6660
  "onClickTab": onClickTab
@@ -6655,19 +6678,19 @@ var stdin_default$Z = vue.defineComponent({
6655
6678
  updateTabs();
6656
6679
  });
6657
6680
  return () => vue.createVNode("div", {
6658
- "class": bem$S()
6681
+ "class": bem$W()
6659
6682
  }, [renderHeader(), renderTabs()]);
6660
6683
  }
6661
6684
  });
6662
- const Cascader = withInstall(stdin_default$Z);
6663
- const [name$S, bem$R] = createNamespace("cell-group");
6685
+ const Cascader = withInstall(stdin_default$11);
6686
+ const [name$W, bem$V] = createNamespace("cell-group");
6664
6687
  const cellGroupProps = {
6665
6688
  title: String,
6666
6689
  inset: Boolean,
6667
6690
  border: truthProp
6668
6691
  };
6669
- var stdin_default$Y = vue.defineComponent({
6670
- name: name$S,
6692
+ var stdin_default$10 = vue.defineComponent({
6693
+ name: name$W,
6671
6694
  inheritAttrs: false,
6672
6695
  props: cellGroupProps,
6673
6696
  setup(props, {
@@ -6677,7 +6700,7 @@ var stdin_default$Y = vue.defineComponent({
6677
6700
  const renderGroup = () => {
6678
6701
  var _a;
6679
6702
  return vue.createVNode("div", vue.mergeProps({
6680
- "class": [bem$R({
6703
+ "class": [bem$V({
6681
6704
  inset: props.inset
6682
6705
  }), {
6683
6706
  [BORDER_TOP_BOTTOM]: props.border && !props.inset
@@ -6685,7 +6708,7 @@ var stdin_default$Y = vue.defineComponent({
6685
6708
  }, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
6686
6709
  };
6687
6710
  const renderTitle = () => vue.createVNode("div", {
6688
- "class": bem$R("title", {
6711
+ "class": bem$V("title", {
6689
6712
  inset: props.inset
6690
6713
  })
6691
6714
  }, [slots.title ? slots.title() : props.title]);
@@ -6697,8 +6720,8 @@ var stdin_default$Y = vue.defineComponent({
6697
6720
  };
6698
6721
  }
6699
6722
  });
6700
- const CellGroup = withInstall(stdin_default$Y);
6701
- const [name$R, bem$Q] = createNamespace("checkbox-group");
6723
+ const CellGroup = withInstall(stdin_default$10);
6724
+ const [name$V, bem$U] = createNamespace("checkbox-group");
6702
6725
  const checkboxGroupProps = {
6703
6726
  max: numericProp,
6704
6727
  disabled: Boolean,
@@ -6707,9 +6730,9 @@ const checkboxGroupProps = {
6707
6730
  modelValue: makeArrayProp(),
6708
6731
  checkedColor: String
6709
6732
  };
6710
- const CHECKBOX_GROUP_KEY = Symbol(name$R);
6711
- var stdin_default$X = vue.defineComponent({
6712
- name: name$R,
6733
+ const CHECKBOX_GROUP_KEY = Symbol(name$V);
6734
+ var stdin_default$$ = vue.defineComponent({
6735
+ name: name$V,
6713
6736
  props: checkboxGroupProps,
6714
6737
  emits: ["change", "update:modelValue"],
6715
6738
  setup(props, {
@@ -6755,17 +6778,17 @@ var stdin_default$X = vue.defineComponent({
6755
6778
  return () => {
6756
6779
  var _a;
6757
6780
  return vue.createVNode("div", {
6758
- "class": bem$Q([props.direction])
6781
+ "class": bem$U([props.direction])
6759
6782
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
6760
6783
  };
6761
6784
  }
6762
6785
  });
6763
- const [name$Q, bem$P] = createNamespace("checkbox");
6786
+ const [name$U, bem$T] = createNamespace("checkbox");
6764
6787
  const checkboxProps = extend({}, checkerProps, {
6765
6788
  bindGroup: truthProp
6766
6789
  });
6767
- var stdin_default$W = vue.defineComponent({
6768
- name: name$Q,
6790
+ var stdin_default$_ = vue.defineComponent({
6791
+ name: name$U,
6769
6792
  props: checkboxProps,
6770
6793
  emits: ["change", "update:modelValue"],
6771
6794
  setup(props, {
@@ -6822,8 +6845,8 @@ var stdin_default$W = vue.defineComponent({
6822
6845
  checked
6823
6846
  });
6824
6847
  use.useCustomFieldValue(() => props.modelValue);
6825
- return () => vue.createVNode(stdin_default$17, vue.mergeProps({
6826
- "bem": bem$P,
6848
+ return () => vue.createVNode(stdin_default$1b, vue.mergeProps({
6849
+ "bem": bem$T,
6827
6850
  "role": "checkbox",
6828
6851
  "parent": parent,
6829
6852
  "checked": checked.value,
@@ -6831,9 +6854,9 @@ var stdin_default$W = vue.defineComponent({
6831
6854
  }, props), pick(slots, ["default", "icon"]));
6832
6855
  }
6833
6856
  });
6834
- const Checkbox = withInstall(stdin_default$W);
6835
- const CheckboxGroup = withInstall(stdin_default$X);
6836
- const [name$P, bem$O] = createNamespace("circle");
6857
+ const Checkbox = withInstall(stdin_default$_);
6858
+ const CheckboxGroup = withInstall(stdin_default$$);
6859
+ const [name$T, bem$S] = createNamespace("circle");
6837
6860
  let uid = 0;
6838
6861
  const format = (rate) => Math.min(Math.max(+rate, 0), 100);
6839
6862
  function getPath(clockwise, viewBoxSize) {
@@ -6854,8 +6877,8 @@ const circleProps = {
6854
6877
  strokeLinecap: String,
6855
6878
  startPosition: makeStringProp("top")
6856
6879
  };
6857
- var stdin_default$V = vue.defineComponent({
6858
- name: name$P,
6880
+ var stdin_default$Z = vue.defineComponent({
6881
+ name: name$T,
6859
6882
  props: circleProps,
6860
6883
  emits: ["update:currentRate"],
6861
6884
  setup(props, {
@@ -6923,7 +6946,7 @@ var stdin_default$V = vue.defineComponent({
6923
6946
  return vue.createVNode("path", {
6924
6947
  "d": path.value,
6925
6948
  "style": style,
6926
- "class": bem$O("hover"),
6949
+ "class": bem$S("hover"),
6927
6950
  "stroke": color
6928
6951
  }, null);
6929
6952
  };
@@ -6934,7 +6957,7 @@ var stdin_default$V = vue.defineComponent({
6934
6957
  strokeWidth: `${props.strokeWidth}px`
6935
6958
  };
6936
6959
  return vue.createVNode("path", {
6937
- "class": bem$O("layer"),
6960
+ "class": bem$S("layer"),
6938
6961
  "style": style,
6939
6962
  "d": path.value
6940
6963
  }, null);
@@ -6965,12 +6988,12 @@ var stdin_default$V = vue.defineComponent({
6965
6988
  }
6966
6989
  if (props.text) {
6967
6990
  return vue.createVNode("div", {
6968
- "class": bem$O("text")
6991
+ "class": bem$S("text")
6969
6992
  }, [props.text]);
6970
6993
  }
6971
6994
  };
6972
6995
  return () => vue.createVNode("div", {
6973
- "class": bem$O(),
6996
+ "class": bem$S(),
6974
6997
  "style": getSizeStyle(props.size)
6975
6998
  }, [vue.createVNode("svg", {
6976
6999
  "viewBox": `0 0 ${viewBoxSize.value} ${viewBoxSize.value}`,
@@ -6978,9 +7001,9 @@ var stdin_default$V = vue.defineComponent({
6978
7001
  }, [renderGradient(), renderLayer(), renderHover()]), renderText()]);
6979
7002
  }
6980
7003
  });
6981
- const Circle = withInstall(stdin_default$V);
6982
- const [name$O, bem$N] = createNamespace("row");
6983
- const ROW_KEY = Symbol(name$O);
7004
+ const Circle = withInstall(stdin_default$Z);
7005
+ const [name$S, bem$R] = createNamespace("row");
7006
+ const ROW_KEY = Symbol(name$S);
6984
7007
  const rowProps = {
6985
7008
  tag: makeStringProp("div"),
6986
7009
  wrap: truthProp,
@@ -6988,8 +7011,8 @@ const rowProps = {
6988
7011
  gutter: makeNumericProp(0),
6989
7012
  justify: String
6990
7013
  };
6991
- var stdin_default$U = vue.defineComponent({
6992
- name: name$O,
7014
+ var stdin_default$Y = vue.defineComponent({
7015
+ name: name$S,
6993
7016
  props: rowProps,
6994
7017
  setup(props, {
6995
7018
  slots
@@ -7048,7 +7071,7 @@ var stdin_default$U = vue.defineComponent({
7048
7071
  justify
7049
7072
  } = props;
7050
7073
  return vue.createVNode(tag, {
7051
- "class": bem$N({
7074
+ "class": bem$R({
7052
7075
  [`align-${align}`]: align,
7053
7076
  [`justify-${justify}`]: justify,
7054
7077
  nowrap: !wrap
@@ -7062,14 +7085,14 @@ var stdin_default$U = vue.defineComponent({
7062
7085
  };
7063
7086
  }
7064
7087
  });
7065
- const [name$N, bem$M] = createNamespace("col");
7088
+ const [name$R, bem$Q] = createNamespace("col");
7066
7089
  const colProps = {
7067
7090
  tag: makeStringProp("div"),
7068
7091
  span: makeNumericProp(0),
7069
7092
  offset: numericProp
7070
7093
  };
7071
- var stdin_default$T = vue.defineComponent({
7072
- name: name$N,
7094
+ var stdin_default$X = vue.defineComponent({
7095
+ name: name$R,
7073
7096
  props: colProps,
7074
7097
  setup(props, {
7075
7098
  slots
@@ -7104,7 +7127,7 @@ var stdin_default$T = vue.defineComponent({
7104
7127
  } = props;
7105
7128
  return vue.createVNode(tag, {
7106
7129
  "style": style.value,
7107
- "class": bem$M({
7130
+ "class": bem$Q({
7108
7131
  [span]: span,
7109
7132
  [`offset-${offset}`]: offset
7110
7133
  })
@@ -7117,9 +7140,9 @@ var stdin_default$T = vue.defineComponent({
7117
7140
  };
7118
7141
  }
7119
7142
  });
7120
- const Col = withInstall(stdin_default$T);
7121
- const [name$M, bem$L] = createNamespace("collapse");
7122
- const COLLAPSE_KEY = Symbol(name$M);
7143
+ const Col = withInstall(stdin_default$X);
7144
+ const [name$Q, bem$P] = createNamespace("collapse");
7145
+ const COLLAPSE_KEY = Symbol(name$Q);
7123
7146
  const collapseProps = {
7124
7147
  border: truthProp,
7125
7148
  accordion: Boolean,
@@ -7139,8 +7162,8 @@ function validateModelValue(modelValue, accordion) {
7139
7162
  }
7140
7163
  return true;
7141
7164
  }
7142
- var stdin_default$S = vue.defineComponent({
7143
- name: name$M,
7165
+ var stdin_default$W = vue.defineComponent({
7166
+ name: name$Q,
7144
7167
  props: collapseProps,
7145
7168
  emits: ["change", "update:modelValue"],
7146
7169
  setup(props, {
@@ -7210,15 +7233,15 @@ var stdin_default$S = vue.defineComponent({
7210
7233
  return () => {
7211
7234
  var _a;
7212
7235
  return vue.createVNode("div", {
7213
- "class": [bem$L(), {
7236
+ "class": [bem$P(), {
7214
7237
  [BORDER_TOP_BOTTOM]: props.border
7215
7238
  }]
7216
7239
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
7217
7240
  };
7218
7241
  }
7219
7242
  });
7220
- const Collapse = withInstall(stdin_default$S);
7221
- const [name$L, bem$K] = createNamespace("collapse-item");
7243
+ const Collapse = withInstall(stdin_default$W);
7244
+ const [name$P, bem$O] = createNamespace("collapse-item");
7222
7245
  const CELL_SLOTS = ["icon", "title", "value", "label", "right-icon"];
7223
7246
  const collapseItemProps = extend({}, cellSharedProps, {
7224
7247
  name: numericProp,
@@ -7227,8 +7250,8 @@ const collapseItemProps = extend({}, cellSharedProps, {
7227
7250
  readonly: Boolean,
7228
7251
  lazyRender: truthProp
7229
7252
  });
7230
- var stdin_default$R = vue.defineComponent({
7231
- name: name$L,
7253
+ var stdin_default$V = vue.defineComponent({
7254
+ name: name$P,
7232
7255
  props: collapseItemProps,
7233
7256
  setup(props, {
7234
7257
  slots
@@ -7310,7 +7333,7 @@ var stdin_default$R = vue.defineComponent({
7310
7333
  }
7311
7334
  return vue.createVNode(Cell, vue.mergeProps({
7312
7335
  "role": "button",
7313
- "class": bem$K("title", {
7336
+ "class": bem$O("title", {
7314
7337
  disabled,
7315
7338
  expanded: expanded.value,
7316
7339
  borderless: !border
@@ -7323,11 +7346,11 @@ var stdin_default$R = vue.defineComponent({
7323
7346
  var _a;
7324
7347
  return vue.withDirectives(vue.createVNode("div", {
7325
7348
  "ref": wrapperRef,
7326
- "class": bem$K("wrapper"),
7349
+ "class": bem$O("wrapper"),
7327
7350
  "onTransitionend": onTransitionEnd
7328
7351
  }, [vue.createVNode("div", {
7329
7352
  "ref": contentRef,
7330
- "class": bem$K("content")
7353
+ "class": bem$O("content")
7331
7354
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), [[vue.vShow, show.value]]);
7332
7355
  });
7333
7356
  useExpose({
@@ -7336,15 +7359,15 @@ var stdin_default$R = vue.defineComponent({
7336
7359
  itemName: name2
7337
7360
  });
7338
7361
  return () => vue.createVNode("div", {
7339
- "class": [bem$K({
7362
+ "class": [bem$O({
7340
7363
  border: index.value && props.border
7341
7364
  })]
7342
7365
  }, [renderTitle(), renderContent()]);
7343
7366
  }
7344
7367
  });
7345
- const CollapseItem = withInstall(stdin_default$R);
7346
- const ConfigProvider = withInstall(stdin_default$1B);
7347
- const [name$K, bem$J, t$d] = createNamespace("contact-card");
7368
+ const CollapseItem = withInstall(stdin_default$V);
7369
+ const ConfigProvider = withInstall(stdin_default$1F);
7370
+ const [name$O, bem$N, t$d] = createNamespace("contact-card");
7348
7371
  const contactCardProps = {
7349
7372
  tel: String,
7350
7373
  name: String,
@@ -7352,8 +7375,8 @@ const contactCardProps = {
7352
7375
  addText: String,
7353
7376
  editable: truthProp
7354
7377
  };
7355
- var stdin_default$Q = vue.defineComponent({
7356
- name: name$K,
7378
+ var stdin_default$U = vue.defineComponent({
7379
+ name: name$O,
7357
7380
  props: contactCardProps,
7358
7381
  emits: ["click"],
7359
7382
  setup(props, {
@@ -7373,18 +7396,18 @@ var stdin_default$Q = vue.defineComponent({
7373
7396
  return () => vue.createVNode(Cell, {
7374
7397
  "center": true,
7375
7398
  "icon": props.type === "edit" ? "contact" : "add-square",
7376
- "class": bem$J([props.type]),
7399
+ "class": bem$N([props.type]),
7377
7400
  "border": false,
7378
7401
  "isLink": props.editable,
7379
- "titleClass": bem$J("title"),
7402
+ "titleClass": bem$N("title"),
7380
7403
  "onClick": onClick
7381
7404
  }, {
7382
7405
  title: renderContent
7383
7406
  });
7384
7407
  }
7385
7408
  });
7386
- const ContactCard = withInstall(stdin_default$Q);
7387
- const [name$J, bem$I, t$c] = createNamespace("contact-edit");
7409
+ const ContactCard = withInstall(stdin_default$U);
7410
+ const [name$N, bem$M, t$c] = createNamespace("contact-edit");
7388
7411
  const DEFAULT_CONTACT = {
7389
7412
  tel: "",
7390
7413
  name: ""
@@ -7404,8 +7427,8 @@ const contactEditProps = {
7404
7427
  default: isMobile
7405
7428
  }
7406
7429
  };
7407
- var stdin_default$P = vue.defineComponent({
7408
- name: name$J,
7430
+ var stdin_default$T = vue.defineComponent({
7431
+ name: name$N,
7409
7432
  props: contactEditProps,
7410
7433
  emits: ["save", "delete", "changeDefault"],
7411
7434
  setup(props, {
@@ -7419,20 +7442,20 @@ var stdin_default$P = vue.defineComponent({
7419
7442
  };
7420
7443
  const onDelete = () => emit("delete", contact);
7421
7444
  const renderButtons = () => vue.createVNode("div", {
7422
- "class": bem$I("buttons")
7445
+ "class": bem$M("buttons")
7423
7446
  }, [vue.createVNode(Button, {
7424
7447
  "block": true,
7425
7448
  "round": true,
7426
7449
  "type": "primary",
7427
7450
  "text": t$c("save"),
7428
- "class": bem$I("button"),
7451
+ "class": bem$M("button"),
7429
7452
  "loading": props.isSaving,
7430
7453
  "nativeType": "submit"
7431
7454
  }, null), props.isEdit && vue.createVNode(Button, {
7432
7455
  "block": true,
7433
7456
  "round": true,
7434
7457
  "text": t$c("delete"),
7435
- "class": bem$I("button"),
7458
+ "class": bem$M("button"),
7436
7459
  "loading": props.isDeleting,
7437
7460
  "onClick": onDelete
7438
7461
  }, null)]);
@@ -7445,7 +7468,7 @@ var stdin_default$P = vue.defineComponent({
7445
7468
  if (props.showSetDefault) {
7446
7469
  return vue.createVNode(Cell, {
7447
7470
  "title": props.setDefaultLabel,
7448
- "class": bem$I("switch-cell"),
7471
+ "class": bem$M("switch-cell"),
7449
7472
  "border": false
7450
7473
  }, {
7451
7474
  "right-icon": renderSwitch
@@ -7454,11 +7477,11 @@ var stdin_default$P = vue.defineComponent({
7454
7477
  };
7455
7478
  vue.watch(() => props.contactInfo, (value) => extend(contact, DEFAULT_CONTACT, value));
7456
7479
  return () => vue.createVNode(Form, {
7457
- "class": bem$I(),
7480
+ "class": bem$M(),
7458
7481
  "onSubmit": onSave
7459
7482
  }, {
7460
7483
  default: () => [vue.createVNode("div", {
7461
- "class": bem$I("fields")
7484
+ "class": bem$M("fields")
7462
7485
  }, [vue.createVNode(Field, {
7463
7486
  "modelValue": contact.name,
7464
7487
  "onUpdate:modelValue": ($event) => contact.name = $event,
@@ -7485,16 +7508,16 @@ var stdin_default$P = vue.defineComponent({
7485
7508
  });
7486
7509
  }
7487
7510
  });
7488
- const ContactEdit = withInstall(stdin_default$P);
7489
- const [name$I, bem$H, t$b] = createNamespace("contact-list");
7511
+ const ContactEdit = withInstall(stdin_default$T);
7512
+ const [name$M, bem$L, t$b] = createNamespace("contact-list");
7490
7513
  const contactListProps = {
7491
7514
  list: Array,
7492
7515
  addText: String,
7493
7516
  modelValue: unknownProp,
7494
7517
  defaultTagText: String
7495
7518
  };
7496
- var stdin_default$O = vue.defineComponent({
7497
- name: name$I,
7519
+ var stdin_default$S = vue.defineComponent({
7520
+ name: name$M,
7498
7521
  props: contactListProps,
7499
7522
  emits: ["add", "edit", "select", "update:modelValue"],
7500
7523
  setup(props, {
@@ -7506,13 +7529,13 @@ var stdin_default$O = vue.defineComponent({
7506
7529
  emit("select", item, index);
7507
7530
  };
7508
7531
  const renderRightIcon = () => vue.createVNode(Radio, {
7509
- "class": bem$H("radio"),
7532
+ "class": bem$L("radio"),
7510
7533
  "name": item.id,
7511
7534
  "iconSize": 16
7512
7535
  }, null);
7513
7536
  const renderEditIcon = () => vue.createVNode(Icon, {
7514
7537
  "name": "edit",
7515
- "class": bem$H("edit"),
7538
+ "class": bem$L("edit"),
7516
7539
  "onClick": (event) => {
7517
7540
  event.stopPropagation();
7518
7541
  emit("edit", item, index);
@@ -7524,7 +7547,7 @@ var stdin_default$O = vue.defineComponent({
7524
7547
  nodes.push(vue.createVNode(Tag, {
7525
7548
  "type": "primary",
7526
7549
  "round": true,
7527
- "class": bem$H("item-tag")
7550
+ "class": bem$L("item-tag")
7528
7551
  }, {
7529
7552
  default: () => [props.defaultTagText]
7530
7553
  }));
@@ -7535,8 +7558,8 @@ var stdin_default$O = vue.defineComponent({
7535
7558
  "key": item.id,
7536
7559
  "isLink": true,
7537
7560
  "center": true,
7538
- "class": bem$H("item"),
7539
- "titleClass": bem$H("item-title"),
7561
+ "class": bem$L("item"),
7562
+ "titleClass": bem$L("item-title"),
7540
7563
  "onClick": onClick
7541
7564
  }, {
7542
7565
  icon: renderEditIcon,
@@ -7545,25 +7568,25 @@ var stdin_default$O = vue.defineComponent({
7545
7568
  });
7546
7569
  };
7547
7570
  return () => vue.createVNode("div", {
7548
- "class": bem$H()
7571
+ "class": bem$L()
7549
7572
  }, [vue.createVNode(RadioGroup, {
7550
7573
  "modelValue": props.modelValue,
7551
- "class": bem$H("group")
7574
+ "class": bem$L("group")
7552
7575
  }, {
7553
7576
  default: () => [props.list && props.list.map(renderItem)]
7554
7577
  }), vue.createVNode("div", {
7555
- "class": [bem$H("bottom"), "van-safe-area-bottom"]
7578
+ "class": [bem$L("bottom"), "van-safe-area-bottom"]
7556
7579
  }, [vue.createVNode(Button, {
7557
7580
  "round": true,
7558
7581
  "block": true,
7559
7582
  "type": "primary",
7560
- "class": bem$H("add"),
7583
+ "class": bem$L("add"),
7561
7584
  "text": props.addText || t$b("addContact"),
7562
7585
  "onClick": () => emit("add")
7563
7586
  }, null)])]);
7564
7587
  }
7565
7588
  });
7566
- const ContactList = withInstall(stdin_default$O);
7589
+ const ContactList = withInstall(stdin_default$S);
7567
7590
  function parseFormat(format2, currentTime) {
7568
7591
  const { days } = currentTime;
7569
7592
  let { hours, minutes, seconds, milliseconds } = currentTime;
@@ -7599,15 +7622,15 @@ function parseFormat(format2, currentTime) {
7599
7622
  }
7600
7623
  return format2;
7601
7624
  }
7602
- const [name$H, bem$G] = createNamespace("count-down");
7625
+ const [name$L, bem$K] = createNamespace("count-down");
7603
7626
  const countDownProps = {
7604
7627
  time: makeNumericProp(0),
7605
7628
  format: makeStringProp("HH:mm:ss"),
7606
7629
  autoStart: truthProp,
7607
7630
  millisecond: Boolean
7608
7631
  };
7609
- var stdin_default$N = vue.defineComponent({
7610
- name: name$H,
7632
+ var stdin_default$R = vue.defineComponent({
7633
+ name: name$L,
7611
7634
  props: countDownProps,
7612
7635
  emits: ["change", "finish"],
7613
7636
  setup(props, {
@@ -7642,11 +7665,11 @@ var stdin_default$N = vue.defineComponent({
7642
7665
  });
7643
7666
  return () => vue.createVNode("div", {
7644
7667
  "role": "timer",
7645
- "class": bem$G()
7668
+ "class": bem$K()
7646
7669
  }, [slots.default ? slots.default(current2.value) : timeText.value]);
7647
7670
  }
7648
7671
  });
7649
- const CountDown = withInstall(stdin_default$N);
7672
+ const CountDown = withInstall(stdin_default$R);
7650
7673
  function getDate(timeStamp) {
7651
7674
  const date = new Date(timeStamp * 1e3);
7652
7675
  return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
@@ -7655,9 +7678,9 @@ function getDate(timeStamp) {
7655
7678
  }
7656
7679
  const formatDiscount = (discount) => (discount / 10).toFixed(discount % 10 === 0 ? 0 : 1);
7657
7680
  const formatAmount = (amount) => (amount / 100).toFixed(amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2);
7658
- const [name$G, bem$F, t$a] = createNamespace("coupon");
7659
- var stdin_default$M = vue.defineComponent({
7660
- name: name$G,
7681
+ const [name$K, bem$J, t$a] = createNamespace("coupon");
7682
+ var stdin_default$Q = vue.defineComponent({
7683
+ name: name$K,
7661
7684
  props: {
7662
7685
  chosen: Boolean,
7663
7686
  coupon: makeRequiredProp(Object),
@@ -7701,34 +7724,34 @@ var stdin_default$M = vue.defineComponent({
7701
7724
  } = props;
7702
7725
  const description = disabled && coupon.reason || coupon.description;
7703
7726
  return vue.createVNode("div", {
7704
- "class": bem$F({
7727
+ "class": bem$J({
7705
7728
  disabled
7706
7729
  })
7707
7730
  }, [vue.createVNode("div", {
7708
- "class": bem$F("content")
7731
+ "class": bem$J("content")
7709
7732
  }, [vue.createVNode("div", {
7710
- "class": bem$F("head")
7733
+ "class": bem$J("head")
7711
7734
  }, [vue.createVNode("h2", {
7712
- "class": bem$F("amount")
7735
+ "class": bem$J("amount")
7713
7736
  }, [faceAmount.value]), vue.createVNode("p", {
7714
- "class": bem$F("condition")
7737
+ "class": bem$J("condition")
7715
7738
  }, [coupon.condition || conditionMessage.value])]), vue.createVNode("div", {
7716
- "class": bem$F("body")
7739
+ "class": bem$J("body")
7717
7740
  }, [vue.createVNode("p", {
7718
- "class": bem$F("name")
7741
+ "class": bem$J("name")
7719
7742
  }, [coupon.name]), vue.createVNode("p", {
7720
- "class": bem$F("valid")
7743
+ "class": bem$J("valid")
7721
7744
  }, [validPeriod.value]), !disabled && vue.createVNode(Checkbox, {
7722
- "class": bem$F("corner"),
7745
+ "class": bem$J("corner"),
7723
7746
  "modelValue": chosen
7724
7747
  }, null)])]), description && vue.createVNode("p", {
7725
- "class": bem$F("description")
7748
+ "class": bem$J("description")
7726
7749
  }, [description])]);
7727
7750
  };
7728
7751
  }
7729
7752
  });
7730
- const Coupon = withInstall(stdin_default$M);
7731
- const [name$F, bem$E, t$9] = createNamespace("coupon-cell");
7753
+ const Coupon = withInstall(stdin_default$Q);
7754
+ const [name$J, bem$I, t$9] = createNamespace("coupon-cell");
7732
7755
  const couponCellProps = {
7733
7756
  title: String,
7734
7757
  border: truthProp,
@@ -7756,34 +7779,34 @@ function formatValue({
7756
7779
  }
7757
7780
  return coupons.length === 0 ? t$9("noCoupon") : t$9("count", coupons.length);
7758
7781
  }
7759
- var stdin_default$L = vue.defineComponent({
7760
- name: name$F,
7782
+ var stdin_default$P = vue.defineComponent({
7783
+ name: name$J,
7761
7784
  props: couponCellProps,
7762
7785
  setup(props) {
7763
7786
  return () => {
7764
7787
  const selected = props.coupons[+props.chosenCoupon];
7765
7788
  return vue.createVNode(Cell, {
7766
- "class": bem$E(),
7789
+ "class": bem$I(),
7767
7790
  "value": formatValue(props),
7768
7791
  "title": props.title || t$9("title"),
7769
7792
  "border": props.border,
7770
7793
  "isLink": props.editable,
7771
- "valueClass": bem$E("value", {
7794
+ "valueClass": bem$I("value", {
7772
7795
  selected
7773
7796
  })
7774
7797
  }, null);
7775
7798
  };
7776
7799
  }
7777
7800
  });
7778
- const CouponCell = withInstall(stdin_default$L);
7779
- const [name$E, bem$D] = createNamespace("empty");
7801
+ const CouponCell = withInstall(stdin_default$P);
7802
+ const [name$I, bem$H] = createNamespace("empty");
7780
7803
  const emptyProps = {
7781
7804
  image: makeStringProp("default"),
7782
7805
  imageSize: [Number, String, Array],
7783
7806
  description: String
7784
7807
  };
7785
- var stdin_default$K = vue.defineComponent({
7786
- name: name$E,
7808
+ var stdin_default$O = vue.defineComponent({
7809
+ name: name$I,
7787
7810
  props: emptyProps,
7788
7811
  setup(props, {
7789
7812
  slots
@@ -7792,14 +7815,14 @@ var stdin_default$K = vue.defineComponent({
7792
7815
  const description = slots.description ? slots.description() : props.description;
7793
7816
  if (description) {
7794
7817
  return vue.createVNode("p", {
7795
- "class": bem$D("description")
7818
+ "class": bem$H("description")
7796
7819
  }, [description]);
7797
7820
  }
7798
7821
  };
7799
7822
  const renderBottom = () => {
7800
7823
  if (slots.default) {
7801
7824
  return vue.createVNode("div", {
7802
- "class": bem$D("bottom")
7825
+ "class": bem$H("bottom")
7803
7826
  }, [slots.default()]);
7804
7827
  }
7805
7828
  };
@@ -8084,15 +8107,15 @@ var stdin_default$K = vue.defineComponent({
8084
8107
  }, null);
8085
8108
  };
8086
8109
  return () => vue.createVNode("div", {
8087
- "class": bem$D()
8110
+ "class": bem$H()
8088
8111
  }, [vue.createVNode("div", {
8089
- "class": bem$D("image"),
8112
+ "class": bem$H("image"),
8090
8113
  "style": getSizeStyle(props.imageSize)
8091
8114
  }, [renderImage()]), renderDescription(), renderBottom()]);
8092
8115
  }
8093
8116
  });
8094
- const Empty = withInstall(stdin_default$K);
8095
- const [name$D, bem$C, t$8] = createNamespace("coupon-list");
8117
+ const Empty = withInstall(stdin_default$O);
8118
+ const [name$H, bem$G, t$8] = createNamespace("coupon-list");
8096
8119
  const couponListProps = {
8097
8120
  code: makeStringProp(""),
8098
8121
  coupons: makeArrayProp(),
@@ -8113,8 +8136,8 @@ const couponListProps = {
8113
8136
  exchangeButtonLoading: Boolean,
8114
8137
  exchangeButtonDisabled: Boolean
8115
8138
  };
8116
- var stdin_default$J = vue.defineComponent({
8117
- name: name$D,
8139
+ var stdin_default$N = vue.defineComponent({
8140
+ name: name$H,
8118
8141
  props: couponListProps,
8119
8142
  emits: ["change", "exchange", "update:code"],
8120
8143
  setup(props, {
@@ -8150,26 +8173,26 @@ var stdin_default$J = vue.defineComponent({
8150
8173
  "image": props.emptyImage
8151
8174
  }, {
8152
8175
  default: () => [vue.createVNode("p", {
8153
- "class": bem$C("empty-tip")
8176
+ "class": bem$G("empty-tip")
8154
8177
  }, [t$8("noCoupon")])]
8155
8178
  });
8156
8179
  const renderExchangeBar = () => {
8157
8180
  if (props.showExchangeBar) {
8158
8181
  return vue.createVNode("div", {
8159
8182
  "ref": barRef,
8160
- "class": bem$C("exchange-bar")
8183
+ "class": bem$G("exchange-bar")
8161
8184
  }, [vue.createVNode(Field, {
8162
8185
  "modelValue": currentCode.value,
8163
8186
  "onUpdate:modelValue": ($event) => currentCode.value = $event,
8164
8187
  "clearable": true,
8165
8188
  "border": false,
8166
- "class": bem$C("field"),
8189
+ "class": bem$G("field"),
8167
8190
  "placeholder": props.inputPlaceholder || t$8("placeholder"),
8168
8191
  "maxlength": "20"
8169
8192
  }, null), vue.createVNode(Button, {
8170
8193
  "plain": true,
8171
8194
  "type": "primary",
8172
- "class": bem$C("exchange"),
8195
+ "class": bem$G("exchange"),
8173
8196
  "text": props.exchangeButtonText || t$8("exchange"),
8174
8197
  "loading": props.exchangeButtonLoading,
8175
8198
  "disabled": buttonDisabled.value,
@@ -8189,7 +8212,7 @@ var stdin_default$J = vue.defineComponent({
8189
8212
  default: () => {
8190
8213
  var _a;
8191
8214
  return [vue.createVNode("div", {
8192
- "class": bem$C("list", {
8215
+ "class": bem$G("list", {
8193
8216
  "with-bottom": props.showCloseButton
8194
8217
  }),
8195
8218
  "style": {
@@ -8218,7 +8241,7 @@ var stdin_default$J = vue.defineComponent({
8218
8241
  default: () => {
8219
8242
  var _a;
8220
8243
  return [vue.createVNode("div", {
8221
- "class": bem$C("list", {
8244
+ "class": bem$G("list", {
8222
8245
  "with-bottom": props.showCloseButton
8223
8246
  }),
8224
8247
  "style": {
@@ -8245,28 +8268,28 @@ var stdin_default$J = vue.defineComponent({
8245
8268
  });
8246
8269
  return () => vue.createVNode("div", {
8247
8270
  "ref": root,
8248
- "class": bem$C()
8271
+ "class": bem$G()
8249
8272
  }, [renderExchangeBar(), vue.createVNode(Tabs, {
8250
8273
  "active": activeTab.value,
8251
8274
  "onUpdate:active": ($event) => activeTab.value = $event,
8252
- "class": bem$C("tab")
8275
+ "class": bem$G("tab")
8253
8276
  }, {
8254
8277
  default: () => [renderCouponTab(), renderDisabledTab()]
8255
8278
  }), vue.createVNode("div", {
8256
- "class": bem$C("bottom")
8279
+ "class": bem$G("bottom")
8257
8280
  }, [vue.withDirectives(vue.createVNode(Button, {
8258
8281
  "round": true,
8259
8282
  "block": true,
8260
8283
  "type": "primary",
8261
- "class": bem$C("close"),
8284
+ "class": bem$G("close"),
8262
8285
  "text": props.closeButtonText || t$8("close"),
8263
8286
  "onClick": () => emit("change", -1)
8264
8287
  }, null), [[vue.vShow, props.showCloseButton]])])]);
8265
8288
  }
8266
8289
  });
8267
- const CouponList = withInstall(stdin_default$J);
8290
+ const CouponList = withInstall(stdin_default$N);
8268
8291
  const currentYear = new Date().getFullYear();
8269
- const [name$C] = createNamespace("date-picker");
8292
+ const [name$G] = createNamespace("date-picker");
8270
8293
  const datePickerProps = extend({}, sharedProps, {
8271
8294
  columnsType: {
8272
8295
  type: Array,
@@ -8283,8 +8306,8 @@ const datePickerProps = extend({}, sharedProps, {
8283
8306
  validator: isDate
8284
8307
  }
8285
8308
  });
8286
- var stdin_default$I = vue.defineComponent({
8287
- name: name$C,
8309
+ var stdin_default$M = vue.defineComponent({
8310
+ name: name$G,
8288
8311
  props: datePickerProps,
8289
8312
  emits: ["confirm", "cancel", "change", "update:modelValue"],
8290
8313
  setup(props, {
@@ -8342,7 +8365,10 @@ var stdin_default$I = vue.defineComponent({
8342
8365
  case "day":
8343
8366
  return genDayOptions();
8344
8367
  default:
8345
- throw new Error(`[Vant] DatePicker: unsupported columns type: ${type}`);
8368
+ if (process.env.NODE_ENV !== "production") {
8369
+ throw new Error(`[Vant] DatePicker: unsupported columns type: ${type}`);
8370
+ }
8371
+ return [];
8346
8372
  }
8347
8373
  }));
8348
8374
  vue.watch(currentValues, (newValues) => {
@@ -8371,8 +8397,8 @@ var stdin_default$I = vue.defineComponent({
8371
8397
  }, pick(props, pickerInheritKeys)), slots);
8372
8398
  }
8373
8399
  });
8374
- const DatePicker = withInstall(stdin_default$I);
8375
- const [name$B, bem$B, t$7] = createNamespace("dialog");
8400
+ const DatePicker = withInstall(stdin_default$M);
8401
+ const [name$F, bem$F, t$7] = createNamespace("dialog");
8376
8402
  const dialogProps = extend({}, popupSharedProps, {
8377
8403
  title: String,
8378
8404
  theme: String,
@@ -8395,8 +8421,8 @@ const dialogProps = extend({}, popupSharedProps, {
8395
8421
  closeOnClickOverlay: Boolean
8396
8422
  });
8397
8423
  const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
8398
- var stdin_default$H = vue.defineComponent({
8399
- name: name$B,
8424
+ var stdin_default$L = vue.defineComponent({
8425
+ name: name$F,
8400
8426
  props: dialogProps,
8401
8427
  emits: ["confirm", "cancel", "keydown", "update:show"],
8402
8428
  setup(props, {
@@ -8453,7 +8479,7 @@ var stdin_default$H = vue.defineComponent({
8453
8479
  const title = slots.title ? slots.title() : props.title;
8454
8480
  if (title) {
8455
8481
  return vue.createVNode("div", {
8456
- "class": bem$B("header", {
8482
+ "class": bem$F("header", {
8457
8483
  isolated: !props.message && !slots.default
8458
8484
  })
8459
8485
  }, [title]);
@@ -8465,7 +8491,7 @@ var stdin_default$H = vue.defineComponent({
8465
8491
  allowHtml,
8466
8492
  messageAlign
8467
8493
  } = props;
8468
- const classNames = bem$B("message", {
8494
+ const classNames = bem$F("message", {
8469
8495
  "has-title": hasTitle,
8470
8496
  [messageAlign]: messageAlign
8471
8497
  });
@@ -8483,7 +8509,7 @@ var stdin_default$H = vue.defineComponent({
8483
8509
  const renderContent = () => {
8484
8510
  if (slots.default) {
8485
8511
  return vue.createVNode("div", {
8486
- "class": bem$B("content")
8512
+ "class": bem$F("content")
8487
8513
  }, [slots.default()]);
8488
8514
  }
8489
8515
  const {
@@ -8495,18 +8521,18 @@ var stdin_default$H = vue.defineComponent({
8495
8521
  const hasTitle = !!(title || slots.title);
8496
8522
  return vue.createVNode("div", {
8497
8523
  "key": allowHtml ? 1 : 0,
8498
- "class": bem$B("content", {
8524
+ "class": bem$F("content", {
8499
8525
  isolated: !hasTitle
8500
8526
  })
8501
8527
  }, [renderMessage(hasTitle)]);
8502
8528
  }
8503
8529
  };
8504
8530
  const renderButtons = () => vue.createVNode("div", {
8505
- "class": [BORDER_TOP, bem$B("footer")]
8531
+ "class": [BORDER_TOP, bem$F("footer")]
8506
8532
  }, [props.showCancelButton && vue.createVNode(Button, {
8507
8533
  "size": "large",
8508
8534
  "text": props.cancelButtonText || t$7("cancel"),
8509
- "class": bem$B("cancel"),
8535
+ "class": bem$F("cancel"),
8510
8536
  "style": {
8511
8537
  color: props.cancelButtonColor
8512
8538
  },
@@ -8516,7 +8542,7 @@ var stdin_default$H = vue.defineComponent({
8516
8542
  }, null), props.showConfirmButton && vue.createVNode(Button, {
8517
8543
  "size": "large",
8518
8544
  "text": props.confirmButtonText || t$7("confirm"),
8519
- "class": [bem$B("confirm"), {
8545
+ "class": [bem$F("confirm"), {
8520
8546
  [BORDER_LEFT]: props.showCancelButton
8521
8547
  }],
8522
8548
  "style": {
@@ -8527,12 +8553,12 @@ var stdin_default$H = vue.defineComponent({
8527
8553
  "onClick": onConfirm
8528
8554
  }, null)]);
8529
8555
  const renderRoundButtons = () => vue.createVNode(ActionBar, {
8530
- "class": bem$B("footer")
8556
+ "class": bem$F("footer")
8531
8557
  }, {
8532
8558
  default: () => [props.showCancelButton && vue.createVNode(ActionBarButton, {
8533
8559
  "type": "warning",
8534
8560
  "text": props.cancelButtonText || t$7("cancel"),
8535
- "class": bem$B("cancel"),
8561
+ "class": bem$F("cancel"),
8536
8562
  "color": props.cancelButtonColor,
8537
8563
  "loading": loading.cancel,
8538
8564
  "disabled": props.cancelButtonDisabled,
@@ -8540,7 +8566,7 @@ var stdin_default$H = vue.defineComponent({
8540
8566
  }, null), props.showConfirmButton && vue.createVNode(ActionBarButton, {
8541
8567
  "type": "danger",
8542
8568
  "text": props.confirmButtonText || t$7("confirm"),
8543
- "class": bem$B("confirm"),
8569
+ "class": bem$F("confirm"),
8544
8570
  "color": props.confirmButtonColor,
8545
8571
  "loading": loading.confirm,
8546
8572
  "disabled": props.confirmButtonDisabled,
@@ -8564,7 +8590,7 @@ var stdin_default$H = vue.defineComponent({
8564
8590
  return vue.createVNode(Popup, vue.mergeProps({
8565
8591
  "ref": root,
8566
8592
  "role": "dialog",
8567
- "class": [bem$B([theme]), className],
8593
+ "class": [bem$F([theme]), className],
8568
8594
  "style": {
8569
8595
  width: addUnit(width)
8570
8596
  },
@@ -8614,7 +8640,7 @@ function initInstance$2() {
8614
8640
  state,
8615
8641
  toggle
8616
8642
  } = usePopupState();
8617
- return () => vue.createVNode(stdin_default$H, vue.mergeProps(state, {
8643
+ return () => vue.createVNode(stdin_default$L, vue.mergeProps(state, {
8618
8644
  "onUpdate:show": toggle
8619
8645
  }), null);
8620
8646
  }
@@ -8652,15 +8678,15 @@ const closeDialog = () => {
8652
8678
  instance$2.toggle(false);
8653
8679
  }
8654
8680
  };
8655
- const Dialog = withInstall(stdin_default$H);
8656
- const [name$A, bem$A] = createNamespace("divider");
8681
+ const Dialog = withInstall(stdin_default$L);
8682
+ const [name$E, bem$E] = createNamespace("divider");
8657
8683
  const dividerProps = {
8658
8684
  dashed: Boolean,
8659
8685
  hairline: truthProp,
8660
8686
  contentPosition: makeStringProp("center")
8661
8687
  };
8662
- var stdin_default$G = vue.defineComponent({
8663
- name: name$A,
8688
+ var stdin_default$K = vue.defineComponent({
8689
+ name: name$E,
8664
8690
  props: dividerProps,
8665
8691
  setup(props, {
8666
8692
  slots
@@ -8669,7 +8695,7 @@ var stdin_default$G = vue.defineComponent({
8669
8695
  var _a;
8670
8696
  return vue.createVNode("div", {
8671
8697
  "role": "separator",
8672
- "class": bem$A({
8698
+ "class": bem$E({
8673
8699
  dashed: props.dashed,
8674
8700
  hairline: props.hairline,
8675
8701
  [`content-${props.contentPosition}`]: !!slots.default
@@ -8678,8 +8704,8 @@ var stdin_default$G = vue.defineComponent({
8678
8704
  };
8679
8705
  }
8680
8706
  });
8681
- const Divider = withInstall(stdin_default$G);
8682
- const [name$z, bem$z] = createNamespace("dropdown-menu");
8707
+ const Divider = withInstall(stdin_default$K);
8708
+ const [name$D, bem$D] = createNamespace("dropdown-menu");
8683
8709
  const dropdownMenuProps = {
8684
8710
  overlay: truthProp,
8685
8711
  zIndex: numericProp,
@@ -8689,9 +8715,9 @@ const dropdownMenuProps = {
8689
8715
  closeOnClickOutside: truthProp,
8690
8716
  closeOnClickOverlay: truthProp
8691
8717
  };
8692
- const DROPDOWN_KEY = Symbol(name$z);
8693
- var stdin_default$F = vue.defineComponent({
8694
- name: name$z,
8718
+ const DROPDOWN_KEY = Symbol(name$D);
8719
+ var stdin_default$J = vue.defineComponent({
8720
+ name: name$D,
8695
8721
  props: dropdownMenuProps,
8696
8722
  setup(props, {
8697
8723
  slots
@@ -8759,7 +8785,7 @@ var stdin_default$F = vue.defineComponent({
8759
8785
  "id": `${id}-${index}`,
8760
8786
  "role": "button",
8761
8787
  "tabindex": disabled ? void 0 : 0,
8762
- "class": [bem$z("item", {
8788
+ "class": [bem$D("item", {
8763
8789
  disabled
8764
8790
  }), {
8765
8791
  [HAPTICS_FEEDBACK]: !disabled
@@ -8770,7 +8796,7 @@ var stdin_default$F = vue.defineComponent({
8770
8796
  }
8771
8797
  }
8772
8798
  }, [vue.createVNode("span", {
8773
- "class": [bem$z("title", {
8799
+ "class": [bem$D("title", {
8774
8800
  down: showPopup === (props.direction === "down"),
8775
8801
  active: showPopup
8776
8802
  }), titleClass],
@@ -8795,18 +8821,18 @@ var stdin_default$F = vue.defineComponent({
8795
8821
  var _a;
8796
8822
  return vue.createVNode("div", {
8797
8823
  "ref": root,
8798
- "class": bem$z()
8824
+ "class": bem$D()
8799
8825
  }, [vue.createVNode("div", {
8800
8826
  "ref": barRef,
8801
8827
  "style": barStyle.value,
8802
- "class": bem$z("bar", {
8828
+ "class": bem$D("bar", {
8803
8829
  opened: opened.value
8804
8830
  })
8805
8831
  }, [children.map(renderTitle)]), (_a = slots.default) == null ? void 0 : _a.call(slots)]);
8806
8832
  };
8807
8833
  }
8808
8834
  });
8809
- const [name$y, bem$y] = createNamespace("dropdown-item");
8835
+ const [name$C, bem$C] = createNamespace("dropdown-item");
8810
8836
  const dropdownItemProps = {
8811
8837
  title: String,
8812
8838
  options: makeArrayProp(),
@@ -8816,8 +8842,8 @@ const dropdownItemProps = {
8816
8842
  modelValue: unknownProp,
8817
8843
  titleClass: unknownProp
8818
8844
  };
8819
- var stdin_default$E = vue.defineComponent({
8820
- name: name$y,
8845
+ var stdin_default$I = vue.defineComponent({
8846
+ name: name$C,
8821
8847
  props: dropdownItemProps,
8822
8848
  emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
8823
8849
  setup(props, {
@@ -8887,7 +8913,7 @@ var stdin_default$E = vue.defineComponent({
8887
8913
  const renderIcon = () => {
8888
8914
  if (active) {
8889
8915
  return vue.createVNode(Icon, {
8890
- "class": bem$y("icon"),
8916
+ "class": bem$C("icon"),
8891
8917
  "color": activeColor,
8892
8918
  "name": "success"
8893
8919
  }, null);
@@ -8898,7 +8924,7 @@ var stdin_default$E = vue.defineComponent({
8898
8924
  "key": option.value,
8899
8925
  "icon": option.icon,
8900
8926
  "title": option.text,
8901
- "class": bem$y("option", {
8927
+ "class": bem$C("option", {
8902
8928
  active
8903
8929
  }),
8904
8930
  "style": {
@@ -8930,13 +8956,13 @@ var stdin_default$E = vue.defineComponent({
8930
8956
  }
8931
8957
  return vue.withDirectives(vue.createVNode("div", {
8932
8958
  "style": style,
8933
- "class": bem$y([direction]),
8959
+ "class": bem$C([direction]),
8934
8960
  "onClick": onClickWrapper
8935
8961
  }, [vue.createVNode(Popup, {
8936
8962
  "show": state.showPopup,
8937
8963
  "onUpdate:show": ($event) => state.showPopup = $event,
8938
8964
  "role": "menu",
8939
- "class": bem$y("content"),
8965
+ "class": bem$C("content"),
8940
8966
  "overlay": overlay,
8941
8967
  "position": direction === "down" ? "top" : "bottom",
8942
8968
  "duration": state.transition ? duration : 0,
@@ -8974,9 +9000,9 @@ var stdin_default$E = vue.defineComponent({
8974
9000
  };
8975
9001
  }
8976
9002
  });
8977
- const DropdownItem = withInstall(stdin_default$E);
8978
- const DropdownMenu = withInstall(stdin_default$F);
8979
- const [name$x, bem$x] = createNamespace("grid");
9003
+ const DropdownItem = withInstall(stdin_default$I);
9004
+ const DropdownMenu = withInstall(stdin_default$J);
9005
+ const [name$B, bem$B] = createNamespace("grid");
8980
9006
  const gridProps = {
8981
9007
  square: Boolean,
8982
9008
  center: truthProp,
@@ -8988,9 +9014,9 @@ const gridProps = {
8988
9014
  clickable: Boolean,
8989
9015
  columnNum: makeNumericProp(4)
8990
9016
  };
8991
- const GRID_KEY = Symbol(name$x);
8992
- var stdin_default$D = vue.defineComponent({
8993
- name: name$x,
9017
+ const GRID_KEY = Symbol(name$B);
9018
+ var stdin_default$H = vue.defineComponent({
9019
+ name: name$B,
8994
9020
  props: gridProps,
8995
9021
  setup(props, {
8996
9022
  slots
@@ -9007,15 +9033,15 @@ var stdin_default$D = vue.defineComponent({
9007
9033
  "style": {
9008
9034
  paddingLeft: addUnit(props.gutter)
9009
9035
  },
9010
- "class": [bem$x(), {
9036
+ "class": [bem$B(), {
9011
9037
  [BORDER_TOP]: props.border && !props.gutter
9012
9038
  }]
9013
9039
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
9014
9040
  };
9015
9041
  }
9016
9042
  });
9017
- const Grid = withInstall(stdin_default$D);
9018
- const [name$w, bem$w] = createNamespace("grid-item");
9043
+ const Grid = withInstall(stdin_default$H);
9044
+ const [name$A, bem$A] = createNamespace("grid-item");
9019
9045
  const gridItemProps = extend({}, routeProps, {
9020
9046
  dot: Boolean,
9021
9047
  text: String,
@@ -9025,8 +9051,8 @@ const gridItemProps = extend({}, routeProps, {
9025
9051
  iconPrefix: String,
9026
9052
  badgeProps: Object
9027
9053
  });
9028
- var stdin_default$C = vue.defineComponent({
9029
- name: name$w,
9054
+ var stdin_default$G = vue.defineComponent({
9055
+ name: name$A,
9030
9056
  props: gridItemProps,
9031
9057
  setup(props, {
9032
9058
  slots
@@ -9092,7 +9118,7 @@ var stdin_default$C = vue.defineComponent({
9092
9118
  "name": props.icon,
9093
9119
  "size": parent.props.iconSize,
9094
9120
  "badge": props.badge,
9095
- "class": bem$w("icon"),
9121
+ "class": bem$A("icon"),
9096
9122
  "color": props.iconColor,
9097
9123
  "badgeProps": props.badgeProps,
9098
9124
  "classPrefix": props.iconPrefix
@@ -9105,7 +9131,7 @@ var stdin_default$C = vue.defineComponent({
9105
9131
  }
9106
9132
  if (props.text) {
9107
9133
  return vue.createVNode("span", {
9108
- "class": bem$w("text")
9134
+ "class": bem$A("text")
9109
9135
  }, [props.text]);
9110
9136
  }
9111
9137
  };
@@ -9125,7 +9151,7 @@ var stdin_default$C = vue.defineComponent({
9125
9151
  direction,
9126
9152
  clickable
9127
9153
  } = parent.props;
9128
- const classes = [bem$w("content", [direction, {
9154
+ const classes = [bem$A("content", [direction, {
9129
9155
  center,
9130
9156
  square,
9131
9157
  reverse,
@@ -9135,7 +9161,7 @@ var stdin_default$C = vue.defineComponent({
9135
9161
  [BORDER]: border
9136
9162
  }];
9137
9163
  return vue.createVNode("div", {
9138
- "class": [bem$w({
9164
+ "class": [bem$A({
9139
9165
  square
9140
9166
  })],
9141
9167
  "style": rootStyle.value
@@ -9149,10 +9175,10 @@ var stdin_default$C = vue.defineComponent({
9149
9175
  };
9150
9176
  }
9151
9177
  });
9152
- const GridItem = withInstall(stdin_default$C);
9178
+ const GridItem = withInstall(stdin_default$G);
9153
9179
  const getDistance = (touches) => Math.sqrt((touches[0].clientX - touches[1].clientX) ** 2 + (touches[0].clientY - touches[1].clientY) ** 2);
9154
- const bem$v = createNamespace("image-preview")[1];
9155
- var stdin_default$B = vue.defineComponent({
9180
+ const bem$z = createNamespace("image-preview")[1];
9181
+ var stdin_default$F = vue.defineComponent({
9156
9182
  props: {
9157
9183
  src: String,
9158
9184
  show: Boolean,
@@ -9162,9 +9188,10 @@ var stdin_default$B = vue.defineComponent({
9162
9188
  rootWidth: makeRequiredProp(Number),
9163
9189
  rootHeight: makeRequiredProp(Number)
9164
9190
  },
9165
- emits: ["scale", "close"],
9191
+ emits: ["scale", "close", "longPress"],
9166
9192
  setup(props, {
9167
- emit
9193
+ emit,
9194
+ slots
9168
9195
  }) {
9169
9196
  const state = vue.reactive({
9170
9197
  scale: 1,
@@ -9308,16 +9335,20 @@ var stdin_default$B = vue.defineComponent({
9308
9335
  const deltaTime = Date.now() - touchStartTime;
9309
9336
  const TAP_TIME = 250;
9310
9337
  const TAP_OFFSET = 5;
9311
- if (offsetX.value < TAP_OFFSET && offsetY.value < TAP_OFFSET && deltaTime < TAP_TIME) {
9312
- if (doubleTapTimer) {
9313
- clearTimeout(doubleTapTimer);
9314
- doubleTapTimer = null;
9315
- toggleScale();
9316
- } else {
9317
- doubleTapTimer = setTimeout(() => {
9318
- emit("close");
9338
+ if (offsetX.value < TAP_OFFSET && offsetY.value < TAP_OFFSET) {
9339
+ if (deltaTime < TAP_TIME) {
9340
+ if (doubleTapTimer) {
9341
+ clearTimeout(doubleTapTimer);
9319
9342
  doubleTapTimer = null;
9320
- }, TAP_TIME);
9343
+ toggleScale();
9344
+ } else {
9345
+ doubleTapTimer = setTimeout(() => {
9346
+ emit("close");
9347
+ doubleTapTimer = null;
9348
+ }, TAP_TIME);
9349
+ }
9350
+ } else if (deltaTime > LONG_PRESS_START_TIME) {
9351
+ emit("longPress");
9321
9352
  }
9322
9353
  }
9323
9354
  };
@@ -9377,15 +9408,19 @@ var stdin_default$B = vue.defineComponent({
9377
9408
  };
9378
9409
  return vue.createVNode(SwipeItem, {
9379
9410
  "ref": swipeItem,
9380
- "class": bem$v("swipe-item"),
9411
+ "class": bem$z("swipe-item"),
9381
9412
  "onTouchstartPassive": onTouchStart,
9382
9413
  "onTouchend": onTouchEnd,
9383
9414
  "onTouchcancel": onTouchEnd
9384
9415
  }, {
9385
- default: () => [vue.createVNode(Image$1, {
9416
+ default: () => [slots.image ? vue.createVNode("div", {
9417
+ "class": bem$z("image-wrap")
9418
+ }, [slots.image({
9419
+ src: props.src
9420
+ })]) : vue.createVNode(Image$1, {
9386
9421
  "src": props.src,
9387
9422
  "fit": "contain",
9388
- "class": bem$v("image", {
9423
+ "class": bem$z("image", {
9389
9424
  vertical: vertical.value
9390
9425
  }),
9391
9426
  "style": imageStyle.value,
@@ -9395,7 +9430,7 @@ var stdin_default$B = vue.defineComponent({
9395
9430
  };
9396
9431
  }
9397
9432
  });
9398
- const [name$v, bem$u] = createNamespace("image-preview");
9433
+ const [name$z, bem$y] = createNamespace("image-preview");
9399
9434
  const popupProps$1 = ["show", "transition", "overlayStyle", "closeOnPopstate"];
9400
9435
  const imagePreviewProps = {
9401
9436
  show: Boolean,
@@ -9418,10 +9453,10 @@ const imagePreviewProps = {
9418
9453
  closeOnPopstate: truthProp,
9419
9454
  closeIconPosition: makeStringProp("top-right")
9420
9455
  };
9421
- var stdin_default$A = vue.defineComponent({
9422
- name: name$v,
9456
+ var stdin_default$E = vue.defineComponent({
9457
+ name: name$z,
9423
9458
  props: imagePreviewProps,
9424
- emits: ["scale", "close", "closed", "change", "update:show"],
9459
+ emits: ["scale", "close", "closed", "change", "longPress", "update:show"],
9425
9460
  setup(props, {
9426
9461
  emit,
9427
9462
  slots
@@ -9457,7 +9492,7 @@ var stdin_default$A = vue.defineComponent({
9457
9492
  const renderIndex = () => {
9458
9493
  if (props.showIndex) {
9459
9494
  return vue.createVNode("div", {
9460
- "class": bem$u("index")
9495
+ "class": bem$y("index")
9461
9496
  }, [slots.index ? slots.index({
9462
9497
  index: state.active
9463
9498
  }) : `${state.active + 1} / ${props.images.length}`]);
@@ -9466,7 +9501,7 @@ var stdin_default$A = vue.defineComponent({
9466
9501
  const renderCover = () => {
9467
9502
  if (slots.cover) {
9468
9503
  return vue.createVNode("div", {
9469
- "class": bem$u("cover")
9504
+ "class": bem$y("cover")
9470
9505
  }, [slots.cover()]);
9471
9506
  }
9472
9507
  };
@@ -9474,14 +9509,14 @@ var stdin_default$A = vue.defineComponent({
9474
9509
  "ref": swipeRef,
9475
9510
  "lazyRender": true,
9476
9511
  "loop": props.loop,
9477
- "class": bem$u("swipe"),
9512
+ "class": bem$y("swipe"),
9478
9513
  "duration": props.swipeDuration,
9479
9514
  "initialSwipe": props.startPosition,
9480
9515
  "showIndicators": props.showIndicators,
9481
9516
  "indicatorColor": "white",
9482
9517
  "onChange": setActive
9483
9518
  }, {
9484
- default: () => [props.images.map((image) => vue.createVNode(stdin_default$B, {
9519
+ default: () => [props.images.map((image, index) => vue.createVNode(stdin_default$F, {
9485
9520
  "src": image,
9486
9521
  "show": props.show,
9487
9522
  "active": state.active,
@@ -9490,15 +9525,20 @@ var stdin_default$A = vue.defineComponent({
9490
9525
  "rootWidth": state.rootWidth,
9491
9526
  "rootHeight": state.rootHeight,
9492
9527
  "onScale": emitScale,
9493
- "onClose": emitClose
9494
- }, null))]
9528
+ "onClose": emitClose,
9529
+ "onLongPress": () => emit("longPress", {
9530
+ index
9531
+ })
9532
+ }, {
9533
+ image: slots.image
9534
+ }))]
9495
9535
  });
9496
9536
  const renderClose = () => {
9497
9537
  if (props.closeable) {
9498
9538
  return vue.createVNode(Icon, {
9499
9539
  "role": "button",
9500
9540
  "name": props.closeIcon,
9501
- "class": [bem$u("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
9541
+ "class": [bem$y("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
9502
9542
  "onClick": emitClose
9503
9543
  }, null);
9504
9544
  }
@@ -9535,8 +9575,8 @@ var stdin_default$A = vue.defineComponent({
9535
9575
  }
9536
9576
  });
9537
9577
  return () => vue.createVNode(Popup, vue.mergeProps({
9538
- "class": [bem$u(), props.className],
9539
- "overlayClass": [bem$u("overlay"), props.overlayClass],
9578
+ "class": [bem$y(), props.className],
9579
+ "overlayClass": [bem$y("overlay"), props.overlayClass],
9540
9580
  "onClosed": onClosed,
9541
9581
  "onUpdate:show": updateShow
9542
9582
  }, pick(props, popupProps$1)), {
@@ -9580,7 +9620,7 @@ function initInstance$1() {
9580
9620
  const onClosed = () => {
9581
9621
  state.images = [];
9582
9622
  };
9583
- return () => vue.createVNode(stdin_default$A, vue.mergeProps(state, {
9623
+ return () => vue.createVNode(stdin_default$E, vue.mergeProps(state, {
9584
9624
  "onClosed": onClosed,
9585
9625
  "onUpdate:show": toggle
9586
9626
  }), null);
@@ -9601,13 +9641,13 @@ const showImagePreview = (options, startPosition = 0) => {
9601
9641
  instance$1.open(extend({}, defaultConfig, options));
9602
9642
  return instance$1;
9603
9643
  };
9604
- const ImagePreview = withInstall(stdin_default$A);
9644
+ const ImagePreview = withInstall(stdin_default$E);
9605
9645
  function genAlphabet() {
9606
9646
  const charCodeOfA = "A".charCodeAt(0);
9607
9647
  const indexList = Array(26).fill("").map((_, i) => String.fromCharCode(charCodeOfA + i));
9608
9648
  return indexList;
9609
9649
  }
9610
- const [name$u, bem$t] = createNamespace("index-bar");
9650
+ const [name$y, bem$x] = createNamespace("index-bar");
9611
9651
  const indexBarProps = {
9612
9652
  sticky: truthProp,
9613
9653
  zIndex: numericProp,
@@ -9619,9 +9659,9 @@ const indexBarProps = {
9619
9659
  default: genAlphabet
9620
9660
  }
9621
9661
  };
9622
- const INDEX_BAR_KEY = Symbol(name$u);
9623
- var stdin_default$z = vue.defineComponent({
9624
- name: name$u,
9662
+ const INDEX_BAR_KEY = Symbol(name$y);
9663
+ var stdin_default$D = vue.defineComponent({
9664
+ name: name$y,
9625
9665
  props: indexBarProps,
9626
9666
  emits: ["select", "change"],
9627
9667
  setup(props, {
@@ -9733,7 +9773,7 @@ var stdin_default$z = vue.defineComponent({
9733
9773
  const renderIndexes = () => props.indexList.map((index) => {
9734
9774
  const active = index === activeAnchor.value;
9735
9775
  return vue.createVNode("span", {
9736
- "class": bem$t("index", {
9776
+ "class": bem$x("index", {
9737
9777
  active
9738
9778
  }),
9739
9779
  "style": active ? highlightStyle.value : void 0,
@@ -9794,7 +9834,7 @@ var stdin_default$z = vue.defineComponent({
9794
9834
  };
9795
9835
  const renderSidebar = () => vue.createVNode("div", {
9796
9836
  "ref": sidebar,
9797
- "class": bem$t("sidebar"),
9837
+ "class": bem$x("sidebar"),
9798
9838
  "style": sidebarStyle.value,
9799
9839
  "onClick": onClickSidebar,
9800
9840
  "onTouchstartPassive": touch.start
@@ -9809,7 +9849,7 @@ var stdin_default$z = vue.defineComponent({
9809
9849
  var _a;
9810
9850
  return vue.createVNode("div", {
9811
9851
  "ref": root,
9812
- "class": bem$t()
9852
+ "class": bem$x()
9813
9853
  }, [props.teleport ? vue.createVNode(vue.Teleport, {
9814
9854
  "to": props.teleport
9815
9855
  }, {
@@ -9818,12 +9858,12 @@ var stdin_default$z = vue.defineComponent({
9818
9858
  };
9819
9859
  }
9820
9860
  });
9821
- const [name$t, bem$s] = createNamespace("index-anchor");
9861
+ const [name$x, bem$w] = createNamespace("index-anchor");
9822
9862
  const indexAnchorProps = {
9823
9863
  index: numericProp
9824
9864
  };
9825
- var stdin_default$y = vue.defineComponent({
9826
- name: name$t,
9865
+ var stdin_default$C = vue.defineComponent({
9866
+ name: name$x,
9827
9867
  props: indexAnchorProps,
9828
9868
  setup(props, {
9829
9869
  slots
@@ -9886,7 +9926,7 @@ var stdin_default$y = vue.defineComponent({
9886
9926
  }
9887
9927
  }, [vue.createVNode("div", {
9888
9928
  "style": anchorStyle.value,
9889
- "class": [bem$s({
9929
+ "class": [bem$w({
9890
9930
  sticky
9891
9931
  }), {
9892
9932
  [BORDER_BOTTOM]: sticky
@@ -9895,9 +9935,9 @@ var stdin_default$y = vue.defineComponent({
9895
9935
  };
9896
9936
  }
9897
9937
  });
9898
- const IndexAnchor = withInstall(stdin_default$y);
9899
- const IndexBar = withInstall(stdin_default$z);
9900
- const [name$s, bem$r, t$6] = createNamespace("list");
9938
+ const IndexAnchor = withInstall(stdin_default$C);
9939
+ const IndexBar = withInstall(stdin_default$D);
9940
+ const [name$w, bem$v, t$6] = createNamespace("list");
9901
9941
  const listProps = {
9902
9942
  error: Boolean,
9903
9943
  offset: makeNumericProp(300),
@@ -9909,8 +9949,8 @@ const listProps = {
9909
9949
  finishedText: String,
9910
9950
  immediateCheck: truthProp
9911
9951
  };
9912
- var stdin_default$x = vue.defineComponent({
9913
- name: name$s,
9952
+ var stdin_default$B = vue.defineComponent({
9953
+ name: name$w,
9914
9954
  props: listProps,
9915
9955
  emits: ["load", "update:error", "update:loading"],
9916
9956
  setup(props, {
@@ -9954,7 +9994,7 @@ var stdin_default$x = vue.defineComponent({
9954
9994
  const text = slots.finished ? slots.finished() : props.finishedText;
9955
9995
  if (text) {
9956
9996
  return vue.createVNode("div", {
9957
- "class": bem$r("finished-text")
9997
+ "class": bem$v("finished-text")
9958
9998
  }, [text]);
9959
9999
  }
9960
10000
  }
@@ -9969,7 +10009,7 @@ var stdin_default$x = vue.defineComponent({
9969
10009
  if (text) {
9970
10010
  return vue.createVNode("div", {
9971
10011
  "role": "button",
9972
- "class": bem$r("error-text"),
10012
+ "class": bem$v("error-text"),
9973
10013
  "tabindex": 0,
9974
10014
  "onClick": clickErrorText
9975
10015
  }, [text]);
@@ -9979,9 +10019,9 @@ var stdin_default$x = vue.defineComponent({
9979
10019
  const renderLoading = () => {
9980
10020
  if (loading.value && !props.finished) {
9981
10021
  return vue.createVNode("div", {
9982
- "class": bem$r("loading")
10022
+ "class": bem$v("loading")
9983
10023
  }, [slots.loading ? slots.loading() : vue.createVNode(Loading, {
9984
- "class": bem$r("loading-icon")
10024
+ "class": bem$v("loading-icon")
9985
10025
  }, {
9986
10026
  default: () => [props.loadingText || t$6("loading")]
9987
10027
  })]);
@@ -10015,19 +10055,19 @@ var stdin_default$x = vue.defineComponent({
10015
10055
  const Content = (_a = slots.default) == null ? void 0 : _a.call(slots);
10016
10056
  const Placeholder = vue.createVNode("div", {
10017
10057
  "ref": placeholder,
10018
- "class": bem$r("placeholder")
10058
+ "class": bem$v("placeholder")
10019
10059
  }, null);
10020
10060
  return vue.createVNode("div", {
10021
10061
  "ref": root,
10022
10062
  "role": "feed",
10023
- "class": bem$r(),
10063
+ "class": bem$v(),
10024
10064
  "aria-busy": loading.value
10025
10065
  }, [props.direction === "down" ? Content : Placeholder, renderLoading(), renderFinishedText(), renderErrorText(), props.direction === "up" ? Content : Placeholder]);
10026
10066
  };
10027
10067
  }
10028
10068
  });
10029
- const List = withInstall(stdin_default$x);
10030
- const [name$r, bem$q] = createNamespace("nav-bar");
10069
+ const List = withInstall(stdin_default$B);
10070
+ const [name$v, bem$u] = createNamespace("nav-bar");
10031
10071
  const navBarProps = {
10032
10072
  title: String,
10033
10073
  fixed: Boolean,
@@ -10040,8 +10080,8 @@ const navBarProps = {
10040
10080
  safeAreaInsetTop: Boolean,
10041
10081
  clickable: truthProp
10042
10082
  };
10043
- var stdin_default$w = vue.defineComponent({
10044
- name: name$r,
10083
+ var stdin_default$A = vue.defineComponent({
10084
+ name: name$v,
10045
10085
  props: navBarProps,
10046
10086
  emits: ["clickLeft", "clickRight"],
10047
10087
  setup(props, {
@@ -10049,7 +10089,7 @@ var stdin_default$w = vue.defineComponent({
10049
10089
  slots
10050
10090
  }) {
10051
10091
  const navBarRef = vue.ref();
10052
- const renderPlaceholder = usePlaceholder(navBarRef, bem$q);
10092
+ const renderPlaceholder = usePlaceholder(navBarRef, bem$u);
10053
10093
  const onClickLeft = (event) => emit("clickLeft", event);
10054
10094
  const onClickRight = (event) => emit("clickRight", event);
10055
10095
  const renderLeft = () => {
@@ -10057,10 +10097,10 @@ var stdin_default$w = vue.defineComponent({
10057
10097
  return slots.left();
10058
10098
  }
10059
10099
  return [props.leftArrow && vue.createVNode(Icon, {
10060
- "class": bem$q("arrow"),
10100
+ "class": bem$u("arrow"),
10061
10101
  "name": "arrow-left"
10062
10102
  }, null), props.leftText && vue.createVNode("span", {
10063
- "class": bem$q("text")
10103
+ "class": bem$u("text")
10064
10104
  }, [props.leftText])];
10065
10105
  };
10066
10106
  const renderRight = () => {
@@ -10068,7 +10108,7 @@ var stdin_default$w = vue.defineComponent({
10068
10108
  return slots.right();
10069
10109
  }
10070
10110
  return vue.createVNode("span", {
10071
- "class": bem$q("text")
10111
+ "class": bem$u("text")
10072
10112
  }, [props.rightText]);
10073
10113
  };
10074
10114
  const renderNavBar = () => {
@@ -10084,21 +10124,21 @@ var stdin_default$w = vue.defineComponent({
10084
10124
  return vue.createVNode("div", {
10085
10125
  "ref": navBarRef,
10086
10126
  "style": style,
10087
- "class": [bem$q({
10127
+ "class": [bem$u({
10088
10128
  fixed
10089
10129
  }), {
10090
10130
  [BORDER_BOTTOM]: border,
10091
10131
  "van-safe-area-top": props.safeAreaInsetTop
10092
10132
  }]
10093
10133
  }, [vue.createVNode("div", {
10094
- "class": bem$q("content")
10134
+ "class": bem$u("content")
10095
10135
  }, [hasLeft && vue.createVNode("div", {
10096
- "class": [bem$q("left"), props.clickable ? HAPTICS_FEEDBACK : ""],
10136
+ "class": [bem$u("left"), props.clickable ? HAPTICS_FEEDBACK : ""],
10097
10137
  "onClick": onClickLeft
10098
10138
  }, [renderLeft()]), vue.createVNode("div", {
10099
- "class": [bem$q("title"), "van-ellipsis"]
10139
+ "class": [bem$u("title"), "van-ellipsis"]
10100
10140
  }, [slots.title ? slots.title() : title]), hasRight && vue.createVNode("div", {
10101
- "class": [bem$q("right"), props.clickable ? HAPTICS_FEEDBACK : ""],
10141
+ "class": [bem$u("right"), props.clickable ? HAPTICS_FEEDBACK : ""],
10102
10142
  "onClick": onClickRight
10103
10143
  }, [renderRight()])])]);
10104
10144
  };
@@ -10110,8 +10150,8 @@ var stdin_default$w = vue.defineComponent({
10110
10150
  };
10111
10151
  }
10112
10152
  });
10113
- const NavBar = withInstall(stdin_default$w);
10114
- const [name$q, bem$p] = createNamespace("notice-bar");
10153
+ const NavBar = withInstall(stdin_default$A);
10154
+ const [name$u, bem$t] = createNamespace("notice-bar");
10115
10155
  const noticeBarProps = {
10116
10156
  text: String,
10117
10157
  mode: String,
@@ -10126,8 +10166,8 @@ const noticeBarProps = {
10126
10166
  default: null
10127
10167
  }
10128
10168
  };
10129
- var stdin_default$v = vue.defineComponent({
10130
- name: name$q,
10169
+ var stdin_default$z = vue.defineComponent({
10170
+ name: name$u,
10131
10171
  props: noticeBarProps,
10132
10172
  emits: ["close", "replay"],
10133
10173
  setup(props, {
@@ -10150,7 +10190,7 @@ var stdin_default$v = vue.defineComponent({
10150
10190
  }
10151
10191
  if (props.leftIcon) {
10152
10192
  return vue.createVNode(Icon, {
10153
- "class": bem$p("left-icon"),
10193
+ "class": bem$t("left-icon"),
10154
10194
  "name": props.leftIcon
10155
10195
  }, null);
10156
10196
  }
@@ -10177,7 +10217,7 @@ var stdin_default$v = vue.defineComponent({
10177
10217
  if (name2) {
10178
10218
  return vue.createVNode(Icon, {
10179
10219
  "name": name2,
10180
- "class": bem$p("right-icon"),
10220
+ "class": bem$t("right-icon"),
10181
10221
  "onClick": onClickRightIcon
10182
10222
  }, null);
10183
10223
  }
@@ -10202,11 +10242,11 @@ var stdin_default$v = vue.defineComponent({
10202
10242
  return vue.createVNode("div", {
10203
10243
  "ref": wrapRef,
10204
10244
  "role": "marquee",
10205
- "class": bem$p("wrap")
10245
+ "class": bem$t("wrap")
10206
10246
  }, [vue.createVNode("div", {
10207
10247
  "ref": contentRef,
10208
10248
  "style": style,
10209
- "class": [bem$p("content"), {
10249
+ "class": [bem$t("content"), {
10210
10250
  "van-ellipsis": ellipsis
10211
10251
  }],
10212
10252
  "onTransitionend": onTransitionEnd
@@ -10255,7 +10295,7 @@ var stdin_default$v = vue.defineComponent({
10255
10295
  } = props;
10256
10296
  return vue.withDirectives(vue.createVNode("div", {
10257
10297
  "role": "alert",
10258
- "class": bem$p({
10298
+ "class": bem$t({
10259
10299
  wrapable
10260
10300
  }),
10261
10301
  "style": {
@@ -10266,8 +10306,8 @@ var stdin_default$v = vue.defineComponent({
10266
10306
  };
10267
10307
  }
10268
10308
  });
10269
- const NoticeBar = withInstall(stdin_default$v);
10270
- const [name$p, bem$o] = createNamespace("notify");
10309
+ const NoticeBar = withInstall(stdin_default$z);
10310
+ const [name$t, bem$s] = createNamespace("notify");
10271
10311
  const notifyProps = extend({}, popupSharedProps, {
10272
10312
  type: makeStringProp("danger"),
10273
10313
  color: String,
@@ -10277,8 +10317,8 @@ const notifyProps = extend({}, popupSharedProps, {
10277
10317
  background: String,
10278
10318
  lockScroll: Boolean
10279
10319
  });
10280
- var stdin_default$u = vue.defineComponent({
10281
- name: name$p,
10320
+ var stdin_default$y = vue.defineComponent({
10321
+ name: name$t,
10282
10322
  props: notifyProps,
10283
10323
  emits: ["update:show"],
10284
10324
  setup(props, {
@@ -10288,7 +10328,7 @@ var stdin_default$u = vue.defineComponent({
10288
10328
  const updateShow = (show) => emit("update:show", show);
10289
10329
  return () => vue.createVNode(Popup, {
10290
10330
  "show": props.show,
10291
- "class": [bem$o([props.type]), props.className],
10331
+ "class": [bem$s([props.type]), props.className],
10292
10332
  "style": {
10293
10333
  color: props.color,
10294
10334
  background: props.background
@@ -10318,7 +10358,7 @@ function initInstance() {
10318
10358
  state,
10319
10359
  toggle
10320
10360
  } = usePopupState();
10321
- return () => vue.createVNode(stdin_default$u, vue.mergeProps(state, {
10361
+ return () => vue.createVNode(stdin_default$y, vue.mergeProps(state, {
10322
10362
  "onUpdate:show": toggle
10323
10363
  }), null);
10324
10364
  }
@@ -10362,24 +10402,24 @@ const setNotifyDefaultOptions = (options) => extend(currentOptions, options);
10362
10402
  const resetNotifyDefaultOptions = () => {
10363
10403
  currentOptions = getDefaultOptions();
10364
10404
  };
10365
- const Notify = withInstall(stdin_default$u);
10366
- const [name$o, bem$n] = createNamespace("key");
10405
+ const Notify = withInstall(stdin_default$y);
10406
+ const [name$s, bem$r] = createNamespace("key");
10367
10407
  const CollapseIcon = vue.createVNode("svg", {
10368
- "class": bem$n("collapse-icon"),
10408
+ "class": bem$r("collapse-icon"),
10369
10409
  "viewBox": "0 0 30 24"
10370
10410
  }, [vue.createVNode("path", {
10371
10411
  "d": "M26 13h-2v2h2v-2zm-8-3h2V8h-2v2zm2-4h2V4h-2v2zm2 4h4V4h-2v4h-2v2zm-7 14 3-3h-6l3 3zM6 13H4v2h2v-2zm16 0H8v2h14v-2zm-12-3h2V8h-2v2zM28 0l1 1 1 1v15l-1 2H1l-1-2V2l1-1 1-1zm0 2H2v15h26V2zM6 4v2H4V4zm10 2h2V4h-2v2zM8 9v1H4V8zm8 0v1h-2V8zm-6-5v2H8V4zm4 0v2h-2V4z",
10372
10412
  "fill": "currentColor"
10373
10413
  }, null)]);
10374
10414
  const DeleteIcon = vue.createVNode("svg", {
10375
- "class": bem$n("delete-icon"),
10415
+ "class": bem$r("delete-icon"),
10376
10416
  "viewBox": "0 0 32 22"
10377
10417
  }, [vue.createVNode("path", {
10378
10418
  "d": "M28 0a4 4 0 0 1 4 4v14a4 4 0 0 1-4 4H10.4a2 2 0 0 1-1.4-.6L1 13.1c-.6-.5-.9-1.3-.9-2 0-1 .3-1.7.9-2.2L9 .6a2 2 0 0 1 1.4-.6zm0 2H10.4l-8.2 8.3a1 1 0 0 0-.3.7c0 .3.1.5.3.7l8.2 8.4H28a2 2 0 0 0 2-2V4c0-1.1-.9-2-2-2zm-5 4a1 1 0 0 1 .7.3 1 1 0 0 1 0 1.4L20.4 11l3.3 3.3c.2.2.3.5.3.7 0 .3-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.7-.3L19 12.4l-3.4 3.3a1 1 0 0 1-.6.3 1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.2.1-.5.3-.7l3.3-3.3-3.3-3.3A1 1 0 0 1 14 7c0-.3.1-.5.3-.7A1 1 0 0 1 15 6a1 1 0 0 1 .6.3L19 9.6l3.3-3.3A1 1 0 0 1 23 6z",
10379
10419
  "fill": "currentColor"
10380
10420
  }, null)]);
10381
- var stdin_default$t = vue.defineComponent({
10382
- name: name$o,
10421
+ var stdin_default$x = vue.defineComponent({
10422
+ name: name$s,
10383
10423
  props: {
10384
10424
  type: String,
10385
10425
  text: numericProp,
@@ -10417,7 +10457,7 @@ var stdin_default$t = vue.defineComponent({
10417
10457
  const renderContent = () => {
10418
10458
  if (props.loading) {
10419
10459
  return vue.createVNode(Loading, {
10420
- "class": bem$n("loading-icon")
10460
+ "class": bem$r("loading-icon")
10421
10461
  }, null);
10422
10462
  }
10423
10463
  const text = slots.default ? slots.default() : props.text;
@@ -10431,7 +10471,7 @@ var stdin_default$t = vue.defineComponent({
10431
10471
  }
10432
10472
  };
10433
10473
  return () => vue.createVNode("div", {
10434
- "class": bem$n("wrapper", {
10474
+ "class": bem$r("wrapper", {
10435
10475
  wider: props.wider
10436
10476
  }),
10437
10477
  "onTouchstartPassive": onTouchStart,
@@ -10441,7 +10481,7 @@ var stdin_default$t = vue.defineComponent({
10441
10481
  }, [vue.createVNode("div", {
10442
10482
  "role": "button",
10443
10483
  "tabindex": 0,
10444
- "class": bem$n([props.color, {
10484
+ "class": bem$r([props.color, {
10445
10485
  large: props.large,
10446
10486
  active: active.value,
10447
10487
  delete: props.type === "delete"
@@ -10449,7 +10489,7 @@ var stdin_default$t = vue.defineComponent({
10449
10489
  }, [renderContent()])]);
10450
10490
  }
10451
10491
  });
10452
- const [name$n, bem$m] = createNamespace("number-keyboard");
10492
+ const [name$r, bem$q] = createNamespace("number-keyboard");
10453
10493
  const numberKeyboardProps = {
10454
10494
  show: Boolean,
10455
10495
  title: String,
@@ -10481,8 +10521,8 @@ function shuffle(array) {
10481
10521
  }
10482
10522
  return array;
10483
10523
  }
10484
- var stdin_default$s = vue.defineComponent({
10485
- name: name$n,
10524
+ var stdin_default$w = vue.defineComponent({
10525
+ name: name$r,
10486
10526
  props: numberKeyboardProps,
10487
10527
  emits: ["show", "hide", "blur", "input", "close", "delete", "update:modelValue"],
10488
10528
  setup(props, {
@@ -10579,14 +10619,14 @@ var stdin_default$s = vue.defineComponent({
10579
10619
  return;
10580
10620
  }
10581
10621
  return vue.createVNode("div", {
10582
- "class": bem$m("header")
10622
+ "class": bem$q("header")
10583
10623
  }, [leftSlot && vue.createVNode("span", {
10584
- "class": bem$m("title-left")
10624
+ "class": bem$q("title-left")
10585
10625
  }, [leftSlot()]), title && vue.createVNode("h2", {
10586
- "class": bem$m("title")
10626
+ "class": bem$q("title")
10587
10627
  }, [title]), showClose && vue.createVNode("button", {
10588
10628
  "type": "button",
10589
- "class": [bem$m("close"), HAPTICS_FEEDBACK],
10629
+ "class": [bem$q("close"), HAPTICS_FEEDBACK],
10590
10630
  "onClick": onClose
10591
10631
  }, [closeButtonText])]);
10592
10632
  };
@@ -10598,7 +10638,7 @@ var stdin_default$s = vue.defineComponent({
10598
10638
  if (key.type === "extra") {
10599
10639
  keySlots.default = slots["extra-key"];
10600
10640
  }
10601
- return vue.createVNode(stdin_default$t, {
10641
+ return vue.createVNode(stdin_default$x, {
10602
10642
  "key": key.text,
10603
10643
  "text": key.text,
10604
10644
  "type": key.type,
@@ -10610,15 +10650,15 @@ var stdin_default$s = vue.defineComponent({
10610
10650
  const renderSidebar = () => {
10611
10651
  if (props.theme === "custom") {
10612
10652
  return vue.createVNode("div", {
10613
- "class": bem$m("sidebar")
10614
- }, [props.showDeleteKey && vue.createVNode(stdin_default$t, {
10653
+ "class": bem$q("sidebar")
10654
+ }, [props.showDeleteKey && vue.createVNode(stdin_default$x, {
10615
10655
  "large": true,
10616
10656
  "text": props.deleteButtonText,
10617
10657
  "type": "delete",
10618
10658
  "onPress": onPress
10619
10659
  }, {
10620
10660
  delete: slots.delete
10621
- }), vue.createVNode(stdin_default$t, {
10661
+ }), vue.createVNode(stdin_default$x, {
10622
10662
  "large": true,
10623
10663
  "text": props.closeButtonText,
10624
10664
  "type": "close",
@@ -10646,16 +10686,16 @@ var stdin_default$s = vue.defineComponent({
10646
10686
  default: () => [vue.withDirectives(vue.createVNode("div", {
10647
10687
  "ref": root,
10648
10688
  "style": getZIndexStyle(props.zIndex),
10649
- "class": bem$m({
10689
+ "class": bem$q({
10650
10690
  unfit: !props.safeAreaInsetBottom,
10651
10691
  "with-title": !!Title
10652
10692
  }),
10653
10693
  "onAnimationend": onAnimationEnd,
10654
10694
  "onTouchstartPassive": stopPropagation
10655
10695
  }, [Title, vue.createVNode("div", {
10656
- "class": bem$m("body")
10696
+ "class": bem$q("body")
10657
10697
  }, [vue.createVNode("div", {
10658
- "class": bem$m("keys")
10698
+ "class": bem$q("keys")
10659
10699
  }, [renderKeys()]), renderSidebar()])]), [[vue.vShow, props.show]])]
10660
10700
  });
10661
10701
  if (props.teleport) {
@@ -10669,8 +10709,8 @@ var stdin_default$s = vue.defineComponent({
10669
10709
  };
10670
10710
  }
10671
10711
  });
10672
- const NumberKeyboard = withInstall(stdin_default$s);
10673
- const [name$m, bem$l, t$5] = createNamespace("pagination");
10712
+ const NumberKeyboard = withInstall(stdin_default$w);
10713
+ const [name$q, bem$p, t$5] = createNamespace("pagination");
10674
10714
  const makePage = (number, text, active) => ({
10675
10715
  number,
10676
10716
  text,
@@ -10687,8 +10727,8 @@ const paginationProps = {
10687
10727
  itemsPerPage: makeNumericProp(10),
10688
10728
  forceEllipses: Boolean
10689
10729
  };
10690
- var stdin_default$r = vue.defineComponent({
10691
- name: name$m,
10730
+ var stdin_default$v = vue.defineComponent({
10731
+ name: name$q,
10692
10732
  props: paginationProps,
10693
10733
  emits: ["change", "update:modelValue"],
10694
10734
  setup(props, {
@@ -10750,7 +10790,7 @@ var stdin_default$r = vue.defineComponent({
10750
10790
  };
10751
10791
  vue.watchEffect(() => updateModelValue(props.modelValue));
10752
10792
  const renderDesc = () => vue.createVNode("li", {
10753
- "class": bem$l("page-desc")
10793
+ "class": bem$p("page-desc")
10754
10794
  }, [slots.pageDesc ? slots.pageDesc() : `${props.modelValue}/${count.value}`]);
10755
10795
  const renderPrevButton = () => {
10756
10796
  const {
@@ -10760,7 +10800,7 @@ var stdin_default$r = vue.defineComponent({
10760
10800
  const slot = slots["prev-text"];
10761
10801
  const disabled = modelValue === 1;
10762
10802
  return vue.createVNode("li", {
10763
- "class": [bem$l("item", {
10803
+ "class": [bem$p("item", {
10764
10804
  disabled,
10765
10805
  border: mode === "simple",
10766
10806
  prev: true
@@ -10779,7 +10819,7 @@ var stdin_default$r = vue.defineComponent({
10779
10819
  const slot = slots["next-text"];
10780
10820
  const disabled = modelValue === count.value;
10781
10821
  return vue.createVNode("li", {
10782
- "class": [bem$l("item", {
10822
+ "class": [bem$p("item", {
10783
10823
  disabled,
10784
10824
  border: mode === "simple",
10785
10825
  next: true
@@ -10791,7 +10831,7 @@ var stdin_default$r = vue.defineComponent({
10791
10831
  }, [slot ? slot() : props.nextText || t$5("next")])]);
10792
10832
  };
10793
10833
  const renderPages = () => pages.value.map((page) => vue.createVNode("li", {
10794
- "class": [bem$l("item", {
10834
+ "class": [bem$p("item", {
10795
10835
  active: page.active,
10796
10836
  page: true
10797
10837
  }), BORDER_SURROUND]
@@ -10802,14 +10842,14 @@ var stdin_default$r = vue.defineComponent({
10802
10842
  }, [slots.page ? slots.page(page) : page.text])]));
10803
10843
  return () => vue.createVNode("nav", {
10804
10844
  "role": "navigation",
10805
- "class": bem$l()
10845
+ "class": bem$p()
10806
10846
  }, [vue.createVNode("ul", {
10807
- "class": bem$l("items")
10847
+ "class": bem$p("items")
10808
10848
  }, [renderPrevButton(), props.mode === "simple" ? renderDesc() : renderPages(), renderNextButton()])]);
10809
10849
  }
10810
10850
  });
10811
- const Pagination = withInstall(stdin_default$r);
10812
- const [name$l, bem$k] = createNamespace("password-input");
10851
+ const Pagination = withInstall(stdin_default$v);
10852
+ const [name$p, bem$o] = createNamespace("password-input");
10813
10853
  const passwordInputProps = {
10814
10854
  info: String,
10815
10855
  mask: truthProp,
@@ -10819,8 +10859,8 @@ const passwordInputProps = {
10819
10859
  focused: Boolean,
10820
10860
  errorInfo: String
10821
10861
  };
10822
- var stdin_default$q = vue.defineComponent({
10823
- name: name$l,
10862
+ var stdin_default$u = vue.defineComponent({
10863
+ name: name$p,
10824
10864
  props: passwordInputProps,
10825
10865
  emits: ["focus"],
10826
10866
  setup(props, {
@@ -10852,7 +10892,7 @@ var stdin_default$q = vue.defineComponent({
10852
10892
  Points.push(vue.createVNode("li", {
10853
10893
  "class": [{
10854
10894
  [BORDER_LEFT]: showBorder
10855
- }, bem$k("item", {
10895
+ }, bem$o("item", {
10856
10896
  focus: showCursor
10857
10897
  })],
10858
10898
  "style": style
@@ -10861,7 +10901,7 @@ var stdin_default$q = vue.defineComponent({
10861
10901
  visibility: char ? "visible" : "hidden"
10862
10902
  }
10863
10903
  }, null) : char, showCursor && vue.createVNode("div", {
10864
- "class": bem$k("cursor")
10904
+ "class": bem$o("cursor")
10865
10905
  }, null)]));
10866
10906
  }
10867
10907
  return Points;
@@ -10869,22 +10909,36 @@ var stdin_default$q = vue.defineComponent({
10869
10909
  return () => {
10870
10910
  const info = props.errorInfo || props.info;
10871
10911
  return vue.createVNode("div", {
10872
- "class": bem$k()
10912
+ "class": bem$o()
10873
10913
  }, [vue.createVNode("ul", {
10874
- "class": [bem$k("security"), {
10914
+ "class": [bem$o("security"), {
10875
10915
  [BORDER_SURROUND]: !props.gutter
10876
10916
  }],
10877
10917
  "onTouchstartPassive": onTouchStart
10878
10918
  }, [renderPoints()]), info && vue.createVNode("div", {
10879
- "class": bem$k(props.errorInfo ? "error-info" : "info")
10919
+ "class": bem$o(props.errorInfo ? "error-info" : "info")
10880
10920
  }, [info])]);
10881
10921
  };
10882
10922
  }
10883
10923
  });
10884
- const PasswordInput = withInstall(stdin_default$q);
10885
- const PickerGroup = withInstall(stdin_default$1j);
10886
- const [name$k, bem$j] = createNamespace("popover");
10887
- const popupProps = ["show", "overlay", "duration", "teleport", "overlayStyle", "overlayClass", "closeOnClickOverlay"];
10924
+ const PasswordInput = withInstall(stdin_default$u);
10925
+ const PickerGroup = withInstall(stdin_default$1n);
10926
+ const useSyncPropRef = (getProp, setProp) => {
10927
+ const propRef = vue.ref(getProp());
10928
+ vue.watch(getProp, (value) => {
10929
+ if (value !== propRef.value) {
10930
+ propRef.value = value;
10931
+ }
10932
+ });
10933
+ vue.watch(propRef, (value) => {
10934
+ if (value !== getProp()) {
10935
+ setProp(value);
10936
+ }
10937
+ });
10938
+ return propRef;
10939
+ };
10940
+ const [name$o, bem$n] = createNamespace("popover");
10941
+ const popupProps = ["overlay", "duration", "teleport", "overlayStyle", "overlayClass", "closeOnClickOverlay"];
10888
10942
  const popoverProps = {
10889
10943
  show: Boolean,
10890
10944
  theme: makeStringProp("light"),
@@ -10909,8 +10963,8 @@ const popoverProps = {
10909
10963
  default: "body"
10910
10964
  }
10911
10965
  };
10912
- var stdin_default$p = vue.defineComponent({
10913
- name: name$k,
10966
+ var stdin_default$t = vue.defineComponent({
10967
+ name: name$o,
10914
10968
  props: popoverProps,
10915
10969
  emits: ["select", "touchstart", "update:show"],
10916
10970
  setup(props, {
@@ -10922,6 +10976,7 @@ var stdin_default$p = vue.defineComponent({
10922
10976
  const popupRef = vue.ref();
10923
10977
  const wrapperRef = vue.ref();
10924
10978
  const popoverRef = vue.ref();
10979
+ const show = useSyncPropRef(() => props.show, (value) => emit("update:show", value));
10925
10980
  const getPopoverOptions = () => ({
10926
10981
  placement: props.placement,
10927
10982
  modifiers: [{
@@ -10944,7 +10999,7 @@ var stdin_default$p = vue.defineComponent({
10944
10999
  };
10945
11000
  const updateLocation = () => {
10946
11001
  vue.nextTick(() => {
10947
- if (!props.show) {
11002
+ if (!show.value) {
10948
11003
  return;
10949
11004
  }
10950
11005
  if (!popper) {
@@ -10954,10 +11009,12 @@ var stdin_default$p = vue.defineComponent({
10954
11009
  }
10955
11010
  });
10956
11011
  };
10957
- const updateShow = (value) => emit("update:show", value);
11012
+ const updateShow = (value) => {
11013
+ show.value = value;
11014
+ };
10958
11015
  const onClickWrapper = () => {
10959
11016
  if (props.trigger === "click") {
10960
- updateShow(!props.show);
11017
+ show.value = !show.value;
10961
11018
  }
10962
11019
  };
10963
11020
  const onClickAction = (action, index) => {
@@ -10966,12 +11023,12 @@ var stdin_default$p = vue.defineComponent({
10966
11023
  }
10967
11024
  emit("select", action, index);
10968
11025
  if (props.closeOnClickAction) {
10969
- updateShow(false);
11026
+ show.value = false;
10970
11027
  }
10971
11028
  };
10972
11029
  const onClickAway = () => {
10973
- if (props.show && props.closeOnClickOutside && (!props.overlay || props.closeOnClickOverlay)) {
10974
- updateShow(false);
11030
+ if (show.value && props.closeOnClickOutside && (!props.overlay || props.closeOnClickOverlay)) {
11031
+ show.value = false;
10975
11032
  }
10976
11033
  };
10977
11034
  const renderActionContent = (action, index) => {
@@ -10984,9 +11041,9 @@ var stdin_default$p = vue.defineComponent({
10984
11041
  return [action.icon && vue.createVNode(Icon, {
10985
11042
  "name": action.icon,
10986
11043
  "classPrefix": props.iconPrefix,
10987
- "class": bem$j("action-icon")
11044
+ "class": bem$n("action-icon")
10988
11045
  }, null), vue.createVNode("div", {
10989
- "class": [bem$j("action-text"), BORDER_BOTTOM]
11046
+ "class": [bem$n("action-text"), BORDER_BOTTOM]
10990
11047
  }, [action.text])];
10991
11048
  };
10992
11049
  const renderAction = (action, index) => {
@@ -10998,7 +11055,7 @@ var stdin_default$p = vue.defineComponent({
10998
11055
  } = action;
10999
11056
  return vue.createVNode("div", {
11000
11057
  "role": "menuitem",
11001
- "class": [bem$j("action", {
11058
+ "class": [bem$n("action", {
11002
11059
  disabled,
11003
11060
  "with-icon": icon
11004
11061
  }), className],
@@ -11023,7 +11080,7 @@ var stdin_default$p = vue.defineComponent({
11023
11080
  popper = null;
11024
11081
  }
11025
11082
  });
11026
- vue.watch(() => [props.show, props.offset, props.placement], updateLocation);
11083
+ vue.watch(() => [show.value, props.offset, props.placement], updateLocation);
11027
11084
  use.useClickAway([wrapperRef, popupRef], onClickAway, {
11028
11085
  eventName: "touchstart"
11029
11086
  });
@@ -11031,28 +11088,29 @@ var stdin_default$p = vue.defineComponent({
11031
11088
  var _a;
11032
11089
  return vue.createVNode(vue.Fragment, null, [vue.createVNode("span", {
11033
11090
  "ref": wrapperRef,
11034
- "class": bem$j("wrapper"),
11091
+ "class": bem$n("wrapper"),
11035
11092
  "onClick": onClickWrapper
11036
11093
  }, [(_a = slots.reference) == null ? void 0 : _a.call(slots)]), vue.createVNode(Popup, vue.mergeProps({
11037
11094
  "ref": popoverRef,
11038
- "class": bem$j([props.theme]),
11095
+ "show": show.value,
11096
+ "class": bem$n([props.theme]),
11039
11097
  "position": "",
11040
11098
  "transition": "van-popover-zoom",
11041
11099
  "lockScroll": false,
11042
11100
  "onUpdate:show": updateShow
11043
11101
  }, attrs, pick(props, popupProps)), {
11044
11102
  default: () => [props.showArrow && vue.createVNode("div", {
11045
- "class": bem$j("arrow")
11103
+ "class": bem$n("arrow")
11046
11104
  }, null), vue.createVNode("div", {
11047
11105
  "role": "menu",
11048
- "class": bem$j("content")
11106
+ "class": bem$n("content")
11049
11107
  }, [slots.default ? slots.default() : props.actions.map(renderAction)])]
11050
11108
  })]);
11051
11109
  };
11052
11110
  }
11053
11111
  });
11054
- const Popover = withInstall(stdin_default$p);
11055
- const [name$j, bem$i] = createNamespace("progress");
11112
+ const Popover = withInstall(stdin_default$t);
11113
+ const [name$n, bem$m] = createNamespace("progress");
11056
11114
  const progressProps = {
11057
11115
  color: String,
11058
11116
  inactive: Boolean,
@@ -11068,8 +11126,8 @@ const progressProps = {
11068
11126
  validator: (value) => value >= 0 && value <= 100
11069
11127
  }
11070
11128
  };
11071
- var stdin_default$o = vue.defineComponent({
11072
- name: name$j,
11129
+ var stdin_default$s = vue.defineComponent({
11130
+ name: name$n,
11073
11131
  props: progressProps,
11074
11132
  setup(props) {
11075
11133
  const background = vue.computed(() => props.inactive ? void 0 : props.color);
@@ -11090,7 +11148,7 @@ var stdin_default$o = vue.defineComponent({
11090
11148
  };
11091
11149
  return vue.createVNode("span", {
11092
11150
  "style": style,
11093
- "class": bem$i("pivot", {
11151
+ "class": bem$m("pivot", {
11094
11152
  inactive: props.inactive
11095
11153
  })
11096
11154
  }, [text]);
@@ -11111,10 +11169,10 @@ var stdin_default$o = vue.defineComponent({
11111
11169
  background: background.value
11112
11170
  };
11113
11171
  return vue.createVNode("div", {
11114
- "class": bem$i(),
11172
+ "class": bem$m(),
11115
11173
  "style": rootStyle
11116
11174
  }, [vue.createVNode("span", {
11117
- "class": bem$i("portion", {
11175
+ "class": bem$m("portion", {
11118
11176
  inactive: props.inactive
11119
11177
  }),
11120
11178
  "style": portionStyle
@@ -11122,8 +11180,8 @@ var stdin_default$o = vue.defineComponent({
11122
11180
  };
11123
11181
  }
11124
11182
  });
11125
- const Progress = withInstall(stdin_default$o);
11126
- const [name$i, bem$h, t$4] = createNamespace("pull-refresh");
11183
+ const Progress = withInstall(stdin_default$s);
11184
+ const [name$m, bem$l, t$4] = createNamespace("pull-refresh");
11127
11185
  const DEFAULT_HEAD_HEIGHT = 50;
11128
11186
  const TEXT_STATUS = ["pulling", "loosing", "success"];
11129
11187
  const pullRefreshProps = {
@@ -11138,8 +11196,8 @@ const pullRefreshProps = {
11138
11196
  successDuration: makeNumericProp(500),
11139
11197
  animationDuration: makeNumericProp(300)
11140
11198
  };
11141
- var stdin_default$n = vue.defineComponent({
11142
- name: name$i,
11199
+ var stdin_default$r = vue.defineComponent({
11200
+ name: name$m,
11143
11201
  props: pullRefreshProps,
11144
11202
  emits: ["change", "refresh", "update:modelValue"],
11145
11203
  setup(props, {
@@ -11214,12 +11272,12 @@ var stdin_default$n = vue.defineComponent({
11214
11272
  const nodes = [];
11215
11273
  if (TEXT_STATUS.includes(status)) {
11216
11274
  nodes.push(vue.createVNode("div", {
11217
- "class": bem$h("text")
11275
+ "class": bem$l("text")
11218
11276
  }, [getStatusText()]));
11219
11277
  }
11220
11278
  if (status === "loading") {
11221
11279
  nodes.push(vue.createVNode(Loading, {
11222
- "class": bem$h("loading")
11280
+ "class": bem$l("loading")
11223
11281
  }, {
11224
11282
  default: getStatusText
11225
11283
  }));
@@ -11292,23 +11350,23 @@ var stdin_default$n = vue.defineComponent({
11292
11350
  };
11293
11351
  return vue.createVNode("div", {
11294
11352
  "ref": root,
11295
- "class": bem$h()
11353
+ "class": bem$l()
11296
11354
  }, [vue.createVNode("div", {
11297
11355
  "ref": track,
11298
- "class": bem$h("track"),
11356
+ "class": bem$l("track"),
11299
11357
  "style": trackStyle,
11300
11358
  "onTouchstartPassive": onTouchStart,
11301
11359
  "onTouchend": onTouchEnd,
11302
11360
  "onTouchcancel": onTouchEnd
11303
11361
  }, [vue.createVNode("div", {
11304
- "class": bem$h("head"),
11362
+ "class": bem$l("head"),
11305
11363
  "style": getHeadStyle()
11306
11364
  }, [renderStatus()]), (_a = slots.default) == null ? void 0 : _a.call(slots)])]);
11307
11365
  };
11308
11366
  }
11309
11367
  });
11310
- const PullRefresh = withInstall(stdin_default$n);
11311
- const [name$h, bem$g] = createNamespace("rate");
11368
+ const PullRefresh = withInstall(stdin_default$r);
11369
+ const [name$l, bem$k] = createNamespace("rate");
11312
11370
  function getRateStatus(value, index, allowHalf, readonly) {
11313
11371
  if (value >= index) {
11314
11372
  return {
@@ -11350,8 +11408,8 @@ const rateProps = {
11350
11408
  modelValue: makeNumberProp(0),
11351
11409
  disabledColor: String
11352
11410
  };
11353
- var stdin_default$m = vue.defineComponent({
11354
- name: name$h,
11411
+ var stdin_default$q = vue.defineComponent({
11412
+ name: name$l,
11355
11413
  props: rateProps,
11356
11414
  emits: ["change", "update:modelValue"],
11357
11415
  setup(props, {
@@ -11470,7 +11528,7 @@ var stdin_default$m = vue.defineComponent({
11470
11528
  "ref": setItemRefs(index),
11471
11529
  "role": "radio",
11472
11530
  "style": style,
11473
- "class": bem$g("item"),
11531
+ "class": bem$k("item"),
11474
11532
  "tabindex": disabled ? void 0 : 0,
11475
11533
  "aria-setsize": count,
11476
11534
  "aria-posinset": score,
@@ -11479,7 +11537,7 @@ var stdin_default$m = vue.defineComponent({
11479
11537
  }, [vue.createVNode(Icon, {
11480
11538
  "size": size,
11481
11539
  "name": isFull ? icon : voidIcon,
11482
- "class": bem$g("icon", {
11540
+ "class": bem$k("icon", {
11483
11541
  disabled,
11484
11542
  full: isFull
11485
11543
  }),
@@ -11491,7 +11549,7 @@ var stdin_default$m = vue.defineComponent({
11491
11549
  width: item.value + "em"
11492
11550
  },
11493
11551
  "name": isVoid ? voidIcon : icon,
11494
- "class": bem$g("icon", ["half", {
11552
+ "class": bem$k("icon", ["half", {
11495
11553
  disabled,
11496
11554
  full: !isVoid
11497
11555
  }]),
@@ -11506,7 +11564,7 @@ var stdin_default$m = vue.defineComponent({
11506
11564
  return () => vue.createVNode("div", {
11507
11565
  "ref": groupRef,
11508
11566
  "role": "radiogroup",
11509
- "class": bem$g({
11567
+ "class": bem$k({
11510
11568
  readonly: props.readonly,
11511
11569
  disabled: props.disabled
11512
11570
  }),
@@ -11517,9 +11575,9 @@ var stdin_default$m = vue.defineComponent({
11517
11575
  }, [list.value.map(renderStar)]);
11518
11576
  }
11519
11577
  });
11520
- const Rate = withInstall(stdin_default$m);
11521
- const Row = withInstall(stdin_default$U);
11522
- const [name$g, bem$f, t$3] = createNamespace("search");
11578
+ const Rate = withInstall(stdin_default$q);
11579
+ const Row = withInstall(stdin_default$Y);
11580
+ const [name$k, bem$j, t$3] = createNamespace("search");
11523
11581
  const searchProps = extend({}, fieldSharedProps, {
11524
11582
  label: String,
11525
11583
  shape: makeStringProp("square"),
@@ -11529,8 +11587,8 @@ const searchProps = extend({}, fieldSharedProps, {
11529
11587
  background: String,
11530
11588
  showAction: Boolean
11531
11589
  });
11532
- var stdin_default$l = vue.defineComponent({
11533
- name: name$g,
11590
+ var stdin_default$p = vue.defineComponent({
11591
+ name: name$k,
11534
11592
  props: searchProps,
11535
11593
  emits: ["blur", "focus", "clear", "search", "cancel", "clickInput", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
11536
11594
  setup(props, {
@@ -11557,7 +11615,7 @@ var stdin_default$l = vue.defineComponent({
11557
11615
  const renderLabel = () => {
11558
11616
  if (slots.label || props.label) {
11559
11617
  return vue.createVNode("label", {
11560
- "class": bem$f("label"),
11618
+ "class": bem$j("label"),
11561
11619
  "for": getInputId()
11562
11620
  }, [slots.label ? slots.label() : props.label]);
11563
11621
  }
@@ -11566,7 +11624,7 @@ var stdin_default$l = vue.defineComponent({
11566
11624
  if (props.showAction) {
11567
11625
  const text = props.actionText || t$3("cancel");
11568
11626
  return vue.createVNode("div", {
11569
- "class": bem$f("action"),
11627
+ "class": bem$j("action"),
11570
11628
  "role": "button",
11571
11629
  "tabindex": 0,
11572
11630
  "onClick": onCancel
@@ -11596,7 +11654,7 @@ var stdin_default$l = vue.defineComponent({
11596
11654
  return vue.createVNode(Field, vue.mergeProps({
11597
11655
  "ref": filedRef,
11598
11656
  "type": "search",
11599
- "class": bem$f("field"),
11657
+ "class": bem$j("field"),
11600
11658
  "border": false,
11601
11659
  "onBlur": onBlur,
11602
11660
  "onFocus": onFocus,
@@ -11615,19 +11673,19 @@ var stdin_default$l = vue.defineComponent({
11615
11673
  return () => {
11616
11674
  var _a;
11617
11675
  return vue.createVNode("div", {
11618
- "class": bem$f({
11676
+ "class": bem$j({
11619
11677
  "show-action": props.showAction
11620
11678
  }),
11621
11679
  "style": {
11622
11680
  background: props.background
11623
11681
  }
11624
11682
  }, [(_a = slots.left) == null ? void 0 : _a.call(slots), vue.createVNode("div", {
11625
- "class": bem$f("content", props.shape)
11683
+ "class": bem$j("content", props.shape)
11626
11684
  }, [renderLabel(), renderField()]), renderAction()]);
11627
11685
  };
11628
11686
  }
11629
11687
  });
11630
- const Search = withInstall(stdin_default$l);
11688
+ const Search = withInstall(stdin_default$p);
11631
11689
  const popupInheritKeys = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
11632
11690
  const iconMap = {
11633
11691
  qq: "qq",
@@ -11639,7 +11697,7 @@ const iconMap = {
11639
11697
  "weapp-qrcode": "miniprogram-o",
11640
11698
  "wechat-moments": "wechat-moments"
11641
11699
  };
11642
- const [name$f, bem$e, t$2] = createNamespace("share-sheet");
11700
+ const [name$j, bem$i, t$2] = createNamespace("share-sheet");
11643
11701
  const shareSheetProps = extend({}, popupSharedProps, {
11644
11702
  title: String,
11645
11703
  round: truthProp,
@@ -11649,8 +11707,8 @@ const shareSheetProps = extend({}, popupSharedProps, {
11649
11707
  closeOnPopstate: truthProp,
11650
11708
  safeAreaInsetBottom: truthProp
11651
11709
  });
11652
- var stdin_default$k = vue.defineComponent({
11653
- name: name$f,
11710
+ var stdin_default$o = vue.defineComponent({
11711
+ name: name$j,
11654
11712
  props: shareSheetProps,
11655
11713
  emits: ["cancel", "select", "update:show"],
11656
11714
  setup(props, {
@@ -11668,25 +11726,25 @@ var stdin_default$k = vue.defineComponent({
11668
11726
  const description = slots.description ? slots.description() : props.description;
11669
11727
  if (title || description) {
11670
11728
  return vue.createVNode("div", {
11671
- "class": bem$e("header")
11729
+ "class": bem$i("header")
11672
11730
  }, [title && vue.createVNode("h2", {
11673
- "class": bem$e("title")
11731
+ "class": bem$i("title")
11674
11732
  }, [title]), description && vue.createVNode("span", {
11675
- "class": bem$e("description")
11733
+ "class": bem$i("description")
11676
11734
  }, [description])]);
11677
11735
  }
11678
11736
  };
11679
11737
  const renderIcon = (icon) => {
11680
11738
  if (iconMap[icon]) {
11681
11739
  return vue.createVNode("div", {
11682
- "class": bem$e("icon", [icon])
11740
+ "class": bem$i("icon", [icon])
11683
11741
  }, [vue.createVNode(Icon, {
11684
11742
  "name": iconMap[icon] || icon
11685
11743
  }, null)]);
11686
11744
  }
11687
11745
  return vue.createVNode("img", {
11688
11746
  "src": icon,
11689
- "class": bem$e("image-icon")
11747
+ "class": bem$i("image-icon")
11690
11748
  }, null);
11691
11749
  };
11692
11750
  const renderOption = (option, index) => {
@@ -11699,16 +11757,16 @@ var stdin_default$k = vue.defineComponent({
11699
11757
  return vue.createVNode("div", {
11700
11758
  "role": "button",
11701
11759
  "tabindex": 0,
11702
- "class": [bem$e("option"), className, HAPTICS_FEEDBACK],
11760
+ "class": [bem$i("option"), className, HAPTICS_FEEDBACK],
11703
11761
  "onClick": () => onSelect(option, index)
11704
11762
  }, [renderIcon(icon), name2 && vue.createVNode("span", {
11705
- "class": bem$e("name")
11763
+ "class": bem$i("name")
11706
11764
  }, [name2]), description && vue.createVNode("span", {
11707
- "class": bem$e("option-description")
11765
+ "class": bem$i("option-description")
11708
11766
  }, [description])]);
11709
11767
  };
11710
11768
  const renderOptions = (options, border) => vue.createVNode("div", {
11711
- "class": bem$e("options", {
11769
+ "class": bem$i("options", {
11712
11770
  border
11713
11771
  })
11714
11772
  }, [options.map(renderOption)]);
@@ -11727,13 +11785,13 @@ var stdin_default$k = vue.defineComponent({
11727
11785
  if (slots.cancel || cancelText) {
11728
11786
  return vue.createVNode("button", {
11729
11787
  "type": "button",
11730
- "class": bem$e("cancel"),
11788
+ "class": bem$i("cancel"),
11731
11789
  "onClick": onCancel
11732
11790
  }, [slots.cancel ? slots.cancel() : cancelText]);
11733
11791
  }
11734
11792
  };
11735
11793
  return () => vue.createVNode(Popup, vue.mergeProps({
11736
- "class": bem$e(),
11794
+ "class": bem$i(),
11737
11795
  "position": "bottom",
11738
11796
  "onUpdate:show": updateShow
11739
11797
  }, pick(props, popupInheritKeys)), {
@@ -11741,14 +11799,14 @@ var stdin_default$k = vue.defineComponent({
11741
11799
  });
11742
11800
  }
11743
11801
  });
11744
- const ShareSheet = withInstall(stdin_default$k);
11745
- const [name$e, bem$d] = createNamespace("sidebar");
11746
- const SIDEBAR_KEY = Symbol(name$e);
11802
+ const ShareSheet = withInstall(stdin_default$o);
11803
+ const [name$i, bem$h] = createNamespace("sidebar");
11804
+ const SIDEBAR_KEY = Symbol(name$i);
11747
11805
  const sidebarProps = {
11748
11806
  modelValue: makeNumericProp(0)
11749
11807
  };
11750
- var stdin_default$j = vue.defineComponent({
11751
- name: name$e,
11808
+ var stdin_default$n = vue.defineComponent({
11809
+ name: name$i,
11752
11810
  props: sidebarProps,
11753
11811
  emits: ["change", "update:modelValue"],
11754
11812
  setup(props, {
@@ -11773,13 +11831,13 @@ var stdin_default$j = vue.defineComponent({
11773
11831
  var _a;
11774
11832
  return vue.createVNode("div", {
11775
11833
  "role": "tablist",
11776
- "class": bem$d()
11834
+ "class": bem$h()
11777
11835
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
11778
11836
  };
11779
11837
  }
11780
11838
  });
11781
- const Sidebar = withInstall(stdin_default$j);
11782
- const [name$d, bem$c] = createNamespace("sidebar-item");
11839
+ const Sidebar = withInstall(stdin_default$n);
11840
+ const [name$h, bem$g] = createNamespace("sidebar-item");
11783
11841
  const sidebarItemProps = extend({}, routeProps, {
11784
11842
  dot: Boolean,
11785
11843
  title: String,
@@ -11787,8 +11845,8 @@ const sidebarItemProps = extend({}, routeProps, {
11787
11845
  disabled: Boolean,
11788
11846
  badgeProps: Object
11789
11847
  });
11790
- var stdin_default$i = vue.defineComponent({
11791
- name: name$d,
11848
+ var stdin_default$m = vue.defineComponent({
11849
+ name: name$h,
11792
11850
  props: sidebarItemProps,
11793
11851
  emits: ["click"],
11794
11852
  setup(props, {
@@ -11824,7 +11882,7 @@ var stdin_default$i = vue.defineComponent({
11824
11882
  const selected = index.value === parent.getActive();
11825
11883
  return vue.createVNode("div", {
11826
11884
  "role": "tab",
11827
- "class": bem$c({
11885
+ "class": bem$g({
11828
11886
  select: selected,
11829
11887
  disabled
11830
11888
  }),
@@ -11833,7 +11891,7 @@ var stdin_default$i = vue.defineComponent({
11833
11891
  "onClick": onClick
11834
11892
  }, [vue.createVNode(Badge, vue.mergeProps({
11835
11893
  "dot": dot,
11836
- "class": bem$c("text"),
11894
+ "class": bem$g("text"),
11837
11895
  "content": badge
11838
11896
  }, props.badgeProps), {
11839
11897
  default: () => [slots.title ? slots.title() : title]
@@ -11841,27 +11899,83 @@ var stdin_default$i = vue.defineComponent({
11841
11899
  };
11842
11900
  }
11843
11901
  });
11844
- const SidebarItem = withInstall(stdin_default$i);
11845
- const [name$c, bem$b] = createNamespace("skeleton");
11902
+ const SidebarItem = withInstall(stdin_default$m);
11903
+ const [name$g, bem$f] = createNamespace("skeleton-title");
11904
+ const skeletonTitleProps = {
11905
+ round: Boolean,
11906
+ titleWidth: numericProp
11907
+ };
11908
+ var stdin_default$l = vue.defineComponent({
11909
+ name: name$g,
11910
+ props: skeletonTitleProps,
11911
+ setup(props) {
11912
+ return () => vue.createVNode("h3", {
11913
+ "class": bem$f([{
11914
+ round: props.round
11915
+ }]),
11916
+ "style": {
11917
+ width: addUnit(props.titleWidth)
11918
+ }
11919
+ }, null);
11920
+ }
11921
+ });
11922
+ const [name$f, bem$e] = createNamespace("skeleton-avatar");
11923
+ const skeletonAvatarProps = {
11924
+ avatarSize: numericProp,
11925
+ avatarShape: makeStringProp("round")
11926
+ };
11927
+ var stdin_default$k = vue.defineComponent({
11928
+ name: name$f,
11929
+ props: skeletonAvatarProps,
11930
+ setup(props) {
11931
+ return () => vue.createVNode("div", {
11932
+ "class": bem$e([props.avatarShape]),
11933
+ "style": getSizeStyle(props.avatarSize)
11934
+ }, null);
11935
+ }
11936
+ });
11846
11937
  const DEFAULT_ROW_WIDTH = "100%";
11938
+ const skeletonParagraphProps = {
11939
+ round: Boolean,
11940
+ rowWidth: {
11941
+ type: numericProp,
11942
+ default: DEFAULT_ROW_WIDTH
11943
+ }
11944
+ };
11945
+ const [name$e, bem$d] = createNamespace("skeleton-paragraph");
11946
+ var stdin_default$j = vue.defineComponent({
11947
+ name: name$e,
11948
+ props: skeletonParagraphProps,
11949
+ setup(props) {
11950
+ return () => vue.createVNode("div", {
11951
+ "class": bem$d([{
11952
+ round: props.round
11953
+ }]),
11954
+ "style": {
11955
+ width: props.rowWidth
11956
+ }
11957
+ }, null);
11958
+ }
11959
+ });
11960
+ const [name$d, bem$c] = createNamespace("skeleton");
11847
11961
  const DEFAULT_LAST_ROW_WIDTH = "60%";
11848
11962
  const skeletonProps = {
11849
11963
  row: makeNumericProp(0),
11850
- title: Boolean,
11851
11964
  round: Boolean,
11965
+ title: Boolean,
11966
+ titleWidth: numericProp,
11852
11967
  avatar: Boolean,
11853
- loading: truthProp,
11854
- animate: truthProp,
11855
11968
  avatarSize: numericProp,
11856
- titleWidth: numericProp,
11857
11969
  avatarShape: makeStringProp("round"),
11970
+ loading: truthProp,
11971
+ animate: truthProp,
11858
11972
  rowWidth: {
11859
11973
  type: [Number, String, Array],
11860
11974
  default: DEFAULT_ROW_WIDTH
11861
11975
  }
11862
11976
  };
11863
- var stdin_default$h = vue.defineComponent({
11864
- name: name$c,
11977
+ var stdin_default$i = vue.defineComponent({
11978
+ name: name$d,
11865
11979
  inheritAttrs: false,
11866
11980
  props: skeletonProps,
11867
11981
  setup(props, {
@@ -11870,19 +11984,17 @@ var stdin_default$h = vue.defineComponent({
11870
11984
  }) {
11871
11985
  const renderAvatar = () => {
11872
11986
  if (props.avatar) {
11873
- return vue.createVNode("div", {
11874
- "class": bem$b("avatar", props.avatarShape),
11875
- "style": getSizeStyle(props.avatarSize)
11987
+ return vue.createVNode(stdin_default$k, {
11988
+ "avatarShape": props.avatarShape,
11989
+ "avatarSize": props.avatarSize
11876
11990
  }, null);
11877
11991
  }
11878
11992
  };
11879
11993
  const renderTitle = () => {
11880
11994
  if (props.title) {
11881
- return vue.createVNode("h3", {
11882
- "class": bem$b("title"),
11883
- "style": {
11884
- width: addUnit(props.titleWidth)
11885
- }
11995
+ return vue.createVNode(stdin_default$l, {
11996
+ "round": props.round,
11997
+ "titleWidth": props.titleWidth
11886
11998
  }, null);
11887
11999
  }
11888
12000
  };
@@ -11898,29 +12010,56 @@ var stdin_default$h = vue.defineComponent({
11898
12010
  }
11899
12011
  return rowWidth;
11900
12012
  };
11901
- const renderRows = () => Array(+props.row).fill("").map((_, i) => vue.createVNode("div", {
11902
- "class": bem$b("row"),
11903
- "style": {
11904
- width: addUnit(getRowWidth(i))
11905
- }
12013
+ const renderRows = () => Array(+props.row).fill("").map((_, i) => vue.createVNode(stdin_default$j, {
12014
+ "key": i,
12015
+ "round": props.round,
12016
+ "rowWidth": addUnit(getRowWidth(i))
11906
12017
  }, null));
12018
+ const renderContents = () => {
12019
+ if (slots.template) {
12020
+ return slots.template();
12021
+ }
12022
+ return vue.createVNode(vue.Fragment, null, [renderAvatar(), vue.createVNode("div", {
12023
+ "class": bem$c("content")
12024
+ }, [renderTitle(), renderRows()])]);
12025
+ };
11907
12026
  return () => {
11908
12027
  var _a;
11909
12028
  if (!props.loading) {
11910
12029
  return (_a = slots.default) == null ? void 0 : _a.call(slots);
11911
12030
  }
11912
12031
  return vue.createVNode("div", vue.mergeProps({
11913
- "class": bem$b({
12032
+ "class": bem$c({
11914
12033
  animate: props.animate,
11915
12034
  round: props.round
11916
12035
  })
11917
- }, attrs), [renderAvatar(), vue.createVNode("div", {
11918
- "class": bem$b("content")
11919
- }, [renderTitle(), renderRows()])]);
12036
+ }, attrs), [renderContents()]);
11920
12037
  };
11921
12038
  }
11922
12039
  });
11923
- const Skeleton = withInstall(stdin_default$h);
12040
+ const [name$c, bem$b] = createNamespace("skeleton-image");
12041
+ const skeletonImageProps = {
12042
+ imageSize: numericProp,
12043
+ imageShape: makeStringProp("square")
12044
+ };
12045
+ var stdin_default$h = vue.defineComponent({
12046
+ name: name$c,
12047
+ props: skeletonImageProps,
12048
+ setup(props) {
12049
+ return () => vue.createVNode("div", {
12050
+ "class": bem$b([props.imageShape]),
12051
+ "style": getSizeStyle(props.imageSize)
12052
+ }, [vue.createVNode(Icon, {
12053
+ "name": "photo",
12054
+ "class": bem$b("icon")
12055
+ }, null)]);
12056
+ }
12057
+ });
12058
+ const SkeletonImage = withInstall(stdin_default$h);
12059
+ const SkeletonTitle = withInstall(stdin_default$l);
12060
+ const SkeletonAvatar = withInstall(stdin_default$k);
12061
+ const SkeletonParagraph = withInstall(stdin_default$j);
12062
+ const Skeleton = withInstall(stdin_default$i);
11924
12063
  const [name$b, bem$a] = createNamespace("slider");
11925
12064
  const sliderProps = {
11926
12065
  min: makeNumericProp(0),
@@ -12417,7 +12556,6 @@ var stdin_default$d = vue.defineComponent({
12417
12556
  const Step = withInstall(stdin_default$d);
12418
12557
  const [name$7, bem$6] = createNamespace("stepper");
12419
12558
  const LONG_PRESS_INTERVAL = 200;
12420
- const LONG_PRESS_START_TIME = 600;
12421
12559
  const isEqual = (value1, value2) => String(value1) === String(value2);
12422
12560
  const stepperProps = {
12423
12561
  min: makeNumericProp(1),
@@ -13140,7 +13278,10 @@ var stdin_default$7 = vue.defineComponent({
13140
13278
  case "second":
13141
13279
  return genOptions(+props.minSecond, +props.maxSecond, type, formatter, filter);
13142
13280
  default:
13143
- throw new Error(`[Vant] DatePicker: unsupported columns type: ${type}`);
13281
+ if (process.env.NODE_ENV !== "production") {
13282
+ throw new Error(`[Vant] DatePicker: unsupported columns type: ${type}`);
13283
+ }
13284
+ return [];
13144
13285
  }
13145
13286
  }));
13146
13287
  vue.watch(currentValues, (newValues) => {
@@ -13622,7 +13763,7 @@ var stdin_default$4 = vue.defineComponent({
13622
13763
  };
13623
13764
  const onClickUpload = (event) => emit("clickUpload", event);
13624
13765
  const renderUpload = () => {
13625
- if (props.modelValue.length >= props.maxCount || !props.showUpload) {
13766
+ if (props.modelValue.length >= props.maxCount) {
13626
13767
  return;
13627
13768
  }
13628
13769
  const Input = props.readonly ? null : vue.createVNode("input", {
@@ -13641,7 +13782,7 @@ var stdin_default$4 = vue.defineComponent({
13641
13782
  "onClick": onClickUpload
13642
13783
  }, [slots.default(), Input]);
13643
13784
  }
13644
- return vue.createVNode("div", {
13785
+ return vue.withDirectives(vue.createVNode("div", {
13645
13786
  "class": bem("upload", {
13646
13787
  readonly: props.readonly
13647
13788
  }),
@@ -13652,7 +13793,7 @@ var stdin_default$4 = vue.defineComponent({
13652
13793
  "class": bem("upload-icon")
13653
13794
  }, null), props.uploadText && vue.createVNode("span", {
13654
13795
  "class": bem("upload-text")
13655
- }, [props.uploadText]), Input]);
13796
+ }, [props.uploadText]), Input]), [[vue.vShow, props.showUpload]]);
13656
13797
  };
13657
13798
  const chooseFile = () => {
13658
13799
  if (inputRef.value && !props.disabled) {
@@ -14465,15 +14606,14 @@ var stdin_default$1 = (lazyManager) => ({
14465
14606
  default: "img"
14466
14607
  }
14467
14608
  },
14468
- render(h) {
14469
- return h(
14609
+ render() {
14610
+ var _a, _b;
14611
+ return vue.h(
14470
14612
  this.tag,
14471
14613
  {
14472
- attrs: {
14473
- src: this.renderSrc
14474
- }
14614
+ src: this.renderSrc
14475
14615
  },
14476
- this.$slots.default
14616
+ (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)
14477
14617
  );
14478
14618
  },
14479
14619
  data() {
@@ -14575,7 +14715,7 @@ const Lazyload = {
14575
14715
  });
14576
14716
  }
14577
14717
  };
14578
- const version = "4.0.0-rc.5";
14718
+ const version = "4.0.0-rc.7";
14579
14719
  function install(app) {
14580
14720
  const components = [
14581
14721
  ActionBar,
@@ -14748,6 +14888,10 @@ exports.ShareSheet = ShareSheet;
14748
14888
  exports.Sidebar = Sidebar;
14749
14889
  exports.SidebarItem = SidebarItem;
14750
14890
  exports.Skeleton = Skeleton;
14891
+ exports.SkeletonAvatar = SkeletonAvatar;
14892
+ exports.SkeletonImage = SkeletonImage;
14893
+ exports.SkeletonParagraph = SkeletonParagraph;
14894
+ exports.SkeletonTitle = SkeletonTitle;
14751
14895
  exports.Slider = Slider;
14752
14896
  exports.Space = Space;
14753
14897
  exports.Step = Step;
@@ -14853,7 +14997,11 @@ exports.showSuccessToast = showSuccessToast;
14853
14997
  exports.showToast = showToast;
14854
14998
  exports.sidebarItemProps = sidebarItemProps;
14855
14999
  exports.sidebarProps = sidebarProps;
15000
+ exports.skeletonAvatarProps = skeletonAvatarProps;
15001
+ exports.skeletonImageProps = skeletonImageProps;
15002
+ exports.skeletonParagraphProps = skeletonParagraphProps;
14856
15003
  exports.skeletonProps = skeletonProps;
15004
+ exports.skeletonTitleProps = skeletonTitleProps;
14857
15005
  exports.sliderProps = sliderProps;
14858
15006
  exports.spaceProps = spaceProps;
14859
15007
  exports.stepperProps = stepperProps;