vant 4.4.1 → 4.5.0

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 (59) hide show
  1. package/es/address-list/AddressList.d.ts +13 -0
  2. package/es/address-list/AddressList.mjs +4 -2
  3. package/es/address-list/AddressListItem.d.ts +9 -0
  4. package/es/address-list/AddressListItem.mjs +4 -3
  5. package/es/address-list/index.d.ts +9 -0
  6. package/es/back-top/BackTop.mjs +14 -1
  7. package/es/date-picker/DatePicker.d.ts +3 -3
  8. package/es/date-picker/index.d.ts +2 -2
  9. package/es/date-picker/utils.d.ts +4 -2
  10. package/es/date-picker/utils.mjs +8 -3
  11. package/es/dropdown-menu/DropdownMenu.mjs +10 -3
  12. package/es/dropdown-menu/types.d.ts +5 -1
  13. package/es/floating-panel/FloatingPanel.d.ts +77 -0
  14. package/es/floating-panel/FloatingPanel.mjs +126 -0
  15. package/es/floating-panel/index.css +1 -0
  16. package/es/floating-panel/index.d.ts +60 -0
  17. package/es/floating-panel/index.mjs +8 -0
  18. package/es/floating-panel/style/index.d.ts +1 -0
  19. package/es/floating-panel/style/index.mjs +2 -0
  20. package/es/index.d.ts +2 -1
  21. package/es/index.mjs +4 -1
  22. package/es/slider/Slider.mjs +10 -2
  23. package/es/time-picker/TimePicker.d.ts +31 -4
  24. package/es/time-picker/TimePicker.mjs +73 -21
  25. package/es/time-picker/index.d.ts +20 -2
  26. package/es/utils/basic.d.ts +3 -0
  27. package/lib/address-list/AddressList.d.ts +13 -0
  28. package/lib/address-list/AddressList.js +3 -1
  29. package/lib/address-list/AddressListItem.d.ts +9 -0
  30. package/lib/address-list/AddressListItem.js +3 -2
  31. package/lib/address-list/index.d.ts +9 -0
  32. package/lib/back-top/BackTop.js +13 -0
  33. package/lib/date-picker/DatePicker.d.ts +3 -3
  34. package/lib/date-picker/index.d.ts +2 -2
  35. package/lib/date-picker/utils.d.ts +4 -2
  36. package/lib/date-picker/utils.js +2 -2
  37. package/lib/dropdown-menu/DropdownMenu.js +10 -3
  38. package/lib/dropdown-menu/types.d.ts +5 -1
  39. package/lib/floating-panel/FloatingPanel.d.ts +77 -0
  40. package/lib/floating-panel/FloatingPanel.js +145 -0
  41. package/lib/floating-panel/index.css +1 -0
  42. package/lib/floating-panel/index.d.ts +60 -0
  43. package/lib/floating-panel/index.js +37 -0
  44. package/lib/floating-panel/style/index.d.ts +1 -0
  45. package/lib/floating-panel/style/index.js +2 -0
  46. package/lib/index.css +1 -1
  47. package/lib/index.d.ts +2 -1
  48. package/lib/index.js +4 -1
  49. package/lib/slider/Slider.js +10 -2
  50. package/lib/time-picker/TimePicker.d.ts +31 -4
  51. package/lib/time-picker/TimePicker.js +84 -32
  52. package/lib/time-picker/index.d.ts +20 -2
  53. package/lib/utils/basic.d.ts +3 -0
  54. package/lib/vant.cjs.js +770 -570
  55. package/lib/vant.es.js +770 -570
  56. package/lib/vant.js +766 -566
  57. package/lib/vant.min.js +1 -1
  58. package/lib/web-types.json +1 -1
  59. package/package.json +1 -1
package/lib/vant.js CHANGED
@@ -502,7 +502,7 @@
502
502
  const parentHidden = el.offsetParent === null && style.position !== "fixed";
503
503
  return hidden || parentHidden;
504
504
  }
505
- const { width: windowWidth, height: windowHeight } = useWindowSize();
505
+ const { width: windowWidth, height: windowHeight$1 } = useWindowSize();
506
506
  function addUnit(value) {
507
507
  if (isDef(value)) {
508
508
  return isNumeric(value) ? `${value}px` : String(value);
@@ -550,7 +550,7 @@
550
550
  }
551
551
  function convertVh(value) {
552
552
  value = value.replace(/vh/g, "");
553
- return +value * windowHeight.value / 100;
553
+ return +value * windowHeight$1.value / 100;
554
554
  }
555
555
  function unitToPx(value) {
556
556
  if (typeof value === "number") {
@@ -626,7 +626,7 @@
626
626
  });
627
627
  return to;
628
628
  }
629
- var stdin_default$1Q = {
629
+ var stdin_default$1R = {
630
630
  name: "姓名",
631
631
  tel: "电话",
632
632
  save: "保存",
@@ -690,7 +690,7 @@
690
690
  };
691
691
  const lang = vue.ref("zh-CN");
692
692
  const messages = vue.reactive({
693
- "zh-CN": stdin_default$1Q
693
+ "zh-CN": stdin_default$1R
694
694
  });
695
695
  const Locale = {
696
696
  messages() {
@@ -705,11 +705,11 @@
705
705
  }
706
706
  };
707
707
  const useCurrentLang = () => lang;
708
- var stdin_default$1P = Locale;
708
+ var stdin_default$1Q = Locale;
709
709
  function createTranslate(name2) {
710
710
  const prefix = camelize(name2) + ".";
711
711
  return (path, ...args) => {
712
- const messages2 = stdin_default$1P.messages();
712
+ const messages2 = stdin_default$1Q.messages();
713
713
  const message = get(messages2, prefix + path) || get(messages2, path);
714
714
  return isFunction(message) ? message(...args) : message;
715
715
  };
@@ -820,7 +820,7 @@
820
820
  }
821
821
  });
822
822
  onPopupReopen(() => vue.nextTick(setHeight));
823
- vue.watch([windowWidth, windowHeight], setHeight);
823
+ vue.watch([windowWidth, windowHeight$1], setHeight);
824
824
  return height2;
825
825
  };
826
826
  function usePlaceholder(contentRef, bem2) {
@@ -832,20 +832,20 @@
832
832
  }
833
833
  }, [renderContent()]);
834
834
  }
835
- const [name$1F, bem$1A] = createNamespace("action-bar");
836
- const ACTION_BAR_KEY = Symbol(name$1F);
835
+ const [name$1G, bem$1B] = createNamespace("action-bar");
836
+ const ACTION_BAR_KEY = Symbol(name$1G);
837
837
  const actionBarProps = {
838
838
  placeholder: Boolean,
839
839
  safeAreaInsetBottom: truthProp
840
840
  };
