zartui 3.1.18 → 3.1.19

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 (88) hide show
  1. package/README.md +23 -23
  2. package/es/calendar/Calendar.mjs +1 -2
  3. package/es/date-time-picker/DateTimePicker.mjs +15 -0
  4. package/es/dialog/index.css +1 -1
  5. package/es/drawer-select/DrawerSelect.d.ts +17 -1
  6. package/es/drawer-select/DrawerSelect.mjs +9 -4
  7. package/es/drawer-select/index.d.ts +11 -0
  8. package/es/dropdown-item/DropdownItem.d.ts +26 -0
  9. package/es/dropdown-item/DropdownItem.mjs +11 -9
  10. package/es/dropdown-item/index.d.ts +18 -0
  11. package/es/dropdown-menu/DropdownMenu.mjs +4 -1
  12. package/es/dropdown-menu/index.css +1 -1
  13. package/es/empty/Empty.mjs +5 -1
  14. package/es/empty/Images.d.ts +14 -11
  15. package/es/empty/Images.mjs +89 -89
  16. package/es/empty/types.d.ts +1 -0
  17. package/es/hierarchy-select/index.css +1 -1
  18. package/es/lazyload/vue-lazyload/index.d.ts +55 -55
  19. package/es/media-picker/MediaPicker.d.ts +4 -0
  20. package/es/media-picker/MediaPicker.mjs +28 -14
  21. package/es/media-picker/index.d.ts +3 -0
  22. package/es/media-picker/type.d.ts +2 -0
  23. package/es/media-picker/util/wx-util.d.ts +4 -0
  24. package/es/media-picker/util/wx-util.mjs +67 -0
  25. package/es/popup/index.css +1 -1
  26. package/es/slider/Slider.mjs +15 -16
  27. package/es/slider/index.css +1 -1
  28. package/es/table/Table.d.ts +13 -0
  29. package/es/table/Table.mjs +28 -7
  30. package/es/table/index.css +1 -1
  31. package/es/table/index.d.ts +9 -0
  32. package/es/table/style/index.mjs +6 -0
  33. package/es/tabs/TabsTitle.mjs +1 -0
  34. package/es/tabs/index.css +1 -1
  35. package/es/text-ellipsis/TextEllipsis.d.ts +13 -0
  36. package/es/text-ellipsis/TextEllipsis.mjs +15 -4
  37. package/es/text-ellipsis/index.d.ts +9 -0
  38. package/es/text-ellipsis/style/index.mjs +7 -0
  39. package/es/toast/index.css +1 -1
  40. package/es/vue-sfc-shim.d.ts +6 -6
  41. package/es/vue-tsx-shim.d.ts +23 -23
  42. package/lib/calendar/Calendar.js +1 -2
  43. package/lib/date-time-picker/DateTimePicker.js +15 -0
  44. package/lib/dialog/index.css +1 -1
  45. package/lib/drawer-select/DrawerSelect.d.ts +17 -1
  46. package/lib/drawer-select/DrawerSelect.js +9 -4
  47. package/lib/drawer-select/index.d.ts +11 -0
  48. package/lib/dropdown-item/DropdownItem.d.ts +26 -0
  49. package/lib/dropdown-item/DropdownItem.js +10 -8
  50. package/lib/dropdown-item/index.d.ts +18 -0
  51. package/lib/dropdown-menu/DropdownMenu.js +4 -1
  52. package/lib/dropdown-menu/index.css +1 -1
  53. package/lib/empty/Empty.js +5 -1
  54. package/lib/empty/Images.d.ts +14 -11
  55. package/lib/empty/Images.js +89 -89
  56. package/lib/empty/types.d.ts +1 -0
  57. package/lib/hierarchy-select/index.css +1 -1
  58. package/lib/index.css +1 -1
  59. package/lib/lazyload/vue-lazyload/index.d.ts +55 -55
  60. package/lib/media-picker/MediaPicker.d.ts +4 -0
  61. package/lib/media-picker/MediaPicker.js +27 -13
  62. package/lib/media-picker/index.d.ts +3 -0
  63. package/lib/media-picker/type.d.ts +2 -0
  64. package/lib/media-picker/util/wx-util.d.ts +4 -0
  65. package/lib/media-picker/util/wx-util.js +86 -0
  66. package/lib/popup/index.css +1 -1
  67. package/lib/slider/Slider.js +15 -16
  68. package/lib/slider/index.css +1 -1
  69. package/lib/table/Table.d.ts +13 -0
  70. package/lib/table/Table.js +37 -6
  71. package/lib/table/index.css +1 -1
  72. package/lib/table/index.d.ts +9 -0
  73. package/lib/table/style/index.js +6 -0
  74. package/lib/tabs/TabsTitle.js +1 -0
  75. package/lib/tabs/index.css +1 -1
  76. package/lib/text-ellipsis/TextEllipsis.d.ts +13 -0
  77. package/lib/text-ellipsis/TextEllipsis.js +13 -2
  78. package/lib/text-ellipsis/index.d.ts +9 -0
  79. package/lib/text-ellipsis/style/index.js +7 -0
  80. package/lib/toast/index.css +1 -1
  81. package/lib/vue-sfc-shim.d.ts +6 -6
  82. package/lib/vue-tsx-shim.d.ts +23 -23
  83. package/lib/web-types.json +1 -1
  84. package/lib/zartui.cjs.js +710 -577
  85. package/lib/zartui.es.js +710 -577
  86. package/lib/zartui.js +710 -577
  87. package/lib/zartui.min.js +1 -1
  88. package/package.json +5 -5
package/lib/zartui.js CHANGED
@@ -542,7 +542,7 @@
542
542
  });
543
543
  return to;
544
544
  }
545
- var stdin_default$1W = {
545
+ var stdin_default$1X = {
546
546
  name: "姓名",
547
547
  tel: "电话",
548
548
  save: "保存",
@@ -589,7 +589,7 @@
589
589
  };
590
590
  const lang = vue.ref("zh-CN");
591
591
  const messages = vue.reactive({
592
- "zh-CN": stdin_default$1W
592
+ "zh-CN": stdin_default$1X
593
593
  });
594
594
  const Locale = {
595
595
  messages() {
@@ -603,11 +603,11 @@
603
603
  deepAssign(messages, newMessages);
604
604
  }
605
605
  };
606
- var stdin_default$1V = Locale;
606
+ var stdin_default$1W = Locale;
607
607
  function createTranslate(name2) {
608
608
  const prefix = camelize(name2) + ".";
609
609
  return (path, ...args) => {
610
- const messages2 = stdin_default$1V.messages();
610
+ const messages2 = stdin_default$1W.messages();
611
611
  const message = get(messages2, prefix + path) || get(messages2, path);
612
612
  return isFunction(message) ? message(...args) : message;
613
613
  };
@@ -712,7 +712,7 @@
712
712
  badgeClass: String,
713
713
  position: makeStringProp("top-right")
714
714
  };
715
- var stdin_default$1U = vue.defineComponent({
715
+ var stdin_default$1V = vue.defineComponent({
716
716
  name: name$1p,
717
717
  props: badgeProps,
718
718
  setup(props, {
@@ -795,7 +795,7 @@
795
795
  };
796
796
  }
797
797
  });
798
- const Badge = withInstall(stdin_default$1U);
798
+ const Badge = withInstall(stdin_default$1V);
799
799
  let globalZIndex = 2e3;
800
800
  const useGlobalZIndex = () => ++globalZIndex;
801
801
  const setGlobalZIndex = (val) => {
@@ -836,7 +836,7 @@
836
836
  }
837
837
  });
838
838
  }