841
- var stdin_default$1O = vue.defineComponent({
842
- name: name$1F,
841
+ var stdin_default$1P = vue.defineComponent({
842
+ name: name$1G,
843
843
  props: actionBarProps,
844
844
  setup(props, {
845
845
  slots
846
846
  }) {
847
847
  const root = vue.ref();
848
- const renderPlaceholder = usePlaceholder(root, bem$1A);
848
+ const renderPlaceholder = usePlaceholder(root, bem$1B);
849
849
  const {
850
850
  linkChildren
851
851
  } = useChildren(ACTION_BAR_KEY);
@@ -854,7 +854,7 @@
854
854
  var _a;
855
855
  return vue.createVNode("div", {
856
856
  "ref": root,
857
- "class": [bem$1A(), {
857
+ "class": [bem$1B(), {
858
858
  "van-safe-area-bottom": props.safeAreaInsetBottom
859
859
  }]
860
860
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
@@ -867,7 +867,7 @@
867
867
  };
868
868
  }
869
869
  });
870
- const ActionBar = withInstall(stdin_default$1O);
870
+ const ActionBar = withInstall(stdin_default$1P);
871
871
  function useExpose(apis) {
872
872
  const instance2 = vue.getCurrentInstance();
873
873
  if (instance2) {
@@ -895,7 +895,7 @@
895
895
  const vm = vue.getCurrentInstance().proxy;
896
896
  return () => route(vm);
897
897
  }
898
- const [name$1E, bem$1z] = createNamespace("badge");
898
+ const [name$1F, bem$1A] = createNamespace("badge");
899
899
  const badgeProps = {
900
900
  dot: Boolean,
901
901
  max: numericProp,
@@ -906,8 +906,8 @@
906
906
  showZero: truthProp,
907
907
  position: makeStringProp("top-right")
908
908
  };
909
- var stdin_default$1N = vue.defineComponent({
910
- name: name$1E,
909
+ var stdin_default$1O = vue.defineComponent({
910
+ name: name$1F,
911
911
  props: badgeProps,
912
912
  setup(props, {
913
913
  slots
@@ -970,7 +970,7 @@
970
970
  const renderBadge = () => {
971
971
  if (hasContent() || props.dot) {
972
972
  return vue.createVNode("div", {
973
- "class": bem$1z([props.position, {
973
+ "class": bem$1A([props.position, {
974
974
  dot: props.dot,
975
975
  fixed: !!slots.default
976
976
  }]),
@@ -984,7 +984,7 @@
984
984
  tag
985
985
  } = props;
986
986
  return vue.createVNode(tag, {
987
- "class": bem$1z("wrapper")
987
+ "class": bem$1A("wrapper")
988
988
  }, {
989
989
  default: () => [slots.default(), renderBadge()]
990
990
  });
@@ -993,14 +993,14 @@
993
993
  };
994
994
  }
995
995
  });
996
- const Badge = withInstall(stdin_default$1N);
996
+ const Badge = withInstall(stdin_default$1O);
997
997
  let globalZIndex = 2e3;
998
998
  const useGlobalZIndex = () => ++globalZIndex;
999
999
  const setGlobalZIndex = (val) => {
1000
1000
  globalZIndex = val;
1001
1001
  };
1002
- const [name$1D, bem$1y] = createNamespace("config-provider");
1003
- const CONFIG_PROVIDER_KEY = Symbol(name$1D);
1002
+ const [name$1E, bem$1z] = createNamespace("config-provider");
1003
+ const CONFIG_PROVIDER_KEY = Symbol(name$1E);
1004
1004
  const configProviderProps = {
1005
1005
  tag: makeStringProp("div"),
1006
1006
  theme: makeStringProp("light"),
@@ -1017,8 +1017,8 @@
1017
1017
  });
1018
1018
  return cssVars;
1019
1019
  }
1020
- var stdin_default$1M = vue.defineComponent({
1021
- name: name$1D,
1020
+ var stdin_default$1N = vue.defineComponent({
1021
+ name: name$1E,
1022
1022
  props: configProviderProps,
1023
1023
  setup(props, {
1024
1024
  slots
@@ -1050,7 +1050,7 @@
1050
1050
  }
1051
1051
  });
1052
1052
  return () => vue.createVNode(props.tag, {
1053
- "class": bem$1y(),
1053
+ "class": bem$1z(),
1054
1054
  "style": style.value
1055
1055
  }, {
1056
1056
  default: () => {
@@ -1060,7 +1060,7 @@
1060
1060
  });
1061
1061
  }
1062
1062
  });
1063
- const [name$1C, bem$1x] = createNamespace("icon");
1063
+ const [name$1D, bem$1y] = createNamespace("icon");
1064
1064
  const isImage$1 = (name2) => name2 == null ? void 0 : name2.includes("/");
1065
1065
  const iconProps = {
1066
1066
  dot: Boolean,
@@ -1072,14 +1072,14 @@
1072
1072
  badgeProps: Object,
1073
1073
  classPrefix: String
1074
1074
  };
1075
- var stdin_default$1L = vue.defineComponent({
1076
- name: name$1C,
1075
+ var stdin_default$1M = vue.defineComponent({
1076
+ name: name$1D,
1077
1077
  props: iconProps,
1078
1078
  setup(props, {
1079
1079
  slots
1080
1080
  }) {
1081
1081
  const config = vue.inject(CONFIG_PROVIDER_KEY, null);
1082
- const classPrefix = vue.computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1x());
1082
+ const classPrefix = vue.computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1y());
1083
1083
  return () => {
1084
1084
  const {
1085
1085
  tag,
@@ -1103,7 +1103,7 @@
1103
1103
  default: () => {
1104
1104
  var _a;
1105
1105
  return [(_a = slots.default) == null ? void 0 : _a.call(slots), isImageIcon && vue.createVNode("img", {
1106
- "class": bem$1x("image"),
1106
+ "class": bem$1y("image"),
1107
1107
  "src": name2
1108
1108
  }, null)];
1109
1109
  }
@@ -1111,13 +1111,13 @@
1111
1111
  };
1112
1112
  }
1113
1113
  });
1114
- const Icon = withInstall(stdin_default$1L);
1115
- const [name$1B, bem$1w] = createNamespace("loading");
1114
+ const Icon = withInstall(stdin_default$1M);
1115
+ const [name$1C, bem$1x] = createNamespace("loading");
1116
1116
  const SpinIcon = Array(12).fill(null).map((_, index) => vue.createVNode("i", {
1117
- "class": bem$1w("line", String(index + 1))
1117
+ "class": bem$1x("line", String(index + 1))
1118
1118
  }, null));
1119
1119
  const CircularIcon = vue.createVNode("svg", {
1120
- "class": bem$1w("circular"),
1120
+ "class": bem$1x("circular"),
1121
1121
  "viewBox": "25 25 50 50"
1122
1122
  }, [vue.createVNode("circle", {
1123
1123
  "cx": "50",
@@ -1133,8 +1133,8 @@
1133
1133
  textSize: numericProp,
1134
1134
  textColor: String
1135
1135
  };
1136
- var stdin_default$1K = vue.defineComponent({
1137
- name: name$1B,
1136
+ var stdin_default$1L = vue.defineComponent({
1137
+ name: name$1C,
1138
1138
  props: loadingProps,
1139
1139
  setup(props, {
1140
1140
  slots
@@ -1145,7 +1145,7 @@
1145
1145
  const renderIcon = () => {
1146
1146
  const DefaultIcon = props.type === "spinner" ? SpinIcon : CircularIcon;
1147
1147
  return vue.createVNode("span", {
1148
- "class": bem$1w("spinner", props.type),
1148
+ "class": bem$1x("spinner", props.type),
1149
1149
  "style": spinnerStyle.value
1150
1150
  }, [slots.icon ? slots.icon() : DefaultIcon]);
1151
1151
  };
@@ -1153,7 +1153,7 @@
1153
1153
  var _a;
1154
1154
  if (slots.default) {
1155
1155
  return vue.createVNode("span", {
1156
- "class": bem$1w("text"),
1156
+ "class": bem$1x("text"),
1157
1157
  "style": {
1158
1158
  fontSize: addUnit(props.textSize),
1159
1159
  color: (_a = props.textColor) != null ? _a : props.color
@@ -1167,7 +1167,7 @@
1167
1167
  vertical
1168
1168
  } = props;
1169
1169
  return vue.createVNode("div", {
1170
- "class": bem$1w([type, {
1170
+ "class": bem$1x([type, {
1171
1171
  vertical
1172
1172
  }]),
1173
1173
  "aria-live": "polite",
@@ -1176,8 +1176,8 @@
1176
1176
  };
1177
1177
  }
1178
1178
  });
1179
- const Loading = withInstall(stdin_default$1K);
1180
- const [name$1A, bem$1v] = createNamespace("button");
1179
+ const Loading = withInstall(stdin_default$1L);
1180
+ const [name$1B, bem$1w] = createNamespace("button");
1181
1181
  const buttonProps = extend({}, routeProps, {
1182
1182
  tag: makeStringProp("button"),
1183
1183
  text: String,
@@ -1199,8 +1199,8 @@
1199
1199
  loadingType: String,
1200
1200
  iconPosition: makeStringProp("left")
1201
1201
  });
1202
- var stdin_default$1J = vue.defineComponent({
1203
- name: name$1A,
1202
+ var stdin_default$1K = vue.defineComponent({
1203
+ name: name$1B,
1204
1204
  props: buttonProps,
1205
1205
  emits: ["click"],
1206
1206
  setup(props, {
@@ -1215,7 +1215,7 @@
1215
1215
  return vue.createVNode(Loading, {
1216
1216
  "size": props.loadingSize,
1217
1217
  "type": props.loadingType,
1218
- "class": bem$1v("loading")
1218
+ "class": bem$1w("loading")
1219
1219
  }, null);
1220
1220
  };
1221
1221
  const renderIcon = () => {
@@ -1224,13 +1224,13 @@
1224
1224
  }
1225
1225
  if (slots.icon) {
1226
1226
  return vue.createVNode("div", {
1227
- "class": bem$1v("icon")
1227
+ "class": bem$1w("icon")
1228
1228
  }, [slots.icon()]);
1229
1229
  }
1230
1230
  if (props.icon) {
1231
1231
  return vue.createVNode(Icon, {
1232
1232
  "name": props.icon,
1233
- "class": bem$1v("icon"),
1233
+ "class": bem$1w("icon"),
1234
1234
  "classPrefix": props.iconPrefix
1235
1235
  }, null);
1236
1236
  }
@@ -1244,7 +1244,7 @@
1244
1244
  }
1245
1245
  if (text) {
1246
1246
  return vue.createVNode("span", {
1247
- "class": bem$1v("text")
1247
+ "class": bem$1w("text")
1248
1248
  }, [text]);
1249
1249
  }
1250
1250
  };
@@ -1291,7 +1291,7 @@
1291
1291
  nativeType,
1292
1292
  iconPosition
1293
1293
  } = props;
1294
- const classes = [bem$1v([type, size, {
1294
+ const classes = [bem$1w([type, size, {
1295
1295
  plain,
1296
1296
  block,
1297
1297
  round: round2,
@@ -1310,14 +1310,14 @@
1310
1310
  "onClick": onClick
1311
1311
  }, {
1312
1312
  default: () => [vue.createVNode("div", {
1313
- "class": bem$1v("content")
1313
+ "class": bem$1w("content")
1314
1314
  }, [iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon()])]
1315
1315
  });
1316
1316
  };
1317
1317
  }
1318
1318
  });
1319
- const Button = withInstall(stdin_default$1J);
1320
- const [name$1z, bem$1u] = createNamespace("action-bar-button");
1319
+ const Button = withInstall(stdin_default$1K);
1320
+ const [name$1A, bem$1v] = createNamespace("action-bar-button");
1321
1321
  const actionBarButtonProps = extend({}, routeProps, {
1322
1322
  type: String,
1323
1323
  text: String,
@@ -1326,8 +1326,8 @@
1326
1326
  loading: Boolean,
1327
1327
  disabled: Boolean
1328
1328
  });
1329
- var stdin_default$1I = vue.defineComponent({
1330
- name: name$1z,
1329
+ var stdin_default$1J = vue.defineComponent({
1330
+ name: name$1A,
1331
1331
  props: actionBarButtonProps,
1332
1332
  setup(props, {
1333
1333
  slots
@@ -1362,7 +1362,7 @@
1362
1362
  disabled
1363
1363
  } = props;
1364
1364
  return vue.createVNode(Button, {
1365
- "class": bem$1u([type, {
1365
+ "class": bem$1v([type, {
1366
1366
  last: isLast.value,
1367
1367
  first: isFirst.value
1368
1368
  }]),
@@ -1379,8 +1379,8 @@
1379
1379
  };
1380
1380
  }
1381
1381
  });
1382
- const ActionBarButton = withInstall(stdin_default$1I);
1383
- const [name$1y, bem$1t] = createNamespace("action-bar-icon");
1382
+ const ActionBarButton = withInstall(stdin_default$1J);
1383
+ const [name$1z, bem$1u] = createNamespace("action-bar-icon");
1384
1384
  const actionBarIconProps = extend({}, routeProps, {
1385
1385
  dot: Boolean,
1386
1386
  text: String,
@@ -1391,8 +1391,8 @@
1391
1391
  badgeProps: Object,
1392
1392
  iconPrefix: String
1393
1393
  });
1394
- var stdin_default$1H = vue.defineComponent({
1395
- name: name$1y,
1394
+ var stdin_default$1I = vue.defineComponent({
1395
+ name: name$1z,
1396
1396
  props: actionBarIconProps,
1397
1397
  setup(props, {
1398
1398
  slots
@@ -1412,7 +1412,7 @@
1412
1412
  if (slots.icon) {
1413
1413
  return vue.createVNode(Badge, vue.mergeProps({
1414
1414
  "dot": dot,
1415
- "class": bem$1t("icon"),
1415
+ "class": bem$1u("icon"),
1416
1416
  "content": badge
1417
1417
  }, badgeProps2), {
1418
1418
  default: slots.icon
@@ -1424,20 +1424,20 @@
1424
1424
  "name": icon,
1425
1425
  "badge": badge,
1426
1426
  "color": color,
1427
- "class": [bem$1t("icon"), iconClass],
1427
+ "class": [bem$1u("icon"), iconClass],
1428
1428
  "badgeProps": badgeProps2,
1429
1429
  "classPrefix": iconPrefix
1430
1430
  }, null);
1431
1431
  };
1432
1432
  return () => vue.createVNode("div", {
1433
1433
  "role": "button",
1434
- "class": bem$1t(),
1434
+ "class": bem$1u(),
1435
1435
  "tabindex": 0,
1436
1436
  "onClick": route2
1437
1437
  }, [renderIcon(), slots.default ? slots.default() : props.text]);
1438
1438
  }
1439
1439
  });
1440
- const ActionBarIcon = withInstall(stdin_default$1H);
1440
+ const ActionBarIcon = withInstall(stdin_default$1I);
1441
1441
  const popupSharedProps = {
1442
1442
  // whether to show popup
1443
1443
  show: Boolean,
@@ -1588,7 +1588,7 @@
1588
1588
  );
1589
1589
  return (render) => () => inited.value ? render() : null;
1590
1590
  }
1591
- const [name$1x, bem$1s] = createNamespace("overlay");
1591
+ const [name$1y, bem$1t] = createNamespace("overlay");
1592
1592
  const overlayProps = {
1593
1593
  show: Boolean,
1594
1594
  zIndex: numericProp,
@@ -1598,8 +1598,8 @@
1598
1598
  lazyRender: truthProp,
1599
1599
  customStyle: Object
1600
1600
  };
1601
- var stdin_default$1G = vue.defineComponent({
1602
- name: name$1x,
1601
+ var stdin_default$1H = vue.defineComponent({
1602
+ name: name$1y,
1603
1603
  props: overlayProps,
1604
1604
  setup(props, {
1605
1605
  slots
@@ -1620,7 +1620,7 @@
1620
1620
  return vue.withDirectives(vue.createVNode("div", {
1621
1621
  "ref": root,
1622
1622
  "style": style,
1623
- "class": [bem$1s(), props.className]
1623
+ "class": [bem$1t(), props.className]
1624
1624
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), [[vue.vShow, props.show]]);
1625
1625
  });
1626
1626
  useEventListener("touchmove", onTouchMove, {
@@ -1634,7 +1634,7 @@
1634
1634
  });
1635
1635
  }
1636
1636
  });
1637
- const Overlay = withInstall(stdin_default$1G);
1637
+ const Overlay = withInstall(stdin_default$1H);
1638
1638
  const popupProps$2 = extend({}, popupSharedProps, {
1639
1639
  round: Boolean,
1640
1640
  position: makeStringProp("center"),
@@ -1647,9 +1647,9 @@
1647
1647
  safeAreaInsetTop: Boolean,
1648
1648
  safeAreaInsetBottom: Boolean
1649
1649
  });
1650
- const [name$1w, bem$1r] = createNamespace("popup");
1651
- var stdin_default$1F = vue.defineComponent({
1652
- name: name$1w,
1650
+ const [name$1x, bem$1s] = createNamespace("popup");
1651
+ var stdin_default$1G = vue.defineComponent({
1652
+ name: name$1x,
1653
1653
  inheritAttrs: false,
1654
1654
  props: popupProps$2,
1655
1655
  emits: ["open", "close", "opened", "closed", "keydown", "update:show", "clickOverlay", "clickCloseIcon"],
@@ -1723,7 +1723,7 @@
1723
1723
  "role": "button",
1724
1724
  "tabindex": 0,
1725
1725
  "name": props.closeIcon,
1726
- "class": [bem$1r("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
1726
+ "class": [bem$1s("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
1727
1727
  "classPrefix": props.iconPrefix,
1728
1728
  "onClick": onClickCloseIcon
1729
1729
  }, null);
@@ -1752,7 +1752,7 @@
1752
1752
  "style": style.value,
1753
1753
  "role": "dialog",
1754
1754
  "tabindex": 0,
1755
- "class": [bem$1r({
1755
+ "class": [bem$1s({
1756
1756
  round: round2,
1757
1757
  [position]: position
1758
1758
  }), {
@@ -1833,8 +1833,8 @@
1833
1833
  };
1834
1834
  }
1835
1835
  });
1836
- const Popup = withInstall(stdin_default$1F);
1837
- const [name$1v, bem$1q] = createNamespace("action-sheet");
1836
+ const Popup = withInstall(stdin_default$1G);
1837
+ const [name$1w, bem$1r] = createNamespace("action-sheet");
1838
1838
  const actionSheetProps = extend({}, popupSharedProps, {
1839
1839
  title: String,
1840
1840
  round: truthProp,
@@ -1848,8 +1848,8 @@
1848
1848
  safeAreaInsetBottom: truthProp
1849
1849
  });
1850
1850
  const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
1851
- var stdin_default$1E = vue.defineComponent({
1852
- name: name$1v,
1851
+ var stdin_default$1F = vue.defineComponent({
1852
+ name: name$1w,
1853
1853
  props: actionSheetProps,
1854
1854
  emits: ["select", "cancel", "update:show"],
1855
1855
  setup(props, {
@@ -1864,10 +1864,10 @@
1864
1864
  const renderHeader = () => {
1865
1865
  if (props.title) {
1866
1866
  return vue.createVNode("div", {
1867
- "class": bem$1q("header")
1867
+ "class": bem$1r("header")
1868
1868
  }, [props.title, props.closeable && vue.createVNode(Icon, {
1869
1869
  "name": props.closeIcon,
1870
- "class": [bem$1q("close"), HAPTICS_FEEDBACK],
1870
+ "class": [bem$1r("close"), HAPTICS_FEEDBACK],
1871
1871
  "onClick": onCancel
1872
1872
  }, null)]);
1873
1873
  }
@@ -1875,10 +1875,10 @@
1875
1875
  const renderCancel = () => {
1876
1876
  if (slots.cancel || props.cancelText) {
1877
1877
  return [vue.createVNode("div", {
1878
- "class": bem$1q("gap")
1878
+ "class": bem$1r("gap")
1879
1879
  }, null), vue.createVNode("button", {
1880
1880
  "type": "button",
1881
- "class": bem$1q("cancel"),
1881
+ "class": bem$1r("cancel"),
1882
1882
  "onClick": onCancel
1883
1883
  }, [slots.cancel ? slots.cancel() : props.cancelText])];
1884
1884
  }
@@ -1886,7 +1886,7 @@
1886
1886
  const renderActionContent = (action, index) => {
1887
1887
  if (action.loading) {
1888
1888
  return vue.createVNode(Loading, {
1889
- "class": bem$1q("loading-icon")
1889
+ "class": bem$1r("loading-icon")
1890
1890
  }, null);
1891
1891
  }
1892
1892
  if (slots.action) {
@@ -1896,9 +1896,9 @@
1896
1896
  });
1897
1897
  }
1898
1898
  return [vue.createVNode("span", {
1899
- "class": bem$1q("name")
1899
+ "class": bem$1r("name")
1900
1900
  }, [action.name]), action.subname && vue.createVNode("div", {
1901
- "class": bem$1q("subname")
1901
+ "class": bem$1r("subname")
1902
1902
  }, [action.subname])];
1903
1903
  };
1904
1904
  const renderAction = (action, index) => {
@@ -1926,7 +1926,7 @@
1926
1926
  "style": {
1927
1927
  color
1928
1928
  },
1929
- "class": [bem$1q("item", {
1929
+ "class": [bem$1r("item", {
1930
1930
  loading,
1931
1931
  disabled
1932
1932
  }), className],
@@ -1937,26 +1937,26 @@
1937
1937
  if (props.description || slots.description) {
1938
1938
  const content = slots.description ? slots.description() : props.description;
1939
1939
  return vue.createVNode("div", {
1940
- "class": bem$1q("description")
1940
+ "class": bem$1r("description")
1941
1941
  }, [content]);
1942
1942
  }
1943
1943
  };
1944
1944
  return () => vue.createVNode(Popup, vue.mergeProps({
1945
- "class": bem$1q(),
1945
+ "class": bem$1r(),
1946
1946
  "position": "bottom",
1947
1947
  "onUpdate:show": updateShow
1948
1948
  }, pick(props, popupInheritKeys$2)), {
1949
1949
  default: () => {
1950
1950
  var _a;
1951
1951
  return [renderHeader(), renderDescription(), vue.createVNode("div", {
1952
- "class": bem$1q("content")
1952
+ "class": bem$1r("content")
1953
1953
  }, [props.actions.map(renderAction), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderCancel()];
1954
1954
  }
1955
1955
  });
1956
1956
  }
1957
1957
  });
1958
- const ActionSheet = withInstall(stdin_default$1E);
1959
- const [name$1u, bem$1p, t$k] = createNamespace("picker");
1958
+ const ActionSheet = withInstall(stdin_default$1F);
1959
+ const [name$1v, bem$1q, t$k] = createNamespace("picker");
1960
1960
  const getFirstEnabledOption = (options) => options.find((option) => !option.disabled) || options[0];
1961
1961
  function getColumnsType(columns, fields) {
1962
1962
  const firstColumn = columns[0];
@@ -2025,10 +2025,10 @@
2025
2025
  const DEFAULT_DURATION = 200;
2026
2026
  const MOMENTUM_TIME = 300;
2027
2027
  const MOMENTUM_DISTANCE = 15;
2028
- const [name$1t, bem$1o] = createNamespace("picker-column");
2029
- const PICKER_KEY = Symbol(name$1t);
2030
- var stdin_default$1D = vue.defineComponent({
2031
- name: name$1t,
2028
+ const [name$1u, bem$1p] = createNamespace("picker-column");
2029
+ const PICKER_KEY = Symbol(name$1u);
2030
+ var stdin_default$1E = vue.defineComponent({
2031
+ name: name$1u,
2032
2032
  props: {
2033
2033
  value: numericProp,
2034
2034
  fields: makeRequiredProp(Object),
@@ -2167,7 +2167,7 @@
2167
2167
  role: "button",
2168
2168
  style: optionStyle,
2169
2169
  tabindex: disabled ? -1 : 0,
2170
- class: [bem$1o("item", {
2170
+ class: [bem$1p("item", {
2171
2171
  disabled,
2172
2172
  selected: value === props.value
2173
2173
  }), option.className],
@@ -2195,7 +2195,7 @@
2195
2195
  });
2196
2196
  return () => vue.createVNode("div", {
2197
2197
  "ref": root,
2198
- "class": bem$1o(),
2198
+ "class": bem$1p(),
2199
2199
  "onTouchstartPassive": onTouchStart,
2200
2200
  "onTouchend": onTouchEnd,
2201
2201
  "onTouchcancel": onTouchEnd
@@ -2206,12 +2206,12 @@
2206
2206
  transitionDuration: `${currentDuration.value}ms`,
2207
2207
  transitionProperty: currentDuration.value ? "all" : "none"
2208
2208
  },
2209
- "class": bem$1o("wrapper"),
2209
+ "class": bem$1p("wrapper"),
2210
2210
  "onTransitionend": stopMomentum
2211
2211
  }, [renderOptions()])]);
2212
2212
  }
2213
2213
  });
2214
- const [name$1s] = createNamespace("picker-toolbar");
2214
+ const [name$1t] = createNamespace("picker-toolbar");
2215
2215
  const pickerToolbarProps = {
2216
2216
  title: String,
2217
2217
  cancelButtonText: String,
@@ -2219,8 +2219,8 @@
2219
2219
  };
2220
2220
  const pickerToolbarSlots = ["cancel", "confirm", "title", "toolbar"];
2221
2221
  const pickerToolbarPropKeys = Object.keys(pickerToolbarProps);
2222
- var stdin_default$1C = vue.defineComponent({
2223
- name: name$1s,
2222
+ var stdin_default$1D = vue.defineComponent({
2223
+ name: name$1t,
2224
2224
  props: pickerToolbarProps,
2225
2225
  emits: ["confirm", "cancel"],
2226
2226
  setup(props, {
@@ -2233,7 +2233,7 @@
2233
2233
  }
2234
2234
  if (props.title) {
2235
2235
  return vue.createVNode("div", {
2236
- "class": [bem$1p("title"), "van-ellipsis"]
2236
+ "class": [bem$1q("title"), "van-ellipsis"]
2237
2237
  }, [props.title]);
2238
2238
  }
2239
2239
  };
@@ -2243,7 +2243,7 @@
2243
2243
  const text = props.cancelButtonText || t$k("cancel");
2244
2244
  return vue.createVNode("button", {
2245
2245
  "type": "button",
2246
- "class": [bem$1p("cancel"), HAPTICS_FEEDBACK],
2246
+ "class": [bem$1q("cancel"), HAPTICS_FEEDBACK],
2247
2247
  "onClick": onCancel
2248
2248
  }, [slots.cancel ? slots.cancel() : text]);
2249
2249
  };
@@ -2251,12 +2251,12 @@
2251
2251
  const text = props.confirmButtonText || t$k("confirm");
2252
2252
  return vue.createVNode("button", {
2253
2253
  "type": "button",
2254
- "class": [bem$1p("confirm"), HAPTICS_FEEDBACK],
2254
+ "class": [bem$1q("confirm"), HAPTICS_FEEDBACK],
2255
2255
  "onClick": onConfirm
2256
2256
  }, [slots.confirm ? slots.confirm() : text]);
2257
2257
  };
2258
2258
  return () => vue.createVNode("div", {
2259
- "class": bem$1p("toolbar")
2259
+ "class": bem$1q("toolbar")
2260
2260
  }, [slots.toolbar ? slots.toolbar() : [renderCancel(), renderTitle(), renderConfirm()]]);
2261
2261
  }
2262
2262
  });
@@ -2387,7 +2387,7 @@
2387
2387
  vue.onBeforeUnmount(unobserve);
2388
2388
  onMountedOrActivated(observe);
2389
2389
  }
2390
- const [name$1r, bem$1n] = createNamespace("sticky");
2390
+ const [name$1s, bem$1o] = createNamespace("sticky");
2391
2391
  const stickyProps = {
2392
2392
  zIndex: numericProp,
2393
2393
  position: makeStringProp("top"),
@@ -2395,8 +2395,8 @@
2395
2395
  offsetTop: makeNumericProp(0),
2396
2396
  offsetBottom: makeNumericProp(0)
2397
2397
  };
2398
- var stdin_default$1B = vue.defineComponent({
2399
- name: name$1r,
2398
+ var stdin_default$1C = vue.defineComponent({
2399
+ name: name$1s,
2400
2400
  props: stickyProps,
2401
2401
  emits: ["scroll", "change"],
2402
2402
  setup(props, {
@@ -2491,7 +2491,7 @@
2491
2491
  passive: true
2492
2492
  });
2493
2493
  useVisibilityChange(root, onScroll);
2494
- vue.watch([windowWidth, windowHeight], () => {
2494
+ vue.watch([windowWidth, windowHeight$1], () => {
2495
2495
  if (!root.value || isHidden(root) || !state.fixed) {
2496
2496
  return;
2497
2497
  }
@@ -2509,7 +2509,7 @@
2509
2509
  "ref": root,
2510
2510
  "style": rootStyle.value
2511
2511
  }, [vue.createVNode("div", {
2512
- "class": bem$1n({
2512
+ "class": bem$1o({
2513
2513
  fixed: state.fixed && !isReset.value
2514
2514
  }),
2515
2515
  "style": stickyStyle.value
@@ -2517,8 +2517,8 @@
2517
2517
  };
2518
2518
  }
2519
2519
  });
2520
- const Sticky = withInstall(stdin_default$1B);
2521
- const [name$1q, bem$1m] = createNamespace("swipe");
2520
+ const Sticky = withInstall(stdin_default$1C);
2521
+ const [name$1r, bem$1n] = createNamespace("swipe");
2522
2522
  const swipeProps = {
2523
2523
  loop: truthProp,
2524
2524
  width: numericProp,
@@ -2533,9 +2533,9 @@
2533
2533
  showIndicators: truthProp,
2534
2534
  stopPropagation: truthProp
2535
2535
  };
2536
- const SWIPE_KEY = Symbol(name$1q);
2537
- var stdin_default$1A = vue.defineComponent({
2538
- name: name$1q,
2536
+ const SWIPE_KEY = Symbol(name$1r);
2537
+ var stdin_default$1B = vue.defineComponent({
2538
+ name: name$1r,
2539
2539
  props: swipeProps,
2540
2540
  emits: ["change", "dragStart", "dragEnd"],
2541
2541
  setup(props, {
@@ -2813,7 +2813,7 @@
2813
2813
  } : void 0;
2814
2814
  return vue.createVNode("i", {
2815
2815
  "style": style,
2816
- "class": bem$1m("indicator", {
2816
+ "class": bem$1n("indicator", {
2817
2817
  active
2818
2818
  })
2819
2819
  }, null);
@@ -2827,7 +2827,7 @@
2827
2827
  }
2828
2828
  if (props.showIndicators && count.value > 1) {
2829
2829
  return vue.createVNode("div", {
2830
- "class": bem$1m("indicators", {
2830
+ "class": bem$1n("indicators", {
2831
2831
  vertical: props.vertical
2832
2832
  })
2833
2833
  }, [Array(count.value).fill("").map(renderDot)]);
@@ -2849,7 +2849,7 @@
2849
2849
  vue.watch(() => props.initialSwipe, (value) => initialize(+value));
2850
2850
  vue.watch(count, () => initialize(state.active));
2851
2851
  vue.watch(() => props.autoplay, autoplay);
2852
- vue.watch([windowWidth, windowHeight, () => props.width, () => props.height], resize);
2852
+ vue.watch([windowWidth, windowHeight$1, () => props.width, () => props.height], resize);
2853
2853
  vue.watch(usePageVisibility(), (visible) => {
2854
2854
  if (visible === "visible") {
2855
2855
  autoplay();
@@ -2869,11 +2869,11 @@
2869
2869
  var _a;
2870
2870
  return vue.createVNode("div", {
2871
2871
  "ref": root,
2872
- "class": bem$1m()
2872
+ "class": bem$1n()
2873
2873
  }, [vue.createVNode("div", {
2874
2874
  "ref": track,
2875
2875
  "style": trackStyle.value,
2876
- "class": bem$1m("track", {
2876
+ "class": bem$1n("track", {
2877
2877
  vertical: props.vertical
2878
2878
  }),
2879
2879
  "onTouchstartPassive": onTouchStart,
@@ -2883,10 +2883,10 @@
2883
2883
  };
2884
2884
  }
2885
2885
  });
2886
- const Swipe = withInstall(stdin_default$1A);
2887
- const [name$1p, bem$1l] = createNamespace("tabs");
2888
- var stdin_default$1z = vue.defineComponent({
2889
- name: name$1p,
2886
+ const Swipe = withInstall(stdin_default$1B);
2887
+ const [name$1q, bem$1m] = createNamespace("tabs");
2888
+ var stdin_default$1A = vue.defineComponent({
2889
+ name: name$1q,
2890
2890
  props: {
2891
2891
  count: makeRequiredProp(Number),
2892
2892
  inited: Boolean,
@@ -2910,7 +2910,7 @@
2910
2910
  return vue.createVNode(Swipe, {
2911
2911
  "ref": swipeRef,
2912
2912
  "loop": false,
2913
- "class": bem$1l("track"),
2913
+ "class": bem$1m("track"),
2914
2914
  "duration": +props.duration * 1e3,
2915
2915
  "touchable": props.swipeable,
2916
2916
  "lazyRender": props.lazyRender,
@@ -2938,13 +2938,13 @@
2938
2938
  swipeRef
2939
2939
  });
2940
2940
  return () => vue.createVNode("div", {
2941
- "class": bem$1l("content", {
2941
+ "class": bem$1m("content", {
2942
2942
  animated: props.animated || props.swipeable
2943
2943
  })
2944
2944
  }, [renderChildren()]);
2945
2945
  }
2946
2946
  });
2947
- const [name$1o, bem$1k] = createNamespace("tabs");
2947
+ const [name$1p, bem$1l] = createNamespace("tabs");
2948
2948
  const tabsProps = {
2949
2949
  type: makeStringProp("line"),
2950
2950
  color: String,
@@ -2967,9 +2967,9 @@
2967
2967
  titleActiveColor: String,
2968
2968
  titleInactiveColor: String
2969
2969
  };
2970
- const TABS_KEY = Symbol(name$1o);
2971
- var stdin_default$1y = vue.defineComponent({
2972
- name: name$1o,
2970
+ const TABS_KEY = Symbol(name$1p);
2971
+ var stdin_default$1z = vue.defineComponent({
2972
+ name: name$1p,
2973
2973
  props: tabsProps,
2974
2974
  emits: ["change", "scroll", "rendered", "clickTab", "update:active"],
2975
2975
  setup(props, {
@@ -3167,7 +3167,7 @@
3167
3167
  const renderLine = () => {
3168
3168
  if (props.type === "line" && children.length) {
3169
3169
  return vue.createVNode("div", {
3170
- "class": bem$1k("line"),
3170
+ "class": bem$1l("line"),
3171
3171
  "style": state.lineStyle
3172
3172
  }, null);
3173
3173
  }
@@ -3181,13 +3181,13 @@
3181
3181
  } = props;
3182
3182
  const Header = [vue.createVNode("div", {
3183
3183
  "ref": sticky ? void 0 : wrapRef,
3184
- "class": [bem$1k("wrap"), {
3184
+ "class": [bem$1l("wrap"), {
3185
3185
  [BORDER_TOP_BOTTOM]: type === "line" && border
3186
3186
  }]
3187
3187
  }, [vue.createVNode("div", {
3188
3188
  "ref": navRef,
3189
3189
  "role": "tablist",
3190
- "class": bem$1k("nav", [type, {
3190
+ "class": bem$1l("nav", [type, {
3191
3191
  shrink: props.shrink,
3192
3192
  complete: scrollable.value
3193
3193
  }]),
@@ -3260,14 +3260,14 @@
3260
3260
  });
3261
3261
  return () => vue.createVNode("div", {
3262
3262
  "ref": root,
3263
- "class": bem$1k([props.type])
3263
+ "class": bem$1l([props.type])
3264
3264
  }, [props.sticky ? vue.createVNode(Sticky, {
3265
3265
  "container": root.value,
3266
3266
  "offsetTop": offsetTopPx.value,
3267
3267
  "onScroll": onStickyScroll
3268
3268
  }, {
3269
3269
  default: () => [renderHeader()]
3270
- }) : renderHeader(), vue.createVNode(stdin_default$1z, {
3270
+ }) : renderHeader(), vue.createVNode(stdin_default$1A, {
3271
3271
  "ref": contentRef,
3272
3272
  "count": children.length,
3273
3273
  "inited": state.inited,
@@ -3287,9 +3287,9 @@
3287
3287
  });
3288
3288
  const TAB_STATUS_KEY = Symbol();
3289
3289
  const useTabStatus = () => vue.inject(TAB_STATUS_KEY, null);
3290
- const [name$1n, bem$1j] = createNamespace("tab");
3290
+ const [name$1o, bem$1k] = createNamespace("tab");
3291
3291
  const TabTitle = vue.defineComponent({
3292
- name: name$1n,
3292
+ name: name$1o,
3293
3293
  props: {
3294
3294
  id: String,
3295
3295
  dot: Boolean,
@@ -3338,7 +3338,7 @@
3338
3338
  });
3339
3339
  const renderText = () => {
3340
3340
  const Text = vue.createVNode("span", {
3341
- "class": bem$1j("text", {
3341
+ "class": bem$1k("text", {
3342
3342
  ellipsis: !props.scrollable
3343
3343
  })
3344
3344
  }, [slots.title ? slots.title() : props.title]);
@@ -3356,7 +3356,7 @@
3356
3356
  return () => vue.createVNode("div", {
3357
3357
  "id": props.id,
3358
3358
  "role": "tab",
3359
- "class": [bem$1j([props.type, {
3359
+ "class": [bem$1k([props.type, {
3360
3360
  grow: props.scrollable && !props.shrink,
3361
3361
  shrink: props.shrink,
3362
3362
  active: props.isActive,
@@ -3370,9 +3370,9 @@
3370
3370
  }, [renderText()]);
3371
3371
  }
3372
3372
  });
3373
- const [name$1m, bem$1i] = createNamespace("swipe-item");
3374
- var stdin_default$1x = vue.defineComponent({
3375
- name: name$1m,
3373
+ const [name$1n, bem$1j] = createNamespace("swipe-item");
3374
+ var stdin_default$1y = vue.defineComponent({
3375
+ name: name$1n,
3376
3376
  setup(props, {
3377
3377
  slots
3378
3378
  }) {
@@ -3434,14 +3434,14 @@
3434
3434
  return () => {
3435
3435
  var _a;
3436
3436
  return vue.createVNode("div", {
3437
- "class": bem$1i(),
3437
+ "class": bem$1j(),
3438
3438
  "style": style.value
3439
3439
  }, [shouldRender.value ? (_a = slots.default) == null ? void 0 : _a.call(slots) : null]);
3440
3440
  };
3441
3441
  }
3442
3442
  });
3443
- const SwipeItem = withInstall(stdin_default$1x);
3444
- const [name$1l, bem$1h] = createNamespace("tab");
3443
+ const SwipeItem = withInstall(stdin_default$1y);
3444
+ const [name$1m, bem$1i] = createNamespace("tab");
3445
3445
  const tabProps = extend({}, routeProps, {
3446
3446
  dot: Boolean,
3447
3447
  name: numericProp,
@@ -3452,8 +3452,8 @@
3452
3452
  titleStyle: [String, Object],
3453
3453
  showZeroBadge: truthProp
3454
3454
  });
3455
- var stdin_default$1w = vue.defineComponent({
3456
- name: name$1l,
3455
+ var stdin_default$1x = vue.defineComponent({
3456
+ name: name$1m,
3457
3457
  props: tabProps,
3458
3458
  setup(props, {
3459
3459
  slots
@@ -3548,7 +3548,7 @@
3548
3548
  return vue.createVNode(SwipeItem, {
3549
3549
  "id": id,
3550
3550
  "role": "tabpanel",
3551
- "class": bem$1h("panel-wrapper", {
3551
+ "class": bem$1i("panel-wrapper", {
3552
3552
  inactive: hasInactiveClass.value
3553
3553
  }),
3554
3554
  "tabindex": active.value ? 0 : -1,
@@ -3558,7 +3558,7 @@
3558
3558
  default: () => {
3559
3559
  var _a2;
3560
3560
  return [vue.createVNode("div", {
3561
- "class": bem$1h("panel")
3561
+ "class": bem$1i("panel")
3562
3562
  }, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)])];
3563
3563
  }
3564
3564
  });
@@ -3568,24 +3568,24 @@
3568
3568
  return vue.withDirectives(vue.createVNode("div", {
3569
3569
  "id": id,
3570
3570
  "role": "tabpanel",
3571
- "class": bem$1h("panel"),
3571
+ "class": bem$1i("panel"),
3572
3572
  "tabindex": show ? 0 : -1,
3573
3573
  "aria-labelledby": label
3574
3574
  }, [Content]), [[vue.vShow, show]]);
3575
3575
  };
3576
3576
  }
3577
3577
  });
3578
- const Tab = withInstall(stdin_default$1w);
3579
- const Tabs = withInstall(stdin_default$1y);
3580
- const [name$1k, bem$1g] = createNamespace("picker-group");
3581
- const PICKER_GROUP_KEY = Symbol(name$1k);
3578
+ const Tab = withInstall(stdin_default$1x);
3579
+ const Tabs = withInstall(stdin_default$1z);
3580
+ const [name$1l, bem$1h] = createNamespace("picker-group");
3581
+ const PICKER_GROUP_KEY = Symbol(name$1l);
3582
3582
  const pickerGroupProps = extend({
3583
3583
  tabs: makeArrayProp(),
3584
3584
  activeTab: makeNumericProp(0),
3585
3585
  nextStepText: String
3586
3586
  }, pickerToolbarProps);
3587
- var stdin_default$1v = vue.defineComponent({
3588
- name: name$1k,
3587
+ var stdin_default$1w = vue.defineComponent({
3588
+ name: name$1l,
3589
3589
  props: pickerGroupProps,
3590
3590
  emits: ["confirm", "cancel", "update:activeTab"],
3591
3591
  setup(props, {
@@ -3612,8 +3612,8 @@
3612
3612
  const childNodes = (_a = slots.default) == null ? void 0 : _a.call(slots);
3613
3613
  const confirmButtonText = showNextButton() ? props.nextStepText : props.confirmButtonText;
3614
3614
  return vue.createVNode("div", {
3615
- "class": bem$1g()
3616
- }, [vue.createVNode(stdin_default$1C, {
3615
+ "class": bem$1h()
3616
+ }, [vue.createVNode(stdin_default$1D, {
3617
3617
  "title": props.title,
3618
3618
  "cancelButtonText": props.cancelButtonText,
3619
3619
  "confirmButtonText": confirmButtonText,
@@ -3622,14 +3622,14 @@
3622
3622
  }, pick(slots, pickerToolbarSlots)), vue.createVNode(Tabs, {
3623
3623
  "active": activeTab.value,
3624
3624
  "onUpdate:active": ($event) => activeTab.value = $event,
3625
- "class": bem$1g("tabs"),
3625
+ "class": bem$1h("tabs"),
3626
3626
  "shrink": true,
3627
3627
  "animated": true,
3628
3628
  "lazyRender": false
3629
3629
  }, {
3630
3630
  default: () => [props.tabs.map((title, index) => vue.createVNode(Tab, {
3631
3631
  "title": title,
3632
- "titleClass": bem$1g("tab-title")
3632
+ "titleClass": bem$1h("tab-title")
3633
3633
  }, {
3634
3634
  default: () => [childNodes == null ? void 0 : childNodes[index]]
3635
3635
  }))]
@@ -3652,8 +3652,8 @@
3652
3652
  toolbarPosition: makeStringProp("top"),
3653
3653
  columnsFieldNames: Object
3654
3654
  });
3655
- var stdin_default$1u = vue.defineComponent({
3656
- name: name$1u,
3655
+ var stdin_default$1v = vue.defineComponent({
3656
+ name: name$1v,
3657
3657
  props: pickerProps,
3658
3658
  emits: ["confirm", "cancel", "change", "scrollInto", "clickOption", "update:modelValue"],
3659
3659
  setup(props, {
@@ -3734,7 +3734,7 @@
3734
3734
  return params;
3735
3735
  };
3736
3736
  const cancel = () => emit("cancel", getEventParams());
3737
- const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$1D, {
3737
+ const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$1E, {
3738
3738
  "value": selectedValues.value[columnIndex],
3739
3739
  "fields": fields.value,
3740
3740
  "options": options,
@@ -3763,10 +3763,10 @@
3763
3763
  backgroundSize: `100% ${(wrapHeight - optionHeight.value) / 2}px`
3764
3764
  };
3765
3765
  return [vue.createVNode("div", {
3766
- "class": bem$1p("mask"),
3766
+ "class": bem$1q("mask"),
3767
3767
  "style": maskStyle
3768
3768
  }, null), vue.createVNode("div", {
3769
- "class": [BORDER_UNSET_TOP_BOTTOM, bem$1p("frame")],
3769
+ "class": [BORDER_UNSET_TOP_BOTTOM, bem$1q("frame")],
3770
3770
  "style": frameStyle
3771
3771
  }, null)];
3772
3772
  }
@@ -3778,13 +3778,13 @@
3778
3778
  };
3779
3779
  return vue.createVNode("div", {
3780
3780
  "ref": columnsRef,
3781
- "class": bem$1p("columns"),
3781
+ "class": bem$1q("columns"),
3782
3782
  "style": columnsStyle
3783
3783
  }, [renderColumnItems(), renderMask(wrapHeight)]);
3784
3784
  };
3785
3785
  const renderToolbar = () => {
3786
3786
  if (props.showToolbar && !parent) {
3787
- return vue.createVNode(stdin_default$1C, vue.mergeProps(pick(props, pickerToolbarPropKeys), {
3787
+ return vue.createVNode(stdin_default$1D, vue.mergeProps(pick(props, pickerToolbarPropKeys), {
3788
3788
  "onConfirm": confirm,
3789
3789
  "onCancel": cancel
3790
3790
  }), pick(slots, pickerToolbarSlots));
@@ -3827,9 +3827,9 @@
3827
3827
  return () => {
3828
3828
  var _a, _b;
3829
3829
  return vue.createVNode("div", {
3830
- "class": bem$1p()
3830
+ "class": bem$1q()
3831
3831
  }, [props.toolbarPosition === "top" ? renderToolbar() : null, props.loading ? vue.createVNode(Loading, {
3832
- "class": bem$1p("loading")
3832
+ "class": bem$1q("loading")
3833
3833
  }, 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]);
3834
3834
  };
3835
3835
  }
@@ -3920,8 +3920,8 @@
3920
3920
  }
3921
3921
  return options;
3922
3922
  }
3923
- const Picker = withInstall(stdin_default$1u);
3924
- const [name$1j, bem$1f] = createNamespace("area");
3923
+ const Picker = withInstall(stdin_default$1v);
3924
+ const [name$1k, bem$1g] = createNamespace("area");
3925
3925
  const areaProps = extend({}, pick(pickerSharedProps, INHERIT_PROPS), {
3926
3926
  modelValue: String,
3927
3927
  columnsNum: makeNumericProp(3),
@@ -3931,8 +3931,8 @@
3931
3931
  default: () => ({})
3932
3932
  }
3933
3933
  });
3934
- var stdin_default$1t = vue.defineComponent({
3935
- name: name$1j,
3934
+ var stdin_default$1u = vue.defineComponent({
3935
+ name: name$1k,
3936
3936
  props: areaProps,
3937
3937
  emits: ["change", "confirm", "cancel", "update:modelValue"],
3938
3938
  setup(props, {
@@ -3979,7 +3979,7 @@
3979
3979
  "ref": picker,
3980
3980
  "modelValue": codes.value,
3981
3981
  "onUpdate:modelValue": ($event) => codes.value = $event,
3982
- "class": bem$1f(),
3982
+ "class": bem$1g(),
3983
3983
  "columns": columns.value,
3984
3984
  "onChange": onChange,
3985
3985
  "onCancel": onCancel,
@@ -3987,8 +3987,8 @@
3987
3987
  }, pick(props, INHERIT_PROPS)), pick(slots, INHERIT_SLOTS));
3988
3988
  }
3989
3989
  });
3990
- const Area = withInstall(stdin_default$1t);
3991
- const [name$1i, bem$1e] = createNamespace("cell");
3990
+ const Area = withInstall(stdin_default$1u);
3991
+ const [name$1j, bem$1f] = createNamespace("cell");
3992
3992
  const cellSharedProps = {
3993
3993
  tag: makeStringProp("div"),
3994
3994
  icon: String,
@@ -4012,8 +4012,8 @@
4012
4012
  }
4013
4013
  };
4014
4014
  const cellProps = extend({}, cellSharedProps, routeProps);
4015
- var stdin_default$1s = vue.defineComponent({
4016
- name: name$1i,
4015
+ var stdin_default$1t = vue.defineComponent({
4016
+ name: name$1j,
4017
4017
  props: cellProps,
4018
4018
  setup(props, {
4019
4019
  slots
@@ -4023,7 +4023,7 @@
4023
4023
  const showLabel = slots.label || isDef(props.label);
4024
4024
  if (showLabel) {
4025
4025
  return vue.createVNode("div", {
4026
- "class": [bem$1e("label"), props.labelClass]
4026
+ "class": [bem$1f("label"), props.labelClass]
4027
4027
  }, [slots.label ? slots.label() : props.label]);
4028
4028
  }
4029
4029
  };
@@ -4035,7 +4035,7 @@
4035
4035
  return;
4036
4036
  }
4037
4037
  return vue.createVNode("div", {
4038
- "class": [bem$1e("title"), props.titleClass],
4038
+ "class": [bem$1f("title"), props.titleClass],
4039
4039
  "style": props.titleStyle
4040
4040
  }, [titleSlot || vue.createVNode("span", null, [props.title]), renderLabel()]);
4041
4041
  }
@@ -4045,7 +4045,7 @@
4045
4045
  const hasValue = slot || isDef(props.value);
4046
4046
  if (hasValue) {
4047
4047
  return vue.createVNode("div", {
4048
- "class": [bem$1e("value"), props.valueClass]
4048
+ "class": [bem$1f("value"), props.valueClass]
4049
4049
  }, [slot ? slot() : vue.createVNode("span", null, [props.value])]);
4050
4050
  }
4051
4051
  };
@@ -4056,7 +4056,7 @@
4056
4056
  if (props.icon) {
4057
4057
  return vue.createVNode(Icon, {
4058
4058
  "name": props.icon,
4059
- "class": bem$1e("left-icon"),
4059
+ "class": bem$1f("left-icon"),
4060
4060
  "classPrefix": props.iconPrefix
4061
4061
  }, null);
4062
4062
  }
@@ -4069,7 +4069,7 @@
4069
4069
  const name2 = props.arrowDirection && props.arrowDirection !== "right" ? `arrow-${props.arrowDirection}` : "arrow";
4070
4070
  return vue.createVNode(Icon, {
4071
4071
  "name": name2,
4072
- "class": bem$1e("right-icon")
4072
+ "class": bem$1f("right-icon")
4073
4073
  }, null);
4074
4074
  }
4075
4075
  };
@@ -4094,7 +4094,7 @@
4094
4094
  classes[size] = !!size;
4095
4095
  }
4096
4096
  return vue.createVNode(tag, {
4097
- "class": bem$1e(classes),
4097
+ "class": bem$1f(classes),
4098
4098
  "role": clickable ? "button" : void 0,
4099
4099
  "tabindex": clickable ? 0 : void 0,
4100
4100
  "onClick": route2
@@ -4107,8 +4107,8 @@
4107
4107
  };
4108
4108
  }
4109
4109
  });
4110
- const Cell = withInstall(stdin_default$1s);
4111
- const [name$1h, bem$1d] = createNamespace("form");
4110
+ const Cell = withInstall(stdin_default$1t);
4111
+ const [name$1i, bem$1e] = createNamespace("form");
4112
4112
  const formProps = {
4113
4113
  colon: Boolean,
4114
4114
  disabled: Boolean,
@@ -4127,8 +4127,8 @@
4127
4127
  default: "onBlur"
4128
4128
  }
4129
4129
  };
4130
- var stdin_default$1r = vue.defineComponent({
4131
- name: name$1h,
4130
+ var stdin_default$1s = vue.defineComponent({
4131
+ name: name$1i,
4132
4132
  props: formProps,
4133
4133
  emits: ["submit", "failed"],
4134
4134
  setup(props, {
@@ -4254,13 +4254,13 @@
4254
4254
  return () => {
4255
4255
  var _a;
4256
4256
  return vue.createVNode("form", {
4257
- "class": bem$1d(),
4257
+ "class": bem$1e(),
4258
4258
  "onSubmit": onSubmit
4259
4259
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
4260
4260
  };
4261
4261
  }
4262
4262
  });
4263
- const Form = withInstall(stdin_default$1r);
4263
+ const Form = withInstall(stdin_default$1s);
4264
4264
  function isEmptyValue(value) {
4265
4265
  if (Array.isArray(value)) {
4266
4266
  return !value.length;
@@ -4349,7 +4349,7 @@
4349
4349
  function cutString(str, maxlength) {
4350
4350
  return [...str].slice(0, maxlength).join("");
4351
4351
  }
4352
- const [name$1g, bem$1c] = createNamespace("field");
4352
+ const [name$1h, bem$1d] = createNamespace("field");
4353
4353
  const fieldSharedProps = {
4354
4354
  id: String,
4355
4355
  name: String,
@@ -4396,8 +4396,8 @@
4396
4396
  default: null
4397
4397
  }
4398
4398
  });
4399
- var stdin_default$1q = vue.defineComponent({
4400
- name: name$1g,
4399
+ var stdin_default$1r = vue.defineComponent({
4400
+ name: name$1h,
4401
4401
  props: fieldProps,
4402
4402
  emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
4403
4403
  setup(props, {
@@ -4671,7 +4671,7 @@
4671
4671
  const getInputId = () => props.id || `${id}-input`;
4672
4672
  const getValidationStatus = () => state.status;
4673
4673
  const renderInput = () => {
4674
- const controlClass = bem$1c("control", [getProp("inputAlign"), {
4674
+ const controlClass = bem$1d("control", [getProp("inputAlign"), {
4675
4675
  error: showError.value,
4676
4676
  custom: !!slots.input,
4677
4677
  "min-height": props.type === "textarea" && !props.autosize
@@ -4713,7 +4713,7 @@
4713
4713
  const leftIconSlot = slots["left-icon"];
4714
4714
  if (props.leftIcon || leftIconSlot) {
4715
4715
  return vue.createVNode("div", {
4716
- "class": bem$1c("left-icon"),
4716
+ "class": bem$1d("left-icon"),
4717
4717
  "onClick": onClickLeftIcon
4718
4718
  }, [leftIconSlot ? leftIconSlot() : vue.createVNode(Icon, {
4719
4719
  "name": props.leftIcon,
@@ -4725,7 +4725,7 @@
4725
4725
  const rightIconSlot = slots["right-icon"];
4726
4726
  if (props.rightIcon || rightIconSlot) {
4727
4727
  return vue.createVNode("div", {
4728
- "class": bem$1c("right-icon"),
4728
+ "class": bem$1d("right-icon"),
4729
4729
  "onClick": onClickRightIcon
4730
4730
  }, [rightIconSlot ? rightIconSlot() : vue.createVNode(Icon, {
4731
4731
  "name": props.rightIcon,
@@ -4737,9 +4737,9 @@
4737
4737
  if (props.showWordLimit && props.maxlength) {
4738
4738
  const count = getStringLength(getModelValue());
4739
4739
  return vue.createVNode("div", {
4740
- "class": bem$1c("word-limit")
4740
+ "class": bem$1d("word-limit")
4741
4741
  }, [vue.createVNode("span", {
4742
- "class": bem$1c("word-num")
4742
+ "class": bem$1d("word-num")
4743
4743
  }, [count]), vue.createTextVNode("/"), props.maxlength]);
4744
4744
  }
4745
4745
  };
@@ -4752,7 +4752,7 @@
4752
4752
  const slot = slots["error-message"];
4753
4753
  const errorMessageAlign = getProp("errorMessageAlign");
4754
4754
  return vue.createVNode("div", {
4755
- "class": bem$1c("error-message", errorMessageAlign)
4755
+ "class": bem$1d("error-message", errorMessageAlign)
4756
4756
  }, [slot ? slot({
4757
4757
  message
4758
4758
  }) : message]);
@@ -4780,13 +4780,13 @@
4780
4780
  }
4781
4781
  };
4782
4782
  const renderFieldBody = () => [vue.createVNode("div", {
4783
- "class": bem$1c("body")
4783
+ "class": bem$1d("body")
4784
4784
  }, [renderInput(), showClear.value && vue.createVNode(Icon, {
4785
4785
  "ref": clearIconRef,
4786
4786
  "name": props.clearIcon,
4787
- "class": bem$1c("clear")
4787
+ "class": bem$1d("clear")
4788
4788
  }, null), renderRightIcon(), slots.button && vue.createVNode("div", {
4789
- "class": bem$1c("button")
4789
+ "class": bem$1d("button")
4790
4790
  }, [slots.button()])]), renderWordLimit(), renderMessage()];
4791
4791
  useExpose({
4792
4792
  blur,
@@ -4830,7 +4830,7 @@
4830
4830
  };
4831
4831
  return vue.createVNode(Cell, {
4832
4832
  "size": props.size,
4833
- "class": bem$1c({
4833
+ "class": bem$1d({
4834
4834
  error: showError.value,
4835
4835
  disabled,
4836
4836
  [`label-${labelAlign}`]: labelAlign
@@ -4840,8 +4840,8 @@
4840
4840
  "isLink": props.isLink,
4841
4841
  "clickable": props.clickable,
4842
4842
  "titleStyle": labelStyle.value,
4843
- "valueClass": bem$1c("value"),
4844
- "titleClass": [bem$1c("label", [labelAlign, {
4843
+ "valueClass": bem$1d("value"),
4844
+ "titleClass": [bem$1d("label", [labelAlign, {
4845
4845
  required: props.required
4846
4846
  }]), props.labelClass],
4847
4847
  "arrowDirection": props.arrowDirection
@@ -4854,7 +4854,7 @@
4854
4854
  };
4855
4855
  }
4856
4856
  });
4857
- const Field = withInstall(stdin_default$1q);
4857
+ const Field = withInstall(stdin_default$1r);
4858
4858
  let lockCount = 0;
4859
4859
  function lockClick(lock) {
4860
4860
  if (lock) {
@@ -4869,7 +4869,7 @@
4869
4869
  }
4870
4870
  }
4871
4871
  }
4872
- const [name$1f, bem$1b] = createNamespace("toast");
4872
+ const [name$1g, bem$1c] = createNamespace("toast");
4873
4873
  const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
4874
4874
  const toastProps = {
4875
4875
  icon: String,
@@ -4892,8 +4892,8 @@
4892
4892
  closeOnClick: Boolean,
4893
4893
  closeOnClickOverlay: Boolean
4894
4894
  };
4895
- var stdin_default$1p = vue.defineComponent({
4896
- name: name$1f,
4895
+ var stdin_default$1q = vue.defineComponent({
4896
+ name: name$1g,
4897
4897
  props: toastProps,
4898
4898
  emits: ["update:show"],
4899
4899
  setup(props, {
@@ -4929,13 +4929,13 @@
4929
4929
  return vue.createVNode(Icon, {
4930
4930
  "name": icon || type,
4931
4931
  "size": iconSize,
4932
- "class": bem$1b("icon"),
4932
+ "class": bem$1c("icon"),
4933
4933
  "classPrefix": iconPrefix
4934
4934
  }, null);
4935
4935
  }
4936
4936
  if (type === "loading") {
4937
4937
  return vue.createVNode(Loading, {
4938
- "class": bem$1b("loading"),
4938
+ "class": bem$1c("loading"),
4939
4939
  "size": iconSize,
4940
4940
  "type": loadingType
4941
4941
  }, null);
@@ -4948,16 +4948,16 @@
4948
4948
  } = props;
4949
4949
  if (slots.message) {
4950
4950
  return vue.createVNode("div", {
4951
- "class": bem$1b("text")
4951
+ "class": bem$1c("text")
4952
4952
  }, [slots.message()]);
4953
4953
  }
4954
4954
  if (isDef(message) && message !== "") {
4955
4955
  return type === "html" ? vue.createVNode("div", {
4956
4956
  "key": 0,
4957
- "class": bem$1b("text"),
4957
+ "class": bem$1c("text"),
4958
4958
  "innerHTML": String(message)
4959
4959
  }, null) : vue.createVNode("div", {
4960
- "class": bem$1b("text")
4960
+ "class": bem$1c("text")
4961
4961
  }, [message]);
4962
4962
  }
4963
4963
  };
@@ -4973,7 +4973,7 @@
4973
4973
  vue.onMounted(toggleClickable);
4974
4974
  vue.onUnmounted(toggleClickable);
4975
4975
  return () => vue.createVNode(Popup, vue.mergeProps({
4976
- "class": [bem$1b([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
4976
+ "class": [bem$1c([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
4977
4977
  [props.type]: !props.icon
4978
4978
  }]), props.className],
4979
4979
  "lockScroll": false,
@@ -5074,7 +5074,7 @@
5074
5074
  onClosed,
5075
5075
  "onUpdate:show": toggle
5076
5076
  };
5077
- return vue.createVNode(stdin_default$1p, vue.mergeProps(state, attrs), null);
5077
+ return vue.createVNode(stdin_default$1q, vue.mergeProps(state, attrs), null);
5078
5078
  };
5079
5079
  vue.watch(message, (val) => {
5080
5080
  state.message = val;
@@ -5144,8 +5144,8 @@
5144
5144
  const allowMultipleToast = (value = true) => {
5145
5145
  allowMultiple = value;
5146
5146
  };
5147
- const Toast = withInstall(stdin_default$1p);
5148
- const [name$1e, bem$1a] = createNamespace("switch");
5147
+ const Toast = withInstall(stdin_default$1q);
5148
+ const [name$1f, bem$1b] = createNamespace("switch");
5149
5149
  const switchProps = {
5150
5150
  size: numericProp,
5151
5151
  loading: Boolean,
@@ -5162,8 +5162,8 @@
5162
5162
  default: false
5163
5163
  }
5164
5164
  };
5165
- var stdin_default$1o = vue.defineComponent({
5166
- name: name$1e,
5165
+ var stdin_default$1p = vue.defineComponent({
5166
+ name: name$1f,
5167
5167
  props: switchProps,
5168
5168
  emits: ["change", "update:modelValue"],
5169
5169
  setup(props, {
@@ -5182,7 +5182,7 @@
5182
5182
  if (props.loading) {
5183
5183
  const color = isChecked() ? props.activeColor : props.inactiveColor;
5184
5184
  return vue.createVNode(Loading, {
5185
- "class": bem$1a("loading"),
5185
+ "class": bem$1b("loading"),
5186
5186
  "color": color
5187
5187
  }, null);
5188
5188
  }
@@ -5207,7 +5207,7 @@
5207
5207
  };
5208
5208
  return vue.createVNode("div", {
5209
5209
  "role": "switch",
5210
- "class": bem$1a({
5210
+ "class": bem$1b({
5211
5211
  on: checked,
5212
5212
  loading,
5213
5213
  disabled
@@ -5217,16 +5217,16 @@
5217
5217
  "aria-checked": checked,
5218
5218
  "onClick": onClick
5219
5219
  }, [vue.createVNode("div", {
5220
- "class": bem$1a("node")
5220
+ "class": bem$1b("node")
5221
5221
  }, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
5222
5222
  };
5223
5223
  }
5224
5224
  });
5225
- const Switch = withInstall(stdin_default$1o);
5226
- const [name$1d, bem$19] = createNamespace("address-edit-detail");
5225
+ const Switch = withInstall(stdin_default$1p);
5226
+ const [name$1e, bem$1a] = createNamespace("address-edit-detail");
5227
5227
  const t$j = createNamespace("address-edit")[2];
5228
- var stdin_default$1n = vue.defineComponent({
5229
- name: name$1d,
5228
+ var stdin_default$1o = vue.defineComponent({
5229
+ name: name$1e,
5230
5230
  props: {
5231
5231
  show: Boolean,
5232
5232
  rows: numericProp,
@@ -5260,7 +5260,7 @@
5260
5260
  "icon": "location-o",
5261
5261
  "title": express.name,
5262
5262
  "label": express.address,
5263
- "class": bem$19("search-item"),
5263
+ "class": bem$1a("search-item"),
5264
5264
  "border": false,
5265
5265
  "onClick": () => onSelect(express)
5266
5266
  }, null));
@@ -5274,7 +5274,7 @@
5274
5274
  "autosize": true,
5275
5275
  "clearable": true,
5276
5276
  "ref": field,
5277
- "class": bem$19(),
5277
+ "class": bem$1a(),
5278
5278
  "rows": props.rows,
5279
5279
  "type": "textarea",
5280
5280
  "rules": props.rules,
@@ -5291,7 +5291,7 @@
5291
5291
  };
5292
5292
  }
5293
5293
  });
5294
- const [name$1c, bem$18, t$i] = createNamespace("address-edit");
5294
+ const [name$1d, bem$19, t$i] = createNamespace("address-edit");
5295
5295
  const DEFAULT_DATA = {
5296
5296
  name: "",
5297
5297
  tel: "",
@@ -5331,8 +5331,8 @@
5331
5331
  default: isMobile
5332
5332
  }
5333
5333
  };
5334
- var stdin_default$1m = vue.defineComponent({
5335
- name: name$1c,
5334
+ var stdin_default$1n = vue.defineComponent({
5335
+ name: name$1d,
5336
5336
  props: addressEditProps,
5337
5337
  emits: ["save", "focus", "delete", "clickArea", "changeArea", "changeDetail", "selectSearch", "changeDefault"],
5338
5338
  setup(props, {
@@ -5444,7 +5444,7 @@
5444
5444
  "center": true,
5445
5445
  "border": false,
5446
5446
  "title": t$i("defaultAddress"),
5447
- "class": bem$18("default")
5447
+ "class": bem$19("default")
5448
5448
  }, slots2), [[vue.vShow, !hideBottomFields.value]]);
5449
5449
  }
5450
5450
  };
@@ -5470,13 +5470,13 @@
5470
5470
  disableArea
5471
5471
  } = props;
5472
5472
  return vue.createVNode(Form, {
5473
- "class": bem$18(),
5473
+ "class": bem$19(),
5474
5474
  "onSubmit": onSave
5475
5475
  }, {
5476
5476
  default: () => {
5477
5477
  var _a;
5478
5478
  return [vue.createVNode("div", {
5479
- "class": bem$18("fields")
5479
+ "class": bem$19("fields")
5480
5480
  }, [vue.createVNode(Field, {
5481
5481
  "modelValue": data.name,
5482
5482
  "onUpdate:modelValue": ($event) => data.name = $event,
@@ -5507,7 +5507,7 @@
5507
5507
  emit("clickArea");
5508
5508
  showAreaPopup.value = !disableArea;
5509
5509
  }
5510
- }, null), [[vue.vShow, props.showArea]]), vue.createVNode(stdin_default$1n, {
5510
+ }, null), [[vue.vShow, props.showArea]]), vue.createVNode(stdin_default$1o, {
5511
5511
  "show": props.showDetail,
5512
5512
  "rows": props.detailRows,
5513
5513
  "rules": rules.value.addressDetail,
@@ -5521,19 +5521,19 @@
5521
5521
  "onInput": onChangeDetail,
5522
5522
  "onSelectSearch": (event) => emit("selectSearch", event)
5523
5523
  }, null), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), vue.withDirectives(vue.createVNode("div", {
5524
- "class": bem$18("buttons")
5524
+ "class": bem$19("buttons")
5525
5525
  }, [vue.createVNode(Button, {
5526
5526
  "block": true,
5527
5527
  "round": true,
5528
5528
  "type": "primary",
5529
5529
  "text": props.saveButtonText || t$i("save"),
5530
- "class": bem$18("button"),
5530
+ "class": bem$19("button"),
5531
5531
  "loading": props.isSaving,
5532
5532
  "nativeType": "submit"
5533
5533
  }, null), props.showDelete && vue.createVNode(Button, {
5534
5534
  "block": true,
5535
5535
  "round": true,
5536
- "class": bem$18("button"),
5536
+ "class": bem$19("button"),
5537
5537
  "loading": props.isDeleting,
5538
5538
  "text": props.deleteButtonText || t$i("delete"),
5539
5539
  "onClick": onDelete
@@ -5563,8 +5563,8 @@
5563
5563
  };
5564
5564
  }
5565
5565
  });
5566
- const AddressEdit = withInstall(stdin_default$1m);
5567
- const [name$1b, bem$17] = createNamespace("radio-group");
5566
+ const AddressEdit = withInstall(stdin_default$1n);
5567
+ const [name$1c, bem$18] = createNamespace("radio-group");
5568
5568
  const radioGroupProps = {
5569
5569
  disabled: Boolean,
5570
5570
  iconSize: numericProp,
@@ -5572,9 +5572,9 @@
5572
5572
  modelValue: unknownProp,
5573
5573
  checkedColor: String
5574
5574
  };
5575
- const RADIO_KEY = Symbol(name$1b);
5576
- var stdin_default$1l = vue.defineComponent({
5577
- name: name$1b,
5575
+ const RADIO_KEY = Symbol(name$1c);
5576
+ var stdin_default$1m = vue.defineComponent({
5577
+ name: name$1c,
5578
5578
  props: radioGroupProps,
5579
5579
  emits: ["change", "update:modelValue"],
5580
5580
  setup(props, {
@@ -5594,14 +5594,14 @@
5594
5594
  return () => {
5595
5595
  var _a;
5596
5596
  return vue.createVNode("div", {
5597
- "class": bem$17([props.direction]),
5597
+ "class": bem$18([props.direction]),
5598
5598
  "role": "radiogroup"
5599
5599
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
5600
5600
  };
5601
5601
  }
5602
5602
  });
5603
- const RadioGroup = withInstall(stdin_default$1l);
5604
- const [name$1a, bem$16] = createNamespace("tag");
5603
+ const RadioGroup = withInstall(stdin_default$1m);
5604
+ const [name$1b, bem$17] = createNamespace("tag");
5605
5605
  const tagProps = {
5606
5606
  size: String,
5607
5607
  mark: Boolean,
@@ -5613,8 +5613,8 @@
5613
5613
  textColor: String,
5614
5614
  closeable: Boolean
5615
5615
  };
5616
- var stdin_default$1k = vue.defineComponent({
5617
- name: name$1a,
5616
+ var stdin_default$1l = vue.defineComponent({
5617
+ name: name$1b,
5618
5618
  props: tagProps,
5619
5619
  emits: ["close"],
5620
5620
  setup(props, {
@@ -5657,12 +5657,12 @@
5657
5657
  }
5658
5658
  const CloseIcon = closeable && vue.createVNode(Icon, {
5659
5659
  "name": "cross",
5660
- "class": [bem$16("close"), HAPTICS_FEEDBACK],
5660
+ "class": [bem$17("close"), HAPTICS_FEEDBACK],
5661
5661
  "onClick": onClose
5662
5662
  }, null);
5663
5663
  return vue.createVNode("span", {
5664
5664
  "style": getStyle(),
5665
- "class": bem$16([classes, type])
5665
+ "class": bem$17([classes, type])
5666
5666
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
5667
5667
  };
5668
5668
  return () => vue.createVNode(vue.Transition, {
@@ -5672,7 +5672,7 @@
5672
5672
  });
5673
5673
  }
5674
5674
  });
5675
- const Tag = withInstall(stdin_default$1k);
5675
+ const Tag = withInstall(stdin_default$1l);
5676
5676
  const checkerProps = {
5677
5677
  name: unknownProp,
5678
5678
  shape: makeStringProp("round"),
@@ -5683,7 +5683,7 @@
5683
5683
  labelPosition: String,
5684
5684
  labelDisabled: Boolean
5685
5685
  };
5686
- var stdin_default$1j = vue.defineComponent({
5686
+ var stdin_default$1k = vue.defineComponent({
5687
5687
  props: extend({}, checkerProps, {
5688
5688
  bem: makeRequiredProp(Function),
5689
5689
  role: String,
@@ -5785,9 +5785,9 @@
5785
5785
  }
5786
5786
  });
5787
5787
  const radioProps = checkerProps;
5788
- const [name$19, bem$15] = createNamespace("radio");
5789
- var stdin_default$1i = vue.defineComponent({
5790
- name: name$19,
5788
+ const [name$1a, bem$16] = createNamespace("radio");
5789
+ var stdin_default$1j = vue.defineComponent({
5790
+ name: name$1a,
5791
5791
  props: checkerProps,
5792
5792
  emits: ["update:modelValue"],
5793
5793
  setup(props, {
@@ -5808,8 +5808,8 @@
5808
5808
  emit("update:modelValue", props.name);
5809
5809
  }
5810
5810
  };
5811
- return () => vue.createVNode(stdin_default$1j, vue.mergeProps({
5812
- "bem": bem$15,
5811
+ return () => vue.createVNode(stdin_default$1k, vue.mergeProps({
5812
+ "bem": bem$16,
5813
5813
  "role": "radio",
5814
5814
  "parent": parent,
5815
5815
  "checked": checked(),
@@ -5817,15 +5817,16 @@
5817
5817
  }, props), pick(slots, ["default", "icon"]));
5818
5818
  }
5819
5819
  });
5820
- const Radio = withInstall(stdin_default$1i);
5821
- const [name$18, bem$14] = createNamespace("address-item");
5822
- var stdin_default$1h = vue.defineComponent({
5823
- name: name$18,
5820
+ const Radio = withInstall(stdin_default$1j);
5821
+ const [name$19, bem$15] = createNamespace("address-item");
5822
+ var stdin_default$1i = vue.defineComponent({
5823
+ name: name$19,
5824
5824
  props: {
5825
5825
  address: makeRequiredProp(Object),
5826
5826
  disabled: Boolean,
5827
5827
  switchable: Boolean,
5828
- defaultTagText: String
5828
+ defaultTagText: String,
5829
+ rightIcon: makeStringProp("edit")
5829
5830
  },
5830
5831
  emits: ["edit", "click", "select"],
5831
5832
  setup(props, {
@@ -5839,8 +5840,8 @@
5839
5840
  emit("click");
5840
5841
  };
5841
5842
  const renderRightIcon = () => vue.createVNode(Icon, {
5842
- "name": "edit",
5843
- "class": bem$14("edit"),
5843
+ "name": props.rightIcon,
5844
+ "class": bem$15("edit"),
5844
5845
  "onClick": (event) => {
5845
5846
  event.stopPropagation();
5846
5847
  emit("edit");
@@ -5855,7 +5856,7 @@
5855
5856
  return vue.createVNode(Tag, {
5856
5857
  "type": "primary",
5857
5858
  "round": true,
5858
- "class": bem$14("tag")
5859
+ "class": bem$15("tag")
5859
5860
  }, {
5860
5861
  default: () => [props.defaultTagText]
5861
5862
  });
@@ -5868,9 +5869,9 @@
5868
5869
  switchable
5869
5870
  } = props;
5870
5871
  const Info = [vue.createVNode("div", {
5871
- "class": bem$14("name")
5872
+ "class": bem$15("name")
5872
5873
  }, [`${address.name} ${address.tel}`, renderTag()]), vue.createVNode("div", {
5873
- "class": bem$14("address")
5874
+ "class": bem$15("address")
5874
5875
  }, [address.address])];
5875
5876
  if (switchable && !disabled) {
5876
5877
  return vue.createVNode(Radio, {
@@ -5888,13 +5889,13 @@
5888
5889
  disabled
5889
5890
  } = props;
5890
5891
  return vue.createVNode("div", {
5891
- "class": bem$14({
5892
+ "class": bem$15({
5892
5893
  disabled
5893
5894
  }),
5894
5895
  "onClick": onClick
5895
5896
  }, [vue.createVNode(Cell, {
5896
5897
  "border": false,
5897
- "titleClass": bem$14("title")
5898
+ "titleClass": bem$15("title")
5898
5899
  }, {
5899
5900
  title: renderContent,
5900
5901
  "right-icon": renderRightIcon
@@ -5904,7 +5905,7 @@
5904
5905
  };
5905
5906
  }
5906
5907
  });
5907
- const [name$17, bem$13, t$h] = createNamespace("address-list");
5908
+ const [name$18, bem$14, t$h] = createNamespace("address-list");
5908
5909
  const addressListProps = {
5909
5910
  list: makeArrayProp(),
5910
5911
  modelValue: numericProp,
@@ -5912,10 +5913,11 @@
5912
5913
  disabledText: String,
5913
5914
  disabledList: makeArrayProp(),
5914
5915
  addButtonText: String,
5915
- defaultTagText: String
5916
+ defaultTagText: String,
5917
+ rightIcon: makeStringProp("edit")
5916
5918
  };
5917
- var stdin_default$1g = vue.defineComponent({
5918
- name: name$17,
5919
+ var stdin_default$1h = vue.defineComponent({
5920
+ name: name$18,
5919
5921
  props: addressListProps,
5920
5922
  emits: ["add", "edit", "select", "clickItem", "editDisabled", "selectDisabled", "update:modelValue"],
5921
5923
  setup(props, {
@@ -5931,12 +5933,13 @@
5931
5933
  emit("update:modelValue", item.id);
5932
5934
  }
5933
5935
  };
5934
- return vue.createVNode(stdin_default$1h, {
5936
+ return vue.createVNode(stdin_default$1i, {
5935
5937
  "key": item.id,
5936
5938
  "address": item,
5937
5939
  "disabled": disabled,
5938
5940
  "switchable": props.switchable,
5939
5941
  "defaultTagText": props.defaultTagText,
5942
+ "rightIcon": props.rightIcon,
5940
5943
  "onEdit": onEdit,
5941
5944
  "onClick": onClick,
5942
5945
  "onSelect": onSelect
@@ -5951,13 +5954,13 @@
5951
5954
  }
5952
5955
  };
5953
5956
  const renderBottom = () => vue.createVNode("div", {
5954
- "class": [bem$13("bottom"), "van-safe-area-bottom"]
5957
+ "class": [bem$14("bottom"), "van-safe-area-bottom"]
5955
5958
  }, [vue.createVNode(Button, {
5956
5959
  "round": true,
5957
5960
  "block": true,
5958
5961
  "type": "primary",
5959
5962
  "text": props.addButtonText || t$h("add"),
5960
- "class": bem$13("add"),
5963
+ "class": bem$14("add"),
5961
5964
  "onClick": () => emit("add")
5962
5965
  }, null)]);
5963
5966
  return () => {
@@ -5965,10 +5968,10 @@
5965
5968
  const List2 = renderList(props.list);
5966
5969
  const DisabledList = renderList(props.disabledList, true);
5967
5970
  const DisabledText = props.disabledText && vue.createVNode("div", {
5968
- "class": bem$13("disabled-text")
5971
+ "class": bem$14("disabled-text")
5969
5972
  }, [props.disabledText]);
5970
5973
  return vue.createVNode("div", {
5971
- "class": bem$13()
5974
+ "class": bem$14()
5972
5975
  }, [(_a = slots.top) == null ? void 0 : _a.call(slots), vue.createVNode(RadioGroup, {
5973
5976
  "modelValue": props.modelValue
5974
5977
  }, {
@@ -5977,7 +5980,7 @@
5977
5980
  };
5978
5981
  }
5979
5982
  });
5980
- const AddressList = withInstall(stdin_default$1g);
5983
+ const AddressList = withInstall(stdin_default$1h);
5981
5984
  const hasIntersectionObserver = inBrowser && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype;
5982
5985
  const modeType = {
5983
5986
  event: "event",
@@ -6130,7 +6133,7 @@
6130
6133
  this.caches.shift();
6131
6134
  }
6132
6135
  }
6133
- const [name$16, bem$12] = createNamespace("back-top");
6136
+ const [name$17, bem$13] = createNamespace("back-top");
6134
6137
  const backTopProps = {
6135
6138
  right: numericProp,
6136
6139
  bottom: numericProp,
@@ -6143,8 +6146,8 @@
6143
6146
  default: "body"
6144
6147
  }
6145
6148
  };
6146
- var stdin_default$1f = vue.defineComponent({
6147
- name: name$16,
6149
+ var stdin_default$1g = vue.defineComponent({
6150
+ name: name$17,
6148
6151
  inheritAttrs: false,
6149
6152
  props: backTopProps,
6150
6153
  emits: ["click"],
@@ -6153,6 +6156,7 @@
6153
6156
  slots,
6154
6157
  attrs
6155
6158
  }) {
6159
+ let shouldReshow = false;
6156
6160
  const show = vue.ref(false);
6157
6161
  const root = vue.ref();
6158
6162
  const scrollParent = vue.ref();
@@ -6196,23 +6200,35 @@
6196
6200
  target: scrollParent
6197
6201
  });
6198
6202
  vue.onMounted(updateTarget);
6203
+ vue.onActivated(() => {
6204
+ if (shouldReshow) {
6205
+ show.value = true;
6206
+ shouldReshow = false;
6207
+ }
6208
+ });
6209
+ vue.onDeactivated(() => {
6210
+ if (show.value && props.teleport) {
6211
+ show.value = false;
6212
+ shouldReshow = true;
6213
+ }
6214
+ });
6199
6215
  vue.watch(() => props.target, updateTarget);
6200
6216
  return () => {
6201
6217
  const Content = vue.createVNode("div", vue.mergeProps({
6202
6218
  "ref": !props.teleport ? root : void 0,
6203
- "class": bem$12({
6219
+ "class": bem$13({
6204
6220
  active: show.value
6205
6221
  }),
6206
6222
  "style": style.value,
6207
6223
  "onClick": onClick
6208
6224
  }, attrs), [slots.default ? slots.default() : vue.createVNode(Icon, {
6209
6225
  "name": "back-top",
6210
- "class": bem$12("icon")
6226
+ "class": bem$13("icon")
6211
6227
  }, null)]);
6212
6228
  if (props.teleport) {
6213
6229
  return [vue.createVNode("div", {
6214
6230
  "ref": root,
6215
- "class": bem$12("placeholder")
6231
+ "class": bem$13("placeholder")
6216
6232
  }, null), vue.createVNode(vue.Teleport, {
6217
6233
  "to": props.teleport
6218
6234
  }, {
@@ -6223,7 +6239,7 @@
6223
6239
  };
6224
6240
  }
6225
6241
  });
6226
- const BackTop = withInstall(stdin_default$1f);
6242
+ const BackTop = withInstall(stdin_default$1g);
6227
6243
  var __async = (__this, __arguments, generator) => {
6228
6244
  return new Promise((resolve, reject) => {
6229
6245
  var fulfilled = (value) => {
@@ -6252,9 +6268,9 @@
6252
6268
  delay: makeNumberProp(300),
6253
6269
  modelValue: makeArrayProp()
6254
6270
  };
6255
- const [name$15, bem$11] = createNamespace("barrage");
6256
- var stdin_default$1e = vue.defineComponent({
6257
- name: name$15,
6271
+ const [name$16, bem$12] = createNamespace("barrage");
6272
+ var stdin_default$1f = vue.defineComponent({
6273
+ name: name$16,
6258
6274
  props: barrageProps,
6259
6275
  emits: ["update:modelValue"],
6260
6276
  setup(props, {
@@ -6262,7 +6278,7 @@
6262
6278
  slots
6263
6279
  }) {
6264
6280
  const barrageWrapper = vue.ref();
6265
- const className = bem$11("item");
6281
+ const className = bem$12("item");
6266
6282
  const total = vue.ref(0);
6267
6283
  const barrageItems = [];
6268
6284
  const createBarrageItem = (text, delay = props.delay) => {
@@ -6343,15 +6359,15 @@
6343
6359
  return () => {
6344
6360
  var _a;
6345
6361
  return vue.createVNode("div", {
6346
- "class": bem$11(),
6362
+ "class": bem$12(),
6347
6363
  "ref": barrageWrapper,
6348
6364
  "style": rootStyle.value
6349
6365
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
6350
6366
  };
6351
6367
  }
6352
6368
  });
6353
- const Barrage = withInstall(stdin_default$1e);
6354
- const [name$14, bem$10, t$g] = createNamespace("calendar");
6369
+ const Barrage = withInstall(stdin_default$1f);
6370
+ const [name$15, bem$11, t$g] = createNamespace("calendar");
6355
6371
  const formatMonthTitle = (date) => t$g("monthTitle", date.getFullYear(), date.getMonth() + 1);
6356
6372
  function compareMonth(date1, date2) {
6357
6373
  const year1 = date1.getFullYear();
@@ -6412,7 +6428,7 @@
6412
6428
  return result;
6413
6429
  }
6414
6430
  const getMonthEndDay = (year, month) => 32 - new Date(year, month - 1, 32).getDate();
6415
- const genOptions = (min, max, type, formatter, filter) => {
6431
+ const genOptions = (min, max, type, formatter, filter, values) => {
6416
6432
  const options = times(max - min + 1, (index) => {
6417
6433
  const value = padZero(min + index);
6418
6434
  return formatter(type, {
@@ -6420,7 +6436,7 @@
6420
6436
  value
6421
6437
  });
6422
6438
  });
6423
- return filter ? filter(type, options) : options;
6439
+ return filter ? filter(type, options, values) : options;
6424
6440
  };
6425
6441
  const formatValueRange = (values, columns) => values.map((value, index) => {
6426
6442
  const column = columns[index];
@@ -6431,9 +6447,9 @@
6431
6447
  }
6432
6448
  return value;
6433
6449
  });
6434
- const [name$13] = createNamespace("calendar-day");
6435
- var stdin_default$1d = vue.defineComponent({
6436
- name: name$13,
6450
+ const [name$14] = createNamespace("calendar-day");
6451
+ var stdin_default$1e = vue.defineComponent({
6452
+ name: name$14,
6437
6453
  props: {
6438
6454
  item: makeRequiredProp(Object),
6439
6455
  color: String,
@@ -6495,7 +6511,7 @@
6495
6511
  } = props.item;
6496
6512
  if (topInfo || slots["top-info"]) {
6497
6513
  return vue.createVNode("div", {
6498
- "class": bem$10("top-info")
6514
+ "class": bem$11("top-info")
6499
6515
  }, [slots["top-info"] ? slots["top-info"](props.item) : topInfo]);
6500
6516
  }
6501
6517
  };
@@ -6505,7 +6521,7 @@
6505
6521
  } = props.item;
6506
6522
  if (bottomInfo || slots["bottom-info"]) {
6507
6523
  return vue.createVNode("div", {
6508
- "class": bem$10("bottom-info")
6524
+ "class": bem$11("bottom-info")
6509
6525
  }, [slots["bottom-info"] ? slots["bottom-info"](props.item) : bottomInfo]);
6510
6526
  }
6511
6527
  };
@@ -6522,7 +6538,7 @@
6522
6538
  const Nodes = [renderTopInfo(), text, renderBottomInfo()];
6523
6539
  if (type === "selected") {
6524
6540
  return vue.createVNode("div", {
6525
- "class": bem$10("selected-day"),
6541
+ "class": bem$11("selected-day"),
6526
6542
  "style": {
6527
6543
  width: rowHeight,
6528
6544
  height: rowHeight,
@@ -6539,21 +6555,21 @@
6539
6555
  } = props.item;
6540
6556
  if (type === "placeholder") {
6541
6557
  return vue.createVNode("div", {
6542
- "class": bem$10("day"),
6558
+ "class": bem$11("day"),
6543
6559
  "style": style.value
6544
6560
  }, null);
6545
6561
  }
6546
6562
  return vue.createVNode("div", {
6547
6563
  "role": "gridcell",
6548
6564
  "style": style.value,
6549
- "class": [bem$10("day", type), className],
6565
+ "class": [bem$11("day", type), className],
6550
6566
  "tabindex": type === "disabled" ? void 0 : -1,
6551
6567
  "onClick": onClick
6552
6568
  }, [renderContent()]);
6553
6569
  };
6554
6570
  }
6555
6571
  });
6556
- const [name$12] = createNamespace("calendar-month");
6572
+ const [name$13] = createNamespace("calendar-month");
6557
6573
  const calendarMonthProps = {
6558
6574
  date: makeRequiredProp(Date),
6559
6575
  type: String,
@@ -6570,8 +6586,8 @@
6570
6586
  showMonthTitle: Boolean,
6571
6587
  firstDayOfWeek: Number
6572
6588
  };
6573
- var stdin_default$1c = vue.defineComponent({
6574
- name: name$12,
6589
+ var stdin_default$1d = vue.defineComponent({
6590
+ name: name$13,
6575
6591
  props: calendarMonthProps,
6576
6592
  emits: ["click"],
6577
6593
  setup(props, {
@@ -6676,7 +6692,7 @@
6676
6692
  const renderTitle = () => {
6677
6693
  if (props.showMonthTitle) {
6678
6694
  return vue.createVNode("div", {
6679
- "class": bem$10("month-title")
6695
+ "class": bem$11("month-title")
6680
6696
  }, [slots["month-title"] ? slots["month-title"]({
6681
6697
  date: props.date,
6682
6698
  text: title.value
@@ -6686,7 +6702,7 @@
6686
6702
  const renderMark = () => {
6687
6703
  if (props.showMark && shouldRender.value) {
6688
6704
  return vue.createVNode("div", {
6689
- "class": bem$10("month-mark")
6705
+ "class": bem$11("month-mark")
6690
6706
  }, [props.date.getMonth() + 1]);
6691
6707
  }
6692
6708
  };
@@ -6726,7 +6742,7 @@
6726
6742
  setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - useRect(body).top);
6727
6743
  }
6728
6744
  };
6729
- const renderDay = (item, index) => vue.createVNode(stdin_default$1d, {
6745
+ const renderDay = (item, index) => vue.createVNode(stdin_default$1e, {
6730
6746
  "item": item,
6731
6747
  "index": index,
6732
6748
  "color": props.color,
@@ -6737,7 +6753,7 @@
6737
6753
  const renderDays = () => vue.createVNode("div", {
6738
6754
  "ref": daysRef,
6739
6755
  "role": "grid",
6740
- "class": bem$10("days")
6756
+ "class": bem$11("days")
6741
6757
  }, [renderMark(), (shouldRender.value ? days : placeholders).value.map(renderDay)]);
6742
6758
  useExpose({
6743
6759
  getTitle,
@@ -6747,14 +6763,14 @@
6747
6763
  disabledDays
6748
6764
  });
6749
6765
  return () => vue.createVNode("div", {
6750
- "class": bem$10("month"),
6766
+ "class": bem$11("month"),
6751
6767
  "ref": monthRef
6752
6768
  }, [renderTitle(), renderDays()]);
6753
6769
  }
6754
6770
  });
6755
- const [name$11] = createNamespace("calendar-header");
6756
- var stdin_default$1b = vue.defineComponent({
6757
- name: name$11,
6771
+ const [name$12] = createNamespace("calendar-header");
6772
+ var stdin_default$1c = vue.defineComponent({
6773
+ name: name$12,
6758
6774
  props: {
6759
6775
  date: Date,
6760
6776
  title: String,
@@ -6773,7 +6789,7 @@
6773
6789
  const text = props.title || t$g("title");
6774
6790
  const title = slots.title ? slots.title() : text;
6775
6791
  return vue.createVNode("div", {
6776
- "class": bem$10("header-title")
6792
+ "class": bem$11("header-title")
6777
6793
  }, [title]);
6778
6794
  }
6779
6795
  };
@@ -6785,7 +6801,7 @@
6785
6801
  text: props.subtitle
6786
6802
  }) : props.subtitle;
6787
6803
  return vue.createVNode("div", {
6788
- "class": bem$10("header-subtitle"),
6804
+ "class": bem$11("header-subtitle"),
6789
6805
  "onClick": onClickSubtitle
6790
6806
  }, [title]);
6791
6807
  }
@@ -6797,13 +6813,13 @@
6797
6813
  const weekdays = t$g("weekdays");
6798
6814
  const renderWeekDays2 = [...weekdays.slice(firstDayOfWeek, 7), ...weekdays.slice(0, firstDayOfWeek)];
6799
6815
  return vue.createVNode("div", {
6800
- "class": bem$10("weekdays")
6816
+ "class": bem$11("weekdays")
6801
6817
  }, [renderWeekDays2.map((text) => vue.createVNode("span", {
6802
- "class": bem$10("weekday")
6818
+ "class": bem$11("weekday")
6803
6819
  }, [text]))]);
6804
6820
  };
6805
6821
  return () => vue.createVNode("div", {
6806
- "class": bem$10("header")
6822
+ "class": bem$11("header")
6807
6823
  }, [renderTitle(), renderSubtitle(), renderWeekDays()]);
6808
6824
  }
6809
6825
  });
@@ -6854,8 +6870,8 @@
6854
6870
  validator: (val) => val >= 0 && val <= 6
6855
6871
  }
6856
6872
  };
6857
- var stdin_default$1a = vue.defineComponent({
6858
- name: name$14,
6873
+ var stdin_default$1b = vue.defineComponent({
6874
+ name: name$15,
6859
6875
  props: calendarProps,
6860
6876
  emits: ["select", "confirm", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle"],
6861
6877
  setup(props, {
@@ -7118,7 +7134,7 @@
7118
7134
  const updateShow = (value) => emit("update:show", value);
7119
7135
  const renderMonth = (date, index) => {
7120
7136
  const showMonthTitle = index !== 0 || !props.showSubtitle;
7121
- return vue.createVNode(stdin_default$1c, vue.mergeProps({
7137
+ return vue.createVNode(stdin_default$1d, vue.mergeProps({
7122
7138
  "ref": setMonthRefs(index),
7123
7139
  "date": date,
7124
7140
  "currentDate": currentDate.value,
@@ -7141,7 +7157,7 @@
7141
7157
  "block": true,
7142
7158
  "type": "primary",
7143
7159
  "color": props.color,
7144
- "class": bem$10("confirm"),
7160
+ "class": bem$11("confirm"),
7145
7161
  "disabled": disabled,
7146
7162
  "nativeType": "button",
7147
7163
  "onClick": onConfirm
@@ -7153,13 +7169,13 @@
7153
7169
  }
7154
7170
  };
7155
7171
  const renderFooter = () => vue.createVNode("div", {
7156
- "class": [bem$10("footer"), {
7172
+ "class": [bem$11("footer"), {
7157
7173
  "van-safe-area-bottom": props.safeAreaInsetBottom
7158
7174
  }]
7159
7175
  }, [renderFooterButton()]);
7160
7176
  const renderCalendar = () => vue.createVNode("div", {
7161
- "class": bem$10()
7162
- }, [vue.createVNode(stdin_default$1b, {
7177
+ "class": bem$11()
7178
+ }, [vue.createVNode(stdin_default$1c, {
7163
7179
  "date": subtitle.value.date,
7164
7180
  "title": props.title,
7165
7181
  "subtitle": subtitle.value.text,
@@ -7169,7 +7185,7 @@
7169
7185
  "onClickSubtitle": (event) => emit("clickSubtitle", event)
7170
7186
  }, pick(slots, ["title", "subtitle"])), vue.createVNode("div", {
7171
7187
  "ref": bodyRef,
7172
- "class": bem$10("body"),
7188
+ "class": bem$11("body"),
7173
7189
  "onScroll": onScroll
7174
7190
  }, [months.value.map(renderMonth)]), renderFooter()]);
7175
7191
  vue.watch(() => props.show, init);
@@ -7188,7 +7204,7 @@
7188
7204
  if (props.poppable) {
7189
7205
  return vue.createVNode(Popup, {
7190
7206
  "show": props.show,
7191
- "class": bem$10("popup"),
7207
+ "class": bem$11("popup"),
7192
7208
  "round": props.round,
7193
7209
  "position": props.position,
7194
7210
  "closeable": props.showTitle || props.showSubtitle,
@@ -7205,8 +7221,8 @@
7205
7221
  };
7206
7222
  }
7207
7223
  });
7208
- const Calendar = withInstall(stdin_default$1a);
7209
- const [name$10, bem$$] = createNamespace("image");
7224
+ const Calendar = withInstall(stdin_default$1b);
7225
+ const [name$11, bem$10] = createNamespace("image");
7210
7226
  const imageProps = {
7211
7227
  src: String,
7212
7228
  alt: String,
@@ -7225,8 +7241,8 @@
7225
7241
  showLoading: truthProp,
7226
7242
  loadingIcon: makeStringProp("photo")
7227
7243
  };
7228
- var stdin_default$19 = vue.defineComponent({
7229
- name: name$10,
7244
+ var stdin_default$1a = vue.defineComponent({
7245
+ name: name$11,
7230
7246
  props: imageProps,
7231
7247
  emits: ["load", "error"],
7232
7248
  setup(props, {
@@ -7287,13 +7303,13 @@
7287
7303
  const renderPlaceholder = () => {
7288
7304
  if (loading.value && props.showLoading) {
7289
7305
  return vue.createVNode("div", {
7290
- "class": bem$$("loading")
7291
- }, [renderIcon(props.loadingIcon, bem$$("loading-icon"), slots.loading)]);
7306
+ "class": bem$10("loading")
7307
+ }, [renderIcon(props.loadingIcon, bem$10("loading-icon"), slots.loading)]);
7292
7308
  }
7293
7309
  if (error.value && props.showError) {
7294
7310
  return vue.createVNode("div", {
7295
- "class": bem$$("error")
7296
- }, [renderIcon(props.errorIcon, bem$$("error-icon"), slots.error)]);
7311
+ "class": bem$10("error")
7312
+ }, [renderIcon(props.errorIcon, bem$10("error-icon"), slots.error)]);
7297
7313
  }
7298
7314
  };
7299
7315
  const renderImage = () => {
@@ -7302,7 +7318,7 @@
7302
7318
  }
7303
7319
  const attrs = {
7304
7320
  alt: props.alt,
7305
- class: bem$$("img"),
7321
+ class: bem$10("img"),
7306
7322
  style: {
7307
7323
  objectFit: props.fit,
7308
7324
  objectPosition: props.position
@@ -7360,7 +7376,7 @@
7360
7376
  return () => {
7361
7377
  var _a;
7362
7378
  return vue.createVNode("div", {
7363
- "class": bem$$({
7379
+ "class": bem$10({
7364
7380
  round: props.round,
7365
7381
  block: props.block
7366
7382
  }),
@@ -7369,8 +7385,8 @@
7369
7385
  };
7370
7386
  }
7371
7387
  });
7372
- const Image$1 = withInstall(stdin_default$19);
7373
- const [name$$, bem$_] = createNamespace("card");
7388
+ const Image$1 = withInstall(stdin_default$1a);
7389
+ const [name$10, bem$$] = createNamespace("card");
7374
7390
  const cardProps = {
7375
7391
  tag: String,
7376
7392
  num: numericProp,
@@ -7384,8 +7400,8 @@
7384
7400
  thumbLink: String,
7385
7401
  originPrice: numericProp
7386
7402
  };
7387
- var stdin_default$18 = vue.defineComponent({
7388
- name: name$$,
7403
+ var stdin_default$19 = vue.defineComponent({
7404
+ name: name$10,
7389
7405
  props: cardProps,
7390
7406
  emits: ["clickThumb"],
7391
7407
  setup(props, {
@@ -7398,14 +7414,14 @@
7398
7414
  }
7399
7415
  if (props.title) {
7400
7416
  return vue.createVNode("div", {
7401
- "class": [bem$_("title"), "van-multi-ellipsis--l2"]
7417
+ "class": [bem$$("title"), "van-multi-ellipsis--l2"]
7402
7418
  }, [props.title]);
7403
7419
  }
7404
7420
  };
7405
7421
  const renderThumbTag = () => {
7406
7422
  if (slots.tag || props.tag) {
7407
7423
  return vue.createVNode("div", {
7408
- "class": bem$_("tag")
7424
+ "class": bem$$("tag")
7409
7425
  }, [slots.tag ? slots.tag() : vue.createVNode(Tag, {
7410
7426
  "mark": true,
7411
7427
  "type": "primary"
@@ -7430,7 +7446,7 @@
7430
7446
  if (slots.thumb || props.thumb) {
7431
7447
  return vue.createVNode("a", {
7432
7448
  "href": props.thumbLink,
7433
- "class": bem$_("thumb"),
7449
+ "class": bem$$("thumb"),
7434
7450
  "onClick": (event) => emit("clickThumb", event)
7435
7451
  }, [renderThumbImage(), renderThumbTag()]);
7436
7452
  }
@@ -7441,18 +7457,18 @@
7441
7457
  }
7442
7458
  if (props.desc) {
7443
7459
  return vue.createVNode("div", {
7444
- "class": [bem$_("desc"), "van-ellipsis"]
7460
+ "class": [bem$$("desc"), "van-ellipsis"]
7445
7461
  }, [props.desc]);
7446
7462
  }
7447
7463
  };
7448
7464
  const renderPriceText = () => {
7449
7465
  const priceArr = props.price.toString().split(".");
7450
7466
  return vue.createVNode("div", null, [vue.createVNode("span", {
7451
- "class": bem$_("price-currency")
7467
+ "class": bem$$("price-currency")
7452
7468
  }, [props.currency]), vue.createVNode("span", {
7453
- "class": bem$_("price-integer")
7469
+ "class": bem$$("price-integer")
7454
7470
  }, [priceArr[0]]), vue.createTextVNode("."), vue.createVNode("span", {
7455
- "class": bem$_("price-decimal")
7471
+ "class": bem$$("price-decimal")
7456
7472
  }, [priceArr[1]])]);
7457
7473
  };
7458
7474
  return () => {
@@ -7462,34 +7478,34 @@
7462
7478
  const showOriginPrice = slots["origin-price"] || isDef(props.originPrice);
7463
7479
  const showBottom = showNum || showPrice || showOriginPrice || slots.bottom;
7464
7480
  const Price = showPrice && vue.createVNode("div", {
7465
- "class": bem$_("price")
7481
+ "class": bem$$("price")
7466
7482
  }, [slots.price ? slots.price() : renderPriceText()]);
7467
7483
  const OriginPrice = showOriginPrice && vue.createVNode("div", {
7468
- "class": bem$_("origin-price")
7484
+ "class": bem$$("origin-price")
7469
7485
  }, [slots["origin-price"] ? slots["origin-price"]() : `${props.currency} ${props.originPrice}`]);
7470
7486
  const Num = showNum && vue.createVNode("div", {
7471
- "class": bem$_("num")
7487
+ "class": bem$$("num")
7472
7488
  }, [slots.num ? slots.num() : `x${props.num}`]);
7473
7489
  const Footer = slots.footer && vue.createVNode("div", {
7474
- "class": bem$_("footer")
7490
+ "class": bem$$("footer")
7475
7491
  }, [slots.footer()]);
7476
7492
  const Bottom = showBottom && vue.createVNode("div", {
7477
- "class": bem$_("bottom")
7493
+ "class": bem$$("bottom")
7478
7494
  }, [(_a = slots["price-top"]) == null ? void 0 : _a.call(slots), Price, OriginPrice, Num, (_b = slots.bottom) == null ? void 0 : _b.call(slots)]);
7479
7495
  return vue.createVNode("div", {
7480
- "class": bem$_()
7496
+ "class": bem$$()
7481
7497
  }, [vue.createVNode("div", {
7482
- "class": bem$_("header")
7498
+ "class": bem$$("header")
7483
7499
  }, [renderThumb(), vue.createVNode("div", {
7484
- "class": bem$_("content", {
7500
+ "class": bem$$("content", {
7485
7501
  centered: props.centered
7486
7502
  })
7487
7503
  }, [vue.createVNode("div", null, [renderTitle(), renderDesc(), (_c = slots.tags) == null ? void 0 : _c.call(slots)]), Bottom])]), Footer]);
7488
7504
  };
7489
7505
  }
7490
7506
  });
7491
- const Card = withInstall(stdin_default$18);
7492
- const [name$_, bem$Z, t$f] = createNamespace("cascader");
7507
+ const Card = withInstall(stdin_default$19);
7508
+ const [name$$, bem$_, t$f] = createNamespace("cascader");
7493
7509
  const cascaderProps = {
7494
7510
  title: String,
7495
7511
  options: makeArrayProp(),
@@ -7502,8 +7518,8 @@
7502
7518
  placeholder: String,
7503
7519
  activeColor: String
7504
7520
  };
7505
- var stdin_default$17 = vue.defineComponent({
7506
- name: name$_,
7521
+ var stdin_default$18 = vue.defineComponent({
7522
+ name: name$$,
7507
7523
  props: cascaderProps,
7508
7524
  emits: ["close", "change", "finish", "clickTab", "update:modelValue"],
7509
7525
  setup(props, {
@@ -7612,12 +7628,12 @@
7612
7628
  title
7613
7629
  }) => emit("clickTab", name2, title);
7614
7630
  const renderHeader = () => props.showHeader ? vue.createVNode("div", {
7615
- "class": bem$Z("header")
7631
+ "class": bem$_("header")
7616
7632
  }, [vue.createVNode("h2", {
7617
- "class": bem$Z("title")
7633
+ "class": bem$_("title")
7618
7634
  }, [slots.title ? slots.title() : props.title]), props.closeable ? vue.createVNode(Icon, {
7619
7635
  "name": props.closeIcon,
7620
- "class": [bem$Z("close-icon"), HAPTICS_FEEDBACK],
7636
+ "class": [bem$_("close-icon"), HAPTICS_FEEDBACK],
7621
7637
  "onClick": onClose
7622
7638
  }, null) : null]) : null;
7623
7639
  const renderOption = (option, selectedOption, tabIndex) => {
@@ -7633,7 +7649,7 @@
7633
7649
  return vue.createVNode("li", {
7634
7650
  "ref": selected ? setSelectedElementRefs(tabIndex) : void 0,
7635
7651
  "role": "menuitemradio",
7636
- "class": [bem$Z("option", {
7652
+ "class": [bem$_("option", {
7637
7653
  selected,
7638
7654
  disabled
7639
7655
  }), option.className],
@@ -7646,12 +7662,12 @@
7646
7662
  "onClick": () => onSelect(option, tabIndex)
7647
7663
  }, [Text, selected ? vue.createVNode(Icon, {
7648
7664
  "name": "success",
7649
- "class": bem$Z("selected-icon")
7665
+ "class": bem$_("selected-icon")
7650
7666
  }, null) : null]);
7651
7667
  };
7652
7668
  const renderOptions = (options, selectedOption, tabIndex) => vue.createVNode("ul", {
7653
7669
  "role": "menu",
7654
- "class": bem$Z("options")
7670
+ "class": bem$_("options")
7655
7671
  }, [options.map((option) => renderOption(option, selectedOption, tabIndex))]);
7656
7672
  const renderTab = (tab, tabIndex) => {
7657
7673
  const {
@@ -7662,7 +7678,7 @@
7662
7678
  const title = selected ? selected[textKey] : placeholder;
7663
7679
  return vue.createVNode(Tab, {
7664
7680
  "title": title,
7665
- "titleClass": bem$Z("tab", {
7681
+ "titleClass": bem$_("tab", {
7666
7682
  unselected: !selected
7667
7683
  })
7668
7684
  }, {
@@ -7681,7 +7697,7 @@
7681
7697
  "onUpdate:active": ($event) => activeTab.value = $event,
7682
7698
  "shrink": true,
7683
7699
  "animated": true,
7684
- "class": bem$Z("tabs"),
7700
+ "class": bem$_("tabs"),
7685
7701
  "color": props.activeColor,
7686
7702
  "swipeable": props.swipeable,
7687
7703
  "onClickTab": onClickTab
@@ -7716,19 +7732,19 @@
7716
7732
  updateTabs();
7717
7733
  });
7718
7734
  return () => vue.createVNode("div", {
7719
- "class": bem$Z()
7735
+ "class": bem$_()
7720
7736
  }, [renderHeader(), renderTabs()]);
7721
7737
  }
7722
7738
  });
7723
- const Cascader = withInstall(stdin_default$17);
7724
- const [name$Z, bem$Y] = createNamespace("cell-group");
7739
+ const Cascader = withInstall(stdin_default$18);
7740
+ const [name$_, bem$Z] = createNamespace("cell-group");
7725
7741
  const cellGroupProps = {
7726
7742
  title: String,
7727
7743
  inset: Boolean,
7728
7744
  border: truthProp
7729
7745
  };
7730
- var stdin_default$16 = vue.defineComponent({
7731
- name: name$Z,
7746
+ var stdin_default$17 = vue.defineComponent({
7747
+ name: name$_,
7732
7748
  inheritAttrs: false,
7733
7749
  props: cellGroupProps,
7734
7750
  setup(props, {
@@ -7738,7 +7754,7 @@
7738
7754
  const renderGroup = () => {
7739
7755
  var _a;
7740
7756
  return vue.createVNode("div", vue.mergeProps({
7741
- "class": [bem$Y({
7757
+ "class": [bem$Z({
7742
7758
  inset: props.inset
7743
7759
  }), {
7744
7760
  [BORDER_TOP_BOTTOM]: props.border && !props.inset
@@ -7746,7 +7762,7 @@
7746
7762
  }, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
7747
7763
  };
7748
7764
  const renderTitle = () => vue.createVNode("div", {
7749
- "class": bem$Y("title", {
7765
+ "class": bem$Z("title", {
7750
7766
  inset: props.inset
7751
7767
  })
7752
7768
  }, [slots.title ? slots.title() : props.title]);
@@ -7758,8 +7774,8 @@
7758
7774
  };
7759
7775
  }
7760
7776
  });
7761
- const CellGroup = withInstall(stdin_default$16);
7762
- const [name$Y, bem$X] = createNamespace("checkbox-group");
7777
+ const CellGroup = withInstall(stdin_default$17);
7778
+ const [name$Z, bem$Y] = createNamespace("checkbox-group");
7763
7779
  const checkboxGroupProps = {
7764
7780
  max: numericProp,
7765
7781
  disabled: Boolean,
@@ -7768,9 +7784,9 @@
7768
7784
  modelValue: makeArrayProp(),
7769
7785
  checkedColor: String
7770
7786
  };
7771
- const CHECKBOX_GROUP_KEY = Symbol(name$Y);
7772
- var stdin_default$15 = vue.defineComponent({
7773
- name: name$Y,
7787
+ const CHECKBOX_GROUP_KEY = Symbol(name$Z);
7788
+ var stdin_default$16 = vue.defineComponent({
7789
+ name: name$Z,
7774
7790
  props: checkboxGroupProps,
7775
7791
  emits: ["change", "update:modelValue"],
7776
7792
  setup(props, {
@@ -7816,17 +7832,17 @@
7816
7832
  return () => {
7817
7833
  var _a;
7818
7834
  return vue.createVNode("div", {
7819
- "class": bem$X([props.direction])
7835
+ "class": bem$Y([props.direction])
7820
7836
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
7821
7837
  };
7822
7838
  }
7823
7839
  });
7824
- const [name$X, bem$W] = createNamespace("checkbox");
7840
+ const [name$Y, bem$X] = createNamespace("checkbox");
7825
7841
  const checkboxProps = extend({}, checkerProps, {
7826
7842
  bindGroup: truthProp
7827
7843
  });
7828
- var stdin_default$14 = vue.defineComponent({
7829
- name: name$X,
7844
+ var stdin_default$15 = vue.defineComponent({
7845
+ name: name$Y,
7830
7846
  props: checkboxProps,
7831
7847
  emits: ["change", "update:modelValue"],
7832
7848
  setup(props, {
@@ -7883,8 +7899,8 @@
7883
7899
  checked
7884
7900
  });
7885
7901
  useCustomFieldValue(() => props.modelValue);
7886
- return () => vue.createVNode(stdin_default$1j, vue.mergeProps({
7887
- "bem": bem$W,
7902
+ return () => vue.createVNode(stdin_default$1k, vue.mergeProps({
7903
+ "bem": bem$X,
7888
7904
  "role": "checkbox",
7889
7905
  "parent": parent,
7890
7906
  "checked": checked.value,
@@ -7892,9 +7908,9 @@
7892
7908
  }, props), pick(slots, ["default", "icon"]));
7893
7909
  }
7894
7910
  });
7895
- const Checkbox = withInstall(stdin_default$14);
7896
- const CheckboxGroup = withInstall(stdin_default$15);
7897
- const [name$W, bem$V] = createNamespace("circle");
7911
+ const Checkbox = withInstall(stdin_default$15);
7912
+ const CheckboxGroup = withInstall(stdin_default$16);
7913
+ const [name$X, bem$W] = createNamespace("circle");
7898
7914
  let uid = 0;
7899
7915
  const format$1 = (rate) => Math.min(Math.max(+rate, 0), 100);
7900
7916
  function getPath(clockwise, viewBoxSize) {
@@ -7915,8 +7931,8 @@
7915
7931
  strokeLinecap: String,
7916
7932
  startPosition: makeStringProp("top")
7917
7933
  };
7918
- var stdin_default$13 = vue.defineComponent({
7919
- name: name$W,
7934
+ var stdin_default$14 = vue.defineComponent({
7935
+ name: name$X,
7920
7936
  props: circleProps,
7921
7937
  emits: ["update:currentRate"],
7922
7938
  setup(props, {
@@ -7984,7 +8000,7 @@
7984
8000
  return vue.createVNode("path", {
7985
8001
  "d": path.value,
7986
8002
  "style": style,
7987
- "class": bem$V("hover"),
8003
+ "class": bem$W("hover"),
7988
8004
  "stroke": color
7989
8005
  }, null);
7990
8006
  };
@@ -7995,7 +8011,7 @@
7995
8011
  strokeWidth: `${props.strokeWidth}px`
7996
8012
  };
7997
8013
  return vue.createVNode("path", {
7998
- "class": bem$V("layer"),
8014
+ "class": bem$W("layer"),
7999
8015
  "style": style,
8000
8016
  "d": path.value
8001
8017
  }, null);
@@ -8026,12 +8042,12 @@
8026
8042
  }
8027
8043
  if (props.text) {
8028
8044
  return vue.createVNode("div", {
8029
- "class": bem$V("text")
8045
+ "class": bem$W("text")
8030
8046
  }, [props.text]);
8031
8047
  }
8032
8048
  };
8033
8049
  return () => vue.createVNode("div", {
8034
- "class": bem$V(),
8050
+ "class": bem$W(),
8035
8051
  "style": getSizeStyle(props.size)
8036
8052
  }, [vue.createVNode("svg", {
8037
8053
  "viewBox": `0 0 ${viewBoxSize.value} ${viewBoxSize.value}`,
@@ -8039,9 +8055,9 @@
8039
8055
  }, [renderGradient(), renderLayer(), renderHover()]), renderText()]);
8040
8056
  }
8041
8057
  });
8042
- const Circle = withInstall(stdin_default$13);
8043
- const [name$V, bem$U] = createNamespace("row");
8044
- const ROW_KEY = Symbol(name$V);
8058
+ const Circle = withInstall(stdin_default$14);
8059
+ const [name$W, bem$V] = createNamespace("row");
8060
+ const ROW_KEY = Symbol(name$W);
8045
8061
  const rowProps = {
8046
8062
  tag: makeStringProp("div"),
8047
8063
  wrap: truthProp,
@@ -8049,8 +8065,8 @@
8049
8065
  gutter: makeNumericProp(0),
8050
8066
  justify: String
8051
8067
  };
8052
- var stdin_default$12 = vue.defineComponent({
8053
- name: name$V,
8068
+ var stdin_default$13 = vue.defineComponent({
8069
+ name: name$W,
8054
8070
  props: rowProps,
8055
8071
  setup(props, {
8056
8072
  slots
@@ -8109,7 +8125,7 @@
8109
8125
  justify
8110
8126
  } = props;
8111
8127
  return vue.createVNode(tag, {
8112
- "class": bem$U({
8128
+ "class": bem$V({
8113
8129
  [`align-${align}`]: align,
8114
8130
  [`justify-${justify}`]: justify,
8115
8131
  nowrap: !wrap
@@ -8123,14 +8139,14 @@
8123
8139
  };
8124
8140
  }
8125
8141
  });
8126
- const [name$U, bem$T] = createNamespace("col");
8142
+ const [name$V, bem$U] = createNamespace("col");
8127
8143
  const colProps = {
8128
8144
  tag: makeStringProp("div"),
8129
8145
  span: makeNumericProp(0),
8130
8146
  offset: numericProp
8131
8147
  };
8132
- var stdin_default$11 = vue.defineComponent({
8133
- name: name$U,
8148
+ var stdin_default$12 = vue.defineComponent({
8149
+ name: name$V,
8134
8150
  props: colProps,
8135
8151
  setup(props, {
8136
8152
  slots
@@ -8165,7 +8181,7 @@
8165
8181
  } = props;
8166
8182
  return vue.createVNode(tag, {
8167
8183
  "style": style.value,
8168
- "class": bem$T({
8184
+ "class": bem$U({
8169
8185
  [span]: span,
8170
8186
  [`offset-${offset2}`]: offset2
8171
8187
  })
@@ -8178,9 +8194,9 @@
8178
8194
  };
8179
8195
  }
8180
8196
  });
8181
- const Col = withInstall(stdin_default$11);
8182
- const [name$T, bem$S] = createNamespace("collapse");
8183
- const COLLAPSE_KEY = Symbol(name$T);
8197
+ const Col = withInstall(stdin_default$12);
8198
+ const [name$U, bem$T] = createNamespace("collapse");
8199
+ const COLLAPSE_KEY = Symbol(name$U);
8184
8200
  const collapseProps = {
8185
8201
  border: truthProp,
8186
8202
  accordion: Boolean,
@@ -8189,8 +8205,8 @@
8189
8205
  default: ""
8190
8206
  }
8191
8207
  };
8192
- var stdin_default$10 = vue.defineComponent({
8193
- name: name$T,
8208
+ var stdin_default$11 = vue.defineComponent({
8209
+ name: name$U,
8194
8210
  props: collapseProps,
8195
8211
  emits: ["change", "update:modelValue"],
8196
8212
  setup(props, {
@@ -8257,15 +8273,15 @@
8257
8273
  return () => {
8258
8274
  var _a;
8259
8275
  return vue.createVNode("div", {
8260
- "class": [bem$S(), {
8276
+ "class": [bem$T(), {
8261
8277
  [BORDER_TOP_BOTTOM]: props.border
8262
8278
  }]
8263
8279
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
8264
8280
  };
8265
8281
  }
8266
8282
  });
8267
- const Collapse = withInstall(stdin_default$10);
8268
- const [name$S, bem$R] = createNamespace("collapse-item");
8283
+ const Collapse = withInstall(stdin_default$11);
8284
+ const [name$T, bem$S] = createNamespace("collapse-item");
8269
8285
  const CELL_SLOTS = ["icon", "title", "value", "label", "right-icon"];
8270
8286
  const collapseItemProps = extend({}, cellSharedProps, {
8271
8287
  name: numericProp,
@@ -8274,8 +8290,8 @@
8274
8290
  readonly: Boolean,
8275
8291
  lazyRender: truthProp
8276
8292
  });
8277
- var stdin_default$$ = vue.defineComponent({
8278
- name: name$S,
8293
+ var stdin_default$10 = vue.defineComponent({
8294
+ name: name$T,
8279
8295
  props: collapseItemProps,
8280
8296
  setup(props, {
8281
8297
  slots
@@ -8354,7 +8370,7 @@
8354
8370
  }
8355
8371
  return vue.createVNode(Cell, vue.mergeProps({
8356
8372
  "role": "button",
8357
- "class": bem$R("title", {
8373
+ "class": bem$S("title", {
8358
8374
  disabled,
8359
8375
  expanded: expanded.value,
8360
8376
  borderless: !border
@@ -8367,11 +8383,11 @@
8367
8383
  var _a;
8368
8384
  return vue.withDirectives(vue.createVNode("div", {
8369
8385
  "ref": wrapperRef,
8370
- "class": bem$R("wrapper"),
8386
+ "class": bem$S("wrapper"),
8371
8387
  "onTransitionend": onTransitionEnd
8372
8388
  }, [vue.createVNode("div", {
8373
8389
  "ref": contentRef,
8374
- "class": bem$R("content")
8390
+ "class": bem$S("content")
8375
8391
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), [[vue.vShow, show.value]]);
8376
8392
  });
8377
8393
  useExpose({
@@ -8380,15 +8396,15 @@
8380
8396
  itemName: name2
8381
8397
  });
8382
8398
  return () => vue.createVNode("div", {
8383
- "class": [bem$R({
8399
+ "class": [bem$S({
8384
8400
  border: index.value && props.border
8385
8401
  })]
8386
8402
  }, [renderTitle(), renderContent()]);
8387
8403
  }
8388
8404
  });
8389
- const CollapseItem = withInstall(stdin_default$$);
8390
- const ConfigProvider = withInstall(stdin_default$1M);
8391
- const [name$R, bem$Q, t$e] = createNamespace("contact-card");
8405
+ const CollapseItem = withInstall(stdin_default$10);
8406
+ const ConfigProvider = withInstall(stdin_default$1N);
8407
+ const [name$S, bem$R, t$e] = createNamespace("contact-card");
8392
8408
  const contactCardProps = {
8393
8409
  tel: String,
8394
8410
  name: String,
@@ -8396,8 +8412,8 @@
8396
8412
  addText: String,
8397
8413
  editable: truthProp
8398
8414
  };
8399
- var stdin_default$_ = vue.defineComponent({
8400
- name: name$R,
8415
+ var stdin_default$$ = vue.defineComponent({
8416
+ name: name$S,
8401
8417
  props: contactCardProps,
8402
8418
  emits: ["click"],
8403
8419
  setup(props, {
@@ -8417,18 +8433,18 @@
8417
8433
  return () => vue.createVNode(Cell, {
8418
8434
  "center": true,
8419
8435
  "icon": props.type === "edit" ? "contact" : "add-square",
8420
- "class": bem$Q([props.type]),
8436
+ "class": bem$R([props.type]),
8421
8437
  "border": false,
8422
8438
  "isLink": props.editable,
8423
- "titleClass": bem$Q("title"),
8439
+ "titleClass": bem$R("title"),
8424
8440
  "onClick": onClick
8425
8441
  }, {
8426
8442
  title: renderContent
8427
8443
  });
8428
8444
  }
8429
8445
  });
8430
- const ContactCard = withInstall(stdin_default$_);
8431
- const [name$Q, bem$P, t$d] = createNamespace("contact-edit");
8446
+ const ContactCard = withInstall(stdin_default$$);
8447
+ const [name$R, bem$Q, t$d] = createNamespace("contact-edit");
8432
8448
  const DEFAULT_CONTACT = {
8433
8449
  tel: "",
8434
8450
  name: ""
@@ -8448,8 +8464,8 @@
8448
8464
  default: isMobile
8449
8465
  }
8450
8466
  };
8451
- var stdin_default$Z = vue.defineComponent({
8452
- name: name$Q,
8467
+ var stdin_default$_ = vue.defineComponent({
8468
+ name: name$R,
8453
8469
  props: contactEditProps,
8454
8470
  emits: ["save", "delete", "changeDefault"],
8455
8471
  setup(props, {
@@ -8463,20 +8479,20 @@
8463
8479
  };
8464
8480
  const onDelete = () => emit("delete", contact);
8465
8481
  const renderButtons = () => vue.createVNode("div", {
8466
- "class": bem$P("buttons")
8482
+ "class": bem$Q("buttons")
8467
8483
  }, [vue.createVNode(Button, {
8468
8484
  "block": true,
8469
8485
  "round": true,
8470
8486
  "type": "primary",
8471
8487
  "text": t$d("save"),
8472
- "class": bem$P("button"),
8488
+ "class": bem$Q("button"),
8473
8489
  "loading": props.isSaving,
8474
8490
  "nativeType": "submit"
8475
8491
  }, null), props.isEdit && vue.createVNode(Button, {
8476
8492
  "block": true,
8477
8493
  "round": true,
8478
8494
  "text": t$d("delete"),
8479
- "class": bem$P("button"),
8495
+ "class": bem$Q("button"),
8480
8496
  "loading": props.isDeleting,
8481
8497
  "onClick": onDelete
8482
8498
  }, null)]);
@@ -8489,7 +8505,7 @@
8489
8505
  if (props.showSetDefault) {
8490
8506
  return vue.createVNode(Cell, {
8491
8507
  "title": props.setDefaultLabel,
8492
- "class": bem$P("switch-cell"),
8508
+ "class": bem$Q("switch-cell"),
8493
8509
  "border": false
8494
8510
  }, {
8495
8511
  "right-icon": renderSwitch
@@ -8498,11 +8514,11 @@
8498
8514
  };
8499
8515
  vue.watch(() => props.contactInfo, (value) => extend(contact, DEFAULT_CONTACT, value));
8500
8516
  return () => vue.createVNode(Form, {
8501
- "class": bem$P(),
8517
+ "class": bem$Q(),
8502
8518
  "onSubmit": onSave
8503
8519
  }, {
8504
8520
  default: () => [vue.createVNode("div", {
8505
- "class": bem$P("fields")
8521
+ "class": bem$Q("fields")
8506
8522
  }, [vue.createVNode(Field, {
8507
8523
  "modelValue": contact.name,
8508
8524
  "onUpdate:modelValue": ($event) => contact.name = $event,
@@ -8529,16 +8545,16 @@
8529
8545
  });
8530
8546
  }
8531
8547
  });
8532
- const ContactEdit = withInstall(stdin_default$Z);
8533
- const [name$P, bem$O, t$c] = createNamespace("contact-list");
8548
+ const ContactEdit = withInstall(stdin_default$_);
8549
+ const [name$Q, bem$P, t$c] = createNamespace("contact-list");
8534
8550
  const contactListProps = {
8535
8551
  list: Array,
8536
8552
  addText: String,
8537
8553
  modelValue: unknownProp,
8538
8554
  defaultTagText: String
8539
8555
  };
8540
- var stdin_default$Y = vue.defineComponent({
8541
- name: name$P,
8556
+ var stdin_default$Z = vue.defineComponent({
8557
+ name: name$Q,
8542
8558
  props: contactListProps,
8543
8559
  emits: ["add", "edit", "select", "update:modelValue"],
8544
8560
  setup(props, {
@@ -8550,13 +8566,13 @@
8550
8566
  emit("select", item, index);
8551
8567
  };
8552
8568
  const renderRightIcon = () => vue.createVNode(Radio, {
8553
- "class": bem$O("radio"),
8569
+ "class": bem$P("radio"),
8554
8570
  "name": item.id,
8555
8571
  "iconSize": 18
8556
8572
  }, null);
8557
8573
  const renderEditIcon = () => vue.createVNode(Icon, {
8558
8574
  "name": "edit",
8559
- "class": bem$O("edit"),
8575
+ "class": bem$P("edit"),
8560
8576
  "onClick": (event) => {
8561
8577
  event.stopPropagation();
8562
8578
  emit("edit", item, index);
@@ -8568,7 +8584,7 @@
8568
8584
  nodes.push(vue.createVNode(Tag, {
8569
8585
  "type": "primary",
8570
8586
  "round": true,
8571
- "class": bem$O("item-tag")
8587
+ "class": bem$P("item-tag")
8572
8588
  }, {
8573
8589
  default: () => [props.defaultTagText]
8574
8590
  }));
@@ -8579,8 +8595,8 @@
8579
8595
  "key": item.id,
8580
8596
  "isLink": true,
8581
8597
  "center": true,
8582
- "class": bem$O("item"),
8583
- "titleClass": bem$O("item-title"),
8598
+ "class": bem$P("item"),
8599
+ "titleClass": bem$P("item-title"),
8584
8600
  "onClick": onClick
8585
8601
  }, {
8586
8602
  icon: renderEditIcon,
@@ -8589,25 +8605,25 @@
8589
8605
  });
8590
8606
  };
8591
8607
  return () => vue.createVNode("div", {
8592
- "class": bem$O()
8608
+ "class": bem$P()
8593
8609
  }, [vue.createVNode(RadioGroup, {
8594
8610
  "modelValue": props.modelValue,
8595
- "class": bem$O("group")
8611
+ "class": bem$P("group")
8596
8612
  }, {
8597
8613
  default: () => [props.list && props.list.map(renderItem)]
8598
8614
  }), vue.createVNode("div", {
8599
- "class": [bem$O("bottom"), "van-safe-area-bottom"]
8615
+ "class": [bem$P("bottom"), "van-safe-area-bottom"]
8600
8616
  }, [vue.createVNode(Button, {
8601
8617
  "round": true,
8602
8618
  "block": true,
8603
8619
  "type": "primary",
8604
- "class": bem$O("add"),
8620
+ "class": bem$P("add"),
8605
8621
  "text": props.addText || t$c("addContact"),
8606
8622
  "onClick": () => emit("add")
8607
8623
  }, null)])]);
8608
8624
  }
8609
8625
  });
8610
- const ContactList = withInstall(stdin_default$Y);
8626
+ const ContactList = withInstall(stdin_default$Z);
8611
8627
  function parseFormat(format2, currentTime) {
8612
8628
  const { days } = currentTime;
8613
8629
  let { hours, minutes, seconds, milliseconds } = currentTime;
@@ -8643,15 +8659,15 @@
8643
8659
  }
8644
8660
  return format2;
8645
8661
  }
8646
- const [name$O, bem$N] = createNamespace("count-down");
8662
+ const [name$P, bem$O] = createNamespace("count-down");
8647
8663
  const countDownProps = {
8648
8664
  time: makeNumericProp(0),
8649
8665
  format: makeStringProp("HH:mm:ss"),
8650
8666
  autoStart: truthProp,
8651
8667
  millisecond: Boolean
8652
8668
  };
8653
- var stdin_default$X = vue.defineComponent({
8654
- name: name$O,
8669
+ var stdin_default$Y = vue.defineComponent({
8670
+ name: name$P,
8655
8671
  props: countDownProps,
8656
8672
  emits: ["change", "finish"],
8657
8673
  setup(props, {
@@ -8686,11 +8702,11 @@
8686
8702
  });
8687
8703
  return () => vue.createVNode("div", {
8688
8704
  "role": "timer",
8689
- "class": bem$N()
8705
+ "class": bem$O()
8690
8706
  }, [slots.default ? slots.default(current2.value) : timeText.value]);
8691
8707
  }
8692
8708
  });
8693
- const CountDown = withInstall(stdin_default$X);
8709
+ const CountDown = withInstall(stdin_default$Y);
8694
8710
  function getDate(timeStamp) {
8695
8711
  const date = new Date(timeStamp * 1e3);
8696
8712
  return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
@@ -8699,9 +8715,9 @@
8699
8715
  }
8700
8716
  const formatDiscount = (discount) => (discount / 10).toFixed(discount % 10 === 0 ? 0 : 1);
8701
8717
  const formatAmount = (amount) => (amount / 100).toFixed(amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2);
8702
- const [name$N, bem$M, t$b] = createNamespace("coupon");
8703
- var stdin_default$W = vue.defineComponent({
8704
- name: name$N,
8718
+ const [name$O, bem$N, t$b] = createNamespace("coupon");
8719
+ var stdin_default$X = vue.defineComponent({
8720
+ name: name$O,
8705
8721
  props: {
8706
8722
  chosen: Boolean,
8707
8723
  coupon: makeRequiredProp(Object),
@@ -8745,34 +8761,34 @@
8745
8761
  } = props;
8746
8762
  const description = disabled && coupon.reason || coupon.description;
8747
8763
  return vue.createVNode("div", {
8748
- "class": bem$M({
8764
+ "class": bem$N({
8749
8765
  disabled
8750
8766
  })
8751
8767
  }, [vue.createVNode("div", {
8752
- "class": bem$M("content")
8768
+ "class": bem$N("content")
8753
8769
  }, [vue.createVNode("div", {
8754
- "class": bem$M("head")
8770
+ "class": bem$N("head")
8755
8771
  }, [vue.createVNode("h2", {
8756
- "class": bem$M("amount")
8772
+ "class": bem$N("amount")
8757
8773
  }, [faceAmount.value]), vue.createVNode("p", {
8758
- "class": bem$M("condition")
8774
+ "class": bem$N("condition")
8759
8775
  }, [coupon.condition || conditionMessage.value])]), vue.createVNode("div", {
8760
- "class": bem$M("body")
8776
+ "class": bem$N("body")
8761
8777
  }, [vue.createVNode("p", {
8762
- "class": bem$M("name")
8778
+ "class": bem$N("name")
8763
8779
  }, [coupon.name]), vue.createVNode("p", {
8764
- "class": bem$M("valid")
8780
+ "class": bem$N("valid")
8765
8781
  }, [validPeriod.value]), !disabled && vue.createVNode(Checkbox, {
8766
- "class": bem$M("corner"),
8782
+ "class": bem$N("corner"),
8767
8783
  "modelValue": chosen
8768
8784
  }, null)])]), description && vue.createVNode("p", {
8769
- "class": bem$M("description")
8785
+ "class": bem$N("description")
8770
8786
  }, [description])]);
8771
8787
  };
8772
8788
  }
8773
8789
  });
8774
- const Coupon = withInstall(stdin_default$W);
8775
- const [name$M, bem$L, t$a] = createNamespace("coupon-cell");
8790
+ const Coupon = withInstall(stdin_default$X);
8791
+ const [name$N, bem$M, t$a] = createNamespace("coupon-cell");
8776
8792
  const couponCellProps = {
8777
8793
  title: String,
8778
8794
  border: truthProp,
@@ -8800,34 +8816,34 @@
8800
8816
  }
8801
8817
  return coupons.length === 0 ? t$a("noCoupon") : t$a("count", coupons.length);
8802
8818
  }
8803
- var stdin_default$V = vue.defineComponent({
8804
- name: name$M,
8819
+ var stdin_default$W = vue.defineComponent({
8820
+ name: name$N,
8805
8821
  props: couponCellProps,
8806
8822
  setup(props) {
8807
8823
  return () => {
8808
8824
  const selected = props.coupons[+props.chosenCoupon];
8809
8825
  return vue.createVNode(Cell, {
8810
- "class": bem$L(),
8826
+ "class": bem$M(),
8811
8827
  "value": formatValue(props),
8812
8828
  "title": props.title || t$a("title"),
8813
8829
  "border": props.border,
8814
8830
  "isLink": props.editable,
8815
- "valueClass": bem$L("value", {
8831
+ "valueClass": bem$M("value", {
8816
8832
  selected
8817
8833
  })
8818
8834
  }, null);
8819
8835
  };
8820
8836
  }
8821
8837
  });
8822
- const CouponCell = withInstall(stdin_default$V);
8823
- const [name$L, bem$K] = createNamespace("empty");
8838
+ const CouponCell = withInstall(stdin_default$W);
8839
+ const [name$M, bem$L] = createNamespace("empty");
8824
8840
  const emptyProps = {
8825
8841
  image: makeStringProp("default"),
8826
8842
  imageSize: [Number, String, Array],
8827
8843
  description: String
8828
8844
  };
8829
- var stdin_default$U = vue.defineComponent({
8830
- name: name$L,
8845
+ var stdin_default$V = vue.defineComponent({
8846
+ name: name$M,
8831
8847
  props: emptyProps,
8832
8848
  setup(props, {
8833
8849
  slots
@@ -8836,14 +8852,14 @@
8836
8852
  const description = slots.description ? slots.description() : props.description;
8837
8853
  if (description) {
8838
8854
  return vue.createVNode("p", {
8839
- "class": bem$K("description")
8855
+ "class": bem$L("description")
8840
8856
  }, [description]);
8841
8857
  }
8842
8858
  };
8843
8859
  const renderBottom = () => {
8844
8860
  if (slots.default) {
8845
8861
  return vue.createVNode("div", {
8846
- "class": bem$K("bottom")
8862
+ "class": bem$L("bottom")
8847
8863
  }, [slots.default()]);
8848
8864
  }
8849
8865
  };
@@ -9128,15 +9144,15 @@
9128
9144
  }, null);
9129
9145
  };
9130
9146
  return () => vue.createVNode("div", {
9131
- "class": bem$K()
9147
+ "class": bem$L()
9132
9148
  }, [vue.createVNode("div", {
9133
- "class": bem$K("image"),
9149
+ "class": bem$L("image"),
9134
9150
  "style": getSizeStyle(props.imageSize)
9135
9151
  }, [renderImage()]), renderDescription(), renderBottom()]);
9136
9152
  }
9137
9153
  });
9138
- const Empty = withInstall(stdin_default$U);
9139
- const [name$K, bem$J, t$9] = createNamespace("coupon-list");
9154
+ const Empty = withInstall(stdin_default$V);
9155
+ const [name$L, bem$K, t$9] = createNamespace("coupon-list");
9140
9156
  const couponListProps = {
9141
9157
  code: makeStringProp(""),
9142
9158
  coupons: makeArrayProp(),
@@ -9157,8 +9173,8 @@
9157
9173
  exchangeButtonLoading: Boolean,
9158
9174
  exchangeButtonDisabled: Boolean
9159
9175
  };
9160
- var stdin_default$T = vue.defineComponent({
9161
- name: name$K,
9176
+ var stdin_default$U = vue.defineComponent({
9177
+ name: name$L,
9162
9178
  props: couponListProps,
9163
9179
  emits: ["change", "exchange", "update:code"],
9164
9180
  setup(props, {
@@ -9176,7 +9192,7 @@
9176
9192
  const TABS_HEIGHT = 44;
9177
9193
  const rootHeight = useRect(root).height;
9178
9194
  const headerHeight = useRect(barRef).height + TABS_HEIGHT;
9179
- listHeight.value = (rootHeight > headerHeight ? rootHeight : windowHeight.value) - headerHeight;
9195
+ listHeight.value = (rootHeight > headerHeight ? rootHeight : windowHeight$1.value) - headerHeight;
9180
9196
  };
9181
9197
  const onExchange = () => {
9182
9198
  emit("exchange", currentCode.value);
@@ -9194,26 +9210,26 @@
9194
9210
  "image": props.emptyImage
9195
9211
  }, {
9196
9212
  default: () => [vue.createVNode("p", {
9197
- "class": bem$J("empty-tip")
9213
+ "class": bem$K("empty-tip")
9198
9214
  }, [t$9("noCoupon")])]
9199
9215
  });
9200
9216
  const renderExchangeBar = () => {
9201
9217
  if (props.showExchangeBar) {
9202
9218
  return vue.createVNode("div", {
9203
9219
  "ref": barRef,
9204
- "class": bem$J("exchange-bar")
9220
+ "class": bem$K("exchange-bar")
9205
9221
  }, [vue.createVNode(Field, {
9206
9222
  "modelValue": currentCode.value,
9207
9223
  "onUpdate:modelValue": ($event) => currentCode.value = $event,
9208
9224
  "clearable": true,
9209
9225
  "border": false,
9210
- "class": bem$J("field"),
9226
+ "class": bem$K("field"),
9211
9227
  "placeholder": props.inputPlaceholder || t$9("placeholder"),
9212
9228
  "maxlength": "20"
9213
9229
  }, null), vue.createVNode(Button, {
9214
9230
  "plain": true,
9215
9231
  "type": "primary",
9216
- "class": bem$J("exchange"),
9232
+ "class": bem$K("exchange"),
9217
9233
  "text": props.exchangeButtonText || t$9("exchange"),
9218
9234
  "loading": props.exchangeButtonLoading,
9219
9235
  "disabled": buttonDisabled.value,
@@ -9233,7 +9249,7 @@
9233
9249
  default: () => {
9234
9250
  var _a;
9235
9251
  return [vue.createVNode("div", {
9236
- "class": bem$J("list", {
9252
+ "class": bem$K("list", {
9237
9253
  "with-bottom": props.showCloseButton
9238
9254
  }),
9239
9255
  "style": {
@@ -9262,7 +9278,7 @@
9262
9278
  default: () => {
9263
9279
  var _a;
9264
9280
  return [vue.createVNode("div", {
9265
- "class": bem$J("list", {
9281
+ "class": bem$K("list", {
9266
9282
  "with-bottom": props.showCloseButton
9267
9283
  }),
9268
9284
  "style": {
@@ -9280,7 +9296,7 @@
9280
9296
  vue.watch(() => props.code, (value) => {
9281
9297
  currentCode.value = value;
9282
9298
  });
9283
- vue.watch(windowHeight, updateListHeight);
9299
+ vue.watch(windowHeight$1, updateListHeight);
9284
9300
  vue.watch(currentCode, (value) => emit("update:code", value));
9285
9301
  vue.watch(() => props.displayedCouponIndex, scrollToCoupon);
9286
9302
  vue.onMounted(() => {
@@ -9289,28 +9305,28 @@
9289
9305
  });
9290
9306
  return () => vue.createVNode("div", {
9291
9307
  "ref": root,
9292
- "class": bem$J()
9308
+ "class": bem$K()
9293
9309
  }, [renderExchangeBar(), vue.createVNode(Tabs, {
9294
9310
  "active": activeTab.value,
9295
9311
  "onUpdate:active": ($event) => activeTab.value = $event,
9296
- "class": bem$J("tab")
9312
+ "class": bem$K("tab")
9297
9313
  }, {
9298
9314
  default: () => [renderCouponTab(), renderDisabledTab()]
9299
9315
  }), vue.createVNode("div", {
9300
- "class": bem$J("bottom")
9316
+ "class": bem$K("bottom")
9301
9317
  }, [vue.withDirectives(vue.createVNode(Button, {
9302
9318
  "round": true,
9303
9319
  "block": true,
9304
9320
  "type": "primary",
9305
- "class": bem$J("close"),
9321
+ "class": bem$K("close"),
9306
9322
  "text": props.closeButtonText || t$9("close"),
9307
9323
  "onClick": () => emit("change", -1)
9308
9324
  }, null), [[vue.vShow, props.showCloseButton]])])]);
9309
9325
  }
9310
9326
  });
9311
- const CouponList = withInstall(stdin_default$T);
9327
+ const CouponList = withInstall(stdin_default$U);
9312
9328
  const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
9313
- const [name$J] = createNamespace("date-picker");
9329
+ const [name$K] = createNamespace("date-picker");
9314
9330
  const datePickerProps = extend({}, sharedProps, {
9315
9331
  columnsType: {
9316
9332
  type: Array,
@@ -9327,8 +9343,8 @@
9327
9343
  validator: isDate
9328
9344
  }
9329
9345
  });
9330
- var stdin_default$S = vue.defineComponent({
9331
- name: name$J,
9346
+ var stdin_default$T = vue.defineComponent({
9347
+ name: name$K,
9332
9348
  props: datePickerProps,
9333
9349
  emits: ["confirm", "cancel", "change", "update:modelValue"],
9334
9350
  setup(props, {
@@ -9418,8 +9434,8 @@
9418
9434
  }, pick(props, pickerInheritKeys)), slots);
9419
9435
  }
9420
9436
  });
9421
- const DatePicker = withInstall(stdin_default$S);
9422
- const [name$I, bem$I, t$8] = createNamespace("dialog");
9437
+ const DatePicker = withInstall(stdin_default$T);
9438
+ const [name$J, bem$J, t$8] = createNamespace("dialog");
9423
9439
  const dialogProps = extend({}, popupSharedProps, {
9424
9440
  title: String,
9425
9441
  theme: String,
@@ -9442,8 +9458,8 @@
9442
9458
  closeOnClickOverlay: Boolean
9443
9459
  });
9444
9460
  const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
9445
- var stdin_default$R = vue.defineComponent({
9446
- name: name$I,
9461
+ var stdin_default$S = vue.defineComponent({
9462
+ name: name$J,
9447
9463
  props: dialogProps,
9448
9464
  emits: ["confirm", "cancel", "keydown", "update:show"],
9449
9465
  setup(props, {
@@ -9500,7 +9516,7 @@
9500
9516
  const title = slots.title ? slots.title() : props.title;
9501
9517
  if (title) {
9502
9518
  return vue.createVNode("div", {
9503
- "class": bem$I("header", {
9519
+ "class": bem$J("header", {
9504
9520
  isolated: !props.message && !slots.default
9505
9521
  })
9506
9522
  }, [title]);
@@ -9512,7 +9528,7 @@
9512
9528
  allowHtml,
9513
9529
  messageAlign
9514
9530
  } = props;
9515
- const classNames = bem$I("message", {
9531
+ const classNames = bem$J("message", {
9516
9532
  "has-title": hasTitle,
9517
9533
  [messageAlign]: messageAlign
9518
9534
  });
@@ -9530,7 +9546,7 @@
9530
9546
  const renderContent = () => {
9531
9547
  if (slots.default) {
9532
9548
  return vue.createVNode("div", {
9533
- "class": bem$I("content")
9549
+ "class": bem$J("content")
9534
9550
  }, [slots.default()]);
9535
9551
  }
9536
9552
  const {
@@ -9542,18 +9558,18 @@
9542
9558
  const hasTitle = !!(title || slots.title);
9543
9559
  return vue.createVNode("div", {
9544
9560
  "key": allowHtml ? 1 : 0,
9545
- "class": bem$I("content", {
9561
+ "class": bem$J("content", {
9546
9562
  isolated: !hasTitle
9547
9563
  })
9548
9564
  }, [renderMessage(hasTitle)]);
9549
9565
  }
9550
9566
  };
9551
9567
  const renderButtons = () => vue.createVNode("div", {
9552
- "class": [BORDER_TOP, bem$I("footer")]
9568
+ "class": [BORDER_TOP, bem$J("footer")]
9553
9569
  }, [props.showCancelButton && vue.createVNode(Button, {
9554
9570
  "size": "large",
9555
9571
  "text": props.cancelButtonText || t$8("cancel"),
9556
- "class": bem$I("cancel"),
9572
+ "class": bem$J("cancel"),
9557
9573
  "style": {
9558
9574
  color: props.cancelButtonColor
9559
9575
  },
@@ -9563,7 +9579,7 @@
9563
9579
  }, null), props.showConfirmButton && vue.createVNode(Button, {
9564
9580
  "size": "large",
9565
9581
  "text": props.confirmButtonText || t$8("confirm"),
9566
- "class": [bem$I("confirm"), {
9582
+ "class": [bem$J("confirm"), {
9567
9583
  [BORDER_LEFT]: props.showCancelButton
9568
9584
  }],
9569
9585
  "style": {
@@ -9574,12 +9590,12 @@
9574
9590
  "onClick": onConfirm
9575
9591
  }, null)]);
9576
9592
  const renderRoundButtons = () => vue.createVNode(ActionBar, {
9577
- "class": bem$I("footer")
9593
+ "class": bem$J("footer")
9578
9594
  }, {
9579
9595
  default: () => [props.showCancelButton && vue.createVNode(ActionBarButton, {
9580
9596
  "type": "warning",
9581
9597
  "text": props.cancelButtonText || t$8("cancel"),
9582
- "class": bem$I("cancel"),
9598
+ "class": bem$J("cancel"),
9583
9599
  "color": props.cancelButtonColor,
9584
9600
  "loading": loading.cancel,
9585
9601
  "disabled": props.cancelButtonDisabled,
@@ -9587,7 +9603,7 @@
9587
9603
  }, null), props.showConfirmButton && vue.createVNode(ActionBarButton, {
9588
9604
  "type": "danger",
9589
9605
  "text": props.confirmButtonText || t$8("confirm"),
9590
- "class": bem$I("confirm"),
9606
+ "class": bem$J("confirm"),
9591
9607
  "color": props.confirmButtonColor,
9592
9608
  "loading": loading.confirm,
9593
9609
  "disabled": props.confirmButtonDisabled,
@@ -9611,7 +9627,7 @@
9611
9627
  return vue.createVNode(Popup, vue.mergeProps({
9612
9628
  "ref": root,
9613
9629
  "role": "dialog",
9614
- "class": [bem$I([theme]), className],
9630
+ "class": [bem$J([theme]), className],
9615
9631
  "style": {
9616
9632
  width: addUnit(width2)
9617
9633
  },
@@ -9661,7 +9677,7 @@
9661
9677
  state,
9662
9678
  toggle
9663
9679
  } = usePopupState();
9664
- return () => vue.createVNode(stdin_default$R, vue.mergeProps(state, {
9680
+ return () => vue.createVNode(stdin_default$S, vue.mergeProps(state, {
9665
9681
  "onUpdate:show": toggle
9666
9682
  }), null);
9667
9683
  }
@@ -9699,16 +9715,16 @@
9699
9715
  instance$2.toggle(false);
9700
9716
  }
9701
9717
  };
9702
- const Dialog = withInstall(stdin_default$R);
9703
- const [name$H, bem$H] = createNamespace("divider");
9718
+ const Dialog = withInstall(stdin_default$S);
9719
+ const [name$I, bem$I] = createNamespace("divider");
9704
9720
  const dividerProps = {
9705
9721
  dashed: Boolean,
9706
9722
  hairline: truthProp,
9707
9723
  vertical: Boolean,
9708
9724
  contentPosition: makeStringProp("center")
9709
9725
  };
9710
- var stdin_default$Q = vue.defineComponent({
9711
- name: name$H,
9726
+ var stdin_default$R = vue.defineComponent({
9727
+ name: name$I,
9712
9728
  props: dividerProps,
9713
9729
  setup(props, {
9714
9730
  slots
@@ -9717,7 +9733,7 @@
9717
9733
  var _a;
9718
9734
  return vue.createVNode("div", {
9719
9735
  "role": "separator",
9720
- "class": bem$H({
9736
+ "class": bem$I({
9721
9737
  dashed: props.dashed,
9722
9738
  hairline: props.hairline,
9723
9739
  vertical: props.vertical,
@@ -9727,8 +9743,8 @@
9727
9743
  };
9728
9744
  }
9729
9745
  });
9730
- const Divider = withInstall(stdin_default$Q);
9731
- const [name$G, bem$G] = createNamespace("dropdown-menu");
9746
+ const Divider = withInstall(stdin_default$R);
9747
+ const [name$H, bem$H] = createNamespace("dropdown-menu");
9732
9748
  const dropdownMenuProps = {
9733
9749
  overlay: truthProp,
9734
9750
  zIndex: numericProp,
@@ -9738,9 +9754,9 @@
9738
9754
  closeOnClickOutside: truthProp,
9739
9755
  closeOnClickOverlay: truthProp
9740
9756
  };
9741
- const DROPDOWN_KEY = Symbol(name$G);
9742
- var stdin_default$P = vue.defineComponent({
9743
- name: name$G,
9757
+ const DROPDOWN_KEY = Symbol(name$H);
9758
+ var stdin_default$Q = vue.defineComponent({
9759
+ name: name$H,
9744
9760
  props: dropdownMenuProps,
9745
9761
  setup(props, {
9746
9762
  slots
@@ -9762,11 +9778,14 @@
9762
9778
  };
9763
9779
  }
9764
9780
  });
9781
+ const close = () => {
9782
+ children.forEach((item) => {
9783
+ item.toggle(false);
9784
+ });
9785
+ };
9765
9786
  const onClickAway = () => {
9766
9787
  if (props.closeOnClickOutside) {
9767
- children.forEach((item) => {
9768
- item.toggle(false);
9769
- });
9788
+ close();
9770
9789
  }
9771
9790
  };
9772
9791
  const updateOffset = () => {
@@ -9775,7 +9794,7 @@
9775
9794
  if (props.direction === "down") {
9776
9795
  offset2.value = rect.bottom;
9777
9796
  } else {
9778
- offset2.value = windowHeight.value - rect.top;
9797
+ offset2.value = windowHeight$1.value - rect.top;
9779
9798
  }
9780
9799
  }
9781
9800
  };
@@ -9807,7 +9826,7 @@
9807
9826
  "id": `${id}-${index}`,
9808
9827
  "role": "button",
9809
9828
  "tabindex": disabled ? void 0 : 0,
9810
- "class": [bem$G("item", {
9829
+ "class": [bem$H("item", {
9811
9830
  disabled
9812
9831
  }), {
9813
9832
  [HAPTICS_FEEDBACK]: !disabled
@@ -9818,7 +9837,7 @@
9818
9837
  }
9819
9838
  }
9820
9839
  }, [vue.createVNode("span", {
9821
- "class": [bem$G("title", {
9840
+ "class": [bem$H("title", {
9822
9841
  down: showPopup === (props.direction === "down"),
9823
9842
  active: showPopup
9824
9843
  }), titleClass],
@@ -9829,6 +9848,9 @@
9829
9848
  "class": "van-ellipsis"
9830
9849
  }, [item.renderTitle()])])]);
9831
9850
  };
9851
+ useExpose({
9852
+ close
9853
+ });
9832
9854
  linkChildren({
9833
9855
  id,
9834
9856
  props,
@@ -9844,18 +9866,18 @@
9844
9866
  var _a;
9845
9867
  return vue.createVNode("div", {
9846
9868
  "ref": root,
9847
- "class": bem$G()
9869
+ "class": bem$H()
9848
9870
  }, [vue.createVNode("div", {
9849
9871
  "ref": barRef,
9850
9872
  "style": barStyle.value,
9851
- "class": bem$G("bar", {
9873
+ "class": bem$H("bar", {
9852
9874
  opened: opened.value
9853
9875
  })
9854
9876
  }, [children.map(renderTitle)]), (_a = slots.default) == null ? void 0 : _a.call(slots)]);
9855
9877
  };
9856
9878
  }
9857
9879
  });
9858
- const [name$F, bem$F] = createNamespace("dropdown-item");
9880
+ const [name$G, bem$G] = createNamespace("dropdown-item");
9859
9881
  const dropdownItemProps = {
9860
9882
  title: String,
9861
9883
  options: makeArrayProp(),
@@ -9865,8 +9887,8 @@
9865
9887
  modelValue: unknownProp,
9866
9888
  titleClass: unknownProp
9867
9889
  };
9868
- var stdin_default$O = vue.defineComponent({
9869
- name: name$F,
9890
+ var stdin_default$P = vue.defineComponent({
9891
+ name: name$G,
9870
9892
  inheritAttrs: false,
9871
9893
  props: dropdownItemProps,
9872
9894
  emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
@@ -9936,7 +9958,7 @@
9936
9958
  const renderIcon = () => {
9937
9959
  if (active) {
9938
9960
  return vue.createVNode(Icon, {
9939
- "class": bem$F("icon"),
9961
+ "class": bem$G("icon"),
9940
9962
  "color": activeColor,
9941
9963
  "name": "success"
9942
9964
  }, null);
@@ -9947,7 +9969,7 @@
9947
9969
  "key": option.value,
9948
9970
  "icon": option.icon,
9949
9971
  "title": option.text,
9950
- "class": bem$F("option", {
9972
+ "class": bem$G("option", {
9951
9973
  active
9952
9974
  }),
9953
9975
  "style": {
@@ -9979,13 +10001,13 @@
9979
10001
  }
9980
10002
  return vue.withDirectives(vue.createVNode("div", vue.mergeProps({
9981
10003
  "style": style,
9982
- "class": bem$F([direction]),
10004
+ "class": bem$G([direction]),
9983
10005
  "onClick": onClickWrapper
9984
10006
  }, attrs), [vue.createVNode(Popup, {
9985
10007
  "show": state.showPopup,
9986
10008
  "onUpdate:show": ($event) => state.showPopup = $event,
9987
10009
  "role": "menu",
9988
- "class": bem$F("content"),
10010
+ "class": bem$G("content"),
9989
10011
  "overlay": overlay,
9990
10012
  "position": direction === "down" ? "top" : "bottom",
9991
10013
  "duration": state.transition ? duration : 0,
@@ -10023,8 +10045,124 @@
10023
10045
  };
10024
10046
  }
10025
10047
  });
10026
- const DropdownItem = withInstall(stdin_default$O);
10027
- const DropdownMenu = withInstall(stdin_default$P);
10048
+ const DropdownItem = withInstall(stdin_default$P);
10049
+ const DropdownMenu = withInstall(stdin_default$Q);
10050
+ const {
10051
+ height: windowHeight
10052
+ } = useWindowSize();
10053
+ const floatingPanelProps = {
10054
+ height: makeNumericProp(0),
10055
+ anchors: makeArrayProp(),
10056
+ duration: makeNumericProp(0.2),
10057
+ contentDraggable: truthProp,
10058
+ safeAreaInsetBottom: truthProp
10059
+ };
10060
+ const [name$F, bem$F] = createNamespace("floating-panel");
10061
+ const DAMP = 0.2;
10062
+ var stdin_default$O = vue.defineComponent({
10063
+ name: name$F,
10064
+ props: floatingPanelProps,
10065
+ emits: ["heightChange", "update:height"],
10066
+ setup(props, {
10067
+ emit,
10068
+ slots
10069
+ }) {
10070
+ const rootRef = vue.ref();
10071
+ const contentRef = vue.ref();
10072
+ const height2 = useSyncPropRef(() => +props.height, (value) => emit("update:height", value));
10073
+ const boundary = vue.computed(() => {
10074
+ var _a, _b;
10075
+ return {
10076
+ min: (_a = props.anchors[0]) != null ? _a : 100,
10077
+ max: (_b = props.anchors[props.anchors.length - 1]) != null ? _b : Math.round(windowHeight.value * 0.6)
10078
+ };
10079
+ });
10080
+ const anchors = vue.computed(() => props.anchors.length >= 2 ? props.anchors : [boundary.value.min, boundary.value.max]);
10081
+ const dragging = vue.ref(false);
10082
+ const rootStyle = vue.computed(() => ({
10083
+ height: addUnit(boundary.value.max),
10084
+ transform: `translateY(calc(100% + ${addUnit(-height2.value)}))`,
10085
+ transition: !dragging.value ? `transform ${props.duration}s` : "none"
10086
+ }));
10087
+ const ease = (moveY) => {
10088
+ const absDistance = Math.abs(moveY);
10089
+ const {
10090
+ min,
10091
+ max
10092
+ } = boundary.value;
10093
+ if (absDistance > max) {
10094
+ return -(max + (absDistance - max) * DAMP);
10095
+ }
10096
+ if (absDistance < min) {
10097
+ return -(min - (min - absDistance) * DAMP);
10098
+ }
10099
+ return moveY;
10100
+ };
10101
+ const closest = (arr, target) => arr.reduce((pre, cur) => Math.abs(pre - target) < Math.abs(cur - target) ? pre : cur);
10102
+ let startY;
10103
+ const touch = useTouch();
10104
+ const onTouchstart = (e) => {
10105
+ touch.start(e);
10106
+ dragging.value = true;
10107
+ startY = -height2.value;
10108
+ };
10109
+ const onTouchmove = (e) => {
10110
+ var _a;
10111
+ touch.move(e);
10112
+ const target = e.target;
10113
+ if (contentRef.value === target || ((_a = contentRef.value) == null ? void 0 : _a.contains(target))) {
10114
+ if (!props.contentDraggable)
10115
+ return;
10116
+ if (-startY < boundary.value.max) {
10117
+ if (e.cancelable)
10118
+ e.preventDefault();
10119
+ e.stopPropagation();
10120
+ } else if (!(contentRef.value.scrollTop <= 0 && touch.deltaY.value > 0)) {
10121
+ return;
10122
+ }
10123
+ }
10124
+ const moveY = touch.deltaY.value + startY;
10125
+ height2.value = -ease(moveY);
10126
+ };
10127
+ const onTouchend = () => {
10128
+ dragging.value = false;
10129
+ height2.value = closest(anchors.value, height2.value);
10130
+ if (height2.value !== -startY) {
10131
+ emit("heightChange", {
10132
+ height: height2.value
10133
+ });
10134
+ }
10135
+ };
10136
+ vue.watch(boundary, () => {
10137
+ height2.value = closest(anchors.value, height2.value);
10138
+ }, {
10139
+ immediate: true
10140
+ });
10141
+ useLockScroll(rootRef, () => true);
10142
+ return () => {
10143
+ var _a;
10144
+ return vue.createVNode("div", {
10145
+ "class": [bem$F(), {
10146
+ "van-safe-area-bottom": props.safeAreaInsetBottom
10147
+ }],
10148
+ "ref": rootRef,
10149
+ "style": rootStyle.value,
10150
+ "onTouchstartPassive": onTouchstart,
10151
+ "onTouchmove": onTouchmove,
10152
+ "onTouchend": onTouchend,
10153
+ "onTouchcancel": onTouchend
10154
+ }, [vue.createVNode("div", {
10155
+ "class": bem$F("header")
10156
+ }, [vue.createVNode("div", {
10157
+ "class": bem$F("header-bar")
10158
+ }, null)]), vue.createVNode("div", {
10159
+ "class": bem$F("content"),
10160
+ "ref": contentRef
10161
+ }, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]);
10162
+ };
10163
+ }
10164
+ });
10165
+ const FloatingPanel = withInstall(stdin_default$O);
10028
10166
  const [name$E, bem$E] = createNamespace("grid");
10029
10167
  const gridProps = {
10030
10168
  square: Boolean,
@@ -10636,7 +10774,7 @@
10636
10774
  swipeTo
10637
10775
  });
10638
10776
  vue.onMounted(resize);
10639
- vue.watch([windowWidth, windowHeight], resize);
10777
+ vue.watch([windowWidth, windowHeight$1], resize);
10640
10778
  vue.watch(() => props.startPosition, (value) => setActive(+value));
10641
10779
  vue.watch(() => props.show, (value) => {
10642
10780
  const {
@@ -12017,7 +12155,7 @@
12017
12155
  }
12018
12156
  });
12019
12157
  const PasswordInput = withInstall(stdin_default$A);
12020
- const PickerGroup = withInstall(stdin_default$1v);
12158
+ const PickerGroup = withInstall(stdin_default$1w);
12021
12159
  function getWindow(node) {
12022
12160
  if (node == null) {
12023
12161
  return window;
@@ -13609,7 +13747,7 @@
13609
13747
  }
13610
13748
  });
13611
13749
  const Rate = withInstall(stdin_default$w);
13612
- const Row = withInstall(stdin_default$12);
13750
+ const Row = withInstall(stdin_default$13);
13613
13751
  const [name$n, bem$m, t$4] = createNamespace("search");
13614
13752
  const searchProps = extend({}, fieldSharedProps, {
13615
13753
  label: String,
@@ -14438,17 +14576,25 @@
14438
14576
  return bem$c("button-wrapper", props.reverse ? "left" : "right");
14439
14577
  };
14440
14578
  const renderButtonContent = (value, index) => {
14579
+ const dragging = dragStatus.value === "dragging";
14441
14580
  if (typeof index === "number") {
14442
14581
  const slot = slots[index === 0 ? "left-button" : "right-button"];
14582
+ let dragIndex;
14583
+ if (dragging && Array.isArray(current2)) {
14584
+ dragIndex = current2[0] > current2[1] ? buttonIndex ^ 1 : buttonIndex;
14585
+ }
14443
14586
  if (slot) {
14444
14587
  return slot({
14445
- value
14588
+ value,
14589
+ dragging,
14590
+ dragIndex
14446
14591
  });
14447
14592
  }
14448
14593
  }
14449
14594
  if (slots.button) {
14450
14595
  return slots.button({
14451
- value
14596
+ value,
14597
+ dragging
14452
14598
  });
14453
14599
  }
14454
14600
  return vue.createVNode("div", {
@@ -15518,6 +15664,8 @@
15518
15664
  });
15519
15665
  const TextEllipsis = withInstall(stdin_default$9);
15520
15666
  const [name$3] = createNamespace("time-picker");
15667
+ const validateTime = (val) => /^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/.test(val);
15668
+ const fullColumns = ["hour", "minute", "second"];
15521
15669
  const timePickerProps = extend({}, sharedProps, {
15522
15670
  minHour: makeNumericProp(0),
15523
15671
  maxHour: makeNumericProp(23),
@@ -15525,10 +15673,19 @@
15525
15673
  maxMinute: makeNumericProp(59),
15526
15674
  minSecond: makeNumericProp(0),
15527
15675
  maxSecond: makeNumericProp(59),
15676
+ minTime: {
15677
+ type: String,
15678
+ validator: validateTime
15679
+ },
15680
+ maxTime: {
15681
+ type: String,
15682
+ validator: validateTime
15683
+ },
15528
15684
  columnsType: {
15529
15685
  type: Array,
15530
15686
  default: () => ["hour", "minute"]
15531
- }
15687
+ },
15688
+ filter: Function
15532
15689
  });
15533
15690
  var stdin_default$8 = vue.defineComponent({
15534
15691
  name: name$3,
@@ -15539,22 +15696,63 @@
15539
15696
  slots
15540
15697
  }) {
15541
15698
  const currentValues = vue.ref(props.modelValue);
15542
- const columns = vue.computed(() => props.columnsType.map((type) => {
15543
- const {
15544
- filter,
15545
- formatter
15699
+ const getValidTime = (time) => {
15700
+ const timeLimitArr = time.split(":");
15701
+ return fullColumns.map((col, i) => props.columnsType.includes(col) ? timeLimitArr[i] : "00");
15702
+ };
15703
+ const columns = vue.computed(() => {
15704
+ let {
15705
+ minHour,
15706
+ maxHour,
15707
+ minMinute,
15708
+ maxMinute,
15709
+ minSecond,
15710
+ maxSecond
15546
15711
  } = props;
15547
- switch (type) {
15548
- case "hour":
15549
- return genOptions(+props.minHour, +props.maxHour, type, formatter, filter);
15550
- case "minute":
15551
- return genOptions(+props.minMinute, +props.maxMinute, type, formatter, filter);
15552
- case "second":
15553
- return genOptions(+props.minSecond, +props.maxSecond, type, formatter, filter);
15554
- default:
15555
- return [];
15712
+ if (props.minTime || props.maxTime) {
15713
+ const fullTime = {
15714
+ hour: 0,
15715
+ minute: 0,
15716
+ second: 0
15717
+ };
15718
+ props.columnsType.forEach((col, i) => {
15719
+ var _a;
15720
+ fullTime[col] = (_a = currentValues.value[i]) != null ? _a : 0;
15721
+ });
15722
+ const {
15723
+ hour,
15724
+ minute
15725
+ } = fullTime;
15726
+ if (props.minTime) {
15727
+ const [minH, minM, minS] = getValidTime(props.minTime);
15728
+ minHour = minH;
15729
+ minMinute = +hour <= +minHour ? minM : "00";
15730
+ minSecond = +hour <= +minHour && +minute <= +minMinute ? minS : "00";
15731
+ }
15732
+ if (props.maxTime) {
15733
+ const [maxH, maxM, maxS] = getValidTime(props.maxTime);
15734
+ maxHour = maxH;
15735
+ maxMinute = +hour >= +maxHour ? maxM : "59";
15736
+ maxSecond = +hour >= +maxHour && +minute >= +maxMinute ? maxS : "59";
15737
+ }
15556
15738
  }
15557
- }));
15739
+ return props.columnsType.map((type) => {
15740
+ const {
15741
+ filter,
15742
+ formatter
15743
+ } = props;
15744
+ switch (type) {
15745
+ case "hour":
15746
+ return genOptions(+minHour, +maxHour, type, formatter, filter, currentValues.value);
15747
+ case "minute":
15748
+ return genOptions(+minMinute, +maxMinute, type, formatter, filter, currentValues.value);
15749
+ case "second":
15750
+ return genOptions(+minSecond, +maxSecond, type, formatter, filter, currentValues.value);
15751
+ default:
15752
+ return [];
15753
+ }
15754
+ });
15755
+ });
15558
15756
  vue.watch(currentValues, (newValues) => {
15559
15757
  if (!isSameValue(newValues, props.modelValue)) {
15560
15758
  emit("update:modelValue", newValues);
@@ -17093,7 +17291,7 @@
17093
17291
  });
17094
17292
  }
17095
17293
  };
17096
- const version = "4.4.1";
17294
+ const version = "4.5.0";
17097
17295
  function install(app) {
17098
17296
  const components = [
17099
17297
  ActionBar,
@@ -17133,6 +17331,7 @@
17133
17331
  DropdownMenu,
17134
17332
  Empty,
17135
17333
  Field,
17334
+ FloatingPanel,
17136
17335
  Form,
17137
17336
  Grid,
17138
17337
  GridItem,
@@ -17244,6 +17443,7 @@
17244
17443
  exports2.DropdownMenu = DropdownMenu;
17245
17444
  exports2.Empty = Empty;
17246
17445
  exports2.Field = Field;
17446
+ exports2.FloatingPanel = FloatingPanel;
17247
17447
  exports2.Form = Form;
17248
17448
  exports2.Grid = Grid;
17249
17449
  exports2.GridItem = GridItem;