839
- var stdin_default$1T = vue.defineComponent({
839
+ var stdin_default$1U = vue.defineComponent({
840
840
  name: name$1o,
841
841
  props: configProviderProps,
842
842
  setup(props, {
@@ -907,7 +907,7 @@
907
907
  badgeProps: Object,
908
908
  classPrefix: String
909
909
  };
910
- var stdin_default$1S = vue.defineComponent({
910
+ var stdin_default$1T = vue.defineComponent({
911
911
  name: name$1n,
912
912
  props: iconProps,
913
913
  setup(props, {
@@ -946,8 +946,8 @@
946
946
  };
947
947
  }
948
948
  });
949
- const Icon = withInstall(stdin_default$1S);
950
- var stdin_default$1R = Icon;
949
+ const Icon = withInstall(stdin_default$1T);
950
+ var stdin_default$1S = Icon;
951
951
  const popupSharedProps = {
952
952
  // whether to show popup
953
953
  show: Boolean,
@@ -1134,7 +1134,7 @@
1134
1134
  lazyRender: truthProp,
1135
1135
  customStyle: Object
1136
1136
  };
1137
- var stdin_default$1Q = vue.defineComponent({
1137
+ var stdin_default$1R = vue.defineComponent({
1138
1138
  name: name$1m,
1139
1139
  props: overlayProps,
1140
1140
  setup(props, {
@@ -1164,7 +1164,7 @@
1164
1164
  });
1165
1165
  }
1166
1166
  });
1167
- const Overlay = withInstall(stdin_default$1Q);
1167
+ const Overlay = withInstall(stdin_default$1R);
1168
1168
  const popupProps$2 = extend({}, popupSharedProps, {
1169
1169
  round: Boolean,
1170
1170
  position: makeStringProp("center"),
@@ -1183,7 +1183,7 @@
1183
1183
  slideable: Boolean
1184
1184
  });
1185
1185
  const [name$1l, bem$1h] = createNamespace("popup");
1186
- var stdin_default$1P = vue.defineComponent({
1186
+ var stdin_default$1Q = vue.defineComponent({
1187
1187
  name: name$1l,
1188
1188
  inheritAttrs: false,
1189
1189
  props: popupProps$2,
@@ -1438,8 +1438,8 @@
1438
1438
  };
1439
1439
  }
1440
1440
  });
1441
- const Popup = withInstall(stdin_default$1P);
1442
- var stdin_default$1O = Popup;
1441
+ const Popup = withInstall(stdin_default$1Q);
1442
+ var stdin_default$1P = Popup;
1443
1443
  const [name$1k, bem$1g] = createNamespace("loading");
1444
1444
  const loadingProps = {
1445
1445
  size: numericProp,
@@ -1509,7 +1509,7 @@
1509
1509
  "d": "M 9 100 A 91 91 0 0 1 9 100"
1510
1510
  }, null)])]);
1511
1511
  };
1512
- var stdin_default$1N = vue.defineComponent({
1512
+ var stdin_default$1O = vue.defineComponent({
1513
1513
  name: name$1k,
1514
1514
  props: loadingProps,
1515
1515
  setup(props, {
@@ -1548,8 +1548,8 @@
1548
1548
  };
1549
1549
  }
1550
1550
  });
1551
- const Loading = withInstall(stdin_default$1N);
1552
- var stdin_default$1M = Loading;
1551
+ const Loading = withInstall(stdin_default$1O);
1552
+ var stdin_default$1N = Loading;
1553
1553
  const [name$1j, bem$1f] = createNamespace("action-sheet");
1554
1554
  const actionSheetProps = extend({}, popupSharedProps, {
1555
1555
  title: String,
@@ -1564,7 +1564,7 @@
1564
1564
  safeAreaInsetBottom: truthProp
1565
1565
  });
1566
1566
  const popupInheritKeys$1 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
1567
- var stdin_default$1L = vue.defineComponent({
1567
+ var stdin_default$1M = vue.defineComponent({
1568
1568
  name: name$1j,
1569
1569
  props: actionSheetProps,
1570
1570
  emits: ["select", "cancel", "update:show"],
@@ -1681,8 +1681,8 @@
1681
1681
  });
1682
1682
  }
1683
1683
  });
1684
- const ActionSheet = withInstall(stdin_default$1L);
1685
- var stdin_default$1K = ActionSheet;
1684
+ const ActionSheet = withInstall(stdin_default$1M);
1685
+ var stdin_default$1L = ActionSheet;
1686
1686
  const [name$1i, bem$1e] = createNamespace("image");
1687
1687
  const imageProps = {
1688
1688
  src: String,
@@ -1702,7 +1702,7 @@
1702
1702
  showLoading: truthProp,
1703
1703
  loadingIcon: makeStringProp("photo-default")
1704
1704
  };
1705
- var stdin_default$1J = vue.defineComponent({
1705
+ var stdin_default$1K = vue.defineComponent({
1706
1706
  name: name$1i,
1707
1707
  props: imageProps,
1708
1708
  emits: ["load", "error"],
@@ -1827,8 +1827,8 @@
1827
1827
  };
1828
1828
  }
1829
1829
  });
1830
- const Image$1 = withInstall(stdin_default$1J);
1831
- var stdin_default$1I = Image$1;
1830
+ const Image$1 = withInstall(stdin_default$1K);
1831
+ var stdin_default$1J = Image$1;
1832
1832
  const [name$1h, bem$1d] = createNamespace("avatar");
1833
1833
  const avatarProps = {
1834
1834
  src: makeStringProp(""),
@@ -1838,7 +1838,7 @@
1838
1838
  textBgColor: String,
1839
1839
  border: Boolean
1840
1840
  };
1841
- var stdin_default$1H = vue.defineComponent({
1841
+ var stdin_default$1I = vue.defineComponent({
1842
1842
  name: name$1h,
1843
1843
  props: avatarProps,
1844
1844
  setup(props) {
@@ -1879,7 +1879,7 @@
1879
1879
  if (!props.src) {
1880
1880
  return renderText();
1881
1881
  }
1882
- return vue.createVNode(stdin_default$1I, {
1882
+ return vue.createVNode(stdin_default$1J, {
1883
1883
  "round": props.shape === "round",
1884
1884
  "class": bem$1d("img", [classArr.value, {
1885
1885
  border: props.border
@@ -1892,7 +1892,7 @@
1892
1892
  };
1893
1893
  }
1894
1894
  });
1895
- const Avatar = withInstall(stdin_default$1H);
1895
+ const Avatar = withInstall(stdin_default$1I);
1896
1896
  const routeProps = {
1897
1897
  to: [String, Object],
1898
1898
  url: String,
@@ -1941,7 +1941,7 @@
1941
1941
  loadingType: String,
1942
1942
  iconPosition: makeStringProp("left")
1943
1943
  });
1944
- var stdin_default$1G = vue.defineComponent({
1944
+ var stdin_default$1H = vue.defineComponent({
1945
1945
  name: name$1g,
1946
1946
  props: buttonProps,
1947
1947
  emits: ["click"],
@@ -2073,8 +2073,8 @@
2073
2073
  };
2074
2074
  }
2075
2075
  });
2076
- const Button = withInstall(stdin_default$1G);
2077
- var stdin_default$1F = Button;
2076
+ const Button = withInstall(stdin_default$1H);
2077
+ var stdin_default$1G = Button;
2078
2078
  const monthsOfYear = 12;
2079
2079
  const [name$1f, bem$1b, t$8] = createNamespace("calendar");
2080
2080
  const formatMonthTitle = (date) => t$8("ztCalendar.monthTitle", date.getFullYear(), date.getMonth() + 1);
@@ -2185,7 +2185,7 @@
2185
2185
  closeOnClick: Boolean,
2186
2186
  closeOnClickOverlay: Boolean
2187
2187
  };
2188
- var stdin_default$1E = vue.defineComponent({
2188
+ var stdin_default$1F = vue.defineComponent({
2189
2189
  name: name$1e,
2190
2190
  props: toastProps,
2191
2191
  emits: ["update:show"],
@@ -2361,7 +2361,7 @@
2361
2361
  onClosed,
2362
2362
  "onUpdate:show": toggle
2363
2363
  };
2364
- return vue.createVNode(stdin_default$1E, vue.mergeProps(state, attrs), null);
2364
+ return vue.createVNode(stdin_default$1F, vue.mergeProps(state, attrs), null);
2365
2365
  };
2366
2366
  vue.watch(message, (val) => {
2367
2367
  state.message = val;
@@ -2431,7 +2431,7 @@
2431
2431
  const allowMultipleToast = (value = true) => {
2432
2432
  allowMultiple = value;
2433
2433
  };
2434
- const Toast = withInstall(stdin_default$1E);
2434
+ const Toast = withInstall(stdin_default$1F);
2435
2435
  const useHeight = (element, withSafeArea) => {
2436
2436
  const height2 = vue.ref();
2437
2437
  const setHeight = () => {
@@ -2448,7 +2448,7 @@
2448
2448
  return height2;
2449
2449
  };
2450
2450
  const [name$1d] = createNamespace("calendar-day");
2451
- var stdin_default$1D = vue.defineComponent({
2451
+ var stdin_default$1E = vue.defineComponent({
2452
2452
  name: name$1d,
2453
2453
  props: {
2454
2454
  item: makeRequiredProp(Object),
@@ -2574,7 +2574,7 @@
2574
2574
  firstDayOfWeek: Number,
2575
2575
  disabledDate: Function
2576
2576
  };
2577
- var stdin_default$1C = vue.defineComponent({
2577
+ var stdin_default$1D = vue.defineComponent({
2578
2578
  name: name$1c,
2579
2579
  props: calendarMonthProps,
2580
2580
  emits: ["click"],
@@ -2759,7 +2759,7 @@
2759
2759
  setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - useRect(body).top);
2760
2760
  }
2761
2761
  };
2762
- const renderDay = (item, index) => vue.createVNode(stdin_default$1D, {
2762
+ const renderDay = (item, index) => vue.createVNode(stdin_default$1E, {
2763
2763
  "item": item,
2764
2764
  "index": index,
2765
2765
  "color": props.color,
@@ -2787,7 +2787,7 @@
2787
2787
  }
2788
2788
  });
2789
2789
  const [name$1b] = createNamespace("calendar-header");
2790
- var stdin_default$1B = vue.defineComponent({
2790
+ var stdin_default$1C = vue.defineComponent({
2791
2791
  name: name$1b,
2792
2792
  props: {
2793
2793
  title: String,
@@ -2982,7 +2982,7 @@
2982
2982
  },
2983
2983
  disabledDate: Function
2984
2984
  };
2985
- var stdin_default$1A = vue.defineComponent({
2985
+ var stdin_default$1B = vue.defineComponent({
2986
2986
  name: name$1f,
2987
2987
  props: calendarProps,
2988
2988
  emits: ["select", "confirm", "cancel", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle"],
@@ -3335,7 +3335,7 @@
3335
3335
  const updateShow = (value) => emit("update:show", value);
3336
3336
  const renderMonth = (date, index) => {
3337
3337
  const showMonthTitle = index !== 0 || !props.showSubtitle;
3338
- return vue.createVNode(stdin_default$1C, vue.mergeProps({
3338
+ return vue.createVNode(stdin_default$1D, vue.mergeProps({
3339
3339
  "ref": setMonthRefs(index),
3340
3340
  "date": date,
3341
3341
  "currentDate": currentDate.value,
@@ -3385,7 +3385,7 @@
3385
3385
  }, [renderFooterButton()]);
3386
3386
  const renderCalendar = () => vue.createVNode("div", {
3387
3387
  "class": bem$1b()
3388
- }, [vue.createVNode(stdin_default$1B, {
3388
+ }, [vue.createVNode(stdin_default$1C, {
3389
3389
  "title": props.title,
3390
3390
  "subtitle": subtitle.value,
3391
3391
  "showTitle": props.showTitle,
@@ -3407,8 +3407,7 @@
3407
3407
  vue.watch(() => props.show, init);
3408
3408
  vue.watch(() => [props.type, props.minDate, props.maxDate], () => reset(getInitialDate(currentDate.value)));
3409
3409
  vue.watch(() => props.defaultDate, (value = null) => {
3410
- currentDate.value = value;
3411
- scrollToCurrentDate();
3410
+ reset(value);
3412
3411
  });
3413
3412
  vue.watch(titleDate, (newValue) => {
3414
3413
  if (props.showType === "inline" && newValue) {
@@ -3441,7 +3440,7 @@
3441
3440
  };
3442
3441
  }
3443
3442
  });
3444
- const Calendar = withInstall(stdin_default$1A);
3443
+ const Calendar = withInstall(stdin_default$1B);
3445
3444
  function scrollLeftTo(scroller, to, duration) {
3446
3445
  let count = 0;
3447
3446
  const from = scroller.scrollLeft;
@@ -3511,7 +3510,7 @@
3511
3510
  offsetTop: makeNumericProp(0),
3512
3511
  offsetBottom: makeNumericProp(0)
3513
3512
  };
3514
- var stdin_default$1z = vue.defineComponent({
3513
+ var stdin_default$1A = vue.defineComponent({
3515
3514
  name: name$1a,
3516
3515
  props: stickyProps,
3517
3516
  emits: ["scroll", "change"],
@@ -3617,9 +3616,9 @@
3617
3616
  };
3618
3617
  }
3619
3618
  });
3620
- const Sticky = withInstall(stdin_default$1z);
3619
+ const Sticky = withInstall(stdin_default$1A);
3621
3620
  const [name$19, bem$18] = createNamespace("tab");
3622
- var stdin_default$1y = vue.defineComponent({
3621
+ var stdin_default$1z = vue.defineComponent({
3623
3622
  name: name$19,
3624
3623
  props: {
3625
3624
  id: String,
@@ -3713,6 +3712,7 @@
3713
3712
  "aria-disabled": props.disabled || void 0,
3714
3713
  "aria-controls": props.controls
3715
3714
  }, [slots.prefix ? slots.prefix() : null, vue.createVNode("div", {
3715
+ "class": bem$18("title"),
3716
3716
  "style": style.value
3717
3717
  }, [renderText()]), slots.suffix ? slots.suffix() : null]);
3718
3718
  }
@@ -3734,7 +3734,7 @@
3734
3734
  title: Array
3735
3735
  };
3736
3736
  const SWIPE_KEY = Symbol(name$18);
3737
- var stdin_default$1x = vue.defineComponent({
3737
+ var stdin_default$1y = vue.defineComponent({
3738
3738
  name: name$18,
3739
3739
  props: swipeProps,
3740
3740
  emits: ["change", "dragStart", "dragEnd"],
@@ -4093,9 +4093,9 @@
4093
4093
  };
4094
4094
  }
4095
4095
  });
4096
- const Swipe = withInstall(stdin_default$1x);
4096
+ const Swipe = withInstall(stdin_default$1y);
4097
4097
  const [name$17, bem$16] = createNamespace("tabs");
4098
- var stdin_default$1w = vue.defineComponent({
4098
+ var stdin_default$1x = vue.defineComponent({
4099
4099
  name: name$17,
4100
4100
  props: {
4101
4101
  count: makeRequiredProp(Number),
@@ -4175,7 +4175,7 @@
4175
4175
  titleInactiveColor: String
4176
4176
  };
4177
4177
  const TABS_KEY = Symbol(name$16);
4178
- var stdin_default$1v = vue.defineComponent({
4178
+ var stdin_default$1w = vue.defineComponent({
4179
4179
  name: name$16,
4180
4180
  props: tabsProps,
4181
4181
  emits: ["change", "scroll", "rendered", "clickTab", "update:active"],
@@ -4371,7 +4371,7 @@
4371
4371
  state.showLeftOverlay = Math.floor(target.scrollLeft) > 0;
4372
4372
  state.showRightOverlay = hasScrollToEnd(target);
4373
4373
  };
4374
- const renderNav = () => children.map((item, index) => vue.createVNode(stdin_default$1y, vue.mergeProps({
4374
+ const renderNav = () => children.map((item, index) => vue.createVNode(stdin_default$1z, vue.mergeProps({
4375
4375
  "key": item.id,
4376
4376
  "id": `${id}-${index}`,
4377
4377
  "ref": setTitleRefs(index),
@@ -4509,7 +4509,7 @@
4509
4509
  "ref": navTopRef
4510
4510
  }, [(_a2 = slots["nav-top"]) == null ? void 0 : _a2.call(slots)]) : null, renderHeader(), (_b2 = slots["nav-bottom"]) == null ? void 0 : _b2.call(slots)];
4511
4511
  }
4512
- }) : [(_a = slots["nav-top"]) == null ? void 0 : _a.call(slots), renderHeader(), (_b = slots["nav-bottom"]) == null ? void 0 : _b.call(slots)], vue.createVNode(stdin_default$1w, {
4512
+ }) : [(_a = slots["nav-top"]) == null ? void 0 : _a.call(slots), renderHeader(), (_b = slots["nav-bottom"]) == null ? void 0 : _b.call(slots)], vue.createVNode(stdin_default$1x, {
4513
4513
  "count": children.length,
4514
4514
  "inited": state.inited,
4515
4515
  "animated": props.animated,
@@ -4530,7 +4530,7 @@
4530
4530
  const TAB_STATUS_KEY = Symbol();
4531
4531
  const useTabStatus = () => vue.inject(TAB_STATUS_KEY, null);
4532
4532
  const [name$15, bem$14] = createNamespace("swipe-item");
4533
- var stdin_default$1u = vue.defineComponent({
4533
+ var stdin_default$1v = vue.defineComponent({
4534
4534
  name: name$15,
4535
4535
  setup(props, {
4536
4536
  slots
@@ -4599,7 +4599,7 @@
4599
4599
  };
4600
4600
  }
4601
4601
  });
4602
- const SwipeItem = withInstall(stdin_default$1u);
4602
+ const SwipeItem = withInstall(stdin_default$1v);
4603
4603
  const [name$14, bem$13] = createNamespace("tab");
4604
4604
  const tabProps = extend({}, routeProps, {
4605
4605
  dot: Boolean,
@@ -4611,7 +4611,7 @@
4611
4611
  titleStyle: [String, Object],
4612
4612
  showZeroBadge: truthProp
4613
4613
  });
4614
- var stdin_default$1t = vue.defineComponent({
4614
+ var stdin_default$1u = vue.defineComponent({
4615
4615
  name: name$14,
4616
4616
  props: tabProps,
4617
4617
  setup(props, {
@@ -4697,15 +4697,15 @@
4697
4697
  };
4698
4698
  }
4699
4699
  });
4700
- const Tab = withInstall(stdin_default$1t);
4701
- const Tabs = withInstall(stdin_default$1v);
4700
+ const Tab = withInstall(stdin_default$1u);
4701
+ const Tabs = withInstall(stdin_default$1w);
4702
4702
  const [name$13, bem$12] = createNamespace("divider");
4703
4703
  const dividerProps = {
4704
4704
  dashed: Boolean,
4705
4705
  hairline: truthProp,
4706
4706
  contentPosition: makeStringProp("center")
4707
4707
  };
4708
- var stdin_default$1s = vue.defineComponent({
4708
+ var stdin_default$1t = vue.defineComponent({
4709
4709
  name: name$13,
4710
4710
  props: dividerProps,
4711
4711
  setup(props, {
@@ -4724,7 +4724,7 @@
4724
4724
  };
4725
4725
  }
4726
4726
  });
4727
- const Divider = withInstall(stdin_default$1s);
4727
+ const Divider = withInstall(stdin_default$1t);
4728
4728
  const [name$12, bem$11, t$7] = createNamespace("cascader");
4729
4729
  const cascaderProps = {
4730
4730
  title: String,
@@ -4745,7 +4745,7 @@
4745
4745
  safeAreaInsetTop: Boolean,
4746
4746
  closeOnClickOverlay: truthProp
4747
4747
  };
4748
- var stdin_default$1r = vue.defineComponent({
4748
+ var stdin_default$1s = vue.defineComponent({
4749
4749
  name: name$12,
4750
4750
  props: cascaderProps,
4751
4751
  emits: ["change", "finish", "clickTab", "update:modelValue", "update:show", "cancel"],
@@ -4935,7 +4935,7 @@
4935
4935
  }, {
4936
4936
  default: () => [tabs.value.map(renderTab)]
4937
4937
  });
4938
- const renderMenu = () => vue.createVNode(stdin_default$1G, {
4938
+ const renderMenu = () => vue.createVNode(stdin_default$1H, {
4939
4939
  "class": bem$11("cancel"),
4940
4940
  "onClick": onCancel
4941
4941
  }, {
@@ -4994,7 +4994,7 @@
4994
4994
  };
4995
4995
  }
4996
4996
  });
4997
- const Cascader = withInstall(stdin_default$1r);
4997
+ const Cascader = withInstall(stdin_default$1s);
4998
4998
  function isEmptyValue(value) {
4999
4999
  if (Array.isArray(value)) {
5000
5000
  return !value.length;
@@ -5114,7 +5114,7 @@
5114
5114
  description: makeStringProp("")
5115
5115
  };
5116
5116
  const cellProps = extend({}, cellSharedProps, routeProps);
5117
- var stdin_default$1q = vue.defineComponent({
5117
+ var stdin_default$1r = vue.defineComponent({
5118
5118
  name: name$11,
5119
5119
  props: cellProps,
5120
5120
  emits: ["click", "clear"],
@@ -5322,14 +5322,14 @@
5322
5322
  };
5323
5323
  }
5324
5324
  });
5325
- const Cell = withInstall(stdin_default$1q);
5325
+ const Cell = withInstall(stdin_default$1r);
5326
5326
  const [name$10, bem$$] = createNamespace("cell-group");
5327
5327
  const cellGroupProps = {
5328
5328
  title: String,
5329
5329
  inset: Boolean,
5330
5330
  border: truthProp
5331
5331
  };
5332
- var stdin_default$1p = vue.defineComponent({
5332
+ var stdin_default$1q = vue.defineComponent({
5333
5333
  name: name$10,
5334
5334
  inheritAttrs: false,
5335
5335
  props: cellGroupProps,
@@ -5360,7 +5360,7 @@
5360
5360
  };
5361
5361
  }
5362
5362
  });
5363
- const CellGroup = withInstall(stdin_default$1p);
5363
+ const CellGroup = withInstall(stdin_default$1q);
5364
5364
  const [name$$, bem$_] = createNamespace("checkbox-group");
5365
5365
  const checkboxGroupProps = {
5366
5366
  max: numericProp,
@@ -5371,7 +5371,7 @@
5371
5371
  checkedColor: String
5372
5372
  };
5373
5373
  const CHECKBOX_GROUP_KEY = Symbol(name$$);
5374
- var stdin_default$1o = vue.defineComponent({
5374
+ var stdin_default$1p = vue.defineComponent({
5375
5375
  name: name$$,
5376
5376
  props: checkboxGroupProps,
5377
5377
  emits: ["change", "update:modelValue"],
@@ -5433,7 +5433,7 @@
5433
5433
  labelPosition: String,
5434
5434
  labelDisabled: Boolean
5435
5435
  };
5436
- var stdin_default$1n = vue.defineComponent({
5436
+ var stdin_default$1o = vue.defineComponent({
5437
5437
  props: extend({}, checkerProps, {
5438
5438
  bem: makeRequiredProp(Function),
5439
5439
  role: String,
@@ -5542,7 +5542,7 @@
5542
5542
  default: null
5543
5543
  }
5544
5544
  });
5545
- var stdin_default$1m = vue.defineComponent({
5545
+ var stdin_default$1n = vue.defineComponent({
5546
5546
  name: name$_,
5547
5547
  props: checkboxProps,
5548
5548
  emits: ["change", "update:modelValue"],
@@ -5607,7 +5607,7 @@
5607
5607
  checked
5608
5608
  });
5609
5609
  useCustomFieldValue(() => props.modelValue);
5610
- return () => vue.createVNode(stdin_default$1n, vue.mergeProps({
5610
+ return () => vue.createVNode(stdin_default$1o, vue.mergeProps({
5611
5611
  "bem": bem$Z,
5612
5612
  "role": "checkbox",
5613
5613
  "parent": parent,
@@ -5616,8 +5616,8 @@
5616
5616
  }, props), pick(slots, ["default", "icon"]));
5617
5617
  }
5618
5618
  });
5619
- const Checkbox = withInstall(stdin_default$1m);
5620
- const CheckboxGroup = withInstall(stdin_default$1o);
5619
+ const Checkbox = withInstall(stdin_default$1n);
5620
+ const CheckboxGroup = withInstall(stdin_default$1p);
5621
5621
  const [name$Z, bem$Y] = createNamespace("row");
5622
5622
  const ROW_KEY = Symbol(name$Z);
5623
5623
  const rowProps = {
@@ -5627,7 +5627,7 @@
5627
5627
  gutter: makeNumericProp(0),
5628
5628
  justify: String
5629
5629
  };
5630
- var stdin_default$1l = vue.defineComponent({
5630
+ var stdin_default$1m = vue.defineComponent({
5631
5631
  name: name$Z,
5632
5632
  props: rowProps,
5633
5633
  setup(props, {
@@ -5707,7 +5707,7 @@
5707
5707
  span: makeNumericProp(0),
5708
5708
  offset: numericProp
5709
5709
  };
5710
- var stdin_default$1k = vue.defineComponent({
5710
+ var stdin_default$1l = vue.defineComponent({
5711
5711
  name: name$Y,
5712
5712
  props: colProps,
5713
5713
  setup(props, {
@@ -5756,7 +5756,7 @@
5756
5756
  };
5757
5757
  }
5758
5758
  });
5759
- const Col = withInstall(stdin_default$1k);
5759
+ const Col = withInstall(stdin_default$1l);
5760
5760
  const [name$X, bem$W] = createNamespace("collapse");
5761
5761
  const COLLAPSE_KEY = Symbol(name$X);
5762
5762
  const collapseProps = {
@@ -5767,7 +5767,7 @@
5767
5767
  default: ""
5768
5768
  }
5769
5769
  };
5770
- var stdin_default$1j = vue.defineComponent({
5770
+ var stdin_default$1k = vue.defineComponent({
5771
5771
  name: name$X,
5772
5772
  props: collapseProps,
5773
5773
  emits: ["change", "update:modelValue"],
@@ -5842,7 +5842,7 @@
5842
5842
  };
5843
5843
  }
5844
5844
  });
5845
- const Collapse = withInstall(stdin_default$1j);
5845
+ const Collapse = withInstall(stdin_default$1k);
5846
5846
  const [name$W, bem$V] = createNamespace("collapse-item");
5847
5847
  const collapseItemProps = extend({}, {
5848
5848
  name: numericProp,
@@ -5853,7 +5853,7 @@
5853
5853
  titleBackground: String,
5854
5854
  color: String
5855
5855
  });
5856
- var stdin_default$1i = vue.defineComponent({
5856
+ var stdin_default$1j = vue.defineComponent({
5857
5857
  name: name$W,
5858
5858
  props: collapseItemProps,
5859
5859
  setup(props, {
@@ -5936,7 +5936,7 @@
5936
5936
  "class": bem$V("text", {
5937
5937
  custom: titleBackground
5938
5938
  })
5939
- }, [props.title]), vue.createVNode(stdin_default$1S, {
5939
+ }, [props.title]), vue.createVNode(stdin_default$1T, {
5940
5940
  "name": "keyboard-arrow-down",
5941
5941
  "style": color ? `color:${color};` : "",
5942
5942
  "class": bem$V("icon", {
@@ -5966,8 +5966,8 @@
5966
5966
  }, [renderTitle(), renderContent()]);
5967
5967
  }
5968
5968
  });
5969
- const CollapseItem = withInstall(stdin_default$1i);
5970
- const ConfigProvider = withInstall(stdin_default$1T);
5969
+ const CollapseItem = withInstall(stdin_default$1j);
5970
+ const ConfigProvider = withInstall(stdin_default$1U);
5971
5971
  const [name$V, bem$U, t$6] = createNamespace("picker");
5972
5972
  const getFirstEnabledOption$1 = (options) => options.find((option) => !option.disabled) || options[0];
5973
5973
  function getColumnsType$1(columns, fields) {
@@ -6039,7 +6039,7 @@
6039
6039
  const MOMENTUM_DISTANCE$2 = 15;
6040
6040
  const [name$U, bem$T] = createNamespace("picker-column");
6041
6041
  const PICKER_KEY$1 = Symbol(name$U);
6042
- var stdin_default$1h = vue.defineComponent({
6042
+ var stdin_default$1i = vue.defineComponent({
6043
6043
  name: name$U,
6044
6044
  props: {
6045
6045
  value: numericProp,
@@ -6243,7 +6243,7 @@
6243
6243
  };
6244
6244
  const pickerToolbarSlots$1 = ["cancel", "confirm", "title", "toolbar"];
6245
6245
  const pickerToolbarPropKeys$1 = Object.keys(pickerToolbarProps$1);
6246
- var stdin_default$1g = vue.defineComponent({
6246
+ var stdin_default$1h = vue.defineComponent({
6247
6247
  name: name$T,
6248
6248
  props: pickerToolbarProps$1,
6249
6249
  emits: ["confirm", "cancel"],
@@ -6289,7 +6289,7 @@
6289
6289
  columnCounts: makeNumberProp(3),
6290
6290
  options: makeArrayProp()
6291
6291
  };
6292
- var stdin_default$1f = vue.defineComponent({
6292
+ var stdin_default$1g = vue.defineComponent({
6293
6293
  name: name$S,
6294
6294
  props: pickerOptionsProps,
6295
6295
  emits: ["change", "clickOption"],
@@ -6388,7 +6388,7 @@
6388
6388
  showType: makeStringProp("default"),
6389
6389
  columnCounts: makeNumberProp(3)
6390
6390
  });
6391
- var stdin_default$1e = vue.defineComponent({
6391
+ var stdin_default$1f = vue.defineComponent({
6392
6392
  name: name$V,
6393
6393
  props: pickerProps,
6394
6394
  emits: ["confirm", "cancel", "change", "clickOption", "update:modelValue", "update:showPicker"],
@@ -6481,7 +6481,7 @@
6481
6481
  };
6482
6482
  const updateShow = (value) => emit("update:showPicker", value);
6483
6483
  const hasUnit = props.columnsUnit.length === currentColumns.value.length;
6484
- const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$1h, {
6484
+ const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$1i, {
6485
6485
  "value": selectedValues.value[columnIndex],
6486
6486
  "fields": fields.value,
6487
6487
  "options": options,
@@ -6526,7 +6526,7 @@
6526
6526
  };
6527
6527
  const renderToolbar = () => {
6528
6528
  if (props.showToolbar) {
6529
- return vue.createVNode(stdin_default$1g, vue.mergeProps(pick(props, pickerToolbarPropKeys$1), {
6529
+ return vue.createVNode(stdin_default$1h, vue.mergeProps(pick(props, pickerToolbarPropKeys$1), {
6530
6530
  "onConfirm": confirm,
6531
6531
  "onCancel": cancel
6532
6532
  }), pick(slots, pickerToolbarSlots$1));
@@ -6593,7 +6593,7 @@
6593
6593
  };
6594
6594
  const renderOptionItems = () => {
6595
6595
  return currentColumns.value.map((options, columnIndex) => {
6596
- return vue.createVNode(stdin_default$1f, {
6596
+ return vue.createVNode(stdin_default$1g, {
6597
6597
  "ref": pickerOptions,
6598
6598
  "value": selectedValues.value[columnIndex],
6599
6599
  "columnCounts": props.columnCounts,
@@ -6623,7 +6623,7 @@
6623
6623
  return () => {
6624
6624
  if (isButtonPicker.value) {
6625
6625
  if (props.popup) {
6626
- return vue.createVNode(stdin_default$1O, {
6626
+ return vue.createVNode(stdin_default$1P, {
6627
6627
  "show": showPicker.value,
6628
6628
  "onUpdate:show": [($event) => showPicker.value = $event, updateShow],
6629
6629
  "round": true,
@@ -6635,7 +6635,7 @@
6635
6635
  return renderTiledPicker();
6636
6636
  } else {
6637
6637
  if (props.popup) {
6638
- return vue.createVNode(stdin_default$1O, {
6638
+ return vue.createVNode(stdin_default$1P, {
6639
6639
  "show": showPicker.value,
6640
6640
  "onUpdate:show": [($event) => showPicker.value = $event, updateShow],
6641
6641
  "round": true,
@@ -6691,9 +6691,9 @@
6691
6691
  }
6692
6692
  return value;
6693
6693
  });
6694
- const Picker = withInstall(stdin_default$1e);
6695
- var stdin_default$1d = Picker;
6696
- var stdin_default$1c = vue.defineComponent({
6694
+ const Picker = withInstall(stdin_default$1f);
6695
+ var stdin_default$1e = Picker;
6696
+ var stdin_default$1d = vue.defineComponent({
6697
6697
  name: "Arrow",
6698
6698
  emits: ["click"],
6699
6699
  setup(_, {
@@ -6720,7 +6720,7 @@
6720
6720
  const MOMENTUM_TIME$1 = 300;
6721
6721
  const MOMENTUM_DISTANCE$1 = 15;
6722
6722
  const DEFAULT_DURATION$1 = 200;
6723
- var stdin_default$1b = vue.defineComponent({
6723
+ var stdin_default$1c = vue.defineComponent({
6724
6724
  name: name$R,
6725
6725
  props: {
6726
6726
  value: numericProp,
@@ -6895,10 +6895,10 @@
6895
6895
  currentDuration.value = DEFAULT_DURATION$1;
6896
6896
  updateValueByIndex(isUp ? index - 1 : index + 1);
6897
6897
  };
6898
- const renderArrow = () => [vue.createVNode(stdin_default$1c, {
6898
+ const renderArrow = () => [vue.createVNode(stdin_default$1d, {
6899
6899
  "class": bem$R("arrow-top"),
6900
6900
  "onClick": () => onArrowClick(true)
6901
- }, null), vue.createVNode(stdin_default$1c, {
6901
+ }, null), vue.createVNode(stdin_default$1d, {
6902
6902
  "class": bem$R("arrow-bottom"),
6903
6903
  "onClick": () => onArrowClick(false)
6904
6904
  }, null)];
@@ -6953,7 +6953,7 @@
6953
6953
  default: () => ["hour", "minute"]
6954
6954
  }
6955
6955
  });
6956
- var stdin_default$1a = vue.defineComponent({
6956
+ var stdin_default$1b = vue.defineComponent({
6957
6957
  name: name$Q,
6958
6958
  props: timePickerProps,
6959
6959
  emits: ["clickOption", "change", "update:modelValue"],
@@ -7028,7 +7028,7 @@
7028
7028
  currentOption
7029
7029
  }, getEventParams()));
7030
7030
  const hasUnit = props.columnsUnit.length === currentColumns.value.length;
7031
- const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(vue.Fragment, null, [vue.createVNode(stdin_default$1b, {
7031
+ const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(vue.Fragment, null, [vue.createVNode(stdin_default$1c, {
7032
7032
  "value": selectedValues.value[columnIndex],
7033
7033
  "fields": fields.value,
7034
7034
  "options": options,
@@ -7097,8 +7097,8 @@
7097
7097
  }, [renderColumns()]);
7098
7098
  }
7099
7099
  });
7100
- const TimePicker = withInstall(stdin_default$1a);
7101
- var stdin_default$19 = TimePicker;
7100
+ const TimePicker = withInstall(stdin_default$1b);
7101
+ var stdin_default$1a = TimePicker;
7102
7102
  const [name$P, bem$P] = createNamespace("date-time-picker-wrapper");
7103
7103
  const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
7104
7104
  const dateTimePickerProps = extend({}, sharedProps, popupSharedProps, {
@@ -7122,7 +7122,7 @@
7122
7122
  startValue: makeArrayProp(),
7123
7123
  endValue: makeArrayProp()
7124
7124
  });
7125
- var stdin_default$18 = vue.defineComponent({
7125
+ var stdin_default$19 = vue.defineComponent({
7126
7126
  name: name$P,
7127
7127
  props: dateTimePickerProps,
7128
7128
  emits: ["change", "update:modelValue"],
@@ -7317,7 +7317,7 @@
7317
7317
  });
7318
7318
  const hasDateColumn = props.columnsType.includes("year") || props.columnsType.includes("month") || props.columnsType.includes("day");
7319
7319
  const hasTimeColumn = props.columnsType.includes("hour") || props.columnsType.includes("minute") || props.columnsType.includes("second");
7320
- const renderTimePicker = () => vue.createVNode(stdin_default$19, {
7320
+ const renderTimePicker = () => vue.createVNode(stdin_default$1a, {
7321
7321
  "modelValue": timeValuesRef.value,
7322
7322
  "onUpdate:modelValue": ($event) => timeValuesRef.value = $event,
7323
7323
  "columnsUnit": timeUnits.value,
@@ -7328,7 +7328,7 @@
7328
7328
  "class": bem$P()
7329
7329
  }, [hasDateColumn ? vue.createVNode(Divider, {
7330
7330
  "style": "margin: 0"
7331
- }, null) : null, hasDateColumn ? vue.createVNode(stdin_default$1d, vue.mergeProps({
7331
+ }, null) : null, hasDateColumn ? vue.createVNode(stdin_default$1e, vue.mergeProps({
7332
7332
  "popup": false,
7333
7333
  "columnsUnit": dateUnits.value,
7334
7334
  "modelValue": dateValuesRef.value,
@@ -7343,7 +7343,7 @@
7343
7343
  }
7344
7344
  });
7345
7345
  const [name$O, bem$O] = createNamespace("date-time-picker");
7346
- var stdin_default$17 = vue.defineComponent({
7346
+ var stdin_default$18 = vue.defineComponent({
7347
7347
  name: name$O,
7348
7348
  props: dateTimePickerProps,
7349
7349
  emits: ["confirm", "cancel", "change", "startChange", "endChange", "update:show", "update:modelValue", "update:startValue", "update:endValue"],
@@ -7481,6 +7481,21 @@
7481
7481
  }
7482
7482
  }
7483
7483
  };
7484
+ vue.watch(() => props.modelValue, onOpen, {
7485
+ deep: true
7486
+ });
7487
+ vue.watch(() => props.startValue, () => {
7488
+ currentStartValue.value = props.startValue;
7489
+ currentStartText.value = genOriginValueText(props.startValue);
7490
+ }, {
7491
+ deep: true
7492
+ });
7493
+ vue.watch(() => props.endValue, () => {
7494
+ currentEndValue.value = props.endValue;
7495
+ currentEndText.value = genOriginValueText(props.endValue);
7496
+ }, {
7497
+ deep: true
7498
+ });
7484
7499
  const renderTitle = () => {
7485
7500
  if (!props.range) {
7486
7501
  return vue.createVNode("div", {
@@ -7529,7 +7544,7 @@
7529
7544
  };
7530
7545
  const renderPicker = () => {
7531
7546
  if (!props.range) {
7532
- return vue.createVNode(stdin_default$18, vue.mergeProps({
7547
+ return vue.createVNode(stdin_default$19, vue.mergeProps({
7533
7548
  "ref": currentPickerRef,
7534
7549
  "modelValue": props.modelValue,
7535
7550
  "onUpdate:modelValue": ($event) => props.modelValue = $event,
@@ -7541,7 +7556,7 @@
7541
7556
  showTitle: false
7542
7557
  })), null);
7543
7558
  }
7544
- return [vue.withDirectives(vue.createVNode(stdin_default$18, vue.mergeProps({
7559
+ return [vue.withDirectives(vue.createVNode(stdin_default$19, vue.mergeProps({
7545
7560
  "ref": currentStartPickerRef,
7546
7561
  "modelValue": props.startValue,
7547
7562
  "onUpdate:modelValue": ($event) => props.startValue = $event,
@@ -7551,7 +7566,7 @@
7551
7566
  "minDate": props.minDate
7552
7567
  }, extend(pick(props, pickerInheritKeys), {
7553
7568
  showTitle: false
7554
- })), null), [[vue.vShow, rangeSelectedIndex.value === 0]]), vue.withDirectives(vue.createVNode(stdin_default$18, vue.mergeProps({
7569
+ })), null), [[vue.vShow, rangeSelectedIndex.value === 0]]), vue.withDirectives(vue.createVNode(stdin_default$19, vue.mergeProps({
7555
7570
  "ref": currentEndPickerRef,
7556
7571
  "modelValue": props.endValue,
7557
7572
  "onUpdate:modelValue": ($event) => props.endValue = $event,
@@ -7565,15 +7580,15 @@
7565
7580
  };
7566
7581
  const renderToolbar = () => {
7567
7582
  if (props.showToolbar) {
7568
- return [vue.createVNode(stdin_default$1s, {
7583
+ return [vue.createVNode(stdin_default$1t, {
7569
7584
  "style": "margin: 0"
7570
- }, null), vue.createVNode(stdin_default$1g, vue.mergeProps(pick(props, pickerToolbarPropKeys$1), {
7585
+ }, null), vue.createVNode(stdin_default$1h, vue.mergeProps(pick(props, pickerToolbarPropKeys$1), {
7571
7586
  "onConfirm": onConfirm,
7572
7587
  "onCancel": onCancel
7573
7588
  }), pick(slots, pickerToolbarSlots$1))];
7574
7589
  }
7575
7590
  };
7576
- return () => vue.createVNode(stdin_default$1P, {
7591
+ return () => vue.createVNode(stdin_default$1Q, {
7577
7592
  "round": true,
7578
7593
  "position": "bottom",
7579
7594
  "onOpen": onOpen,
@@ -7584,7 +7599,7 @@
7584
7599
  });
7585
7600
  }
7586
7601
  });
7587
- const DateTimePicker = withInstall(stdin_default$17);
7602
+ const DateTimePicker = withInstall(stdin_default$18);
7588
7603
  const [name$N, bem$N, t$5] = createNamespace("dialog");
7589
7604
  const dialogProps = extend({}, popupSharedProps, {
7590
7605
  title: String,
@@ -7609,7 +7624,7 @@
7609
7624
  closeOnClickOverlay: Boolean
7610
7625
  });
7611
7626
  const popupInheritKeys = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
7612
- var stdin_default$16 = vue.defineComponent({
7627
+ var stdin_default$17 = vue.defineComponent({
7613
7628
  name: name$N,
7614
7629
  props: dialogProps,
7615
7630
  emits: ["confirm", "cancel", "keydown", "update:show"],
@@ -7823,7 +7838,7 @@
7823
7838
  state,
7824
7839
  toggle
7825
7840
  } = usePopupState();
7826
- return () => vue.createVNode(stdin_default$16, vue.mergeProps(state, {
7841
+ return () => vue.createVNode(stdin_default$17, vue.mergeProps(state, {
7827
7842
  "onUpdate:show": toggle
7828
7843
  }), null);
7829
7844
  }
@@ -7861,7 +7876,7 @@
7861
7876
  instance$2.toggle(false);
7862
7877
  }
7863
7878
  };
7864
- const Dialog = withInstall(stdin_default$16);
7879
+ const Dialog = withInstall(stdin_default$17);
7865
7880
  const [name$M, bem$M] = createNamespace("field");
7866
7881
  const fieldSharedProps = {
7867
7882
  id: String,
@@ -7912,7 +7927,7 @@
7912
7927
  default: null
7913
7928
  }
7914
7929
  });
7915
- var stdin_default$15 = vue.defineComponent({
7930
+ var stdin_default$16 = vue.defineComponent({
7916
7931
  name: name$M,
7917
7932
  props: fieldProps,
7918
7933
  emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
@@ -8369,7 +8384,7 @@
8369
8384
  };
8370
8385
  }
8371
8386
  });
8372
- const Field = withInstall(stdin_default$15);
8387
+ const Field = withInstall(stdin_default$16);
8373
8388
  const [name$L, bem$L] = createNamespace("search");
8374
8389
  const searchProps = extend({}, fieldSharedProps, {
8375
8390
  shape: makeStringProp("round"),
@@ -8383,7 +8398,7 @@
8383
8398
  actionText: String,
8384
8399
  showAction: Boolean
8385
8400
  });
8386
- var stdin_default$14 = vue.defineComponent({
8401
+ var stdin_default$15 = vue.defineComponent({
8387
8402
  name: name$L,
8388
8403
  props: searchProps,
8389
8404
  emits: [
@@ -8496,8 +8511,8 @@
8496
8511
  };
8497
8512
  }
8498
8513
  });
8499
- const Search = withInstall(stdin_default$14);
8500
- var stdin_default$13 = Search;
8514
+ const Search = withInstall(stdin_default$15);
8515
+ var stdin_default$14 = Search;
8501
8516
  const parseNumber = (obj, defaultValue = 0) => {
8502
8517
  let result = parseInt(obj, 10);
8503
8518
  if (isNaN(result)) {
@@ -8533,7 +8548,7 @@
8533
8548
  stamp: Boolean,
8534
8549
  stampDiameter: makeNumberProp(60)
8535
8550
  };
8536
- var stdin_default$12 = vue.defineComponent({
8551
+ var stdin_default$13 = vue.defineComponent({
8537
8552
  name: name$K,
8538
8553
  props: tagProps,
8539
8554
  emits: ["close"],
@@ -8590,7 +8605,7 @@
8590
8605
  }, null);
8591
8606
  const LeftIcon = () => {
8592
8607
  if (props.image) {
8593
- return vue.createVNode(stdin_default$1I, {
8608
+ return vue.createVNode(stdin_default$1J, {
8594
8609
  "class": bem$K("image"),
8595
8610
  "src": props.image
8596
8611
  }, null);
@@ -8657,8 +8672,8 @@
8657
8672
  });
8658
8673
  }
8659
8674
  });
8660
- const Tag = withInstall(stdin_default$12);
8661
- var stdin_default$11 = Tag;
8675
+ const Tag = withInstall(stdin_default$13);
8676
+ var stdin_default$12 = Tag;
8662
8677
  function deepClone(obj) {
8663
8678
  if (!isDef(obj)) {
8664
8679
  return obj;
@@ -8684,9 +8699,11 @@
8684
8699
  expandAll: {
8685
8700
  type: Boolean,
8686
8701
  default: false
8687
- }
8702
+ },
8703
+ defaultSelectNode: Object,
8704
+ activeClassName: makeStringProp("")
8688
8705
  };
8689
- var stdin_default$10 = vue.defineComponent({
8706
+ var stdin_default$11 = vue.defineComponent({
8690
8707
  name: name$J,
8691
8708
  props: drawerSelectProps,
8692
8709
  emits: ["change", "select"],
@@ -8695,7 +8712,7 @@
8695
8712
  }) {
8696
8713
  const keyword = vue.ref("");
8697
8714
  const expandNode = vue.ref();
8698
- const selectNode = vue.ref();
8715
+ const selectNode = vue.ref(props.defaultSelectNode);
8699
8716
  const flatArray = vue.ref([]);
8700
8717
  const show = vue.ref(false);
8701
8718
  const searchRef = vue.ref();
@@ -8873,7 +8890,7 @@
8873
8890
  "onClick": () => item.expand = !item.expand
8874
8891
  }, [vue.createVNode("span", {
8875
8892
  "class": [bem$J("label--placeholder")]
8876
- }, [children2.length > 0 && vue.createVNode(stdin_default$1R, {
8893
+ }, [children2.length > 0 && vue.createVNode(stdin_default$1S, {
8877
8894
  "name": "play-small",
8878
8895
  "class": [bem$J("label--icon", {
8879
8896
  active: item.expand
@@ -8894,6 +8911,7 @@
8894
8911
  const renderItem = (item) => {
8895
8912
  var _a, _b;
8896
8913
  const empty = isEmpty(item);
8914
+ const active = empty && ((_a = selectNode.value) == null ? void 0 : _a.value) == item[fields.value.value];
8897
8915
  return vue.createVNode("div", {
8898
8916
  "onClick": (e2) => {
8899
8917
  e2.stopPropagation();
@@ -8904,7 +8922,7 @@
8904
8922
  "class": [bem$J("item--header")]
8905
8923
  }, [vue.createVNode("span", {
8906
8924
  "class": [bem$J("item--placeholder")]
8907
- }, [!empty && vue.createVNode(stdin_default$1R, {
8925
+ }, [!empty && vue.createVNode(stdin_default$1S, {
8908
8926
  "name": "play-small",
8909
8927
  "class": [bem$J("item--icon", {
8910
8928
  active: item.checked
@@ -8912,8 +8930,10 @@
8912
8930
  "size": "20"
8913
8931
  }, null)]), vue.createVNode("div", {
8914
8932
  "class": [bem$J("item--label", {
8915
- active: empty && ((_a = selectNode.value) == null ? void 0 : _a.value) == item[fields.value.value]
8916
- }), "zt-hairline--top"]
8933
+ active
8934
+ }), "zt-hairline--top", {
8935
+ [props.activeClassName]: active
8936
+ }]
8917
8937
  }, [item[fields.value.text]])]), vue.createVNode("div", {
8918
8938
  "class": [bem$J("item--child")]
8919
8939
  }, [!empty && item.checked && ((_b = item[fields.value.children]) == null ? void 0 : _b.map(renderItem))])]);
@@ -8940,7 +8960,7 @@
8940
8960
  }, [vue.createVNode("div", {
8941
8961
  "class": [bem$J("search")],
8942
8962
  "ref": searchRef
8943
- }, [vue.createVNode(stdin_default$13, {
8963
+ }, [vue.createVNode(stdin_default$14, {
8944
8964
  "modelValue": keyword.value,
8945
8965
  "onUpdate:modelValue": [($event) => keyword.value = $event, onSearch],
8946
8966
  "placeholder": props.placeholder,
@@ -8954,7 +8974,7 @@
8954
8974
  "style": {
8955
8975
  top: `${offset2.value}px`
8956
8976
  }
8957
- }, [vue.createVNode(stdin_default$1O, {
8977
+ }, [vue.createVNode(stdin_default$1P, {
8958
8978
  "class": [bem$J("popup")],
8959
8979
  "position": "top",
8960
8980
  "show": show.value,
@@ -8980,7 +9000,7 @@
8980
9000
  "class": [bem$J("history--title"), "zt-hairline--bottom"]
8981
9001
  }, [vue.createTextVNode("搜索历史")]), vue.createVNode("div", {
8982
9002
  "class": [bem$J("history--content")]
8983
- }, [historyList.value.map((item) => vue.createVNode(stdin_default$11, {
9003
+ }, [historyList.value.map((item) => vue.createVNode(stdin_default$12, {
8984
9004
  "onClick": () => onHistoryClick(item),
8985
9005
  "round": true,
8986
9006
  "text-color": "var(--zt-gray-a8)",
@@ -8990,7 +9010,7 @@
8990
9010
  }))]), vue.createVNode("div", {
8991
9011
  "class": [bem$J("history--clear")],
8992
9012
  "onClick": onClearHistory
8993
- }, [vue.createVNode(stdin_default$1R, {
9013
+ }, [vue.createVNode(stdin_default$1S, {
8994
9014
  "name": "delete",
8995
9015
  "size": "20"
8996
9016
  }, null), vue.createTextVNode("清空搜索历史")])]), historyList.value.length === 0 && vue.createVNode("div", {
@@ -9021,7 +9041,7 @@
9021
9041
  };
9022
9042
  }
9023
9043
  });
9024
- const DrawerSelect = withInstall(stdin_default$10);
9044
+ const DrawerSelect = withInstall(stdin_default$11);
9025
9045
  const [name$I, bem$I] = createNamespace("dropdown-menu");
9026
9046
  const dropdownMenuProps = {
9027
9047
  overlay: truthProp,
@@ -9033,7 +9053,7 @@
9033
9053
  closeOnClickOverlay: truthProp
9034
9054
  };
9035
9055
  const DROPDOWN_KEY = Symbol(name$I);
9036
- var stdin_default$$ = vue.defineComponent({
9056
+ var stdin_default$10 = vue.defineComponent({
9037
9057
  name: name$I,
9038
9058
  props: dropdownMenuProps,
9039
9059
  setup(props, {
@@ -9100,6 +9120,7 @@
9100
9120
  if (item.$slots.header) {
9101
9121
  return item.$slots.header(item);
9102
9122
  }
9123
+ const itemTitle = item.renderTitle();
9103
9124
  return vue.createVNode("div", {
9104
9125
  "id": `${id}-${index}`,
9105
9126
  "role": "button",
@@ -9125,7 +9146,9 @@
9125
9146
  }, [vue.createVNode("div", {
9126
9147
  "class": "zt-ellipsis",
9127
9148
  "style": "padding-right: 18px"
9128
- }, [slots.title || item.renderTitle(), slots.icon || vue.createVNode(stdin_default$1R, {
9149
+ }, [slots.title || (itemTitle ? itemTitle : vue.createVNode("div", {
9150
+ "class": [bem$I("placeholder")]
9151
+ }, [item.placeholder])), slots.icon || vue.createVNode(stdin_default$1S, {
9129
9152
  "class": bem$I("icon"),
9130
9153
  "name": "spinner-expand"
9131
9154
  }, null)])])]);
@@ -9168,9 +9191,11 @@
9168
9191
  modelValueArray: makeArrayProp(),
9169
9192
  titleClass: unknownProp,
9170
9193
  multiSelect: Boolean,
9171
- itemLabel: String
9194
+ itemLabel: String,
9195
+ placeholder: makeStringProp("未选择"),
9196
+ resetDefaultValue: makeArrayProp()
9172
9197
  };
9173
- var stdin_default$_ = vue.defineComponent({
9198
+ var stdin_default$$ = vue.defineComponent({
9174
9199
  name: name$H,
9175
9200
  inheritAttrs: false,
9176
9201
  props: dropdownItemProps,
@@ -9222,10 +9247,9 @@
9222
9247
  }
9223
9248
  };
9224
9249
  const onClickReset = () => {
9225
- props.options.forEach((item) => {
9226
- item.selected = false;
9227
- });
9250
+ var _a;
9228
9251
  modelArray.splice(0);
9252
+ modelArray.push(...(_a = props.resetDefaultValue) != null ? _a : []);
9229
9253
  state.showPopup = false;
9230
9254
  emit("reset");
9231
9255
  };
@@ -9261,7 +9285,7 @@
9261
9285
  if (title.length > 0) {
9262
9286
  title = title.substring(0, title.length - 1);
9263
9287
  }
9264
- return title || "未选择";
9288
+ return title;
9265
9289
  }
9266
9290
  const match = props.options.find((option) => option[fields.value.value] === props.modelValue);
9267
9291
  return match ? match[fields.value.text] : "";
@@ -9274,8 +9298,11 @@
9274
9298
  const text = option[fields.value.text];
9275
9299
  let active = false;
9276
9300
  if (props.multiSelect) {
9277
- if (option.selected) {
9301
+ if (modelArray == null ? void 0 : modelArray.includes(value)) {
9278
9302
  active = true;
9303
+ option.selected = true;
9304
+ } else {
9305
+ option.selected = false;
9279
9306
  }
9280
9307
  } else {
9281
9308
  active = value === props.modelValue;
@@ -9283,12 +9310,10 @@
9283
9310
  const onClick = () => {
9284
9311
  if (props.multiSelect) {
9285
9312
  if (option.selected) {
9286
- option.selected = false;
9287
9313
  modelArray.splice(modelArray.indexOf(value), 1);
9288
9314
  emit("update:modelValue", -value);
9289
9315
  emit("change", -value);
9290
9316
  } else {
9291
- option.selected = true;
9292
9317
  modelArray.push(value);
9293
9318
  emit("update:modelValue", value);
9294
9319
  emit("change", value);
@@ -9458,9 +9483,9 @@
9458
9483
  };
9459
9484
  }
9460
9485
  });
9461
- const DropdownItem = withInstall(stdin_default$_);
9462
- const DropdownMenu = withInstall(stdin_default$$);
9463
- const renderNotFound = (bem2) => vue.createVNode("svg", {
9486
+ const DropdownItem = withInstall(stdin_default$$);
9487
+ const DropdownMenu = withInstall(stdin_default$10);
9488
+ const renderNotFound = (bem2, getId, getUrlById) => vue.createVNode("svg", {
9464
9489
  "xmlns": "http://www.w3.org/2000/svg",
9465
9490
  "viewBox": "0 0 160 160",
9466
9491
  "class": "design-iconfont"
@@ -9469,7 +9494,7 @@
9469
9494
  "y1": "100%",
9470
9495
  "x2": "50%",
9471
9496
  "y2": "0%",
9472
- "id": "iwtsazmcp__0l3luddeua"
9497
+ "id": getId(1)
9473
9498
  }, [vue.createVNode("stop", {
9474
9499
  "class": bem2("svg-defs-stop-color-gradient"),
9475
9500
  "stop-opacity": ".1",
@@ -9483,7 +9508,7 @@
9483
9508
  "y1": "100%",
9484
9509
  "x2": "50%",
9485
9510
  "y2": "0%",
9486
- "id": "iwtsazmcp__fsa5v33ucb"
9511
+ "id": getId(2)
9487
9512
  }, [vue.createVNode("stop", {
9488
9513
  "class": bem2("svg-defs-stop-color"),
9489
9514
  "stop-opacity": "0",
@@ -9497,7 +9522,7 @@
9497
9522
  "y1": "100%",
9498
9523
  "x2": "50%",
9499
9524
  "y2": "0%",
9500
- "id": "iwtsazmcp__zyelz8r8tc"
9525
+ "id": getId(3)
9501
9526
  }, [vue.createVNode("stop", {
9502
9527
  "class": bem2("svg-defs-stop-color"),
9503
9528
  "offset": "0%"
@@ -9560,14 +9585,14 @@
9560
9585
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
9561
9586
  }, null), vue.createVNode("path", {
9562
9587
  "d": "M120,68 C124.418278,68 128,71.581722 128,76 L128,124 C128,128.418278 124.418278,132 120,132 L88,132 C84.2724501,132 81.1403373,129.450631 80.2521271,126.000358 L99,126 C107.836556,126 115,118.836556 115,110 L114.999127,68 L120,68 Z",
9563
- "fill": "url(#iwtsazmcp__0l3luddeua)"
9588
+ "fill": getUrlById(1)
9564
9589
  }, null), vue.createVNode("path", {
9565
9590
  "d": "M16,4 L56,4 C62.627417,4 68,9.372583 68,16 L68,80 C68,86.627417 62.627417,92 56,92 L16,92 C9.372583,92 4,86.627417 4,80 L4,16 C4,9.372583 9.372583,4 16,4 Z",
9566
- "fill": "url(#iwtsazmcp__fsa5v33ucb)",
9591
+ "fill": getUrlById(2),
9567
9592
  "transform": "translate(43 30)"
9568
9593
  }, null), vue.createVNode("path", {
9569
9594
  "d": "M56,0 C64.836556,0 72,7.163444 72,16 L72,80 C72,88.836556 64.836556,96 56,96 L16,96 C7.163444,96 0,88.836556 0,80 L0,16 C0,7.163444 7.163444,0 16,0 L56,0 Z M48,12 C48,14.209139 46.209139,16 44,16 L28,16 C25.790861,16 24,14.209139 24,12 L24,8 L16,8 C11.581722,8 8,11.581722 8,16 L8,80 C8,84.418278 11.581722,88 16,88 L56,88 C60.418278,88 64,84.418278 64,80 L64,16 C64,11.581722 60.418278,8 56,8 L48,8 L48,12 Z",
9570
- "fill": "url(#iwtsazmcp__zyelz8r8tc)",
9595
+ "fill": getUrlById(3),
9571
9596
  "transform": "translate(43 30)"
9572
9597
  }, null), vue.createVNode("g", {
9573
9598
  "transform": "translate(43 30)"
@@ -9588,7 +9613,7 @@
9588
9613
  "fill": "#FFF",
9589
9614
  "xlink:href": "#iwtsazmcp__qni97e1yqg"
9590
9615
  }, null)])])]);
9591
- const renderServerError = (bem2) => vue.createVNode("svg", {
9616
+ const renderServerError = (bem2, getId, getUrlById) => vue.createVNode("svg", {
9592
9617
  "xmlns": "http://www.w3.org/2000/svg",
9593
9618
  "viewBox": "0 0 160 160",
9594
9619
  "class": "design-iconfont"
@@ -9597,7 +9622,7 @@
9597
9622
  "y1": "100%",
9598
9623
  "x2": "50%",
9599
9624
  "y2": "0%",
9600
- "id": "7kkq7j5p7__15jshfc70a"
9625
+ "id": getId(1)
9601
9626
  }, [vue.createVNode("stop", {
9602
9627
  "class": bem2("svg-defs-stop-color-gradient"),
9603
9628
  "stop-opacity": ".1",
@@ -9611,7 +9636,7 @@
9611
9636
  "y1": "100%",
9612
9637
  "x2": "50%",
9613
9638
  "y2": "0%",
9614
- "id": "7kkq7j5p7__99j8u0oreb"
9639
+ "id": getId(2)
9615
9640
  }, [vue.createVNode("stop", {
9616
9641
  "class": bem2("svg-defs-stop-color"),
9617
9642
  "stop-opacity": "0",
@@ -9625,7 +9650,7 @@
9625
9650
  "y1": "100%",
9626
9651
  "x2": "50%",
9627
9652
  "y2": "0%",
9628
- "id": "7kkq7j5p7__6mkfsut7ac"
9653
+ "id": getId(3)
9629
9654
  }, [vue.createVNode("stop", {
9630
9655
  "class": bem2("svg-defs-stop-color"),
9631
9656
  "offset": "0%"
@@ -9687,13 +9712,13 @@
9687
9712
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
9688
9713
  }, null), vue.createVNode("path", {
9689
9714
  "d": "M118,68 C122.418278,68 126,71.581722 126,76 L126,124 C126,128.418278 122.418278,132 118,132 L86,132 C82.2724501,132 79.1403373,129.450631 78.2521271,126.000358 L97,126 C105.836556,126 113,118.836556 113,110 L112.999127,68 L118,68 Z",
9690
- "fill": "url(#7kkq7j5p7__15jshfc70a)"
9715
+ "fill": getUrlById(1)
9691
9716
  }, null), vue.createVNode("path", {
9692
9717
  "d": "M57,34 L97,34 C103.627417,34 109,39.372583 109,46 L109,110 C109,116.627417 103.627417,122 97,122 L57,122 C50.372583,122 45,116.627417 45,110 L45,46 C45,39.372583 50.372583,34 57,34 Z",
9693
- "fill": "url(#7kkq7j5p7__99j8u0oreb)"
9718
+ "fill": getUrlById(2)
9694
9719
  }, null), vue.createVNode("path", {
9695
9720
  "d": "M97,30 C105.836556,30 113,37.163444 113,46 L113,110 C113,118.836556 105.836556,126 97,126 L57,126 C48.163444,126 41,118.836556 41,110 L41,46 C41,37.163444 48.163444,30 57,30 L97,30 Z M89,42 C89,44.209139 87.209139,46 85,46 L69,46 C66.790861,46 65,44.209139 65,42 L65,38 L57,38 C52.581722,38 49,41.581722 49,46 L49,110 C49,114.418278 52.581722,118 57,118 L97,118 C101.418278,118 105,114.418278 105,110 L105,46 C105,41.581722 101.418278,38 97,38 L89,38 L89,42 Z",
9696
- "fill": "url(#7kkq7j5p7__6mkfsut7ac)"
9721
+ "fill": getUrlById(3)
9697
9722
  }, null), vue.createVNode("g", {
9698
9723
  "transform": "translate(53.42222 65.5)"
9699
9724
  }, [vue.createVNode("use", {
@@ -9713,7 +9738,7 @@
9713
9738
  "fill": "#FFF",
9714
9739
  "xlink:href": "#7kkq7j5p7__45z80jbylg"
9715
9740
  }, null)])])]);
9716
- const renderAccessRestricted = (bem2) => vue.createVNode("svg", {
9741
+ const renderAccessRestricted = (bem2, getId, getUrlById) => vue.createVNode("svg", {
9717
9742
  "xmlns": "http://www.w3.org/2000/svg",
9718
9743
  "viewBox": "0 0 160 160",
9719
9744
  "class": "design-iconfont"
@@ -9722,7 +9747,7 @@
9722
9747
  "y1": "100%",
9723
9748
  "x2": "50%",
9724
9749
  "y2": "0%",
9725
- "id": "osn32hg6k__gjst0w01ba"
9750
+ "id": getId(1)
9726
9751
  }, [vue.createVNode("stop", {
9727
9752
  "class": bem2("svg-defs-stop-color"),
9728
9753
  "stop-opacity": ".1",
@@ -9736,7 +9761,7 @@
9736
9761
  "y1": "100%",
9737
9762
  "x2": "50%",
9738
9763
  "y2": "0%",
9739
- "id": "osn32hg6k__1f6krzwf2b"
9764
+ "id": getId(2)
9740
9765
  }, [vue.createVNode("stop", {
9741
9766
  "class": bem2("svg-defs-stop-color"),
9742
9767
  "stop-opacity": "0",
@@ -9750,7 +9775,7 @@
9750
9775
  "y1": "100%",
9751
9776
  "x2": "50%",
9752
9777
  "y2": "0%",
9753
- "id": "osn32hg6k__gdmvw9w4yc"
9778
+ "id": getId(3)
9754
9779
  }, [vue.createVNode("stop", {
9755
9780
  "class": bem2("svg-defs-stop-color"),
9756
9781
  "offset": "0%"
@@ -9787,13 +9812,13 @@
9787
9812
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
9788
9813
  }, null), vue.createVNode("path", {
9789
9814
  "d": "M114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C84.1855747,128 80.9946648,125.330413 80.1937019,121.757672 C98.1007036,119.680283 112,104.463319 112,86 L112,80 L114,80 Z",
9790
- "fill": "url(#osn32hg6k__gjst0w01ba)"
9815
+ "fill": getUrlById(1)
9791
9816
  }, null), vue.createVNode("path", {
9792
9817
  "d": "M56,44 L96,44 C102.627417,44 108,49.372583 108,56 L108,86 C108,103.673112 93.673112,118 76,118 L56,118 C49.372583,118 44,112.627417 44,106 L44,56 C44,49.372583 49.372583,44 56,44 Z",
9793
- "fill": "url(#osn32hg6k__1f6krzwf2b)"
9818
+ "fill": getUrlById(2)
9794
9819
  }, null), vue.createVNode("path", {
9795
9820
  "d": "M90,31 C92.209139,31 94,32.790861 94,35 L94,40 L96,40 C104.836556,40 112,47.163444 112,56 L112,86 C112,105.882251 95.882251,122 76,122 L56,122 C47.163444,122 40,114.836556 40,106 L40,56 C40,47.163444 47.163444,40 56,40 L58,40 L58,35 C58,32.790861 59.790861,31 62,31 C64.209139,31 66,32.790861 66,35 L66,40 L86,40 L86,35 C86,32.790861 87.790861,31 90,31 Z M96,48 L56,48 C51.581722,48 48,51.581722 48,56 L48,106 C48,110.418278 51.581722,114 56,114 L76,114 C91.463973,114 104,101.463973 104,86 L104,56 C104,51.581722 100.418278,48 96,48 Z",
9796
- "fill": "url(#osn32hg6k__gdmvw9w4yc)"
9821
+ "fill": getUrlById(3)
9797
9822
  }, null), vue.createVNode("g", null, [vue.createVNode("use", {
9798
9823
  "class": bem2("svg-defs-path-fill"),
9799
9824
  "filter": "url(#osn32hg6k__96p18i5xad)",
@@ -9802,7 +9827,7 @@
9802
9827
  "fill": "#FFF",
9803
9828
  "xlink:href": "#osn32hg6k__2vtr6xgyge"
9804
9829
  }, null)])])]);
9805
- const renderDeveloping = (bem2) => vue.createVNode("svg", {
9830
+ const renderDeveloping = (bem2, getId, getUrlById) => vue.createVNode("svg", {
9806
9831
  "xmlns": "http://www.w3.org/2000/svg",
9807
9832
  "viewBox": "0 0 160 160",
9808
9833
  "class": "design-iconfont"
@@ -9811,7 +9836,7 @@
9811
9836
  "y1": "100%",
9812
9837
  "x2": "50%",
9813
9838
  "y2": "0%",
9814
- "id": "0rplvus3a__oscf81e1aa"
9839
+ "id": getId(1)
9815
9840
  }, [vue.createVNode("stop", {
9816
9841
  "class": bem2("svg-defs-stop-color"),
9817
9842
  "stop-opacity": ".1",
@@ -9825,7 +9850,7 @@
9825
9850
  "y1": "100%",
9826
9851
  "x2": "50%",
9827
9852
  "y2": "0%",
9828
- "id": "0rplvus3a__azrppckntb"
9853
+ "id": getId(2)
9829
9854
  }, [vue.createVNode("stop", {
9830
9855
  "class": bem2("svg-defs-stop-color"),
9831
9856
  "offset": "0%"
@@ -9837,7 +9862,7 @@
9837
9862
  "y1": "100%",
9838
9863
  "x2": "50%",
9839
9864
  "y2": "0%",
9840
- "id": "0rplvus3a__9ocf4qkfyc"
9865
+ "id": getId(3)
9841
9866
  }, [vue.createVNode("stop", {
9842
9867
  "class": bem2("svg-defs-stop-color"),
9843
9868
  "stop-opacity": "0",
@@ -9876,15 +9901,15 @@
9876
9901
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
9877
9902
  }, null), vue.createVNode("path", {
9878
9903
  "d": "M30.9499998,77 L57.0500002,77 C59.7838096,77 62,79.2161904 62,81.9499998 L62,82.0500002 C62,84.7838096 59.7838096,87 57.0500002,87 L30.9499998,87 C28.2161904,87 26,84.7838096 26,82.0500002 L26,81.9499998 C26,79.2161904 28.2161904,77 30.9499998,77 Z",
9879
- "fill": "url(#0rplvus3a__oscf81e1aa)",
9904
+ "fill": getUrlById(1),
9880
9905
  "transform": "translate(36 37)"
9881
9906
  }, null), vue.createVNode("path", {
9882
9907
  "d": "M79,1.42108547e-14 C83.8011292,1.42108547e-14 88,4.20251975 88,9 L88,54 C88,62.9808979 80.9869924,70 72,70 L16,70 C7.01300757,70 0,62.9808979 0,54 L0,9 C0,4.20251975 4.19887078,1.42108547e-14 9,1.42108547e-14 L79,1.42108547e-14 Z M79,18 L9,18 C8.62504067,18 8,18.62538 8,19 L8,54 C8,58.5604098 11.4377237,62 16,62 L72,62 C76.5622763,62 80,58.5604098 80,54 L80,19 C80,18.62538 79.3749593,18 79,18 Z",
9883
- "fill": "url(#0rplvus3a__azrppckntb)",
9908
+ "fill": getUrlById(2),
9884
9909
  "transform": "translate(36 37)"
9885
9910
  }, null), vue.createVNode("path", {
9886
9911
  "d": "M78.5842697,18 L9.41573034,18 C8.63384406,18 8,18.62538 8,19.3968254 L8,54.3174603 C8,58.5604098 11.4861423,62 15.7865169,62 L72.2134831,62 C76.5138577,62 80,58.5604098 80,54.3174603 L80,19.3968254 C80,18.62538 79.3661559,18 78.5842697,18 Z",
9887
- "fill": "url(#0rplvus3a__9ocf4qkfyc)",
9912
+ "fill": getUrlById(3),
9888
9913
  "transform": "translate(36 37)"
9889
9914
  }, null), vue.createVNode("path", {
9890
9915
  "d": "M11,12 C12.6568542,12 14,10.6568542 14,9 C14,7.34314575 12.6568542,6 11,6 C9.34314575,6 8,7.34314575 8,9 C8,10.6568542 9.34314575,12 11,12 Z M20,12 C21.6568542,12 23,10.6568542 23,9 C23,7.34314575 21.6568542,6 20,6 C18.3431458,6 17,7.34314575 17,9 C17,10.6568542 18.3431458,12 20,12 Z M29,12 C30.6568542,12 32,10.6568542 32,9 C32,7.34314575 30.6568542,6 29,6 C27.3431458,6 26,7.34314575 26,9 C26,10.6568542 27.3431458,12 29,12 Z",
@@ -9900,7 +9925,7 @@
9900
9925
  "fill": "#FFF",
9901
9926
  "xlink:href": "#0rplvus3a__7t0ftckj4e"
9902
9927
  }, null)])])]);
9903
- const renderNetworkError = (bem2) => vue.createVNode("svg", {
9928
+ const renderNetworkError = (bem2, getId, getUrlById) => vue.createVNode("svg", {
9904
9929
  "xmlns": "http://www.w3.org/2000/svg",
9905
9930
  "viewBox": "0 0 160 160",
9906
9931
  "class": "design-iconfont"
@@ -9909,7 +9934,7 @@
9909
9934
  "y1": "100%",
9910
9935
  "x2": "50%",
9911
9936
  "y2": "0%",
9912
- "id": "xg345q5xi__5lbyx15b5b"
9937
+ "id": getId(1)
9913
9938
  }, [vue.createVNode("stop", {
9914
9939
  "class": bem2("svg-defs-stop-color-gradient"),
9915
9940
  "stop-opacity": "0",
@@ -9923,7 +9948,7 @@
9923
9948
  "y1": "0%",
9924
9949
  "x2": "50%",
9925
9950
  "y2": "100%",
9926
- "id": "xg345q5xi__ty8l0w0aga"
9951
+ "id": getId(2)
9927
9952
  }, [vue.createVNode("stop", {
9928
9953
  "class": bem2("svg-defs-stop-color-gradient"),
9929
9954
  "offset": "0%"
@@ -9964,9 +9989,9 @@
9964
9989
  "opacity": ".24220203"
9965
9990
  }, null), vue.createVNode("path", {
9966
9991
  "d": "M56,44 L96,44 C102.627417,44 108,49.372583 108,56 L108,86 C108,103.673112 93.673112,118 76,118 L56,118 C49.372583,118 44,112.627417 44,106 L44,56 C44,49.372583 49.372583,44 56,44 Z",
9967
- "stroke": "url(#xg345q5xi__ty8l0w0aga)",
9992
+ "stroke": getUrlById(2),
9968
9993
  "stroke-width": "8",
9969
- "fill": "url(#xg345q5xi__5lbyx15b5b)"
9994
+ "fill": getUrlById(1)
9970
9995
  }, null), vue.createVNode("use", {
9971
9996
  "class": bem2("svg-defs-path-fill"),
9972
9997
  "filter": "url(#xg345q5xi__ky1vat27oc)",
@@ -9989,7 +10014,7 @@
9989
10014
  "height": "16",
9990
10015
  "rx": "4"
9991
10016
  }, null)])]);
9992
- const renderEmptyResult = (bem2) => vue.createVNode("svg", {
10017
+ const renderEmptyResult = (bem2, getId, getUrlById) => vue.createVNode("svg", {
9993
10018
  "xmlns": "http://www.w3.org/2000/svg",
9994
10019
  "viewBox": "0 0 160 160",
9995
10020
  "class": "design-iconfont"
@@ -9998,7 +10023,7 @@
9998
10023
  "y1": "100%",
9999
10024
  "x2": "50%",
10000
10025
  "y2": "0%",
10001
- "id": "cgogdnfso__fj6f5739ra"
10026
+ "id": getId(1)
10002
10027
  }, [vue.createVNode("stop", {
10003
10028
  "class": bem2("svg-defs-stop-color"),
10004
10029
  "stop-opacity": ".1",
@@ -10012,7 +10037,7 @@
10012
10037
  "y1": "100%",
10013
10038
  "x2": "50%",
10014
10039
  "y2": "0%",
10015
- "id": "cgogdnfso__u8bce9jl0b"
10040
+ "id": getId(2)
10016
10041
  }, [vue.createVNode("stop", {
10017
10042
  "class": bem2("svg-defs-stop-color"),
10018
10043
  "stop-opacity": "0",
@@ -10026,7 +10051,7 @@
10026
10051
  "y1": "100%",
10027
10052
  "x2": "50%",
10028
10053
  "y2": "0%",
10029
- "id": "cgogdnfso__1yqn57bztc"
10054
+ "id": getId(3)
10030
10055
  }, [vue.createVNode("stop", {
10031
10056
  "class": bem2("svg-defs-stop-color"),
10032
10057
  "offset": "0%"
@@ -10063,13 +10088,13 @@
10063
10088
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
10064
10089
  }, null), vue.createVNode("path", {
10065
10090
  "d": "M114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C84.1855747,128 80.9946648,125.330413 80.1937019,121.757672 C98.1007036,119.680283 112,104.463319 112,86 L112,80 L114,80 Z",
10066
- "fill": "url(#cgogdnfso__fj6f5739ra)"
10091
+ "fill": getUrlById(1)
10067
10092
  }, null), vue.createVNode("path", {
10068
10093
  "d": "M56,44 L96,44 C102.627417,44 108,49.372583 108,56 L108,86 C108,103.673112 93.673112,118 76,118 L56,118 C49.372583,118 44,112.627417 44,106 L44,56 C44,49.372583 49.372583,44 56,44 Z",
10069
- "fill": "url(#cgogdnfso__u8bce9jl0b)"
10094
+ "fill": getUrlById(2)
10070
10095
  }, null), vue.createVNode("path", {
10071
10096
  "d": "M90,31 C92.209139,31 94,32.790861 94,35 L94,40 L96,40 C104.836556,40 112,47.163444 112,56 L112,86 C112,105.882251 95.882251,122 76,122 L56,122 C47.163444,122 40,114.836556 40,106 L40,56 C40,47.163444 47.163444,40 56,40 L58,40 L58,35 C58,32.790861 59.790861,31 62,31 C64.209139,31 66,32.790861 66,35 L66,40 L86,40 L86,35 C86,32.790861 87.790861,31 90,31 Z M96,48 L56,48 C51.581722,48 48,51.581722 48,56 L48,106 C48,110.418278 51.581722,114 56,114 L76,114 C91.463973,114 104,101.463973 104,86 L104,56 C104,51.581722 100.418278,48 96,48 Z",
10072
- "fill": "url(#cgogdnfso__1yqn57bztc)"
10097
+ "fill": getUrlById(3)
10073
10098
  }, null), vue.createVNode("g", null, [vue.createVNode("use", {
10074
10099
  "class": bem2("svg-defs-path-fill"),
10075
10100
  "filter": "url(#cgogdnfso__7fi3sy00cd)",
@@ -10078,7 +10103,7 @@
10078
10103
  "fill": "#FFF",
10079
10104
  "xlink:href": "#cgogdnfso__sffqrzc91e"
10080
10105
  }, null)])])]);
10081
- const renderFindNull = (bem2) => vue.createVNode("svg", {
10106
+ const renderFindNull = (bem2, getId, getUrlById) => vue.createVNode("svg", {
10082
10107
  "xmlns": "http://www.w3.org/2000/svg",
10083
10108
  "viewBox": "0 0 160 160",
10084
10109
  "class": "design-iconfont"
@@ -10087,7 +10112,7 @@
10087
10112
  "y1": "100%",
10088
10113
  "x2": "50%",
10089
10114
  "y2": "0%",
10090
- "id": "cgogdnfso__fj6f5739ra"
10115
+ "id": getId(1)
10091
10116
  }, [vue.createVNode("stop", {
10092
10117
  "class": bem2("svg-defs-stop-color"),
10093
10118
  "stop-opacity": ".1",
@@ -10101,7 +10126,7 @@
10101
10126
  "y1": "100%",
10102
10127
  "x2": "50%",
10103
10128
  "y2": "0%",
10104
- "id": "cgogdnfso__u8bce9jl0b"
10129
+ "id": getId(2)
10105
10130
  }, [vue.createVNode("stop", {
10106
10131
  "class": bem2("svg-defs-stop-color"),
10107
10132
  "stop-opacity": "0",
@@ -10115,7 +10140,7 @@
10115
10140
  "y1": "100%",
10116
10141
  "x2": "50%",
10117
10142
  "y2": "0%",
10118
- "id": "cgogdnfso__1yqn57bztc"
10143
+ "id": getId(3)
10119
10144
  }, [vue.createVNode("stop", {
10120
10145
  "class": bem2("svg-defs-stop-color"),
10121
10146
  "offset": "0%"
@@ -10128,7 +10153,7 @@
10128
10153
  "width": "181.2%",
10129
10154
  "height": "183.9%",
10130
10155
  "filterUnits": "objectBoundingBox",
10131
- "id": "cgogdnfso__7fi3sy00cd"
10156
+ "id": getId(4)
10132
10157
  }, [vue.createVNode("feOffset", {
10133
10158
  "dy": "2",
10134
10159
  "in": "SourceGraphic",
@@ -10152,22 +10177,22 @@
10152
10177
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
10153
10178
  }, null), vue.createVNode("path", {
10154
10179
  "d": "M114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C84.1855747,128 80.9946648,125.330413 80.1937019,121.757672 C98.1007036,119.680283 112,104.463319 112,86 L112,80 L114,80 Z",
10155
- "fill": "url(#cgogdnfso__fj6f5739ra)"
10180
+ "fill": getUrlById(1)
10156
10181
  }, null), vue.createVNode("path", {
10157
10182
  "d": "M56,44 L96,44 C102.627417,44 108,49.372583 108,56 L108,86 C108,103.673112 93.673112,118 76,118 L56,118 C49.372583,118 44,112.627417 44,106 L44,56 C44,49.372583 49.372583,44 56,44 Z",
10158
- "fill": "url(#cgogdnfso__u8bce9jl0b)"
10183
+ "fill": getUrlById(2)
10159
10184
  }, null), vue.createVNode("path", {
10160
10185
  "d": "M90,31 C92.209139,31 94,32.790861 94,35 L94,40 L96,40 C104.836556,40 112,47.163444 112,56 L112,86 C112,105.882251 95.882251,122 76,122 L56,122 C47.163444,122 40,114.836556 40,106 L40,56 C40,47.163444 47.163444,40 56,40 L58,40 L58,35 C58,32.790861 59.790861,31 62,31 C64.209139,31 66,32.790861 66,35 L66,40 L86,40 L86,35 C86,32.790861 87.790861,31 90,31 Z M96,48 L56,48 C51.581722,48 48,51.581722 48,56 L48,106 C48,110.418278 51.581722,114 56,114 L76,114 C91.463973,114 104,101.463973 104,86 L104,56 C104,51.581722 100.418278,48 96,48 Z",
10161
- "fill": "url(#cgogdnfso__1yqn57bztc)"
10186
+ "fill": getUrlById(3)
10162
10187
  }, null), vue.createVNode("g", null, [vue.createVNode("use", {
10163
10188
  "class": bem2("svg-defs-path-fill"),
10164
- "filter": "url(#cgogdnfso__7fi3sy00cd)",
10189
+ "filter": getUrlById(4),
10165
10190
  "xlink:href": "#cgogdnfso__sffqrzc91e"
10166
10191
  }, null), vue.createVNode("use", {
10167
10192
  "fill": "#FFF",
10168
10193
  "xlink:href": "#cgogdnfso__sffqrzc91e"
10169
10194
  }, null)])])]);
10170
- const renderEmptyInterface = (bem2) => vue.createVNode("svg", {
10195
+ const renderEmptyInterface = (bem2, getId, getUrlById) => vue.createVNode("svg", {
10171
10196
  "xmlns": "http://www.w3.org/2000/svg",
10172
10197
  "viewBox": "0 0 160 160",
10173
10198
  "class": "design-iconfont"
@@ -10176,7 +10201,7 @@
10176
10201
  "y1": "100%",
10177
10202
  "x2": "50%",
10178
10203
  "y2": "0%",
10179
- "id": "6t7l7j7ds__wirruftrqa"
10204
+ "id": getId(1)
10180
10205
  }, [vue.createVNode("stop", {
10181
10206
  "class": bem2("svg-defs-stop-color"),
10182
10207
  "stop-opacity": ".1",
@@ -10190,7 +10215,7 @@
10190
10215
  "y1": "100%",
10191
10216
  "x2": "50%",
10192
10217
  "y2": "0%",
10193
- "id": "6t7l7j7ds__j7hvusgxab"
10218
+ "id": getId(2)
10194
10219
  }, [vue.createVNode("stop", {
10195
10220
  "class": bem2("svg-defs-stop-color"),
10196
10221
  "stop-opacity": "0",
@@ -10204,7 +10229,7 @@
10204
10229
  "y1": "100%",
10205
10230
  "x2": "50%",
10206
10231
  "y2": "0%",
10207
- "id": "6t7l7j7ds__joal40yxdc"
10232
+ "id": getId(3)
10208
10233
  }, [vue.createVNode("stop", {
10209
10234
  "class": bem2("svg-defs-stop-color"),
10210
10235
  "offset": "0%"
@@ -10217,7 +10242,7 @@
10217
10242
  "width": "172.2%",
10218
10243
  "height": "425%",
10219
10244
  "filterUnits": "objectBoundingBox",
10220
- "id": "6t7l7j7ds__39x4ds797d"
10245
+ "id": getId(4)
10221
10246
  }, [vue.createVNode("feOffset", {
10222
10247
  "dy": "2",
10223
10248
  "in": "SourceGraphic",
@@ -10241,22 +10266,22 @@
10241
10266
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
10242
10267
  }, null), vue.createVNode("path", {
10243
10268
  "d": "M114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C84.1855747,128 80.9946648,125.330413 80.1937019,121.757672 C98.1007036,119.680283 112,104.463319 112,86 L112,80 L114,80 Z",
10244
- "fill": "url(#6t7l7j7ds__wirruftrqa)"
10269
+ "fill": getUrlById(1)
10245
10270
  }, null), vue.createVNode("path", {
10246
10271
  "d": "M56,44 L96,44 C102.627417,44 108,49.372583 108,56 L108,86 C108,103.673112 93.673112,118 76,118 L56,118 C49.372583,118 44,112.627417 44,106 L44,56 C44,49.372583 49.372583,44 56,44 Z",
10247
- "fill": "url(#6t7l7j7ds__j7hvusgxab)"
10272
+ "fill": getUrlById(2)
10248
10273
  }, null), vue.createVNode("path", {
10249
10274
  "d": "M90,31 C92.209139,31 94,32.790861 94,35 L94,40 L96,40 C104.836556,40 112,47.163444 112,56 L112,86 C112,105.882251 95.882251,122 76,122 L56,122 C47.163444,122 40,114.836556 40,106 L40,56 C40,47.163444 47.163444,40 56,40 L58,40 L58,35 C58,32.790861 59.790861,31 62,31 C64.209139,31 66,32.790861 66,35 L66,40 L86,40 L86,35 C86,32.790861 87.790861,31 90,31 Z M96,48 L56,48 C51.581722,48 48,51.581722 48,56 L48,106 C48,110.418278 51.581722,114 56,114 L76,114 C91.463973,114 104,101.463973 104,86 L104,56 C104,51.581722 100.418278,48 96,48 Z",
10250
- "fill": "url(#6t7l7j7ds__joal40yxdc)"
10275
+ "fill": getUrlById(3)
10251
10276
  }, null), vue.createVNode("g", null, [vue.createVNode("use", {
10252
10277
  "class": bem2("svg-defs-path-fill"),
10253
- "filter": "url(#6t7l7j7ds__39x4ds797d)",
10278
+ "filter": getUrlById(4),
10254
10279
  "xlink:href": "#6t7l7j7ds__41nn7lg6ve"
10255
10280
  }, null), vue.createVNode("use", {
10256
10281
  "fill": "#FFF",
10257
10282
  "xlink:href": "#6t7l7j7ds__41nn7lg6ve"
10258
10283
  }, null)])])]);
10259
- const renderReportSuccess = (bem2) => vue.createVNode("svg", {
10284
+ const renderReportSuccess = (bem2, getId, getUrlById) => vue.createVNode("svg", {
10260
10285
  "xmlns": "http://www.w3.org/2000/svg",
10261
10286
  "viewBox": "0 0 160 160",
10262
10287
  "class": "design-iconfont"
@@ -10265,7 +10290,7 @@
10265
10290
  "y1": "100%",
10266
10291
  "x2": "50%",
10267
10292
  "y2": "0%",
10268
- "id": "h3r8rva5d__eew5rymana"
10293
+ "id": getId(1)
10269
10294
  }, [vue.createVNode("stop", {
10270
10295
  "class": bem2("svg-defs-stop-color"),
10271
10296
  "stop-opacity": ".1",
@@ -10279,7 +10304,7 @@
10279
10304
  "y1": "100%",
10280
10305
  "x2": "50%",
10281
10306
  "y2": "0%",
10282
- "id": "h3r8rva5d__92vm2xo10b"
10307
+ "id": getId(2)
10283
10308
  }, [vue.createVNode("stop", {
10284
10309
  "class": bem2("svg-defs-stop-color"),
10285
10310
  "stop-opacity": "0",
@@ -10293,7 +10318,7 @@
10293
10318
  "y1": "100%",
10294
10319
  "x2": "50%",
10295
10320
  "y2": "0%",
10296
- "id": "h3r8rva5d__hy0jyvrkqc"
10321
+ "id": getId(3)
10297
10322
  }, [vue.createVNode("stop", {
10298
10323
  "class": bem2("svg-defs-stop-color"),
10299
10324
  "offset": "0%"
@@ -10306,7 +10331,7 @@
10306
10331
  "width": "169.6%",
10307
10332
  "height": "168.4%",
10308
10333
  "filterUnits": "objectBoundingBox",
10309
- "id": "h3r8rva5d__z54fmdxnmd"
10334
+ "id": getId(4)
10310
10335
  }, [vue.createVNode("feOffset", {
10311
10336
  "dy": "2",
10312
10337
  "in": "SourceGraphic",
@@ -10324,7 +10349,7 @@
10324
10349
  "width": "220%",
10325
10350
  "height": "220%",
10326
10351
  "filterUnits": "objectBoundingBox",
10327
- "id": "h3r8rva5d__zhi8u4oqbf"
10352
+ "id": getId(5)
10328
10353
  }, [vue.createVNode("feOffset", {
10329
10354
  "dy": "3",
10330
10355
  "in": "SourceGraphic",
@@ -10351,16 +10376,16 @@
10351
10376
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
10352
10377
  }, null), vue.createVNode("path", {
10353
10378
  "d": "M114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C84.1855747,128 80.9946648,125.330413 80.1937019,121.757672 C98.1007036,119.680283 112,104.463319 112,86 L112,80 L114,80 Z",
10354
- "fill": "url(#h3r8rva5d__eew5rymana)"
10379
+ "fill": getUrlById(1)
10355
10380
  }, null), vue.createVNode("path", {
10356
10381
  "d": "M56,44 L96,44 C102.627417,44 108,49.372583 108,56 L108,86 C108,103.673112 93.673112,118 76,118 L56,118 C49.372583,118 44,112.627417 44,106 L44,56 C44,49.372583 49.372583,44 56,44 Z",
10357
- "fill": "url(#h3r8rva5d__92vm2xo10b)"
10382
+ "fill": getUrlById(2)
10358
10383
  }, null), vue.createVNode("path", {
10359
10384
  "d": "M90,31 C92.209139,31 94,32.790861 94,35 L94,40 L96,40 C104.836556,40 112,47.163444 112,56 L112,86 C112,105.882251 95.882251,122 76,122 L56,122 C47.163444,122 40,114.836556 40,106 L40,56 C40,47.163444 47.163444,40 56,40 L58,40 L58,35 C58,32.790861 59.790861,31 62,31 C64.209139,31 66,32.790861 66,35 L66,40 L86,40 L86,35 C86,32.790861 87.790861,31 90,31 Z M96,48 L56,48 C51.581722,48 48,51.581722 48,56 L48,106 C48,110.418278 51.581722,114 56,114 L76,114 C91.463973,114 104,101.463973 104,86 L104,56 C104,51.581722 100.418278,48 96,48 Z",
10360
- "fill": "url(#h3r8rva5d__hy0jyvrkqc)"
10385
+ "fill": getUrlById(3)
10361
10386
  }, null), vue.createVNode("g", null, [vue.createVNode("use", {
10362
10387
  "class": bem2("svg-defs-path-fill"),
10363
- "filter": "url(#h3r8rva5d__z54fmdxnmd)",
10388
+ "filter": getUrlById(4),
10364
10389
  "xlink:href": "#h3r8rva5d__d7rd04hahe"
10365
10390
  }, null), vue.createVNode("use", {
10366
10391
  "fill": "#FFF",
@@ -10369,7 +10394,7 @@
10369
10394
  "transform": "translate(78 77)"
10370
10395
  }, [vue.createVNode("use", {
10371
10396
  "class": bem2("svg-defs-path-fill"),
10372
- "filter": "url(#h3r8rva5d__zhi8u4oqbf)",
10397
+ "filter": getUrlById(5),
10373
10398
  "xlink:href": "#h3r8rva5d__jk95ntyavg"
10374
10399
  }, null), vue.createVNode("use", {
10375
10400
  "fill": "#28CD78",
@@ -10380,7 +10405,7 @@
10380
10405
  "fill-rule": "nonzero",
10381
10406
  "transform": "translate(78 77)"
10382
10407
  }, null)])]);
10383
- const renderReportError = (bem2) => vue.createVNode("svg", {
10408
+ const renderReportError = (bem2, getId, getUrlById) => vue.createVNode("svg", {
10384
10409
  "xmlns": "http://www.w3.org/2000/svg",
10385
10410
  "viewBox": "0 0 160 160",
10386
10411
  "class": "design-iconfont"
@@ -10389,7 +10414,7 @@
10389
10414
  "y1": "100%",
10390
10415
  "x2": "50%",
10391
10416
  "y2": "0%",
10392
- "id": "hjjrs2jmp__jc920q6pda"
10417
+ "id": getId(1)
10393
10418
  }, [vue.createVNode("stop", {
10394
10419
  "class": bem2("svg-defs-stop-color"),
10395
10420
  "stop-opacity": ".1",
@@ -10403,7 +10428,7 @@
10403
10428
  "y1": "100%",
10404
10429
  "x2": "50%",
10405
10430
  "y2": "0%",
10406
- "id": "hjjrs2jmp__sst8kz92tb"
10431
+ "id": getId(2)
10407
10432
  }, [vue.createVNode("stop", {
10408
10433
  "class": bem2("svg-defs-stop-color"),
10409
10434
  "stop-opacity": "0",
@@ -10417,7 +10442,7 @@
10417
10442
  "y1": "100%",
10418
10443
  "x2": "50%",
10419
10444
  "y2": "0%",
10420
- "id": "hjjrs2jmp__z0qr0ea01c"
10445
+ "id": getId(3)
10421
10446
  }, [vue.createVNode("stop", {
10422
10447
  "class": bem2("svg-defs-stop-color"),
10423
10448
  "offset": "0%"
@@ -10430,7 +10455,7 @@
10430
10455
  "width": "169.6%",
10431
10456
  "height": "168.4%",
10432
10457
  "filterUnits": "objectBoundingBox",
10433
- "id": "hjjrs2jmp__mlg5ragdid"
10458
+ "id": getId(4)
10434
10459
  }, [vue.createVNode("feOffset", {
10435
10460
  "dy": "2",
10436
10461
  "in": "SourceGraphic",
@@ -10448,7 +10473,7 @@
10448
10473
  "width": "170%",
10449
10474
  "height": "170%",
10450
10475
  "filterUnits": "objectBoundingBox",
10451
- "id": "hjjrs2jmp__6snr8pwn9f"
10476
+ "id": getId(5)
10452
10477
  }, [vue.createVNode("feOffset", {
10453
10478
  "dy": "2",
10454
10479
  "in": "SourceGraphic",
@@ -10475,16 +10500,16 @@
10475
10500
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
10476
10501
  }, null), vue.createVNode("path", {
10477
10502
  "d": "M114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C84.1855747,128 80.9946648,125.330413 80.1937019,121.757672 C98.1007036,119.680283 112,104.463319 112,86 L112,80 L114,80 Z",
10478
- "fill": "url(#hjjrs2jmp__jc920q6pda)"
10503
+ "fill": getUrlById(1)
10479
10504
  }, null), vue.createVNode("path", {
10480
10505
  "d": "M56,44 L96,44 C102.627417,44 108,49.372583 108,56 L108,86 C108,103.673112 93.673112,118 76,118 L56,118 C49.372583,118 44,112.627417 44,106 L44,56 C44,49.372583 49.372583,44 56,44 Z",
10481
- "fill": "url(#hjjrs2jmp__sst8kz92tb)"
10506
+ "fill": getUrlById(2)
10482
10507
  }, null), vue.createVNode("path", {
10483
10508
  "d": "M90,31 C92.209139,31 94,32.790861 94,35 L94,40 L96,40 C104.836556,40 112,47.163444 112,56 L112,86 C112,105.882251 95.882251,122 76,122 L56,122 C47.163444,122 40,114.836556 40,106 L40,56 C40,47.163444 47.163444,40 56,40 L58,40 L58,35 C58,32.790861 59.790861,31 62,31 C64.209139,31 66,32.790861 66,35 L66,40 L86,40 L86,35 C86,32.790861 87.790861,31 90,31 Z M96,48 L56,48 C51.581722,48 48,51.581722 48,56 L48,106 C48,110.418278 51.581722,114 56,114 L76,114 C91.463973,114 104,101.463973 104,86 L104,56 C104,51.581722 100.418278,48 96,48 Z",
10484
- "fill": "url(#hjjrs2jmp__z0qr0ea01c)"
10509
+ "fill": getUrlById(3)
10485
10510
  }, null), vue.createVNode("g", null, [vue.createVNode("use", {
10486
10511
  "class": bem2("svg-defs-path-fill"),
10487
- "filter": "url(#hjjrs2jmp__mlg5ragdid)",
10512
+ "filter": getUrlById(4),
10488
10513
  "xlink:href": "#hjjrs2jmp__inq21tde9e"
10489
10514
  }, null), vue.createVNode("use", {
10490
10515
  "fill": "#FFF",
@@ -10493,7 +10518,7 @@
10493
10518
  "transform": "translate(78 77)"
10494
10519
  }, [vue.createVNode("use", {
10495
10520
  "class": bem2("svg-defs-path-fill"),
10496
- "filter": "url(#hjjrs2jmp__6snr8pwn9f)",
10521
+ "filter": getUrlById(5),
10497
10522
  "xlink:href": "#hjjrs2jmp__l8g1n1l71g"
10498
10523
  }, null), vue.createVNode("use", {
10499
10524
  "fill": "#FF5023",
@@ -10504,7 +10529,7 @@
10504
10529
  "fill-rule": "nonzero",
10505
10530
  "transform": "translate(78 77)"
10506
10531
  }, null)])]);
10507
- const renderNoCollect = (bem2) => vue.createVNode("svg", {
10532
+ const renderNoCollect = (bem2, getId, getUrlById) => vue.createVNode("svg", {
10508
10533
  "xmlns": "http://www.w3.org/2000/svg",
10509
10534
  "viewBox": "0 0 160 160",
10510
10535
  "class": "design-iconfont"
@@ -10513,7 +10538,7 @@
10513
10538
  "y1": "100%",
10514
10539
  "x2": "50%",
10515
10540
  "y2": "0%",
10516
- "id": "4roobwtpf__prfnix21ja"
10541
+ "id": getId(1)
10517
10542
  }, [vue.createVNode("stop", {
10518
10543
  "class": bem2("svg-defs-stop-color"),
10519
10544
  "stop-opacity": ".1",
@@ -10527,7 +10552,7 @@
10527
10552
  "y1": "100%",
10528
10553
  "x2": "50%",
10529
10554
  "y2": "0%",
10530
- "id": "4roobwtpf__8kugdsm5kb"
10555
+ "id": getId(2)
10531
10556
  }, [vue.createVNode("stop", {
10532
10557
  "class": bem2("svg-defs-stop-color"),
10533
10558
  "stop-opacity": "0",
@@ -10541,7 +10566,7 @@
10541
10566
  "y1": "100%",
10542
10567
  "x2": "50%",
10543
10568
  "y2": "0%",
10544
- "id": "4roobwtpf__j168jpsc5c"
10569
+ "id": getId(3)
10545
10570
  }, [vue.createVNode("stop", {
10546
10571
  "class": bem2("svg-defs-stop-color"),
10547
10572
  "offset": "0%"
@@ -10554,7 +10579,7 @@
10554
10579
  "width": "182.1%",
10555
10580
  "height": "186.4%",
10556
10581
  "filterUnits": "objectBoundingBox",
10557
- "id": "4roobwtpf__ydijz0bb9d"
10582
+ "id": getId(4)
10558
10583
  }, [vue.createVNode("feOffset", {
10559
10584
  "dy": "2",
10560
10585
  "in": "SourceGraphic",
@@ -10578,16 +10603,16 @@
10578
10603
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
10579
10604
  }, null), vue.createVNode("path", {
10580
10605
  "d": "M114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C84.1855747,128 80.9946648,125.330413 80.1937019,121.757672 C98.1007036,119.680283 112,104.463319 112,86 L112,80 L114,80 Z",
10581
- "fill": "url(#4roobwtpf__prfnix21ja)"
10606
+ "fill": getUrlById(1)
10582
10607
  }, null), vue.createVNode("path", {
10583
10608
  "d": "M56,44 L96,44 C102.627417,44 108,49.372583 108,56 L108,86 C108,103.673112 93.673112,118 76,118 L56,118 C49.372583,118 44,112.627417 44,106 L44,56 C44,49.372583 49.372583,44 56,44 Z",
10584
- "fill": "url(#4roobwtpf__8kugdsm5kb)"
10609
+ "fill": getUrlById(2)
10585
10610
  }, null), vue.createVNode("path", {
10586
10611
  "d": "M90,31 C92.209139,31 94,32.790861 94,35 L94,40 L96,40 C104.836556,40 112,47.163444 112,56 L112,86 C112,105.882251 95.882251,122 76,122 L56,122 C47.163444,122 40,114.836556 40,106 L40,56 C40,47.163444 47.163444,40 56,40 L58,40 L58,35 C58,32.790861 59.790861,31 62,31 C64.209139,31 66,32.790861 66,35 L66,40 L86,40 L86,35 C86,32.790861 87.790861,31 90,31 Z M96,48 L56,48 C51.581722,48 48,51.581722 48,56 L48,106 C48,110.418278 51.581722,114 56,114 L76,114 C91.463973,114 104,101.463973 104,86 L104,56 C104,51.581722 100.418278,48 96,48 Z",
10587
- "fill": "url(#4roobwtpf__j168jpsc5c)"
10612
+ "fill": getUrlById(3)
10588
10613
  }, null), vue.createVNode("g", null, [vue.createVNode("use", {
10589
10614
  "class": bem2("svg-defs-path-fill"),
10590
- "filter": "url(#4roobwtpf__ydijz0bb9d)",
10615
+ "filter": getUrlById(4),
10591
10616
  "xlink:href": "#4roobwtpf__8hxpuw7vce"
10592
10617
  }, null), vue.createVNode("use", {
10593
10618
  "fill": "#FFF",
@@ -10613,18 +10638,21 @@
10613
10638
  imageSize: [Number, String, Array],
10614
10639
  description: String
10615
10640
  };
10616
- var stdin_default$Z = vue.defineComponent({
10641
+ var stdin_default$_ = vue.defineComponent({
10617
10642
  name: name$G,
10618
10643
  props: emptyProps,
10619
10644
  setup(props, {
10620
10645
  slots
10621
10646
  }) {
10647
+ const baseId = useId();
10648
+ const getId = (num) => `${baseId}-${num}`;
10649
+ const getUrlById = (num) => `url(#${getId(num)})`;
10622
10650
  const renderImage = () => {
10623
10651
  var _a;
10624
10652
  if (slots.image) {
10625
10653
  return slots.image();
10626
10654
  }
10627
- return ((_a = PRESET_IMAGES[props.image]) == null ? void 0 : _a.call(PRESET_IMAGES, bem$G)) || vue.createVNode("img", {
10655
+ return ((_a = PRESET_IMAGES[props.image]) == null ? void 0 : _a.call(PRESET_IMAGES, bem$G, getId, getUrlById)) || vue.createVNode("img", {
10628
10656
  "src": props.image
10629
10657
  }, null);
10630
10658
  };
@@ -10651,7 +10679,7 @@
10651
10679
  }, [renderImage()]), renderDescription(), renderBottom()]);
10652
10680
  }
10653
10681
  });
10654
- const Empty = withInstall(stdin_default$Z);
10682
+ const Empty = withInstall(stdin_default$_);
10655
10683
  const floatingBubbleProps = {
10656
10684
  gap: makeNumberProp(24),
10657
10685
  icon: String,
@@ -10670,7 +10698,7 @@
10670
10698
  }
10671
10699
  };
10672
10700
  const [name$F, bem$F] = createNamespace("floating-bubble");
10673
- var stdin_default$Y = vue.defineComponent({
10701
+ var stdin_default$Z = vue.defineComponent({
10674
10702
  name: name$F,
10675
10703
  inheritAttrs: false,
10676
10704
  props: floatingBubbleProps,
@@ -10811,7 +10839,7 @@
10811
10839
  "onTouchcancel": onTouchEnd,
10812
10840
  "onClick": onClick,
10813
10841
  "style": rootStyle.value
10814
- }, attrs), [slots.default ? slots.default() : vue.createVNode(stdin_default$1R, {
10842
+ }, attrs), [slots.default ? slots.default() : vue.createVNode(stdin_default$1S, {
10815
10843
  "name": props.icon,
10816
10844
  "class": bem$F("icon")
10817
10845
  }, null)]), [[vue.vShow, show.value]]);
@@ -10823,7 +10851,7 @@
10823
10851
  };
10824
10852
  }
10825
10853
  });
10826
- const FloatingBubble = withInstall(stdin_default$Y);
10854
+ const FloatingBubble = withInstall(stdin_default$Z);
10827
10855
  const [name$E, bem$E] = createNamespace("form");
10828
10856
  const formProps = {
10829
10857
  colon: Boolean,
@@ -10843,7 +10871,7 @@
10843
10871
  default: "onBlur"
10844
10872
  }
10845
10873
  };
10846
- var stdin_default$X = vue.defineComponent({
10874
+ var stdin_default$Y = vue.defineComponent({
10847
10875
  name: name$E,
10848
10876
  props: formProps,
10849
10877
  emits: ["submit", "failed"],
@@ -10974,7 +11002,7 @@
10974
11002
  };
10975
11003
  }
10976
11004
  });
10977
- const Form = withInstall(stdin_default$X);
11005
+ const Form = withInstall(stdin_default$Y);
10978
11006
  const [name$D, bem$D] = createNamespace("grid");
10979
11007
  const gridProps = {
10980
11008
  square: Boolean,
@@ -10988,7 +11016,7 @@
10988
11016
  columnNum: makeNumericProp(4)
10989
11017
  };
10990
11018
  const GRID_KEY = Symbol(name$D);
10991
- var stdin_default$W = vue.defineComponent({
11019
+ var stdin_default$X = vue.defineComponent({
10992
11020
  name: name$D,
10993
11021
  props: gridProps,
10994
11022
  setup(props, {
@@ -11013,8 +11041,8 @@
11013
11041
  };
11014
11042
  }
11015
11043
  });
11016
- const Grid = withInstall(stdin_default$W);
11017
- var stdin_default$V = Grid;
11044
+ const Grid = withInstall(stdin_default$X);
11045
+ var stdin_default$W = Grid;
11018
11046
  const [name$C, bem$C] = createNamespace("grid-item");
11019
11047
  const gridItemProps = extend({}, routeProps, {
11020
11048
  dot: Boolean,
@@ -11025,7 +11053,7 @@
11025
11053
  iconPrefix: String,
11026
11054
  badgeProps: Object
11027
11055
  });
11028
- var stdin_default$U = vue.defineComponent({
11056
+ var stdin_default$V = vue.defineComponent({
11029
11057
  name: name$C,
11030
11058
  props: gridItemProps,
11031
11059
  setup(props, {
@@ -11146,8 +11174,8 @@
11146
11174
  };
11147
11175
  }
11148
11176
  });
11149
- const GridItem = withInstall(stdin_default$U);
11150
- var stdin_default$T = GridItem;
11177
+ const GridItem = withInstall(stdin_default$V);
11178
+ var stdin_default$U = GridItem;
11151
11179
  const SubIcon = (bem2) => vue.createVNode("svg", {
11152
11180
  "class": bem2("svg-sub-icon"),
11153
11181
  "xmlns": "http://www.w3.org/2000/svg",
@@ -11168,7 +11196,7 @@
11168
11196
  textKey: makeStringProp("name"),
11169
11197
  breadcrumbTitle: makeStringProp("全部")
11170
11198
  };
11171
- var stdin_default$S = vue.defineComponent({
11199
+ var stdin_default$T = vue.defineComponent({
11172
11200
  name: name$B,
11173
11201
  props: BreadcrumbProps,
11174
11202
  emits: ["chooseSenior"],
@@ -11192,7 +11220,7 @@
11192
11220
  }
11193
11221
  }, [props.breadcrumbTitle]), props.data.map((item, index) => vue.createVNode("div", {
11194
11222
  "class": bem$B("item")
11195
- }, [vue.createVNode(stdin_default$1R, {
11223
+ }, [vue.createVNode(stdin_default$1S, {
11196
11224
  "class": bem$B("icon"),
11197
11225
  "name": "arrow-right",
11198
11226
  "color": "#C6CED9"
@@ -11253,7 +11281,7 @@
11253
11281
  breadcrumbTitle: makeStringProp("全部"),
11254
11282
  autoChangeToChildren: Boolean
11255
11283
  };
11256
- var stdin_default$R = vue.defineComponent({
11284
+ var stdin_default$S = vue.defineComponent({
11257
11285
  name: name$A,
11258
11286
  props: hierarchySelectProps,
11259
11287
  emits: ["asyncGetter", "selected", "change", "update:checkedList"],
@@ -11456,7 +11484,7 @@
11456
11484
  round: true,
11457
11485
  checked: getChecked(item)
11458
11486
  })
11459
- }, [vue.createVNode(stdin_default$1R, {
11487
+ }, [vue.createVNode(stdin_default$1S, {
11460
11488
  "name": "checkbox-select"
11461
11489
  }, null)]);
11462
11490
  }
@@ -11466,14 +11494,14 @@
11466
11494
  checked: true,
11467
11495
  round: true
11468
11496
  })
11469
- }, [vue.createVNode(stdin_default$1R, {
11497
+ }, [vue.createVNode(stdin_default$1S, {
11470
11498
  "name": "checkbox-select"
11471
11499
  }, null)]) : vue.createVNode("span", {
11472
11500
  "class": bem$A("icon", {
11473
11501
  round: true,
11474
11502
  indeterminate
11475
11503
  })
11476
- }, [vue.createVNode(stdin_default$1R, {
11504
+ }, [vue.createVNode(stdin_default$1S, {
11477
11505
  "name": indeterminate ? "minus" : "check-blank-r",
11478
11506
  "class": bem$A("uncheck-icon")
11479
11507
  }, null)]);
@@ -11522,7 +11550,7 @@
11522
11550
  });
11523
11551
  return () => vue.createVNode("div", {
11524
11552
  "class": bem$A()
11525
- }, [vue.createVNode(stdin_default$S, {
11553
+ }, [vue.createVNode(stdin_default$T, {
11526
11554
  "data": breadcrumbData.value,
11527
11555
  "valueKey": props.valueKey,
11528
11556
  "textKey": props.textKey,
@@ -11554,10 +11582,10 @@
11554
11582
  }, [SubIcon(bem$A)]), vue.createVNode("span", null, [vue.createTextVNode("下级")])])])]))]);
11555
11583
  }
11556
11584
  });
11557
- const HierarchySelect = withInstall(stdin_default$R);
11585
+ const HierarchySelect = withInstall(stdin_default$S);
11558
11586
  const getDistance = (touches) => Math.sqrt((touches[0].clientX - touches[1].clientX) ** 2 + (touches[0].clientY - touches[1].clientY) ** 2);
11559
11587
  const bem$z = createNamespace("image-preview")[1];
11560
- var stdin_default$Q = vue.defineComponent({
11588
+ var stdin_default$R = vue.defineComponent({
11561
11589
  props: {
11562
11590
  src: String,
11563
11591
  show: Boolean,
@@ -11842,7 +11870,7 @@
11842
11870
  closeIconPosition: makeStringProp("top-right"),
11843
11871
  teleport: [String, Object]
11844
11872
  };
11845
- var stdin_default$P = vue.defineComponent({
11873
+ var stdin_default$Q = vue.defineComponent({
11846
11874
  name: name$z,
11847
11875
  props: imagePreviewProps,
11848
11876
  emits: ["scale", "close", "closed", "change", "longPress", "update:show"],
@@ -11930,7 +11958,7 @@
11930
11958
  "onDragEnd": onDragEnd,
11931
11959
  "onDragStart": onDragStart
11932
11960
  }, {
11933
- default: () => [props.images.map((image, index) => vue.createVNode(stdin_default$Q, {
11961
+ default: () => [props.images.map((image, index) => vue.createVNode(stdin_default$R, {
11934
11962
  "src": image.url,
11935
11963
  "show": props.show,
11936
11964
  "active": state.active,
@@ -12037,7 +12065,7 @@
12037
12065
  const onClosed = () => {
12038
12066
  state.images = [];
12039
12067
  };
12040
- return () => vue.createVNode(stdin_default$P, vue.mergeProps(state, {
12068
+ return () => vue.createVNode(stdin_default$Q, vue.mergeProps(state, {
12041
12069
  "onClosed": onClosed,
12042
12070
  "onUpdate:show": toggle
12043
12071
  }), null);
@@ -12070,7 +12098,7 @@
12070
12098
  instance$1.open(extend({}, defaultConfig, options));
12071
12099
  return instance$1;
12072
12100
  };
12073
- const ImagePreview = withInstall(stdin_default$P);
12101
+ const ImagePreview = withInstall(stdin_default$Q);
12074
12102
  function genAlphabet() {
12075
12103
  const charCodeOfA = "A".charCodeAt(0);
12076
12104
  const indexList = Array(26).fill("").map((_, i2) => String.fromCharCode(charCodeOfA + i2));
@@ -12093,7 +12121,7 @@
12093
12121
  };
12094
12122
  const INDEX_BAR_KEY = Symbol(name$y);
12095
12123
  const MIN_CONTRACTION_NUM = 2;
12096
- var stdin_default$O = vue.defineComponent({
12124
+ var stdin_default$P = vue.defineComponent({
12097
12125
  name: name$y,
12098
12126
  props: indexBarProps,
12099
12127
  emits: ["select", "change", "anchorClick", "update:activeAnchor"],
@@ -12481,7 +12509,7 @@
12481
12509
  const indexAnchorProps = {
12482
12510
  index: numericProp
12483
12511
  };
12484
- var stdin_default$N = vue.defineComponent({
12512
+ var stdin_default$O = vue.defineComponent({
12485
12513
  name: name$x,
12486
12514
  props: indexAnchorProps,
12487
12515
  setup(props, {
@@ -12551,8 +12579,8 @@
12551
12579
  };
12552
12580
  }
12553
12581
  });
12554
- const IndexAnchor = withInstall(stdin_default$N);
12555
- const IndexBar = withInstall(stdin_default$O);
12582
+ const IndexAnchor = withInstall(stdin_default$O);
12583
+ const IndexBar = withInstall(stdin_default$P);
12556
12584
  const [name$w, bem$v, t$4] = createNamespace("list");
12557
12585
  const listProps = {
12558
12586
  error: Boolean,
@@ -12566,7 +12594,7 @@
12566
12594
  finishedText: String,
12567
12595
  immediateCheck: truthProp
12568
12596
  };
12569
- var stdin_default$M = vue.defineComponent({
12597
+ var stdin_default$N = vue.defineComponent({
12570
12598
  name: name$w,
12571
12599
  props: listProps,
12572
12600
  emits: ["load", "update:error", "update:loading"],
@@ -12690,8 +12718,8 @@
12690
12718
  };
12691
12719
  }
12692
12720
  });
12693
- const List = withInstall(stdin_default$M);
12694
- var stdin_default$L = vue.defineComponent({
12721
+ const List = withInstall(stdin_default$N);
12722
+ var stdin_default$M = vue.defineComponent({
12695
12723
  name: "DeleteIcon",
12696
12724
  setup() {
12697
12725
  return () => vue.createVNode("svg", {
@@ -12722,7 +12750,7 @@
12722
12750
  mediaUrl: makeStringProp("")
12723
12751
  };
12724
12752
  const [name$v, bem$u] = createNamespace("media-player");
12725
- var stdin_default$K = vue.defineComponent({
12753
+ var stdin_default$L = vue.defineComponent({
12726
12754
  name: name$v,
12727
12755
  props: mediaPlayerProps,
12728
12756
  emits: ["update:show"],
@@ -12794,7 +12822,7 @@
12794
12822
  }
12795
12823
  }
12796
12824
  };
12797
- return () => vue.createVNode(stdin_default$1O, {
12825
+ return () => vue.createVNode(stdin_default$1P, {
12798
12826
  "class": bem$u(),
12799
12827
  "show": props.show,
12800
12828
  "position": "bottom",
@@ -12814,9 +12842,9 @@
12814
12842
  });
12815
12843
  }
12816
12844
  });
12817
- const MediaPlayer = withInstall(stdin_default$K);
12818
- var stdin_default$J = MediaPlayer;
12819
- var stdin_default$I = vue.defineComponent({
12845
+ const MediaPlayer = withInstall(stdin_default$L);
12846
+ var stdin_default$K = MediaPlayer;
12847
+ var stdin_default$J = vue.defineComponent({
12820
12848
  name: "DefaultVideoIcon",
12821
12849
  setup() {
12822
12850
  return () => vue.createVNode("svg", {
@@ -12930,7 +12958,7 @@
12930
12958
  }, null)])]);
12931
12959
  }
12932
12960
  });
12933
- var stdin_default$H = vue.defineComponent({
12961
+ var stdin_default$I = vue.defineComponent({
12934
12962
  name: "DefaultAudioIcon",
12935
12963
  setup() {
12936
12964
  return () => vue.createVNode("svg", {
@@ -13023,7 +13051,7 @@
13023
13051
  }, null)])])]);
13024
13052
  }
13025
13053
  });
13026
- var stdin_default$G = vue.defineComponent({
13054
+ var stdin_default$H = vue.defineComponent({
13027
13055
  name: "DefaultFileIcon",
13028
13056
  setup() {
13029
13057
  return () => vue.createVNode("svg", {
@@ -13105,7 +13133,7 @@
13105
13133
  }, null)])])]);
13106
13134
  }
13107
13135
  });
13108
- var stdin_default$F = vue.defineComponent({
13136
+ var stdin_default$G = vue.defineComponent({
13109
13137
  name: "TakePhotoIcon",
13110
13138
  setup() {
13111
13139
  return () => vue.createVNode("svg", {
@@ -13127,7 +13155,7 @@
13127
13155
  }, null)])])]);
13128
13156
  }
13129
13157
  });
13130
- var stdin_default$E = vue.defineComponent({
13158
+ var stdin_default$F = vue.defineComponent({
13131
13159
  name: "PickPhotoIcon",
13132
13160
  setup() {
13133
13161
  return () => vue.createVNode("svg", {
@@ -13149,7 +13177,7 @@
13149
13177
  }, null)])])]);
13150
13178
  }
13151
13179
  });
13152
- var stdin_default$D = vue.defineComponent({
13180
+ var stdin_default$E = vue.defineComponent({
13153
13181
  name: "TakeVideoIcon",
13154
13182
  setup() {
13155
13183
  return () => vue.createVNode("svg", {
@@ -13171,7 +13199,7 @@
13171
13199
  }, null)])])]);
13172
13200
  }
13173
13201
  });
13174
- var stdin_default$C = vue.defineComponent({
13202
+ var stdin_default$D = vue.defineComponent({
13175
13203
  name: "TakeAudioIcon",
13176
13204
  setup() {
13177
13205
  return () => vue.createVNode("svg", {
@@ -13193,7 +13221,7 @@
13193
13221
  }, null)])])]);
13194
13222
  }
13195
13223
  });
13196
- var stdin_default$B = vue.defineComponent({
13224
+ var stdin_default$C = vue.defineComponent({
13197
13225
  name: "PickFileIcon",
13198
13226
  setup() {
13199
13227
  return () => vue.createVNode("svg", {
@@ -14313,6 +14341,68 @@
14313
14341
  );
14314
14342
  }
14315
14343
  }
14344
+ const chooseImage = (type) => {
14345
+ return new Promise((resolve, reject) => {
14346
+ window.wx.chooseImage({
14347
+ count: 1,
14348
+ sizeType: ["original", "compressed"],
14349
+ // 可以指定是原图还是压缩图,默认二者都有
14350
+ sourceType: [type],
14351
+ // 可以指定来源是相册还是相机,默认二者都有
14352
+ success: function({ localIds }) {
14353
+ resolve(localIds);
14354
+ },
14355
+ fail: function(res) {
14356
+ reject(res);
14357
+ }
14358
+ });
14359
+ });
14360
+ };
14361
+ const uploadImage = (localId) => {
14362
+ return new Promise((resolve, reject) => {
14363
+ window.wx.uploadImage({
14364
+ localId,
14365
+ // 需要上传的图片的本地ID,由chooseImage接口获得
14366
+ isShowProgressTips: 1,
14367
+ // 默认为1,显示进度提示
14368
+ success: function({ serverId }) {
14369
+ resolve(serverId);
14370
+ },
14371
+ fail: function(res) {
14372
+ reject(res);
14373
+ }
14374
+ });
14375
+ });
14376
+ };
14377
+ const wxUploadImage = (type) => {
14378
+ return new Promise((resolve) => {
14379
+ const newMedias = [];
14380
+ chooseImage(type).then((localIds) => {
14381
+ const time = (/* @__PURE__ */ new Date()).getTime().toString();
14382
+ const media = {
14383
+ type: "photo",
14384
+ uniqueCode: time,
14385
+ fileSize: 0,
14386
+ fileName: time,
14387
+ originalName: time,
14388
+ originalSize: 0,
14389
+ lastModified: 0,
14390
+ deletable: true
14391
+ };
14392
+ localIds.forEach((localId) => {
14393
+ media.showSrc = localId;
14394
+ media.url = localId;
14395
+ uploadImage(localId).then((serverId) => {
14396
+ media.wxServerId = serverId;
14397
+ newMedias.push(media);
14398
+ if (newMedias.length === localIds.length) {
14399
+ resolve(newMedias);
14400
+ }
14401
+ });
14402
+ });
14403
+ });
14404
+ });
14405
+ };
14316
14406
  const [name$u, bem$t] = createNamespace("media-picker");
14317
14407
  const FILE_SIZE_LIMIT = 100;
14318
14408
  const mediaPickerProps = {
@@ -14362,9 +14452,11 @@
14362
14452
  // 文件读取完成后的回调函数,获取到对应的 media 对象
14363
14453
  afterRead: Function,
14364
14454
  // 文件删除前的回调函数,返回 false 可终止文件读取,支持返回 Promise
14365
- beforeDelete: Function
14455
+ beforeDelete: Function,
14456
+ // 是否强制使用微信
14457
+ useWx: Boolean
14366
14458
  };
14367
- var stdin_default$A = vue.defineComponent({
14459
+ var stdin_default$B = vue.defineComponent({
14368
14460
  name: name$u,
14369
14461
  props: mediaPickerProps,
14370
14462
  emits: ["update:mediaList", "delete"],
@@ -14418,10 +14510,17 @@
14418
14510
  return;
14419
14511
  }
14420
14512
  if (mediaType === "photo") {
14421
- if (mediaAddType === "take") {
14422
- triggerHiddenInput(cameraInputRef.value);
14423
- } else if (mediaAddType === "pick") {
14424
- triggerHiddenInput(imageInputRef.value);
14513
+ if (props.useWx && isWeixin() && window.wx) {
14514
+ const type = mediaAddType === "take" ? "camera" : "album";
14515
+ wxUploadImage(type).then((newMedias) => {
14516
+ emit("update:mediaList", [...props.mediaList, ...newMedias]);
14517
+ });
14518
+ } else {
14519
+ if (mediaAddType === "take") {
14520
+ triggerHiddenInput(cameraInputRef.value);
14521
+ } else if (mediaAddType === "pick") {
14522
+ triggerHiddenInput(imageInputRef.value);
14523
+ }
14425
14524
  }
14426
14525
  } else if (mediaType === "video") {
14427
14526
  if (mediaAddType === "take") {
@@ -14753,24 +14852,24 @@
14753
14852
  const renderIcon = (mediaType, mediaAddType) => {
14754
14853
  if (mediaType === "photo") {
14755
14854
  if (mediaAddType === "take") {
14756
- return vue.createVNode(stdin_default$F, {
14855
+ return vue.createVNode(stdin_default$G, {
14757
14856
  "class": bem$t("icon")
14758
14857
  }, null);
14759
14858
  } else if (mediaAddType === "pick") {
14760
- return vue.createVNode(stdin_default$E, {
14859
+ return vue.createVNode(stdin_default$F, {
14761
14860
  "class": bem$t("icon")
14762
14861
  }, null);
14763
14862
  }
14764
14863
  } else if (mediaType === "video") {
14765
- return vue.createVNode(stdin_default$D, {
14864
+ return vue.createVNode(stdin_default$E, {
14766
14865
  "class": bem$t("icon")
14767
14866
  }, null);
14768
14867
  } else if (mediaType === "audio") {
14769
- return vue.createVNode(stdin_default$C, {
14868
+ return vue.createVNode(stdin_default$D, {
14770
14869
  "class": bem$t("icon")
14771
14870
  }, null);
14772
14871
  } else if (mediaType === "file") {
14773
- return vue.createVNode(stdin_default$B, {
14872
+ return vue.createVNode(stdin_default$C, {
14774
14873
  "class": bem$t("icon")
14775
14874
  }, null);
14776
14875
  }
@@ -14836,10 +14935,10 @@
14836
14935
  message
14837
14936
  } = media;
14838
14937
  if (status === "uploading" || status === "failed") {
14839
- const MaskIcon = status === "failed" ? vue.createVNode(stdin_default$1R, {
14938
+ const MaskIcon = status === "failed" ? vue.createVNode(stdin_default$1S, {
14840
14939
  "name": "close",
14841
14940
  "class": bem$t("mask-icon")
14842
- }, null) : vue.createVNode(stdin_default$1M, {
14941
+ }, null) : vue.createVNode(stdin_default$1N, {
14843
14942
  "class": bem$t("loading")
14844
14943
  }, null);
14845
14944
  const showMessage = isDef(message) && message !== "";
@@ -14857,23 +14956,27 @@
14857
14956
  emit("delete", media, index);
14858
14957
  };
14859
14958
  const renderMediaThumbnail = (media) => {
14860
- const thumbnailUrl = media.showSrc || media.url;
14861
- if (thumbnailUrl) {
14862
- return vue.createVNode(stdin_default$1I, {
14863
- "src": thumbnailUrl,
14864
- "fit": "cover",
14865
- "radius": "4"
14959
+ if (media.type === "video") {
14960
+ return vue.createVNode(stdin_default$J, {
14961
+ "class": bem$t("thumbnail")
14866
14962
  }, null);
14867
- } else if (media.type === "video") {
14963
+ } else if (media.type === "audio") {
14868
14964
  return vue.createVNode(stdin_default$I, {
14869
14965
  "class": bem$t("thumbnail")
14870
14966
  }, null);
14871
- } else if (media.type === "audio") {
14967
+ } else if (media.type === "file") {
14872
14968
  return vue.createVNode(stdin_default$H, {
14873
14969
  "class": bem$t("thumbnail")
14874
14970
  }, null);
14875
- } else if (media.type === "file") {
14876
- return vue.createVNode(stdin_default$G, {
14971
+ } else if (media.type === "photo") {
14972
+ const thumbnailUrl = media.showSrc || media.url;
14973
+ return vue.createVNode(stdin_default$1J, {
14974
+ "src": thumbnailUrl,
14975
+ "fit": "cover",
14976
+ "radius": "4"
14977
+ }, null);
14978
+ } else {
14979
+ return vue.createVNode(stdin_default$H, {
14877
14980
  "class": bem$t("thumbnail")
14878
14981
  }, null);
14879
14982
  }
@@ -14932,14 +15035,14 @@
14932
15035
  };
14933
15036
  const renderMediaList = () => props.mediaList.map((media, index) => {
14934
15037
  const showDelete = media.deletable && media.status !== "uploading";
14935
- const deleteIcon = showDelete && vue.createVNode(stdin_default$L, {
15038
+ const deleteIcon = showDelete && vue.createVNode(stdin_default$M, {
14936
15039
  "class": bem$t("delete"),
14937
15040
  "onClick": (event) => {
14938
15041
  event.stopPropagation();
14939
15042
  onDelete(media, index);
14940
15043
  }
14941
15044
  }, null);
14942
- return vue.createVNode(stdin_default$T, {
15045
+ return vue.createVNode(stdin_default$U, {
14943
15046
  "key": media.uniqueCode,
14944
15047
  "onClick": () => previewMedia(index)
14945
15048
  }, {
@@ -14957,12 +15060,12 @@
14957
15060
  const showButtons = props.allowTakePhoto || props.allowPickPhoto || props.allowTakeVideo || props.allowPickVideo || props.allowTakeAudio || props.allowPickAudio || props.allowPickFile;
14958
15061
  return vue.createVNode("div", {
14959
15062
  "class": bem$t()
14960
- }, [title, hiddenInput(), vue.createVNode(stdin_default$J, {
15063
+ }, [title, hiddenInput(), vue.createVNode(stdin_default$K, {
14961
15064
  "show": mediaPlayerVisible.value,
14962
15065
  "onUpdate:show": ($event) => mediaPlayerVisible.value = $event,
14963
15066
  "mediaType": mediaTypeToPlay.value,
14964
15067
  "mediaUrl": mediaUrlToPlay.value
14965
- }, null), vue.createVNode(stdin_default$1K, {
15068
+ }, null), vue.createVNode(stdin_default$1L, {
14966
15069
  "show": actionVisible.value,
14967
15070
  "onUpdate:show": ($event) => actionVisible.value = $event,
14968
15071
  "actions": actionOptions.value,
@@ -14972,7 +15075,7 @@
14972
15075
  "onSelect": selectAction
14973
15076
  }, null), vue.withDirectives(vue.createVNode("div", {
14974
15077
  "class": bem$t("line")
14975
- }, [renderButtons()]), [[vue.vShow, showButtons]]), vue.withDirectives(vue.createVNode(stdin_default$V, {
15078
+ }, [renderButtons()]), [[vue.vShow, showButtons]]), vue.withDirectives(vue.createVNode(stdin_default$W, {
14976
15079
  "column-num": "3",
14977
15080
  "border": false,
14978
15081
  "square": true,
@@ -14993,7 +15096,7 @@
14993
15096
  lastModified: 0,
14994
15097
  deletable: false
14995
15098
  };
14996
- const MediaPicker = withInstall(stdin_default$A);
15099
+ const MediaPicker = withInstall(stdin_default$B);
14997
15100
  const [name$t, bem$s] = createNamespace("multiple-picker-options");
14998
15101
  const multiplePickerOptionsProps = {
14999
15102
  textKey: makeStringProp(""),
@@ -15004,7 +15107,7 @@
15004
15107
  initialOptions: makeArrayProp([]),
15005
15108
  currentIndexes: makeArrayProp([])
15006
15109
  };
15007
- var stdin_default$z = vue.defineComponent({
15110
+ var stdin_default$A = vue.defineComponent({
15008
15111
  name: name$t,
15009
15112
  props: multiplePickerOptionsProps,
15010
15113
  emits: ["change", "update:currentIndexes"],
@@ -15117,7 +15220,7 @@
15117
15220
  selectedValue: makeArrayProp([]),
15118
15221
  popup: truthProp
15119
15222
  };
15120
- var stdin_default$y = vue.defineComponent({
15223
+ var stdin_default$z = vue.defineComponent({
15121
15224
  name: name$s,
15122
15225
  props: multiplePickerProps,
15123
15226
  emits: ["cancel", "confirm", "change", "update:showPicker", "update:selectedIndex", "update:selectedValue"],
@@ -15196,7 +15299,7 @@
15196
15299
  };
15197
15300
  const genCancel = () => {
15198
15301
  const text = props.cancelButtonText || "取消";
15199
- return vue.createVNode(stdin_default$1F, {
15302
+ return vue.createVNode(stdin_default$1G, {
15200
15303
  "size": "normal",
15201
15304
  "block": true,
15202
15305
  "style": {
@@ -15209,7 +15312,7 @@
15209
15312
  };
15210
15313
  const genConfirm = () => {
15211
15314
  const text = props.confirmButtonText || "确定";
15212
- return vue.createVNode(stdin_default$1F, {
15315
+ return vue.createVNode(stdin_default$1G, {
15213
15316
  "type": "primary",
15214
15317
  "size": "normal",
15215
15318
  "block": true,
@@ -15238,7 +15341,7 @@
15238
15341
  } else {
15239
15342
  formatOptions = props.options;
15240
15343
  }
15241
- return vue.createVNode(stdin_default$z, {
15344
+ return vue.createVNode(stdin_default$A, {
15242
15345
  "ref": pickerOptions,
15243
15346
  "currentIndexes": confirmIndexes.value,
15244
15347
  "onUpdate:currentIndexes": ($event) => confirmIndexes.value = $event,
@@ -15258,12 +15361,12 @@
15258
15361
  }, [genOptionItems()]);
15259
15362
  const renderMultiplePicker = () => vue.createVNode("div", {
15260
15363
  "class": bem$r()
15261
- }, [genTitle(), props.loading ? vue.createVNode(stdin_default$1M, {
15364
+ }, [genTitle(), props.loading ? vue.createVNode(stdin_default$1N, {
15262
15365
  "class": bem$r("loading")
15263
15366
  }, null) : "", genOptions2(), props.toolbarPosition === "bottom" ? genToolbar() : ""]);
15264
15367
  return () => {
15265
15368
  if (props.popup) {
15266
- return vue.createVNode(stdin_default$1O, {
15369
+ return vue.createVNode(stdin_default$1P, {
15267
15370
  "show": currentShow.value,
15268
15371
  "onUpdate:show": [($event) => currentShow.value = $event, updateShow],
15269
15372
  "round": true,
@@ -15279,7 +15382,7 @@
15279
15382
  };
15280
15383
  }
15281
15384
  });
15282
- const MultiplePicker = withInstall(stdin_default$y);
15385
+ const MultiplePicker = withInstall(stdin_default$z);
15283
15386
  function usePlaceholder(contentRef, bem2) {
15284
15387
  const height2 = useHeight(contentRef, true);
15285
15388
  return (renderContent) => vue.createVNode("div", {
@@ -15306,7 +15409,7 @@
15306
15409
  navBarBackground: String,
15307
15410
  leftBtnStyle: Object
15308
15411
  };
15309
- var stdin_default$x = vue.defineComponent({
15412
+ var stdin_default$y = vue.defineComponent({
15310
15413
  name: name$r,
15311
15414
  props: navBarProps,
15312
15415
  emits: ["clickLeft", "clickRight"],
@@ -15395,7 +15498,7 @@
15395
15498
  };
15396
15499
  }
15397
15500
  });
15398
- const NavBar = withInstall(stdin_default$x);
15501
+ const NavBar = withInstall(stdin_default$y);
15399
15502
  const [name$q, bem$p] = createNamespace("notice-bar");
15400
15503
  const noticeBarProps = {
15401
15504
  text: String,
@@ -15411,7 +15514,7 @@
15411
15514
  default: null
15412
15515
  }
15413
15516
  };
15414
- var stdin_default$w = vue.defineComponent({
15517
+ var stdin_default$x = vue.defineComponent({
15415
15518
  name: name$q,
15416
15519
  props: noticeBarProps,
15417
15520
  emits: ["close", "replay"],
@@ -15434,7 +15537,7 @@
15434
15537
  return slots["left-icon"]();
15435
15538
  }
15436
15539
  if (props.leftIcon) {
15437
- return vue.createVNode(stdin_default$1R, {
15540
+ return vue.createVNode(stdin_default$1S, {
15438
15541
  "class": bem$p("left-icon"),
15439
15542
  "name": props.leftIcon
15440
15543
  }, null);
@@ -15460,7 +15563,7 @@
15460
15563
  }
15461
15564
  const name2 = getRightIconName();
15462
15565
  if (name2) {
15463
- return vue.createVNode(stdin_default$1R, {
15566
+ return vue.createVNode(stdin_default$1S, {
15464
15567
  "name": name2,
15465
15568
  "class": bem$p("right-icon"),
15466
15569
  "onClick": onClickRightIcon
@@ -15551,7 +15654,7 @@
15551
15654
  };
15552
15655
  }
15553
15656
  });
15554
- const NoticeBar = withInstall(stdin_default$w);
15657
+ const NoticeBar = withInstall(stdin_default$x);
15555
15658
  const [name$p, bem$o] = createNamespace("notify");
15556
15659
  const notifyProps = extend({}, popupSharedProps, {
15557
15660
  type: makeStringProp("danger"),
@@ -15562,7 +15665,7 @@
15562
15665
  background: String,
15563
15666
  lockScroll: Boolean
15564
15667
  });
15565
- var stdin_default$v = vue.defineComponent({
15668
+ var stdin_default$w = vue.defineComponent({
15566
15669
  name: name$p,
15567
15670
  props: notifyProps,
15568
15671
  emits: ["update:show"],
@@ -15602,7 +15705,7 @@
15602
15705
  state,
15603
15706
  toggle
15604
15707
  } = usePopupState();
15605
- return () => vue.createVNode(stdin_default$v, vue.mergeProps(state, {
15708
+ return () => vue.createVNode(stdin_default$w, vue.mergeProps(state, {
15606
15709
  "onUpdate:show": toggle
15607
15710
  }), null);
15608
15711
  }
@@ -15646,17 +15749,17 @@
15646
15749
  const resetNotifyDefaultOptions = () => {
15647
15750
  currentOptions = getDefaultOptions();
15648
15751
  };
15649
- const Notify = withInstall(stdin_default$v);
15752
+ const Notify = withInstall(stdin_default$w);
15650
15753
  const [name$o, bem$n] = createNamespace("key");
15651
- const CollapseIcon = vue.createVNode(stdin_default$1R, {
15754
+ const CollapseIcon = vue.createVNode(stdin_default$1S, {
15652
15755
  "name": "keyboard-shrink",
15653
15756
  "size": "40"
15654
15757
  }, null);
15655
- const DeleteIcon = vue.createVNode(stdin_default$1R, {
15758
+ const DeleteIcon = vue.createVNode(stdin_default$1S, {
15656
15759
  "name": "backspace",
15657
15760
  "size": "40"
15658
15761
  }, null);
15659
- var stdin_default$u = vue.defineComponent({
15762
+ var stdin_default$v = vue.defineComponent({
15660
15763
  name: name$o,
15661
15764
  props: {
15662
15765
  type: String,
@@ -15759,7 +15862,7 @@
15759
15862
  }
15760
15863
  return array;
15761
15864
  }
15762
- var stdin_default$t = vue.defineComponent({
15865
+ var stdin_default$u = vue.defineComponent({
15763
15866
  name: name$n,
15764
15867
  props: numberKeyboardProps,
15765
15868
  emits: ["show", "hide", "blur", "input", "close", "delete", "update:modelValue"],
@@ -15871,7 +15974,7 @@
15871
15974
  if (key.type === "extra") {
15872
15975
  keySlots.default = slots["extra-key"];
15873
15976
  }
15874
- return vue.createVNode(stdin_default$u, {
15977
+ return vue.createVNode(stdin_default$v, {
15875
15978
  "key": key.text,
15876
15979
  "text": key.text,
15877
15980
  "type": key.type,
@@ -15884,14 +15987,14 @@
15884
15987
  if (props.theme === "custom") {
15885
15988
  return vue.createVNode("div", {
15886
15989
  "class": bem$m("sidebar")
15887
- }, [props.showDeleteKey && vue.createVNode(stdin_default$u, {
15990
+ }, [props.showDeleteKey && vue.createVNode(stdin_default$v, {
15888
15991
  "large": true,
15889
15992
  "text": props.deleteButtonText,
15890
15993
  "type": "delete",
15891
15994
  "onPress": onPress
15892
15995
  }, {
15893
15996
  delete: slots.delete
15894
- }), vue.createVNode(stdin_default$u, {
15997
+ }), vue.createVNode(stdin_default$v, {
15895
15998
  "large": true,
15896
15999
  "text": props.closeButtonText,
15897
16000
  "type": "close",
@@ -15945,7 +16048,7 @@
15945
16048
  };
15946
16049
  }
15947
16050
  });
15948
- const NumberKeyboard = withInstall(stdin_default$t);
16051
+ const NumberKeyboard = withInstall(stdin_default$u);
15949
16052
  const [name$m, bem$l] = createNamespace("password-input");
15950
16053
  const passwordInputProps = {
15951
16054
  info: String,
@@ -15956,7 +16059,7 @@
15956
16059
  focused: Boolean,
15957
16060
  errorInfo: String
15958
16061
  };
15959
- var stdin_default$s = vue.defineComponent({
16062
+ var stdin_default$t = vue.defineComponent({
15960
16063
  name: name$m,
15961
16064
  props: passwordInputProps,
15962
16065
  emits: ["focus"],
@@ -16018,7 +16121,7 @@
16018
16121
  };
16019
16122
  }
16020
16123
  });
16021
- const PasswordInput = withInstall(stdin_default$s);
16124
+ const PasswordInput = withInstall(stdin_default$t);
16022
16125
  function t$3(t2) {
16023
16126
  return t2.split("-")[1];
16024
16127
  }
@@ -17393,7 +17496,7 @@
17393
17496
  default: false
17394
17497
  }
17395
17498
  };
17396
- var stdin_default$r = vue.defineComponent({
17499
+ var stdin_default$s = vue.defineComponent({
17397
17500
  name: name$l,
17398
17501
  props: popoverProps,
17399
17502
  emits: ["select", "touchstart", "update:show"],
@@ -17614,7 +17717,7 @@
17614
17717
  };
17615
17718
  }
17616
17719
  });
17617
- const Popover = withInstall(stdin_default$r);
17720
+ const Popover = withInstall(stdin_default$s);
17618
17721
  const [name$k, bem$j, t$2] = createNamespace("pull-refresh");
17619
17722
  const DEFAULT_HEAD_HEIGHT = 50;
17620
17723
  const TEXT_STATUS = ["pulling", "loosing", "success"];
@@ -17631,7 +17734,7 @@
17631
17734
  animationDuration: makeNumericProp(300),
17632
17735
  scrollElement: null
17633
17736
  };
17634
- var stdin_default$q = vue.defineComponent({
17737
+ var stdin_default$r = vue.defineComponent({
17635
17738
  name: name$k,
17636
17739
  props: pullRefreshProps,
17637
17740
  emits: ["change", "refresh", "update:modelValue"],
@@ -17813,7 +17916,7 @@
17813
17916
  };
17814
17917
  }
17815
17918
  });
17816
- const PullRefresh = withInstall(stdin_default$q);
17919
+ const PullRefresh = withInstall(stdin_default$r);
17817
17920
  const [name$j, bem$i] = createNamespace("radio-group");
17818
17921
  const radioGroupProps = {
17819
17922
  disabled: Boolean,
@@ -17823,7 +17926,7 @@
17823
17926
  checkedColor: String
17824
17927
  };
17825
17928
  const RADIO_KEY = Symbol(name$j);
17826
- var stdin_default$p = vue.defineComponent({
17929
+ var stdin_default$q = vue.defineComponent({
17827
17930
  name: name$j,
17828
17931
  props: radioGroupProps,
17829
17932
  emits: ["change", "update:modelValue"],
@@ -17851,7 +17954,7 @@
17851
17954
  }
17852
17955
  });
17853
17956
  const [name$i, bem$h] = createNamespace("radio");
17854
- var stdin_default$o = vue.defineComponent({
17957
+ var stdin_default$p = vue.defineComponent({
17855
17958
  name: name$i,
17856
17959
  props: checkerProps,
17857
17960
  emits: ["update:modelValue"],
@@ -17873,7 +17976,7 @@
17873
17976
  emit("update:modelValue", props.name);
17874
17977
  }
17875
17978
  };
17876
- return () => vue.createVNode(stdin_default$1n, vue.mergeProps({
17979
+ return () => vue.createVNode(stdin_default$1o, vue.mergeProps({
17877
17980
  "bem": bem$h,
17878
17981
  "role": "radio",
17879
17982
  "parent": parent,
@@ -17882,8 +17985,8 @@
17882
17985
  }, props), pick(slots, ["default", "icon"]));
17883
17986
  }
17884
17987
  });
17885
- const Radio = withInstall(stdin_default$o);
17886
- const RadioGroup = withInstall(stdin_default$p);
17988
+ const Radio = withInstall(stdin_default$p);
17989
+ const RadioGroup = withInstall(stdin_default$q);
17887
17990
  const [name$h, bem$g, t$1] = createNamespace("radio-picker");
17888
17991
  const getFirstEnabledOption = (options) => options.find((option) => !option.disabled) || options[0];
17889
17992
  function getColumnsType(columns, fields) {
@@ -17955,7 +18058,7 @@
17955
18058
  const MOMENTUM_DISTANCE = 15;
17956
18059
  const [name$g, bem$f] = createNamespace("radio-picker-column");
17957
18060
  const PICKER_KEY = Symbol(name$g);
17958
- var stdin_default$n = vue.defineComponent({
18061
+ var stdin_default$o = vue.defineComponent({
17959
18062
  name: name$g,
17960
18063
  props: {
17961
18064
  value: numericProp,
@@ -18120,7 +18223,7 @@
18120
18223
  const childData = {
18121
18224
  [props.allowHtml || isSearchedTrans ? "innerHTML" : "textContent"]: text
18122
18225
  };
18123
- return vue.createVNode(stdin_default$o, data, {
18226
+ return vue.createVNode(stdin_default$p, data, {
18124
18227
  default: () => [slots.option ? slots.option({
18125
18228
  option,
18126
18229
  searchValue: props.autoSearchVal
@@ -18141,7 +18244,7 @@
18141
18244
  if (slots.searchEmpty) {
18142
18245
  return (_a = slots.searchEmpty) == null ? void 0 : _a.call(slots);
18143
18246
  }
18144
- return vue.createVNode(stdin_default$Z, {
18247
+ return vue.createVNode(stdin_default$_, {
18145
18248
  "class": bem$f("search-empty"),
18146
18249
  "image": "no-search-result"
18147
18250
  }, {
@@ -18166,7 +18269,7 @@
18166
18269
  },
18167
18270
  "class": bem$f("wrapper"),
18168
18271
  "onTransitionend": stopMomentum
18169
- }, [vue.createVNode(stdin_default$p, {
18272
+ }, [vue.createVNode(stdin_default$q, {
18170
18273
  "modelValue": props.value
18171
18274
  }, {
18172
18275
  default: () => [renderOptions()]
@@ -18180,7 +18283,7 @@
18180
18283
  };
18181
18284
  const pickerToolbarSlots = ["cancel", "confirm", "title", "toolbar"];
18182
18285
  const pickerToolbarPropKeys = Object.keys(pickerToolbarProps);
18183
- var stdin_default$m = vue.defineComponent({
18286
+ var stdin_default$n = vue.defineComponent({
18184
18287
  name: name$f,
18185
18288
  props: pickerToolbarProps,
18186
18289
  emits: ["confirm", "cancel"],
@@ -18296,7 +18399,7 @@
18296
18399
  autoSearch: truthProp,
18297
18400
  searchPlaceholder: makeStringProp("请搜索")
18298
18401
  });
18299
- var stdin_default$l = vue.defineComponent({
18402
+ var stdin_default$m = vue.defineComponent({
18300
18403
  name: name$h,
18301
18404
  props: radioPickerProps,
18302
18405
  emits: ["confirm", "cancel", "change", "clickOption", "update:modelValue", "update:showPicker"],
@@ -18398,7 +18501,7 @@
18398
18501
  emit("cancel", getEventParams());
18399
18502
  };
18400
18503
  const updateShow = (value) => emit("update:showPicker", value);
18401
- const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$n, {
18504
+ const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$o, {
18402
18505
  "value": selectedValues.value[columnIndex],
18403
18506
  "fields": fields.value,
18404
18507
  "options": options,
@@ -18444,7 +18547,7 @@
18444
18547
  if (props.searchable) {
18445
18548
  return vue.createVNode("div", {
18446
18549
  "class": bem$g("search")
18447
- }, [vue.createVNode(stdin_default$13, {
18550
+ }, [vue.createVNode(stdin_default$14, {
18448
18551
  "show-action": !props.autoSearch,
18449
18552
  "modelValue": searchVal.value,
18450
18553
  "placeholder": props.searchPlaceholder,
@@ -18466,7 +18569,7 @@
18466
18569
  };
18467
18570
  const renderToolbar = () => {
18468
18571
  if (props.showToolbar) {
18469
- return vue.createVNode(stdin_default$m, vue.mergeProps(pick(props, pickerToolbarPropKeys), {
18572
+ return vue.createVNode(stdin_default$n, vue.mergeProps(pick(props, pickerToolbarPropKeys), {
18470
18573
  "onConfirm": confirm,
18471
18574
  "onCancel": cancel
18472
18575
  }), pick(slots, pickerToolbarSlots));
@@ -18532,7 +18635,7 @@
18532
18635
  };
18533
18636
  return () => {
18534
18637
  if (props.popup) {
18535
- return vue.createVNode(stdin_default$1O, {
18638
+ return vue.createVNode(stdin_default$1P, {
18536
18639
  "show": showPicker.value,
18537
18640
  "onUpdate:show": [($event) => showPicker.value = $event, updateShow],
18538
18641
  "round": true,
@@ -18545,7 +18648,7 @@
18545
18648
  };
18546
18649
  }
18547
18650
  });
18548
- const RadioPicker = withInstall(stdin_default$l);
18651
+ const RadioPicker = withInstall(stdin_default$m);
18549
18652
  const [name$e, bem$e] = createNamespace("rate");
18550
18653
  function getRateStatus(value, index, allowHalf, readonly) {
18551
18654
  if (value >= index) {
@@ -18588,7 +18691,7 @@
18588
18691
  modelValue: makeNumberProp(0),
18589
18692
  disabledColor: String
18590
18693
  };
18591
- var stdin_default$k = vue.defineComponent({
18694
+ var stdin_default$l = vue.defineComponent({
18592
18695
  name: name$e,
18593
18696
  props: rateProps,
18594
18697
  emits: ["change", "update:modelValue"],
@@ -18753,8 +18856,8 @@
18753
18856
  }, [list.value.map(renderStar)]);
18754
18857
  }
18755
18858
  });
18756
- const Rate = withInstall(stdin_default$k);
18757
- const Row = withInstall(stdin_default$1l);
18859
+ const Rate = withInstall(stdin_default$l);
18860
+ const Row = withInstall(stdin_default$1m);
18758
18861
  const isPortrait = () => window.orientation == null || window.orientation === 180 || window.orientation === 0;
18759
18862
  const getForceLandscapeStyle = (offsetLeft, offsetTop, forceLandscape) => {
18760
18863
  const resultStyle = {
@@ -18839,7 +18942,7 @@
18839
18942
  unSupportTpl: makeStringProp("对不起,当前浏览器不支持Canvas,无法使用签名组件"),
18840
18943
  allowPortrait: Boolean
18841
18944
  };
18842
- var stdin_default$j = vue.defineComponent({
18945
+ var stdin_default$k = vue.defineComponent({
18843
18946
  name: name$d,
18844
18947
  props: signatureProps,
18845
18948
  emits: ["clear", "cancel", "confirm"],
@@ -19020,20 +19123,20 @@
19020
19123
  "height": canvasHeight.value
19021
19124
  }, null), [[vue.vShow, isCanvasSupported.value]])]), vue.createVNode("div", {
19022
19125
  "class": bem$d("actions")
19023
- }, [vue.createVNode(stdin_default$1F, {
19126
+ }, [vue.createVNode(stdin_default$1G, {
19024
19127
  "plain": true,
19025
19128
  "type": "warning",
19026
19129
  "onClick": () => clear(),
19027
19130
  "class": bem$d("button-again")
19028
19131
  }, {
19029
19132
  default: () => [vue.createTextVNode("重签")]
19030
- }), vue.createVNode(stdin_default$1F, {
19133
+ }), vue.createVNode(stdin_default$1G, {
19031
19134
  "type": "default",
19032
19135
  "onClick": cancel,
19033
19136
  "class": bem$d("button-cancel")
19034
19137
  }, {
19035
19138
  default: () => [vue.createTextVNode("取消")]
19036
- }), vue.createVNode(stdin_default$1F, {
19139
+ }), vue.createVNode(stdin_default$1G, {
19037
19140
  "block": true,
19038
19141
  "type": "primary",
19039
19142
  "disabled": isCompleteButtonDisabled.value,
@@ -19045,7 +19148,7 @@
19045
19148
  });
19046
19149
  }
19047
19150
  });
19048
- const Signature = withInstall(stdin_default$j);
19151
+ const Signature = withInstall(stdin_default$k);
19049
19152
  const [name$c, bem$c] = createNamespace("skeleton");
19050
19153
  const DEFAULT_ROW_WIDTH = "100%";
19051
19154
  const DEFAULT_LAST_ROW_WIDTH = "60%";
@@ -19066,7 +19169,7 @@
19066
19169
  default: DEFAULT_ROW_WIDTH
19067
19170
  }
19068
19171
  };
19069
- var stdin_default$i = vue.defineComponent({
19172
+ var stdin_default$j = vue.defineComponent({
19070
19173
  name: name$c,
19071
19174
  inheritAttrs: false,
19072
19175
  props: skeletonProps,
@@ -19155,7 +19258,7 @@
19155
19258
  };
19156
19259
  }
19157
19260
  });
19158
- const Skeleton = withInstall(stdin_default$i);
19261
+ const Skeleton = withInstall(stdin_default$j);
19159
19262
  const [name$b, bem$b] = createNamespace("slider");
19160
19263
  const sliderProps = {
19161
19264
  min: makeNumericProp(0),
@@ -19179,7 +19282,7 @@
19179
19282
  direction: makeStringProp("horizontal"),
19180
19283
  showPercent: truthProp
19181
19284
  };
19182
- var stdin_default$h = vue.defineComponent({
19285
+ var stdin_default$i = vue.defineComponent({
19183
19286
  name: name$b,
19184
19287
  props: sliderProps,
19185
19288
  emits: ["change", "dragEnd", "dragStart", "update:modelValue"],
@@ -19223,6 +19326,12 @@
19223
19326
  }
19224
19327
  return "0%";
19225
19328
  };
19329
+ const getPositionKey = () => {
19330
+ if (props.vertical) {
19331
+ return props.reverse ? "bottom" : "top";
19332
+ }
19333
+ return props.reverse ? "right" : "left";
19334
+ };
19226
19335
  const barStyle = vue.computed(() => {
19227
19336
  const mainAxis = props.vertical ? "height" : "width";
19228
19337
  const style = {
@@ -19232,12 +19341,6 @@
19232
19341
  if (dragStatus.value) {
19233
19342
  style.transition = "none";
19234
19343
  }
19235
- const getPositionKey = () => {
19236
- if (props.vertical) {
19237
- return props.reverse ? "bottom" : "top";
19238
- }
19239
- return props.reverse ? "right" : "left";
19240
- };
19241
19344
  style[getPositionKey()] = calcOffset();
19242
19345
  return style;
19243
19346
  });
@@ -19359,13 +19462,6 @@
19359
19462
  }
19360
19463
  dragStatus.value = "";
19361
19464
  };
19362
- const getButtonClassName = (index) => {
19363
- if (typeof index === "number") {
19364
- const position = ["left", "right"];
19365
- return bem$b(`button-wrapper`, position[index]);
19366
- }
19367
- return bem$b("button-wrapper", props.reverse ? "left" : "right");
19368
- };
19369
19465
  const renderButtonContent = (value, index) => {
19370
19466
  const dragging = dragStatus.value === "dragging";
19371
19467
  if (typeof index === "number") {
@@ -19395,10 +19491,15 @@
19395
19491
  };
19396
19492
  const renderButton = (index) => {
19397
19493
  const current22 = typeof index === "number" ? props.modelValue[index] : props.modelValue;
19494
+ const left2 = `${(current22 - Number(props.min)) * 100 / scope.value}%`;
19495
+ const style = {
19496
+ [getPositionKey()]: left2,
19497
+ transform: `translate(-${left2},-50%)`
19498
+ };
19398
19499
  return vue.createVNode("div", {
19399
19500
  "ref": slider[index != null ? index : 0],
19400
19501
  "role": "slider",
19401
- "class": getButtonClassName(index),
19502
+ "class": bem$b("button-wrapper"),
19402
19503
  "tabindex": props.disabled ? void 0 : 0,
19403
19504
  "aria-valuemin": props.min,
19404
19505
  "aria-valuenow": current22,
@@ -19414,7 +19515,8 @@
19414
19515
  },
19415
19516
  "onTouchend": onTouchEnd,
19416
19517
  "onTouchcancel": onTouchEnd,
19417
- "onClick": stopPropagation
19518
+ "onClick": stopPropagation,
19519
+ "style": style
19418
19520
  }, [renderButtonContent(current22, index)]);
19419
19521
  };
19420
19522
  const renderTitle = () => {
@@ -19479,10 +19581,10 @@
19479
19581
  }, [vue.createVNode("div", {
19480
19582
  "class": bem$b("bar"),
19481
19583
  "style": barStyle.value
19482
- }, [renderButtons()])]))]);
19584
+ }, null), renderButtons()]))]);
19483
19585
  }
19484
19586
  });
19485
- const Slider = withInstall(stdin_default$h);
19587
+ const Slider = withInstall(stdin_default$i);
19486
19588
  const [name$a, bem$a] = createNamespace("steps");
19487
19589
  const stepsProps = {
19488
19590
  active: makeNumericProp(0),
@@ -19497,7 +19599,7 @@
19497
19599
  titleInactiveColor: String
19498
19600
  };
19499
19601
  const STEPS_KEY = Symbol(name$a);
19500
- var stdin_default$g = vue.defineComponent({
19602
+ var stdin_default$h = vue.defineComponent({
19501
19603
  name: name$a,
19502
19604
  props: stepsProps,
19503
19605
  emits: ["clickStep"],
@@ -19529,7 +19631,7 @@
19529
19631
  activeIcon: String,
19530
19632
  inactiveIcon: String
19531
19633
  };
19532
- var stdin_default$f = vue.defineComponent({
19634
+ var stdin_default$g = vue.defineComponent({
19533
19635
  name: name$9,
19534
19636
  props: stepProps,
19535
19637
  setup(props, {
@@ -19651,7 +19753,7 @@
19651
19753
  };
19652
19754
  }
19653
19755
  });
19654
- const Step = withInstall(stdin_default$f);
19756
+ const Step = withInstall(stdin_default$g);
19655
19757
  const [name$8, bem$8] = createNamespace("stepper");
19656
19758
  const LONG_PRESS_INTERVAL = 200;
19657
19759
  const isEqual = (value1, value2) => String(value1) === String(value2);
@@ -19679,7 +19781,7 @@
19679
19781
  defaultValue: makeNumericProp(1),
19680
19782
  decimalLength: numericProp
19681
19783
  };
19682
- var stdin_default$e = vue.defineComponent({
19784
+ var stdin_default$f = vue.defineComponent({
19683
19785
  name: name$8,
19684
19786
  props: stepperProps,
19685
19787
  emits: ["plus", "blur", "minus", "focus", "change", "overlimit", "update:modelValue"],
@@ -19864,7 +19966,7 @@
19864
19966
  }
19865
19967
  ],
19866
19968
  "aria-disabled": minusDisabled.value || void 0
19867
- }, createListeners("minus")), [vue.createVNode(stdin_default$1R, {
19969
+ }, createListeners("minus")), [vue.createVNode(stdin_default$1S, {
19868
19970
  "name": "minus",
19869
19971
  "size": (props == null ? void 0 : props.buttonSize) ? props.buttonSize : "32"
19870
19972
  }, null)]), [[vue.vShow, props.showMinus]]), vue.withDirectives(vue.createVNode("input", {
@@ -19897,14 +19999,14 @@
19897
19999
  // { [HAPTICS_FEEDBACK]: !plusDisabled.value },
19898
20000
  ],
19899
20001
  "aria-disabled": plusDisabled.value || void 0
19900
- }, createListeners("plus")), [vue.createVNode(stdin_default$1R, {
20002
+ }, createListeners("plus")), [vue.createVNode(stdin_default$1S, {
19901
20003
  "name": "plus",
19902
20004
  "size": (props == null ? void 0 : props.buttonSize) ? props.buttonSize : "32"
19903
20005
  }, null)]), [[vue.vShow, props.showPlus]])]);
19904
20006
  }
19905
20007
  });
19906
- const Stepper = withInstall(stdin_default$e);
19907
- const Steps = withInstall(stdin_default$g);
20008
+ const Stepper = withInstall(stdin_default$f);
20009
+ const Steps = withInstall(stdin_default$h);
19908
20010
  const [name$7, bem$7] = createNamespace("swipe-cell");
19909
20011
  const swipeCellProps = {
19910
20012
  name: makeNumericProp(""),
@@ -19914,7 +20016,7 @@
19914
20016
  beforeClose: Function,
19915
20017
  stopPropagation: Boolean
19916
20018
  };
19917
- var stdin_default$d = vue.defineComponent({
20019
+ var stdin_default$e = vue.defineComponent({
19918
20020
  name: name$7,
19919
20021
  props: swipeCellProps,
19920
20022
  emits: ["open", "close", "click"],
@@ -20067,7 +20169,7 @@
20067
20169
  };
20068
20170
  }
20069
20171
  });
20070
- const SwipeCell = withInstall(stdin_default$d);
20172
+ const SwipeCell = withInstall(stdin_default$e);
20071
20173
  const [name$6, bem$6] = createNamespace("switch");
20072
20174
  const switchProps = {
20073
20175
  size: numericProp,
@@ -20085,7 +20187,7 @@
20085
20187
  default: false
20086
20188
  }
20087
20189
  };
20088
- var stdin_default$c = vue.defineComponent({
20190
+ var stdin_default$d = vue.defineComponent({
20089
20191
  name: name$6,
20090
20192
  props: switchProps,
20091
20193
  emits: ["change", "update:modelValue"],
@@ -20145,8 +20247,8 @@
20145
20247
  };
20146
20248
  }
20147
20249
  });
20148
- const Switch = withInstall(stdin_default$c);
20149
- var stdin_default$b = Switch;
20250
+ const Switch = withInstall(stdin_default$d);
20251
+ var stdin_default$c = Switch;
20150
20252
  const [name$5, bem$5] = createNamespace("tabbar");
20151
20253
  const tabbarProps = {
20152
20254
  route: Boolean,
@@ -20164,7 +20266,7 @@
20164
20266
  }
20165
20267
  };
20166
20268
  const TABBAR_KEY = Symbol(name$5);
20167
- var stdin_default$a = vue.defineComponent({
20269
+ var stdin_default$b = vue.defineComponent({
20168
20270
  name: name$5,
20169
20271
  props: tabbarProps,
20170
20272
  emits: ["change", "update:modelValue"],
@@ -20222,7 +20324,7 @@
20222
20324
  };
20223
20325
  }
20224
20326
  });
20225
- const Tabbar = withInstall(stdin_default$a);
20327
+ const Tabbar = withInstall(stdin_default$b);
20226
20328
  const [name$4, bem$4] = createNamespace("tabbar-item");
20227
20329
  const tabbarItemProps = extend({}, routeProps, {
20228
20330
  dot: Boolean,
@@ -20232,7 +20334,7 @@
20232
20334
  badgeProps: Object,
20233
20335
  iconPrefix: String
20234
20336
  });
20235
- var stdin_default$9 = vue.defineComponent({
20337
+ var stdin_default$a = vue.defineComponent({
20236
20338
  name: name$4,
20237
20339
  props: tabbarItemProps,
20238
20340
  emits: ["click"],
@@ -20331,37 +20433,188 @@
20331
20433
  };
20332
20434
  }
20333
20435
  });
20334
- const TabbarItem = withInstall(stdin_default$9);
20436
+ const TabbarItem = withInstall(stdin_default$a);
20335
20437
  var SortOrderEnum = /* @__PURE__ */ ((SortOrderEnum2) => {
20336
20438
  SortOrderEnum2["ASCEND"] = "ascend";
20337
20439
  SortOrderEnum2["DESCEND"] = "descend";
20338
20440
  return SortOrderEnum2;
20339
20441
  })(SortOrderEnum || {});
20340
- const [name$3, bem$3] = createNamespace("table");
20341
- const tableProps = {
20342
- headList: makeArrayProp(),
20343
- dataList: makeArrayProp(),
20344
- striped: truthProp,
20345
- emptyValue: makeStringProp("-"),
20346
- loading: {
20347
- type: Boolean,
20348
- default: false
20349
- },
20350
- skeletonRow: {
20351
- type: Number,
20352
- default: 6
20353
- },
20442
+ const [name$3, bem$3] = createNamespace("text-ellipsis");
20443
+ const textEllipsisProps = {
20444
+ rows: makeNumericProp(1),
20445
+ dots: makeStringProp("..."),
20446
+ content: makeStringProp(""),
20447
+ expandText: makeStringProp(""),
20448
+ expandType: makeStringProp("flat"),
20449
+ collapseText: makeStringProp(""),
20450
+ position: makeStringProp("end")
20451
+ };
20452
+ var stdin_default$9 = vue.defineComponent({
20453
+ name: name$3,
20454
+ props: textEllipsisProps,
20455
+ emits: ["clickAction"],
20456
+ setup(props, {
20457
+ emit
20458
+ }) {
20459
+ const text = vue.ref("");
20460
+ const expanded = vue.ref(false);
20461
+ const hasAction = vue.ref(false);
20462
+ const root = vue.ref();
20463
+ const actionText = vue.computed(() => expanded.value ? props.collapseText : props.expandText);
20464
+ const pxToNum = (value) => {
20465
+ if (!value)
20466
+ return 0;
20467
+ const match = value.match(/^\d*(\.\d*)?/);
20468
+ return match ? Number(match[0]) : 0;
20469
+ };
20470
+ const calcEllipsised = () => {
20471
+ const cloneContainer = () => {
20472
+ if (!root.value)
20473
+ return;
20474
+ const originStyle = window.getComputedStyle(root.value);
20475
+ const container2 = document.createElement("div");
20476
+ const styleNames = Array.prototype.slice.apply(originStyle);
20477
+ styleNames.forEach((name2) => {
20478
+ container2.style.setProperty(name2, originStyle.getPropertyValue(name2));
20479
+ });
20480
+ container2.style.position = "fixed";
20481
+ container2.style.zIndex = "-9999";
20482
+ container2.style.top = "-9999px";
20483
+ container2.style.height = "auto";
20484
+ container2.style.minHeight = "auto";
20485
+ container2.style.maxHeight = "auto";
20486
+ container2.innerText = props.content;
20487
+ document.body.appendChild(container2);
20488
+ return container2;
20489
+ };
20490
+ const calcEllipsisText = (container2, maxHeight2) => {
20491
+ const {
20492
+ content,
20493
+ position,
20494
+ dots
20495
+ } = props;
20496
+ const end2 = content.length;
20497
+ const calcEllipse = () => {
20498
+ const tail = (left2, right2) => {
20499
+ if (right2 - left2 <= 1) {
20500
+ if (position === "end") {
20501
+ return content.slice(0, left2) + dots;
20502
+ }
20503
+ return dots + content.slice(right2, end2);
20504
+ }
20505
+ const middle2 = Math.round((left2 + right2) / 2);
20506
+ if (position === "end") {
20507
+ container2.innerText = content.slice(0, middle2) + dots + actionText.value;
20508
+ } else {
20509
+ container2.innerText = dots + content.slice(middle2, end2) + actionText.value;
20510
+ }
20511
+ if (container2.offsetHeight > maxHeight2) {
20512
+ if (position === "end") {
20513
+ return tail(left2, middle2);
20514
+ }
20515
+ return tail(middle2, right2);
20516
+ }
20517
+ if (position === "end") {
20518
+ return tail(middle2, right2);
20519
+ }
20520
+ return tail(left2, middle2);
20521
+ };
20522
+ container2.innerText = tail(0, end2);
20523
+ };
20524
+ const middleTail = (leftPart, rightPart) => {
20525
+ if (leftPart[1] - leftPart[0] <= 1 && rightPart[1] - rightPart[0] <= 1) {
20526
+ return content.slice(0, leftPart[0]) + dots + content.slice(rightPart[1], end2);
20527
+ }
20528
+ const leftMiddle = Math.floor((leftPart[0] + leftPart[1]) / 2);
20529
+ const rightMiddle = Math.ceil((rightPart[0] + rightPart[1]) / 2);
20530
+ container2.innerText = props.content.slice(0, leftMiddle) + props.dots + props.content.slice(rightMiddle, end2) + props.expandText;
20531
+ if (container2.offsetHeight >= maxHeight2) {
20532
+ return middleTail([leftPart[0], leftMiddle], [rightMiddle, rightPart[1]]);
20533
+ }
20534
+ return middleTail([leftMiddle, leftPart[1]], [rightPart[0], rightMiddle]);
20535
+ };
20536
+ const middle = 0 + end2 >> 1;
20537
+ props.position === "middle" ? container2.innerText = middleTail([0, middle], [middle, end2]) : calcEllipse();
20538
+ return container2.innerText;
20539
+ };
20540
+ const container = cloneContainer();
20541
+ if (!container)
20542
+ return;
20543
+ const {
20544
+ paddingBottom,
20545
+ paddingTop,
20546
+ lineHeight
20547
+ } = container.style;
20548
+ const maxHeight = Math.ceil((Number(props.rows) + 0.5) * pxToNum(lineHeight) + pxToNum(paddingTop) + pxToNum(paddingBottom));
20549
+ if (maxHeight < container.offsetHeight) {
20550
+ hasAction.value = true;
20551
+ text.value = calcEllipsisText(container, maxHeight);
20552
+ } else {
20553
+ hasAction.value = false;
20554
+ text.value = props.content;
20555
+ }
20556
+ document.body.removeChild(container);
20557
+ };
20558
+ const onClickAction = (event) => {
20559
+ event.stopPropagation();
20560
+ event.preventDefault();
20561
+ expanded.value = !expanded.value;
20562
+ emit("clickAction", event);
20563
+ };
20564
+ const renderAction = () => vue.createVNode("span", {
20565
+ "class": bem$3("action"),
20566
+ "onClick": onClickAction
20567
+ }, [actionText.value]);
20568
+ const onClickEllipsis = () => {
20569
+ if (props.expandType === "dialog" && hasAction.value) {
20570
+ showDialog({
20571
+ message: props.content
20572
+ }).then(() => {
20573
+ });
20574
+ }
20575
+ };
20576
+ vue.onMounted(calcEllipsised);
20577
+ vue.watch(() => [props.content, props.rows, props.position], calcEllipsised);
20578
+ useEventListener("resize", calcEllipsised);
20579
+ return () => vue.createVNode("div", {
20580
+ "ref": root,
20581
+ "class": bem$3(),
20582
+ "onClick": onClickEllipsis
20583
+ }, [expanded.value ? props.content : text.value, props.expandType !== "dialog" && hasAction.value ? renderAction() : null]);
20584
+ }
20585
+ });
20586
+ const TextEllipsis = withInstall(stdin_default$9);
20587
+ var stdin_default$8 = TextEllipsis;
20588
+ const [name$2, bem$2] = createNamespace("table");
20589
+ const tableProps = {
20590
+ headList: makeArrayProp(),
20591
+ dataList: makeArrayProp(),
20592
+ striped: truthProp,
20593
+ emptyValue: makeStringProp("-"),
20594
+ loading: {
20595
+ type: Boolean,
20596
+ default: false
20597
+ },
20598
+ skeletonRow: {
20599
+ type: Number,
20600
+ default: 6
20601
+ },
20354
20602
  border: {
20355
20603
  type: Boolean,
20356
20604
  default: false
20605
+ },
20606
+ hideTableHead: {
20607
+ type: Boolean,
20608
+ default: false
20357
20609
  }
20358
20610
  };
20359
- var stdin_default$8 = vue.defineComponent({
20360
- name: name$3,
20611
+ var stdin_default$7 = vue.defineComponent({
20612
+ name: name$2,
20361
20613
  props: tableProps,
20362
20614
  emits: ["sort"],
20363
20615
  setup(props, {
20364
- emit
20616
+ emit,
20617
+ slots
20365
20618
  }) {
20366
20619
  const sortOrder = vue.ref("");
20367
20620
  const sortKey = vue.ref("");
@@ -20439,9 +20692,11 @@
20439
20692
  pingedLeft.value = mergedScrollLeft > 0;
20440
20693
  };
20441
20694
  const getHead = (colData) => {
20695
+ const headSlot = slots[`head-${colData.id}`];
20696
+ const headEllipsisType = colData.sorter ? "flat" : "dialog";
20442
20697
  if ((colData == null ? void 0 : colData.colSpan) !== 0) {
20443
20698
  return vue.createVNode("th", {
20444
- "class": bem$3("left", {
20699
+ "class": bem$2("left", {
20445
20700
  fixed: colData.fixed,
20446
20701
  last: colData.lastFixLeft && pingedLeft.value
20447
20702
  }),
@@ -20449,22 +20704,26 @@
20449
20704
  left: colData.fixed ? colData.left : ""
20450
20705
  },
20451
20706
  "colspan": (colData == null ? void 0 : colData.colSpan) !== 1 ? colData == null ? void 0 : colData.colSpan : null
20452
- }, [vue.createVNode("div", {
20453
- "class": bem$3("head"),
20707
+ }, [headSlot ? headSlot(colData) : vue.createVNode("div", {
20708
+ "class": bem$2("head"),
20454
20709
  "onClick": () => onHeaderClick(colData)
20455
- }, [vue.createVNode("span", {
20456
- "class": bem$3("head-label")
20710
+ }, [colData.ellipsis ? vue.createVNode(stdin_default$8, {
20711
+ "content": colData.label,
20712
+ "expandType": headEllipsisType,
20713
+ "class": bem$2("head-label-ellipsis")
20714
+ }, null) : vue.createVNode("span", {
20715
+ "class": bem$2("head-label")
20457
20716
  }, [colData.label]), colData.sorter ? vue.createVNode("span", {
20458
- "class": bem$3("head-sort")
20717
+ "class": bem$2("head-sort")
20459
20718
  }, [vue.createVNode(Icon, {
20460
- "class": [colData.key === sortKey.value && sortOrder.value === SortOrderEnum.ASCEND ? bem$3("sort-active") : ""],
20719
+ "class": [colData.key === sortKey.value && sortOrder.value === SortOrderEnum.ASCEND ? bem$2("sort-active") : ""],
20461
20720
  "name": "spinner-shrink",
20462
20721
  "size": "12",
20463
20722
  "style": {
20464
20723
  marginBottom: "-3px"
20465
20724
  }
20466
20725
  }, null), vue.createVNode(Icon, {
20467
- "class": [colData.key === sortKey.value && sortOrder.value === SortOrderEnum.DESCEND ? bem$3("sort-active") : ""],
20726
+ "class": [colData.key === sortKey.value && sortOrder.value === SortOrderEnum.DESCEND ? bem$2("sort-active") : ""],
20468
20727
  "name": "spinner-expand",
20469
20728
  "size": "12",
20470
20729
  "style": {
@@ -20473,6 +20732,15 @@
20473
20732
  }, null)]) : ""])]);
20474
20733
  }
20475
20734
  };
20735
+ const getElement = (rowData, colData) => {
20736
+ if (rowData[colData.key] && rowData[colData.key].id && slots[`data-${rowData[colData.key].id}`]) {
20737
+ return slots[`data-${rowData[colData.key].id}`](rowData[colData.key]);
20738
+ }
20739
+ return colData.ellipsis ? vue.createVNode(stdin_default$8, {
20740
+ "content": rowData[colData.key],
20741
+ "expandType": "dialog"
20742
+ }, null) : rowData[colData.key];
20743
+ };
20476
20744
  const getBody = (rowData, rowIndex) => vue.createVNode("tr", null, [formatColumns.value.map((colData) => {
20477
20745
  let additionalCellProps;
20478
20746
  if (colData.customCell) {
@@ -20482,23 +20750,23 @@
20482
20750
  style.left = colData.fixed ? colData.left : "";
20483
20751
  return (additionalCellProps == null ? void 0 : additionalCellProps.rowSpan) !== 0 && (additionalCellProps == null ? void 0 : additionalCellProps.colSpan) !== 0 && vue.createVNode("td", {
20484
20752
  "onClick": () => colData.click && colData.click(rowData, rowIndex),
20485
- "class": bem$3("left", {
20753
+ "class": bem$2("left", {
20486
20754
  fixed: colData.fixed,
20487
20755
  last: colData.lastFixLeft && pingedLeft.value
20488
20756
  }),
20489
20757
  "colspan": (additionalCellProps == null ? void 0 : additionalCellProps.colSpan) !== 1 ? additionalCellProps == null ? void 0 : additionalCellProps.colSpan : null,
20490
20758
  "rowspan": (additionalCellProps == null ? void 0 : additionalCellProps.rowSpan) !== 1 ? additionalCellProps == null ? void 0 : additionalCellProps.rowSpan : null,
20491
20759
  "style": style
20492
- }, [rowData[colData.key]]);
20760
+ }, [getElement(rowData, colData)]);
20493
20761
  })]);
20494
20762
  const getCol = () => {
20495
20763
  const cols = [];
20496
20764
  const col = resortHeadList.value.length;
20497
20765
  for (let j = 0; j < col; j++) {
20498
20766
  cols.push(vue.createVNode("div", {
20499
- "class": bem$3("col")
20767
+ "class": bem$2("col")
20500
20768
  }, [vue.createVNode("div", {
20501
- "class": bem$3("col-item")
20769
+ "class": bem$2("col-item")
20502
20770
  }, null)]));
20503
20771
  }
20504
20772
  return cols;
@@ -20507,7 +20775,7 @@
20507
20775
  const Rows = [];
20508
20776
  for (let i2 = 0; i2 < props.skeletonRow; i2++) {
20509
20777
  Rows.push(vue.createVNode("div", {
20510
- "class": bem$3("row", {
20778
+ "class": bem$2("row", {
20511
20779
  head: i2 === 0
20512
20780
  })
20513
20781
  }, [getCol()]));
@@ -20515,12 +20783,12 @@
20515
20783
  return Rows;
20516
20784
  };
20517
20785
  return () => props.loading ? vue.createVNode("div", {
20518
- "class": bem$3({
20786
+ "class": bem$2({
20519
20787
  animate: true,
20520
20788
  skeleton: true
20521
20789
  })
20522
20790
  }, [getLoadingColumn()]) : vue.createVNode("div", {
20523
- "class": bem$3({
20791
+ "class": bem$2({
20524
20792
  fixed: fixedColumn.value.length > 0,
20525
20793
  bordered: props.border,
20526
20794
  striped: props.striped
@@ -20530,149 +20798,14 @@
20530
20798
  "style": {
20531
20799
  width: item.width
20532
20800
  }
20533
- }, null))]), vue.createVNode("thead", {
20534
- "class": bem$3("thead")
20535
- }, [vue.createVNode("tr", null, [formatColumns.value.map((colData) => getHead(colData))])]), vue.createVNode("tbody", {
20536
- "class": bem$3("tbody")
20801
+ }, null))]), vue.withDirectives(vue.createVNode("thead", {
20802
+ "class": bem$2("thead")
20803
+ }, [vue.createVNode("tr", null, [formatColumns.value.map((colData) => getHead(colData))])]), [[vue.vShow, !props.hideTableHead]]), vue.createVNode("tbody", {
20804
+ "class": bem$2("tbody")
20537
20805
  }, [props.dataList.map((rowData, rowIndex) => getBody(rowData, rowIndex))])])]);
20538
20806
  }
20539
20807
  });
20540
- const Table = withInstall(stdin_default$8);
20541
- const [name$2, bem$2] = createNamespace("text-ellipsis");
20542
- const textEllipsisProps = {
20543
- rows: makeNumericProp(1),
20544
- dots: makeStringProp("..."),
20545
- content: makeStringProp(""),
20546
- expandText: makeStringProp(""),
20547
- collapseText: makeStringProp(""),
20548
- position: makeStringProp("end")
20549
- };
20550
- var stdin_default$7 = vue.defineComponent({
20551
- name: name$2,
20552
- props: textEllipsisProps,
20553
- emits: ["clickAction"],
20554
- setup(props, {
20555
- emit
20556
- }) {
20557
- const text = vue.ref("");
20558
- const expanded = vue.ref(false);
20559
- const hasAction = vue.ref(false);
20560
- const root = vue.ref();
20561
- const actionText = vue.computed(() => expanded.value ? props.collapseText : props.expandText);
20562
- const pxToNum = (value) => {
20563
- if (!value)
20564
- return 0;
20565
- const match = value.match(/^\d*(\.\d*)?/);
20566
- return match ? Number(match[0]) : 0;
20567
- };
20568
- const calcEllipsised = () => {
20569
- const cloneContainer = () => {
20570
- if (!root.value)
20571
- return;
20572
- const originStyle = window.getComputedStyle(root.value);
20573
- const container2 = document.createElement("div");
20574
- const styleNames = Array.prototype.slice.apply(originStyle);
20575
- styleNames.forEach((name2) => {
20576
- container2.style.setProperty(name2, originStyle.getPropertyValue(name2));
20577
- });
20578
- container2.style.position = "fixed";
20579
- container2.style.zIndex = "-9999";
20580
- container2.style.top = "-9999px";
20581
- container2.style.height = "auto";
20582
- container2.style.minHeight = "auto";
20583
- container2.style.maxHeight = "auto";
20584
- container2.innerText = props.content;
20585
- document.body.appendChild(container2);
20586
- return container2;
20587
- };
20588
- const calcEllipsisText = (container2, maxHeight2) => {
20589
- const {
20590
- content,
20591
- position,
20592
- dots
20593
- } = props;
20594
- const end2 = content.length;
20595
- const calcEllipse = () => {
20596
- const tail = (left2, right2) => {
20597
- if (right2 - left2 <= 1) {
20598
- if (position === "end") {
20599
- return content.slice(0, left2) + dots;
20600
- }
20601
- return dots + content.slice(right2, end2);
20602
- }
20603
- const middle2 = Math.round((left2 + right2) / 2);
20604
- if (position === "end") {
20605
- container2.innerText = content.slice(0, middle2) + dots + actionText.value;
20606
- } else {
20607
- container2.innerText = dots + content.slice(middle2, end2) + actionText.value;
20608
- }
20609
- if (container2.offsetHeight > maxHeight2) {
20610
- if (position === "end") {
20611
- return tail(left2, middle2);
20612
- }
20613
- return tail(middle2, right2);
20614
- }
20615
- if (position === "end") {
20616
- return tail(middle2, right2);
20617
- }
20618
- return tail(left2, middle2);
20619
- };
20620
- container2.innerText = tail(0, end2);
20621
- };
20622
- const middleTail = (leftPart, rightPart) => {
20623
- if (leftPart[1] - leftPart[0] <= 1 && rightPart[1] - rightPart[0] <= 1) {
20624
- return content.slice(0, leftPart[0]) + dots + content.slice(rightPart[1], end2);
20625
- }
20626
- const leftMiddle = Math.floor((leftPart[0] + leftPart[1]) / 2);
20627
- const rightMiddle = Math.ceil((rightPart[0] + rightPart[1]) / 2);
20628
- container2.innerText = props.content.slice(0, leftMiddle) + props.dots + props.content.slice(rightMiddle, end2) + props.expandText;
20629
- if (container2.offsetHeight >= maxHeight2) {
20630
- return middleTail([leftPart[0], leftMiddle], [rightMiddle, rightPart[1]]);
20631
- }
20632
- return middleTail([leftMiddle, leftPart[1]], [rightPart[0], rightMiddle]);
20633
- };
20634
- const middle = 0 + end2 >> 1;
20635
- props.position === "middle" ? container2.innerText = middleTail([0, middle], [middle, end2]) : calcEllipse();
20636
- return container2.innerText;
20637
- };
20638
- const container = cloneContainer();
20639
- if (!container)
20640
- return;
20641
- const {
20642
- paddingBottom,
20643
- paddingTop,
20644
- lineHeight
20645
- } = container.style;
20646
- const maxHeight = Math.ceil((Number(props.rows) + 0.5) * pxToNum(lineHeight) + pxToNum(paddingTop) + pxToNum(paddingBottom));
20647
- if (maxHeight < container.offsetHeight) {
20648
- hasAction.value = true;
20649
- text.value = calcEllipsisText(container, maxHeight);
20650
- } else {
20651
- hasAction.value = false;
20652
- text.value = props.content;
20653
- }
20654
- document.body.removeChild(container);
20655
- };
20656
- const onClickAction = (event) => {
20657
- event.stopPropagation();
20658
- event.preventDefault();
20659
- expanded.value = !expanded.value;
20660
- emit("clickAction", event);
20661
- };
20662
- const renderAction = () => vue.createVNode("span", {
20663
- "class": bem$2("action"),
20664
- "onClick": onClickAction
20665
- }, [actionText.value]);
20666
- vue.onMounted(calcEllipsised);
20667
- vue.watch(() => [props.content, props.rows, props.position], calcEllipsised);
20668
- useEventListener("resize", calcEllipsised);
20669
- return () => vue.createVNode("div", {
20670
- "ref": root,
20671
- "class": bem$2()
20672
- }, [expanded.value ? props.content : text.value, hasAction.value ? renderAction() : null]);
20673
- }
20674
- });
20675
- const TextEllipsis = withInstall(stdin_default$7);
20808
+ const Table = withInstall(stdin_default$7);
20676
20809
  const [name$1, bem$1] = createNamespace("timeline");
20677
20810
  const timelineProps = {
20678
20811
  title: makeStringProp("办理经过"),
@@ -20716,7 +20849,7 @@
20716
20849
  "class": bem$1("top-right")
20717
20850
  }, [vue.createVNode("span", {
20718
20851
  "class": bem$1("fold-text")
20719
- }, [vue.createTextVNode("折叠"), props.title]), vue.createVNode(stdin_default$b, {
20852
+ }, [vue.createTextVNode("折叠"), props.title]), vue.createVNode(stdin_default$c, {
20720
20853
  "modelValue": isFold.value,
20721
20854
  "onUpdate:modelValue": ($event) => isFold.value = $event
20722
20855
  }, null)])]);