zartui 3.1.17 → 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 (96) hide show
  1. package/README.md +23 -0
  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/HierarchySelect.d.ts +13 -0
  18. package/es/hierarchy-select/HierarchySelect.mjs +11 -1
  19. package/es/hierarchy-select/index.css +1 -1
  20. package/es/hierarchy-select/index.d.ts +9 -0
  21. package/es/index.d.ts +1 -1
  22. package/es/index.mjs +1 -1
  23. package/es/media-picker/MediaPicker.d.ts +4 -0
  24. package/es/media-picker/MediaPicker.mjs +31 -15
  25. package/es/media-picker/index.d.ts +4 -0
  26. package/es/media-picker/index.mjs +3 -1
  27. package/es/media-picker/type.d.ts +12 -1
  28. package/es/media-picker/type.mjs +12 -0
  29. package/es/media-picker/util/wx-util.d.ts +4 -0
  30. package/es/media-picker/util/wx-util.mjs +67 -0
  31. package/es/popup/index.css +1 -1
  32. package/es/slider/Slider.mjs +15 -16
  33. package/es/slider/index.css +1 -1
  34. package/es/table/Table.d.ts +13 -0
  35. package/es/table/Table.mjs +28 -7
  36. package/es/table/index.css +1 -1
  37. package/es/table/index.d.ts +9 -0
  38. package/es/table/style/index.mjs +6 -0
  39. package/es/tabs/TabsTitle.mjs +1 -0
  40. package/es/tabs/index.css +1 -1
  41. package/es/text-ellipsis/TextEllipsis.d.ts +13 -0
  42. package/es/text-ellipsis/TextEllipsis.mjs +15 -4
  43. package/es/text-ellipsis/index.d.ts +9 -0
  44. package/es/text-ellipsis/style/index.mjs +7 -0
  45. package/es/toast/index.css +1 -1
  46. package/lib/calendar/Calendar.js +1 -2
  47. package/lib/date-time-picker/DateTimePicker.js +15 -0
  48. package/lib/dialog/index.css +1 -1
  49. package/lib/drawer-select/DrawerSelect.d.ts +17 -1
  50. package/lib/drawer-select/DrawerSelect.js +9 -4
  51. package/lib/drawer-select/index.d.ts +11 -0
  52. package/lib/dropdown-item/DropdownItem.d.ts +26 -0
  53. package/lib/dropdown-item/DropdownItem.js +10 -8
  54. package/lib/dropdown-item/index.d.ts +18 -0
  55. package/lib/dropdown-menu/DropdownMenu.js +4 -1
  56. package/lib/dropdown-menu/index.css +1 -1
  57. package/lib/empty/Empty.js +5 -1
  58. package/lib/empty/Images.d.ts +14 -11
  59. package/lib/empty/Images.js +89 -89
  60. package/lib/empty/types.d.ts +1 -0
  61. package/lib/hierarchy-select/HierarchySelect.d.ts +13 -0
  62. package/lib/hierarchy-select/HierarchySelect.js +11 -1
  63. package/lib/hierarchy-select/index.css +1 -1
  64. package/lib/hierarchy-select/index.d.ts +9 -0
  65. package/lib/index.css +1 -1
  66. package/lib/index.d.ts +1 -1
  67. package/lib/index.js +1 -1
  68. package/lib/media-picker/MediaPicker.d.ts +4 -0
  69. package/lib/media-picker/MediaPicker.js +30 -14
  70. package/lib/media-picker/index.d.ts +4 -0
  71. package/lib/media-picker/index.js +3 -1
  72. package/lib/media-picker/type.d.ts +12 -1
  73. package/lib/media-picker/type.js +16 -0
  74. package/lib/media-picker/util/wx-util.d.ts +4 -0
  75. package/lib/media-picker/util/wx-util.js +86 -0
  76. package/lib/popup/index.css +1 -1
  77. package/lib/slider/Slider.js +15 -16
  78. package/lib/slider/index.css +1 -1
  79. package/lib/table/Table.d.ts +13 -0
  80. package/lib/table/Table.js +37 -6
  81. package/lib/table/index.css +1 -1
  82. package/lib/table/index.d.ts +9 -0
  83. package/lib/table/style/index.js +6 -0
  84. package/lib/tabs/TabsTitle.js +1 -0
  85. package/lib/tabs/index.css +1 -1
  86. package/lib/text-ellipsis/TextEllipsis.d.ts +13 -0
  87. package/lib/text-ellipsis/TextEllipsis.js +13 -2
  88. package/lib/text-ellipsis/index.d.ts +9 -0
  89. package/lib/text-ellipsis/style/index.js +7 -0
  90. package/lib/toast/index.css +1 -1
  91. package/lib/web-types.json +1 -1
  92. package/lib/zartui.cjs.js +727 -572
  93. package/lib/zartui.es.js +727 -572
  94. package/lib/zartui.js +727 -572
  95. package/lib/zartui.min.js +1 -1
  96. package/package.json +5 -5
package/lib/zartui.cjs.js CHANGED
@@ -272,7 +272,7 @@ function deepAssign(to, from) {
272
272
  });
273
273
  return to;
274
274
  }
275
- var stdin_default$1W = {
275
+ var stdin_default$1X = {
276
276
  name: "姓名",
277
277
  tel: "电话",
278
278
  save: "保存",
@@ -319,7 +319,7 @@ var stdin_default$1W = {
319
319
  };
320
320
  const lang = vue.ref("zh-CN");
321
321
  const messages = vue.reactive({
322
- "zh-CN": stdin_default$1W
322
+ "zh-CN": stdin_default$1X
323
323
  });
324
324
  const Locale = {
325
325
  messages() {
@@ -333,11 +333,11 @@ const Locale = {
333
333
  deepAssign(messages, newMessages);
334
334
  }
335
335
  };
336
- var stdin_default$1V = Locale;
336
+ var stdin_default$1W = Locale;
337
337
  function createTranslate(name2) {
338
338
  const prefix = camelize(name2) + ".";
339
339
  return (path, ...args) => {
340
- const messages2 = stdin_default$1V.messages();
340
+ const messages2 = stdin_default$1W.messages();
341
341
  const message = get(messages2, prefix + path) || get(messages2, path);
342
342
  return isFunction(message) ? message(...args) : message;
343
343
  };
@@ -442,7 +442,7 @@ const badgeProps = {
442
442
  badgeClass: String,
443
443
  position: makeStringProp("top-right")
444
444
  };
445
- var stdin_default$1U = vue.defineComponent({
445
+ var stdin_default$1V = vue.defineComponent({
446
446
  name: name$1p,
447
447
  props: badgeProps,
448
448
  setup(props, {
@@ -525,7 +525,7 @@ var stdin_default$1U = vue.defineComponent({
525
525
  };
526
526
  }
527
527
  });
528
- const Badge = withInstall(stdin_default$1U);
528
+ const Badge = withInstall(stdin_default$1V);
529
529
  let globalZIndex = 2e3;
530
530
  const useGlobalZIndex = () => ++globalZIndex;
531
531
  const setGlobalZIndex = (val) => {
@@ -566,7 +566,7 @@ function syncThemeVarsOnRoot(newStyle = {}, oldStyle = {}) {
566
566
  }
567
567
  });
568
568
  }
569
- var stdin_default$1T = vue.defineComponent({
569
+ var stdin_default$1U = vue.defineComponent({
570
570
  name: name$1o,
571
571
  props: configProviderProps,
572
572
  setup(props, {
@@ -637,7 +637,7 @@ const iconProps = {
637
637
  badgeProps: Object,
638
638
  classPrefix: String
639
639
  };
640
- var stdin_default$1S = vue.defineComponent({
640
+ var stdin_default$1T = vue.defineComponent({
641
641
  name: name$1n,
642
642
  props: iconProps,
643
643
  setup(props, {
@@ -676,8 +676,8 @@ var stdin_default$1S = vue.defineComponent({
676
676
  };
677
677
  }
678
678
  });
679
- const Icon = withInstall(stdin_default$1S);
680
- var stdin_default$1R = Icon;
679
+ const Icon = withInstall(stdin_default$1T);
680
+ var stdin_default$1S = Icon;
681
681
  const popupSharedProps = {
682
682
  // whether to show popup
683
683
  show: Boolean,
@@ -864,7 +864,7 @@ const overlayProps = {
864
864
  lazyRender: truthProp,
865
865
  customStyle: Object
866
866
  };
867
- var stdin_default$1Q = vue.defineComponent({
867
+ var stdin_default$1R = vue.defineComponent({
868
868
  name: name$1m,
869
869
  props: overlayProps,
870
870
  setup(props, {
@@ -894,7 +894,7 @@ var stdin_default$1Q = vue.defineComponent({
894
894
  });
895
895
  }
896
896
  });
897
- const Overlay = withInstall(stdin_default$1Q);
897
+ const Overlay = withInstall(stdin_default$1R);
898
898
  const popupProps$2 = extend({}, popupSharedProps, {
899
899
  round: Boolean,
900
900
  position: makeStringProp("center"),
@@ -913,7 +913,7 @@ const popupProps$2 = extend({}, popupSharedProps, {
913
913
  slideable: Boolean
914
914
  });
915
915
  const [name$1l, bem$1h] = createNamespace("popup");
916
- var stdin_default$1P = vue.defineComponent({
916
+ var stdin_default$1Q = vue.defineComponent({
917
917
  name: name$1l,
918
918
  inheritAttrs: false,
919
919
  props: popupProps$2,
@@ -1168,8 +1168,8 @@ var stdin_default$1P = vue.defineComponent({
1168
1168
  };
1169
1169
  }
1170
1170
  });
1171
- const Popup = withInstall(stdin_default$1P);
1172
- var stdin_default$1O = Popup;
1171
+ const Popup = withInstall(stdin_default$1Q);
1172
+ var stdin_default$1P = Popup;
1173
1173
  const [name$1k, bem$1g] = createNamespace("loading");
1174
1174
  const loadingProps = {
1175
1175
  size: numericProp,
@@ -1239,7 +1239,7 @@ const LoadingIcon = (props) => {
1239
1239
  "d": "M 9 100 A 91 91 0 0 1 9 100"
1240
1240
  }, null)])]);
1241
1241
  };
1242
- var stdin_default$1N = vue.defineComponent({
1242
+ var stdin_default$1O = vue.defineComponent({
1243
1243
  name: name$1k,
1244
1244
  props: loadingProps,
1245
1245
  setup(props, {
@@ -1278,8 +1278,8 @@ var stdin_default$1N = vue.defineComponent({
1278
1278
  };
1279
1279
  }
1280
1280
  });
1281
- const Loading = withInstall(stdin_default$1N);
1282
- var stdin_default$1M = Loading;
1281
+ const Loading = withInstall(stdin_default$1O);
1282
+ var stdin_default$1N = Loading;
1283
1283
  const [name$1j, bem$1f] = createNamespace("action-sheet");
1284
1284
  const actionSheetProps = extend({}, popupSharedProps, {
1285
1285
  title: String,
@@ -1294,7 +1294,7 @@ const actionSheetProps = extend({}, popupSharedProps, {
1294
1294
  safeAreaInsetBottom: truthProp
1295
1295
  });
1296
1296
  const popupInheritKeys$1 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
1297
- var stdin_default$1L = vue.defineComponent({
1297
+ var stdin_default$1M = vue.defineComponent({
1298
1298
  name: name$1j,
1299
1299
  props: actionSheetProps,
1300
1300
  emits: ["select", "cancel", "update:show"],
@@ -1411,8 +1411,8 @@ var stdin_default$1L = vue.defineComponent({
1411
1411
  });
1412
1412
  }
1413
1413
  });
1414
- const ActionSheet = withInstall(stdin_default$1L);
1415
- var stdin_default$1K = ActionSheet;
1414
+ const ActionSheet = withInstall(stdin_default$1M);
1415
+ var stdin_default$1L = ActionSheet;
1416
1416
  const [name$1i, bem$1e] = createNamespace("image");
1417
1417
  const imageProps = {
1418
1418
  src: String,
@@ -1432,7 +1432,7 @@ const imageProps = {
1432
1432
  showLoading: truthProp,
1433
1433
  loadingIcon: makeStringProp("photo-default")
1434
1434
  };
1435
- var stdin_default$1J = vue.defineComponent({
1435
+ var stdin_default$1K = vue.defineComponent({
1436
1436
  name: name$1i,
1437
1437
  props: imageProps,
1438
1438
  emits: ["load", "error"],
@@ -1557,8 +1557,8 @@ var stdin_default$1J = vue.defineComponent({
1557
1557
  };
1558
1558
  }
1559
1559
  });
1560
- const Image$1 = withInstall(stdin_default$1J);
1561
- var stdin_default$1I = Image$1;
1560
+ const Image$1 = withInstall(stdin_default$1K);
1561
+ var stdin_default$1J = Image$1;
1562
1562
  const [name$1h, bem$1d] = createNamespace("avatar");
1563
1563
  const avatarProps = {
1564
1564
  src: makeStringProp(""),
@@ -1568,7 +1568,7 @@ const avatarProps = {
1568
1568
  textBgColor: String,
1569
1569
  border: Boolean
1570
1570
  };
1571
- var stdin_default$1H = vue.defineComponent({
1571
+ var stdin_default$1I = vue.defineComponent({
1572
1572
  name: name$1h,
1573
1573
  props: avatarProps,
1574
1574
  setup(props) {
@@ -1609,7 +1609,7 @@ var stdin_default$1H = vue.defineComponent({
1609
1609
  if (!props.src) {
1610
1610
  return renderText();
1611
1611
  }
1612
- return vue.createVNode(stdin_default$1I, {
1612
+ return vue.createVNode(stdin_default$1J, {
1613
1613
  "round": props.shape === "round",
1614
1614
  "class": bem$1d("img", [classArr.value, {
1615
1615
  border: props.border
@@ -1622,7 +1622,7 @@ var stdin_default$1H = vue.defineComponent({
1622
1622
  };
1623
1623
  }
1624
1624
  });
1625
- const Avatar = withInstall(stdin_default$1H);
1625
+ const Avatar = withInstall(stdin_default$1I);
1626
1626
  const routeProps = {
1627
1627
  to: [String, Object],
1628
1628
  url: String,
@@ -1671,7 +1671,7 @@ const buttonProps = extend({}, routeProps, {
1671
1671
  loadingType: String,
1672
1672
  iconPosition: makeStringProp("left")
1673
1673
  });
1674
- var stdin_default$1G = vue.defineComponent({
1674
+ var stdin_default$1H = vue.defineComponent({
1675
1675
  name: name$1g,
1676
1676
  props: buttonProps,
1677
1677
  emits: ["click"],
@@ -1803,8 +1803,8 @@ var stdin_default$1G = vue.defineComponent({
1803
1803
  };
1804
1804
  }
1805
1805
  });
1806
- const Button = withInstall(stdin_default$1G);
1807
- var stdin_default$1F = Button;
1806
+ const Button = withInstall(stdin_default$1H);
1807
+ var stdin_default$1G = Button;
1808
1808
  const monthsOfYear = 12;
1809
1809
  const [name$1f, bem$1b, t$7] = createNamespace("calendar");
1810
1810
  const formatMonthTitle = (date) => t$7("ztCalendar.monthTitle", date.getFullYear(), date.getMonth() + 1);
@@ -1915,7 +1915,7 @@ const toastProps = {
1915
1915
  closeOnClick: Boolean,
1916
1916
  closeOnClickOverlay: Boolean
1917
1917
  };
1918
- var stdin_default$1E = vue.defineComponent({
1918
+ var stdin_default$1F = vue.defineComponent({
1919
1919
  name: name$1e,
1920
1920
  props: toastProps,
1921
1921
  emits: ["update:show"],
@@ -2091,7 +2091,7 @@ function createInstance() {
2091
2091
  onClosed,
2092
2092
  "onUpdate:show": toggle
2093
2093
  };
2094
- return vue.createVNode(stdin_default$1E, vue.mergeProps(state, attrs), null);
2094
+ return vue.createVNode(stdin_default$1F, vue.mergeProps(state, attrs), null);
2095
2095
  };
2096
2096
  vue.watch(message, (val) => {
2097
2097
  state.message = val;
@@ -2161,7 +2161,7 @@ const resetToastDefaultOptions = (type) => {
2161
2161
  const allowMultipleToast = (value = true) => {
2162
2162
  allowMultiple = value;
2163
2163
  };
2164
- const Toast = withInstall(stdin_default$1E);
2164
+ const Toast = withInstall(stdin_default$1F);
2165
2165
  const useHeight = (element, withSafeArea) => {
2166
2166
  const height = vue.ref();
2167
2167
  const setHeight = () => {
@@ -2178,7 +2178,7 @@ const useHeight = (element, withSafeArea) => {
2178
2178
  return height;
2179
2179
  };
2180
2180
  const [name$1d] = createNamespace("calendar-day");
2181
- var stdin_default$1D = vue.defineComponent({
2181
+ var stdin_default$1E = vue.defineComponent({
2182
2182
  name: name$1d,
2183
2183
  props: {
2184
2184
  item: makeRequiredProp(Object),
@@ -2304,7 +2304,7 @@ const calendarMonthProps = {
2304
2304
  firstDayOfWeek: Number,
2305
2305
  disabledDate: Function
2306
2306
  };
2307
- var stdin_default$1C = vue.defineComponent({
2307
+ var stdin_default$1D = vue.defineComponent({
2308
2308
  name: name$1c,
2309
2309
  props: calendarMonthProps,
2310
2310
  emits: ["click"],
@@ -2489,7 +2489,7 @@ var stdin_default$1C = vue.defineComponent({
2489
2489
  setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - use.useRect(body).top);
2490
2490
  }
2491
2491
  };
2492
- const renderDay = (item, index) => vue.createVNode(stdin_default$1D, {
2492
+ const renderDay = (item, index) => vue.createVNode(stdin_default$1E, {
2493
2493
  "item": item,
2494
2494
  "index": index,
2495
2495
  "color": props.color,
@@ -2517,7 +2517,7 @@ var stdin_default$1C = vue.defineComponent({
2517
2517
  }
2518
2518
  });
2519
2519
  const [name$1b] = createNamespace("calendar-header");
2520
- var stdin_default$1B = vue.defineComponent({
2520
+ var stdin_default$1C = vue.defineComponent({
2521
2521
  name: name$1b,
2522
2522
  props: {
2523
2523
  title: String,
@@ -2712,7 +2712,7 @@ const calendarProps = {
2712
2712
  },
2713
2713
  disabledDate: Function
2714
2714
  };
2715
- var stdin_default$1A = vue.defineComponent({
2715
+ var stdin_default$1B = vue.defineComponent({
2716
2716
  name: name$1f,
2717
2717
  props: calendarProps,
2718
2718
  emits: ["select", "confirm", "cancel", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle"],
@@ -3065,7 +3065,7 @@ var stdin_default$1A = vue.defineComponent({
3065
3065
  const updateShow = (value) => emit("update:show", value);
3066
3066
  const renderMonth = (date, index) => {
3067
3067
  const showMonthTitle = index !== 0 || !props.showSubtitle;
3068
- return vue.createVNode(stdin_default$1C, vue.mergeProps({
3068
+ return vue.createVNode(stdin_default$1D, vue.mergeProps({
3069
3069
  "ref": setMonthRefs(index),
3070
3070
  "date": date,
3071
3071
  "currentDate": currentDate.value,
@@ -3115,7 +3115,7 @@ var stdin_default$1A = vue.defineComponent({
3115
3115
  }, [renderFooterButton()]);
3116
3116
  const renderCalendar = () => vue.createVNode("div", {
3117
3117
  "class": bem$1b()
3118
- }, [vue.createVNode(stdin_default$1B, {
3118
+ }, [vue.createVNode(stdin_default$1C, {
3119
3119
  "title": props.title,
3120
3120
  "subtitle": subtitle.value,
3121
3121
  "showTitle": props.showTitle,
@@ -3137,8 +3137,7 @@ var stdin_default$1A = vue.defineComponent({
3137
3137
  vue.watch(() => props.show, init);
3138
3138
  vue.watch(() => [props.type, props.minDate, props.maxDate], () => reset(getInitialDate(currentDate.value)));
3139
3139
  vue.watch(() => props.defaultDate, (value = null) => {
3140
- currentDate.value = value;
3141
- scrollToCurrentDate();
3140
+ reset(value);
3142
3141
  });
3143
3142
  vue.watch(titleDate, (newValue) => {
3144
3143
  if (props.showType === "inline" && newValue) {
@@ -3171,7 +3170,7 @@ var stdin_default$1A = vue.defineComponent({
3171
3170
  };
3172
3171
  }
3173
3172
  });
3174
- const Calendar = withInstall(stdin_default$1A);
3173
+ const Calendar = withInstall(stdin_default$1B);
3175
3174
  function scrollLeftTo(scroller, to, duration) {
3176
3175
  let count = 0;
3177
3176
  const from = scroller.scrollLeft;
@@ -3244,7 +3243,7 @@ const stickyProps = {
3244
3243
  offsetTop: makeNumericProp(0),
3245
3244
  offsetBottom: makeNumericProp(0)
3246
3245
  };
3247
- var stdin_default$1z = vue.defineComponent({
3246
+ var stdin_default$1A = vue.defineComponent({
3248
3247
  name: name$1a,
3249
3248
  props: stickyProps,
3250
3249
  emits: ["scroll", "change"],
@@ -3350,9 +3349,9 @@ var stdin_default$1z = vue.defineComponent({
3350
3349
  };
3351
3350
  }
3352
3351
  });
3353
- const Sticky = withInstall(stdin_default$1z);
3352
+ const Sticky = withInstall(stdin_default$1A);
3354
3353
  const [name$19, bem$18] = createNamespace("tab");
3355
- var stdin_default$1y = vue.defineComponent({
3354
+ var stdin_default$1z = vue.defineComponent({
3356
3355
  name: name$19,
3357
3356
  props: {
3358
3357
  id: String,
@@ -3446,6 +3445,7 @@ var stdin_default$1y = vue.defineComponent({
3446
3445
  "aria-disabled": props.disabled || void 0,
3447
3446
  "aria-controls": props.controls
3448
3447
  }, [slots.prefix ? slots.prefix() : null, vue.createVNode("div", {
3448
+ "class": bem$18("title"),
3449
3449
  "style": style.value
3450
3450
  }, [renderText()]), slots.suffix ? slots.suffix() : null]);
3451
3451
  }
@@ -3467,7 +3467,7 @@ const swipeProps = {
3467
3467
  title: Array
3468
3468
  };
3469
3469
  const SWIPE_KEY = Symbol(name$18);
3470
- var stdin_default$1x = vue.defineComponent({
3470
+ var stdin_default$1y = vue.defineComponent({
3471
3471
  name: name$18,
3472
3472
  props: swipeProps,
3473
3473
  emits: ["change", "dragStart", "dragEnd"],
@@ -3826,9 +3826,9 @@ var stdin_default$1x = vue.defineComponent({
3826
3826
  };
3827
3827
  }
3828
3828
  });
3829
- const Swipe = withInstall(stdin_default$1x);
3829
+ const Swipe = withInstall(stdin_default$1y);
3830
3830
  const [name$17, bem$16] = createNamespace("tabs");
3831
- var stdin_default$1w = vue.defineComponent({
3831
+ var stdin_default$1x = vue.defineComponent({
3832
3832
  name: name$17,
3833
3833
  props: {
3834
3834
  count: makeRequiredProp(Number),
@@ -3908,7 +3908,7 @@ const tabsProps = {
3908
3908
  titleInactiveColor: String
3909
3909
  };
3910
3910
  const TABS_KEY = Symbol(name$16);
3911
- var stdin_default$1v = vue.defineComponent({
3911
+ var stdin_default$1w = vue.defineComponent({
3912
3912
  name: name$16,
3913
3913
  props: tabsProps,
3914
3914
  emits: ["change", "scroll", "rendered", "clickTab", "update:active"],
@@ -4104,7 +4104,7 @@ var stdin_default$1v = vue.defineComponent({
4104
4104
  state.showLeftOverlay = Math.floor(target.scrollLeft) > 0;
4105
4105
  state.showRightOverlay = hasScrollToEnd(target);
4106
4106
  };
4107
- const renderNav = () => children.map((item, index) => vue.createVNode(stdin_default$1y, vue.mergeProps({
4107
+ const renderNav = () => children.map((item, index) => vue.createVNode(stdin_default$1z, vue.mergeProps({
4108
4108
  "key": item.id,
4109
4109
  "id": `${id}-${index}`,
4110
4110
  "ref": setTitleRefs(index),
@@ -4242,7 +4242,7 @@ var stdin_default$1v = vue.defineComponent({
4242
4242
  "ref": navTopRef
4243
4243
  }, [(_a2 = slots["nav-top"]) == null ? void 0 : _a2.call(slots)]) : null, renderHeader(), (_b2 = slots["nav-bottom"]) == null ? void 0 : _b2.call(slots)];
4244
4244
  }
4245
- }) : [(_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, {
4245
+ }) : [(_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, {
4246
4246
  "count": children.length,
4247
4247
  "inited": state.inited,
4248
4248
  "animated": props.animated,
@@ -4263,7 +4263,7 @@ var stdin_default$1v = vue.defineComponent({
4263
4263
  const TAB_STATUS_KEY = Symbol();
4264
4264
  const useTabStatus = () => vue.inject(TAB_STATUS_KEY, null);
4265
4265
  const [name$15, bem$14] = createNamespace("swipe-item");
4266
- var stdin_default$1u = vue.defineComponent({
4266
+ var stdin_default$1v = vue.defineComponent({
4267
4267
  name: name$15,
4268
4268
  setup(props, {
4269
4269
  slots
@@ -4335,7 +4335,7 @@ var stdin_default$1u = vue.defineComponent({
4335
4335
  };
4336
4336
  }
4337
4337
  });
4338
- const SwipeItem = withInstall(stdin_default$1u);
4338
+ const SwipeItem = withInstall(stdin_default$1v);
4339
4339
  const [name$14, bem$13] = createNamespace("tab");
4340
4340
  const tabProps = extend({}, routeProps, {
4341
4341
  dot: Boolean,
@@ -4347,7 +4347,7 @@ const tabProps = extend({}, routeProps, {
4347
4347
  titleStyle: [String, Object],
4348
4348
  showZeroBadge: truthProp
4349
4349
  });
4350
- var stdin_default$1t = vue.defineComponent({
4350
+ var stdin_default$1u = vue.defineComponent({
4351
4351
  name: name$14,
4352
4352
  props: tabProps,
4353
4353
  setup(props, {
@@ -4436,15 +4436,15 @@ var stdin_default$1t = vue.defineComponent({
4436
4436
  };
4437
4437
  }
4438
4438
  });
4439
- const Tab = withInstall(stdin_default$1t);
4440
- const Tabs = withInstall(stdin_default$1v);
4439
+ const Tab = withInstall(stdin_default$1u);
4440
+ const Tabs = withInstall(stdin_default$1w);
4441
4441
  const [name$13, bem$12] = createNamespace("divider");
4442
4442
  const dividerProps = {
4443
4443
  dashed: Boolean,
4444
4444
  hairline: truthProp,
4445
4445
  contentPosition: makeStringProp("center")
4446
4446
  };
4447
- var stdin_default$1s = vue.defineComponent({
4447
+ var stdin_default$1t = vue.defineComponent({
4448
4448
  name: name$13,
4449
4449
  props: dividerProps,
4450
4450
  setup(props, {
@@ -4463,7 +4463,7 @@ var stdin_default$1s = vue.defineComponent({
4463
4463
  };
4464
4464
  }
4465
4465
  });
4466
- const Divider = withInstall(stdin_default$1s);
4466
+ const Divider = withInstall(stdin_default$1t);
4467
4467
  const [name$12, bem$11, t$6] = createNamespace("cascader");
4468
4468
  const cascaderProps = {
4469
4469
  title: String,
@@ -4484,7 +4484,7 @@ const cascaderProps = {
4484
4484
  safeAreaInsetTop: Boolean,
4485
4485
  closeOnClickOverlay: truthProp
4486
4486
  };
4487
- var stdin_default$1r = vue.defineComponent({
4487
+ var stdin_default$1s = vue.defineComponent({
4488
4488
  name: name$12,
4489
4489
  props: cascaderProps,
4490
4490
  emits: ["change", "finish", "clickTab", "update:modelValue", "update:show", "cancel"],
@@ -4674,7 +4674,7 @@ var stdin_default$1r = vue.defineComponent({
4674
4674
  }, {
4675
4675
  default: () => [tabs.value.map(renderTab)]
4676
4676
  });
4677
- const renderMenu = () => vue.createVNode(stdin_default$1G, {
4677
+ const renderMenu = () => vue.createVNode(stdin_default$1H, {
4678
4678
  "class": bem$11("cancel"),
4679
4679
  "onClick": onCancel
4680
4680
  }, {
@@ -4733,7 +4733,7 @@ var stdin_default$1r = vue.defineComponent({
4733
4733
  };
4734
4734
  }
4735
4735
  });
4736
- const Cascader = withInstall(stdin_default$1r);
4736
+ const Cascader = withInstall(stdin_default$1s);
4737
4737
  function isEmptyValue(value) {
4738
4738
  if (Array.isArray(value)) {
4739
4739
  return !value.length;
@@ -4853,7 +4853,7 @@ const cellSharedProps = {
4853
4853
  description: makeStringProp("")
4854
4854
  };
4855
4855
  const cellProps = extend({}, cellSharedProps, routeProps);
4856
- var stdin_default$1q = vue.defineComponent({
4856
+ var stdin_default$1r = vue.defineComponent({
4857
4857
  name: name$11,
4858
4858
  props: cellProps,
4859
4859
  emits: ["click", "clear"],
@@ -5061,14 +5061,14 @@ var stdin_default$1q = vue.defineComponent({
5061
5061
  };
5062
5062
  }
5063
5063
  });
5064
- const Cell = withInstall(stdin_default$1q);
5064
+ const Cell = withInstall(stdin_default$1r);
5065
5065
  const [name$10, bem$$] = createNamespace("cell-group");
5066
5066
  const cellGroupProps = {
5067
5067
  title: String,
5068
5068
  inset: Boolean,
5069
5069
  border: truthProp
5070
5070
  };
5071
- var stdin_default$1p = vue.defineComponent({
5071
+ var stdin_default$1q = vue.defineComponent({
5072
5072
  name: name$10,
5073
5073
  inheritAttrs: false,
5074
5074
  props: cellGroupProps,
@@ -5099,7 +5099,7 @@ var stdin_default$1p = vue.defineComponent({
5099
5099
  };
5100
5100
  }
5101
5101
  });
5102
- const CellGroup = withInstall(stdin_default$1p);
5102
+ const CellGroup = withInstall(stdin_default$1q);
5103
5103
  const [name$$, bem$_] = createNamespace("checkbox-group");
5104
5104
  const checkboxGroupProps = {
5105
5105
  max: numericProp,
@@ -5110,7 +5110,7 @@ const checkboxGroupProps = {
5110
5110
  checkedColor: String
5111
5111
  };
5112
5112
  const CHECKBOX_GROUP_KEY = Symbol(name$$);
5113
- var stdin_default$1o = vue.defineComponent({
5113
+ var stdin_default$1p = vue.defineComponent({
5114
5114
  name: name$$,
5115
5115
  props: checkboxGroupProps,
5116
5116
  emits: ["change", "update:modelValue"],
@@ -5172,7 +5172,7 @@ const checkerProps = {
5172
5172
  labelPosition: String,
5173
5173
  labelDisabled: Boolean
5174
5174
  };
5175
- var stdin_default$1n = vue.defineComponent({
5175
+ var stdin_default$1o = vue.defineComponent({
5176
5176
  props: extend({}, checkerProps, {
5177
5177
  bem: makeRequiredProp(Function),
5178
5178
  role: String,
@@ -5281,7 +5281,7 @@ const checkboxProps = extend({}, checkerProps, {
5281
5281
  default: null
5282
5282
  }
5283
5283
  });
5284
- var stdin_default$1m = vue.defineComponent({
5284
+ var stdin_default$1n = vue.defineComponent({
5285
5285
  name: name$_,
5286
5286
  props: checkboxProps,
5287
5287
  emits: ["change", "update:modelValue"],
@@ -5346,7 +5346,7 @@ var stdin_default$1m = vue.defineComponent({
5346
5346
  checked
5347
5347
  });
5348
5348
  use.useCustomFieldValue(() => props.modelValue);
5349
- return () => vue.createVNode(stdin_default$1n, vue.mergeProps({
5349
+ return () => vue.createVNode(stdin_default$1o, vue.mergeProps({
5350
5350
  "bem": bem$Z,
5351
5351
  "role": "checkbox",
5352
5352
  "parent": parent,
@@ -5355,8 +5355,8 @@ var stdin_default$1m = vue.defineComponent({
5355
5355
  }, props), pick(slots, ["default", "icon"]));
5356
5356
  }
5357
5357
  });
5358
- const Checkbox = withInstall(stdin_default$1m);
5359
- const CheckboxGroup = withInstall(stdin_default$1o);
5358
+ const Checkbox = withInstall(stdin_default$1n);
5359
+ const CheckboxGroup = withInstall(stdin_default$1p);
5360
5360
  const [name$Z, bem$Y] = createNamespace("row");
5361
5361
  const ROW_KEY = Symbol(name$Z);
5362
5362
  const rowProps = {
@@ -5366,7 +5366,7 @@ const rowProps = {
5366
5366
  gutter: makeNumericProp(0),
5367
5367
  justify: String
5368
5368
  };
5369
- var stdin_default$1l = vue.defineComponent({
5369
+ var stdin_default$1m = vue.defineComponent({
5370
5370
  name: name$Z,
5371
5371
  props: rowProps,
5372
5372
  setup(props, {
@@ -5446,7 +5446,7 @@ const colProps = {
5446
5446
  span: makeNumericProp(0),
5447
5447
  offset: numericProp
5448
5448
  };
5449
- var stdin_default$1k = vue.defineComponent({
5449
+ var stdin_default$1l = vue.defineComponent({
5450
5450
  name: name$Y,
5451
5451
  props: colProps,
5452
5452
  setup(props, {
@@ -5495,7 +5495,7 @@ var stdin_default$1k = vue.defineComponent({
5495
5495
  };
5496
5496
  }
5497
5497
  });
5498
- const Col = withInstall(stdin_default$1k);
5498
+ const Col = withInstall(stdin_default$1l);
5499
5499
  const [name$X, bem$W] = createNamespace("collapse");
5500
5500
  const COLLAPSE_KEY = Symbol(name$X);
5501
5501
  const collapseProps = {
@@ -5517,7 +5517,7 @@ function validateModelValue(modelValue, accordion) {
5517
5517
  }
5518
5518
  return true;
5519
5519
  }
5520
- var stdin_default$1j = vue.defineComponent({
5520
+ var stdin_default$1k = vue.defineComponent({
5521
5521
  name: name$X,
5522
5522
  props: collapseProps,
5523
5523
  emits: ["change", "update:modelValue"],
@@ -5595,7 +5595,7 @@ var stdin_default$1j = vue.defineComponent({
5595
5595
  };
5596
5596
  }
5597
5597
  });
5598
- const Collapse = withInstall(stdin_default$1j);
5598
+ const Collapse = withInstall(stdin_default$1k);
5599
5599
  const [name$W, bem$V] = createNamespace("collapse-item");
5600
5600
  const collapseItemProps = extend({}, {
5601
5601
  name: numericProp,
@@ -5606,7 +5606,7 @@ const collapseItemProps = extend({}, {
5606
5606
  titleBackground: String,
5607
5607
  color: String
5608
5608
  });
5609
- var stdin_default$1i = vue.defineComponent({
5609
+ var stdin_default$1j = vue.defineComponent({
5610
5610
  name: name$W,
5611
5611
  props: collapseItemProps,
5612
5612
  setup(props, {
@@ -5692,7 +5692,7 @@ var stdin_default$1i = vue.defineComponent({
5692
5692
  "class": bem$V("text", {
5693
5693
  custom: titleBackground
5694
5694
  })
5695
- }, [props.title]), vue.createVNode(stdin_default$1S, {
5695
+ }, [props.title]), vue.createVNode(stdin_default$1T, {
5696
5696
  "name": "keyboard-arrow-down",
5697
5697
  "style": color ? `color:${color};` : "",
5698
5698
  "class": bem$V("icon", {
@@ -5722,8 +5722,8 @@ var stdin_default$1i = vue.defineComponent({
5722
5722
  }, [renderTitle(), renderContent()]);
5723
5723
  }
5724
5724
  });
5725
- const CollapseItem = withInstall(stdin_default$1i);
5726
- const ConfigProvider = withInstall(stdin_default$1T);
5725
+ const CollapseItem = withInstall(stdin_default$1j);
5726
+ const ConfigProvider = withInstall(stdin_default$1U);
5727
5727
  const [name$V, bem$U, t$5] = createNamespace("picker");
5728
5728
  const getFirstEnabledOption$1 = (options) => options.find((option) => !option.disabled) || options[0];
5729
5729
  function getColumnsType$1(columns, fields) {
@@ -5795,7 +5795,7 @@ const MOMENTUM_TIME$2 = 300;
5795
5795
  const MOMENTUM_DISTANCE$2 = 15;
5796
5796
  const [name$U, bem$T] = createNamespace("picker-column");
5797
5797
  const PICKER_KEY$1 = Symbol(name$U);
5798
- var stdin_default$1h = vue.defineComponent({
5798
+ var stdin_default$1i = vue.defineComponent({
5799
5799
  name: name$U,
5800
5800
  props: {
5801
5801
  value: numericProp,
@@ -5999,7 +5999,7 @@ const pickerToolbarProps$1 = {
5999
5999
  };
6000
6000
  const pickerToolbarSlots$1 = ["cancel", "confirm", "title", "toolbar"];
6001
6001
  const pickerToolbarPropKeys$1 = Object.keys(pickerToolbarProps$1);
6002
- var stdin_default$1g = vue.defineComponent({
6002
+ var stdin_default$1h = vue.defineComponent({
6003
6003
  name: name$T,
6004
6004
  props: pickerToolbarProps$1,
6005
6005
  emits: ["confirm", "cancel"],
@@ -6045,7 +6045,7 @@ const pickerOptionsProps = {
6045
6045
  columnCounts: makeNumberProp(3),
6046
6046
  options: makeArrayProp()
6047
6047
  };
6048
- var stdin_default$1f = vue.defineComponent({
6048
+ var stdin_default$1g = vue.defineComponent({
6049
6049
  name: name$S,
6050
6050
  props: pickerOptionsProps,
6051
6051
  emits: ["change", "clickOption"],
@@ -6144,7 +6144,7 @@ const pickerProps = extend({}, pickerSharedProps$1, {
6144
6144
  showType: makeStringProp("default"),
6145
6145
  columnCounts: makeNumberProp(3)
6146
6146
  });
6147
- var stdin_default$1e = vue.defineComponent({
6147
+ var stdin_default$1f = vue.defineComponent({
6148
6148
  name: name$V,
6149
6149
  props: pickerProps,
6150
6150
  emits: ["confirm", "cancel", "change", "clickOption", "update:modelValue", "update:showPicker"],
@@ -6237,7 +6237,7 @@ var stdin_default$1e = vue.defineComponent({
6237
6237
  };
6238
6238
  const updateShow = (value) => emit("update:showPicker", value);
6239
6239
  const hasUnit = props.columnsUnit.length === currentColumns.value.length;
6240
- const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$1h, {
6240
+ const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$1i, {
6241
6241
  "value": selectedValues.value[columnIndex],
6242
6242
  "fields": fields.value,
6243
6243
  "options": options,
@@ -6282,7 +6282,7 @@ var stdin_default$1e = vue.defineComponent({
6282
6282
  };
6283
6283
  const renderToolbar = () => {
6284
6284
  if (props.showToolbar) {
6285
- return vue.createVNode(stdin_default$1g, vue.mergeProps(pick(props, pickerToolbarPropKeys$1), {
6285
+ return vue.createVNode(stdin_default$1h, vue.mergeProps(pick(props, pickerToolbarPropKeys$1), {
6286
6286
  "onConfirm": confirm,
6287
6287
  "onCancel": cancel
6288
6288
  }), pick(slots, pickerToolbarSlots$1));
@@ -6349,7 +6349,7 @@ var stdin_default$1e = vue.defineComponent({
6349
6349
  };
6350
6350
  const renderOptionItems = () => {
6351
6351
  return currentColumns.value.map((options, columnIndex) => {
6352
- return vue.createVNode(stdin_default$1f, {
6352
+ return vue.createVNode(stdin_default$1g, {
6353
6353
  "ref": pickerOptions,
6354
6354
  "value": selectedValues.value[columnIndex],
6355
6355
  "columnCounts": props.columnCounts,
@@ -6379,7 +6379,7 @@ var stdin_default$1e = vue.defineComponent({
6379
6379
  return () => {
6380
6380
  if (isButtonPicker.value) {
6381
6381
  if (props.popup) {
6382
- return vue.createVNode(stdin_default$1O, {
6382
+ return vue.createVNode(stdin_default$1P, {
6383
6383
  "show": showPicker.value,
6384
6384
  "onUpdate:show": [($event) => showPicker.value = $event, updateShow],
6385
6385
  "round": true,
@@ -6391,7 +6391,7 @@ var stdin_default$1e = vue.defineComponent({
6391
6391
  return renderTiledPicker();
6392
6392
  } else {
6393
6393
  if (props.popup) {
6394
- return vue.createVNode(stdin_default$1O, {
6394
+ return vue.createVNode(stdin_default$1P, {
6395
6395
  "show": showPicker.value,
6396
6396
  "onUpdate:show": [($event) => showPicker.value = $event, updateShow],
6397
6397
  "round": true,
@@ -6447,9 +6447,9 @@ const formatValueRange = (values, columns) => values.map((value, index) => {
6447
6447
  }
6448
6448
  return value;
6449
6449
  });
6450
- const Picker = withInstall(stdin_default$1e);
6451
- var stdin_default$1d = Picker;
6452
- var stdin_default$1c = vue.defineComponent({
6450
+ const Picker = withInstall(stdin_default$1f);
6451
+ var stdin_default$1e = Picker;
6452
+ var stdin_default$1d = vue.defineComponent({
6453
6453
  name: "Arrow",
6454
6454
  emits: ["click"],
6455
6455
  setup(_, {
@@ -6476,7 +6476,7 @@ const TIME_PICKER_KEY = Symbol(name$R);
6476
6476
  const MOMENTUM_TIME$1 = 300;
6477
6477
  const MOMENTUM_DISTANCE$1 = 15;
6478
6478
  const DEFAULT_DURATION$1 = 200;
6479
- var stdin_default$1b = vue.defineComponent({
6479
+ var stdin_default$1c = vue.defineComponent({
6480
6480
  name: name$R,
6481
6481
  props: {
6482
6482
  value: numericProp,
@@ -6651,10 +6651,10 @@ var stdin_default$1b = vue.defineComponent({
6651
6651
  currentDuration.value = DEFAULT_DURATION$1;
6652
6652
  updateValueByIndex(isUp ? index - 1 : index + 1);
6653
6653
  };
6654
- const renderArrow = () => [vue.createVNode(stdin_default$1c, {
6654
+ const renderArrow = () => [vue.createVNode(stdin_default$1d, {
6655
6655
  "class": bem$R("arrow-top"),
6656
6656
  "onClick": () => onArrowClick(true)
6657
- }, null), vue.createVNode(stdin_default$1c, {
6657
+ }, null), vue.createVNode(stdin_default$1d, {
6658
6658
  "class": bem$R("arrow-bottom"),
6659
6659
  "onClick": () => onArrowClick(false)
6660
6660
  }, null)];
@@ -6709,7 +6709,7 @@ const timePickerProps = extend({}, sharedProps, {
6709
6709
  default: () => ["hour", "minute"]
6710
6710
  }
6711
6711
  });
6712
- var stdin_default$1a = vue.defineComponent({
6712
+ var stdin_default$1b = vue.defineComponent({
6713
6713
  name: name$Q,
6714
6714
  props: timePickerProps,
6715
6715
  emits: ["clickOption", "change", "update:modelValue"],
@@ -6784,7 +6784,7 @@ var stdin_default$1a = vue.defineComponent({
6784
6784
  currentOption
6785
6785
  }, getEventParams()));
6786
6786
  const hasUnit = props.columnsUnit.length === currentColumns.value.length;
6787
- const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(vue.Fragment, null, [vue.createVNode(stdin_default$1b, {
6787
+ const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(vue.Fragment, null, [vue.createVNode(stdin_default$1c, {
6788
6788
  "value": selectedValues.value[columnIndex],
6789
6789
  "fields": fields.value,
6790
6790
  "options": options,
@@ -6853,8 +6853,8 @@ var stdin_default$1a = vue.defineComponent({
6853
6853
  }, [renderColumns()]);
6854
6854
  }
6855
6855
  });
6856
- const TimePicker = withInstall(stdin_default$1a);
6857
- var stdin_default$19 = TimePicker;
6856
+ const TimePicker = withInstall(stdin_default$1b);
6857
+ var stdin_default$1a = TimePicker;
6858
6858
  const [name$P, bem$P] = createNamespace("date-time-picker-wrapper");
6859
6859
  const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
6860
6860
  const dateTimePickerProps = extend({}, sharedProps, popupSharedProps, {
@@ -6878,7 +6878,7 @@ const dateTimePickerProps = extend({}, sharedProps, popupSharedProps, {
6878
6878
  startValue: makeArrayProp(),
6879
6879
  endValue: makeArrayProp()
6880
6880
  });
6881
- var stdin_default$18 = vue.defineComponent({
6881
+ var stdin_default$19 = vue.defineComponent({
6882
6882
  name: name$P,
6883
6883
  props: dateTimePickerProps,
6884
6884
  emits: ["change", "update:modelValue"],
@@ -7073,7 +7073,7 @@ var stdin_default$18 = vue.defineComponent({
7073
7073
  });
7074
7074
  const hasDateColumn = props.columnsType.includes("year") || props.columnsType.includes("month") || props.columnsType.includes("day");
7075
7075
  const hasTimeColumn = props.columnsType.includes("hour") || props.columnsType.includes("minute") || props.columnsType.includes("second");
7076
- const renderTimePicker = () => vue.createVNode(stdin_default$19, {
7076
+ const renderTimePicker = () => vue.createVNode(stdin_default$1a, {
7077
7077
  "modelValue": timeValuesRef.value,
7078
7078
  "onUpdate:modelValue": ($event) => timeValuesRef.value = $event,
7079
7079
  "columnsUnit": timeUnits.value,
@@ -7084,7 +7084,7 @@ var stdin_default$18 = vue.defineComponent({
7084
7084
  "class": bem$P()
7085
7085
  }, [hasDateColumn ? vue.createVNode(Divider, {
7086
7086
  "style": "margin: 0"
7087
- }, null) : null, hasDateColumn ? vue.createVNode(stdin_default$1d, vue.mergeProps({
7087
+ }, null) : null, hasDateColumn ? vue.createVNode(stdin_default$1e, vue.mergeProps({
7088
7088
  "popup": false,
7089
7089
  "columnsUnit": dateUnits.value,
7090
7090
  "modelValue": dateValuesRef.value,
@@ -7099,7 +7099,7 @@ var stdin_default$18 = vue.defineComponent({
7099
7099
  }
7100
7100
  });
7101
7101
  const [name$O, bem$O] = createNamespace("date-time-picker");
7102
- var stdin_default$17 = vue.defineComponent({
7102
+ var stdin_default$18 = vue.defineComponent({
7103
7103
  name: name$O,
7104
7104
  props: dateTimePickerProps,
7105
7105
  emits: ["confirm", "cancel", "change", "startChange", "endChange", "update:show", "update:modelValue", "update:startValue", "update:endValue"],
@@ -7237,6 +7237,21 @@ var stdin_default$17 = vue.defineComponent({
7237
7237
  }
7238
7238
  }
7239
7239
  };
7240
+ vue.watch(() => props.modelValue, onOpen, {
7241
+ deep: true
7242
+ });
7243
+ vue.watch(() => props.startValue, () => {
7244
+ currentStartValue.value = props.startValue;
7245
+ currentStartText.value = genOriginValueText(props.startValue);
7246
+ }, {
7247
+ deep: true
7248
+ });
7249
+ vue.watch(() => props.endValue, () => {
7250
+ currentEndValue.value = props.endValue;
7251
+ currentEndText.value = genOriginValueText(props.endValue);
7252
+ }, {
7253
+ deep: true
7254
+ });
7240
7255
  const renderTitle = () => {
7241
7256
  if (!props.range) {
7242
7257
  return vue.createVNode("div", {
@@ -7285,7 +7300,7 @@ var stdin_default$17 = vue.defineComponent({
7285
7300
  };
7286
7301
  const renderPicker = () => {
7287
7302
  if (!props.range) {
7288
- return vue.createVNode(stdin_default$18, vue.mergeProps({
7303
+ return vue.createVNode(stdin_default$19, vue.mergeProps({
7289
7304
  "ref": currentPickerRef,
7290
7305
  "modelValue": props.modelValue,
7291
7306
  "onUpdate:modelValue": ($event) => props.modelValue = $event,
@@ -7297,7 +7312,7 @@ var stdin_default$17 = vue.defineComponent({
7297
7312
  showTitle: false
7298
7313
  })), null);
7299
7314
  }
7300
- return [vue.withDirectives(vue.createVNode(stdin_default$18, vue.mergeProps({
7315
+ return [vue.withDirectives(vue.createVNode(stdin_default$19, vue.mergeProps({
7301
7316
  "ref": currentStartPickerRef,
7302
7317
  "modelValue": props.startValue,
7303
7318
  "onUpdate:modelValue": ($event) => props.startValue = $event,
@@ -7307,7 +7322,7 @@ var stdin_default$17 = vue.defineComponent({
7307
7322
  "minDate": props.minDate
7308
7323
  }, extend(pick(props, pickerInheritKeys), {
7309
7324
  showTitle: false
7310
- })), null), [[vue.vShow, rangeSelectedIndex.value === 0]]), vue.withDirectives(vue.createVNode(stdin_default$18, vue.mergeProps({
7325
+ })), null), [[vue.vShow, rangeSelectedIndex.value === 0]]), vue.withDirectives(vue.createVNode(stdin_default$19, vue.mergeProps({
7311
7326
  "ref": currentEndPickerRef,
7312
7327
  "modelValue": props.endValue,
7313
7328
  "onUpdate:modelValue": ($event) => props.endValue = $event,
@@ -7321,15 +7336,15 @@ var stdin_default$17 = vue.defineComponent({
7321
7336
  };
7322
7337
  const renderToolbar = () => {
7323
7338
  if (props.showToolbar) {
7324
- return [vue.createVNode(stdin_default$1s, {
7339
+ return [vue.createVNode(stdin_default$1t, {
7325
7340
  "style": "margin: 0"
7326
- }, null), vue.createVNode(stdin_default$1g, vue.mergeProps(pick(props, pickerToolbarPropKeys$1), {
7341
+ }, null), vue.createVNode(stdin_default$1h, vue.mergeProps(pick(props, pickerToolbarPropKeys$1), {
7327
7342
  "onConfirm": onConfirm,
7328
7343
  "onCancel": onCancel
7329
7344
  }), pick(slots, pickerToolbarSlots$1))];
7330
7345
  }
7331
7346
  };
7332
- return () => vue.createVNode(stdin_default$1P, {
7347
+ return () => vue.createVNode(stdin_default$1Q, {
7333
7348
  "round": true,
7334
7349
  "position": "bottom",
7335
7350
  "onOpen": onOpen,
@@ -7340,7 +7355,7 @@ var stdin_default$17 = vue.defineComponent({
7340
7355
  });
7341
7356
  }
7342
7357
  });
7343
- const DateTimePicker = withInstall(stdin_default$17);
7358
+ const DateTimePicker = withInstall(stdin_default$18);
7344
7359
  const [name$N, bem$N, t$4] = createNamespace("dialog");
7345
7360
  const dialogProps = extend({}, popupSharedProps, {
7346
7361
  title: String,
@@ -7365,7 +7380,7 @@ const dialogProps = extend({}, popupSharedProps, {
7365
7380
  closeOnClickOverlay: Boolean
7366
7381
  });
7367
7382
  const popupInheritKeys = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
7368
- var stdin_default$16 = vue.defineComponent({
7383
+ var stdin_default$17 = vue.defineComponent({
7369
7384
  name: name$N,
7370
7385
  props: dialogProps,
7371
7386
  emits: ["confirm", "cancel", "keydown", "update:show"],
@@ -7579,7 +7594,7 @@ function initInstance$2() {
7579
7594
  state,
7580
7595
  toggle
7581
7596
  } = usePopupState();
7582
- return () => vue.createVNode(stdin_default$16, vue.mergeProps(state, {
7597
+ return () => vue.createVNode(stdin_default$17, vue.mergeProps(state, {
7583
7598
  "onUpdate:show": toggle
7584
7599
  }), null);
7585
7600
  }
@@ -7617,7 +7632,7 @@ const closeDialog = () => {
7617
7632
  instance$2.toggle(false);
7618
7633
  }
7619
7634
  };
7620
- const Dialog = withInstall(stdin_default$16);
7635
+ const Dialog = withInstall(stdin_default$17);
7621
7636
  const [name$M, bem$M] = createNamespace("field");
7622
7637
  const fieldSharedProps = {
7623
7638
  id: String,
@@ -7668,7 +7683,7 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
7668
7683
  default: null
7669
7684
  }
7670
7685
  });
7671
- var stdin_default$15 = vue.defineComponent({
7686
+ var stdin_default$16 = vue.defineComponent({
7672
7687
  name: name$M,
7673
7688
  props: fieldProps,
7674
7689
  emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
@@ -8125,7 +8140,7 @@ var stdin_default$15 = vue.defineComponent({
8125
8140
  };
8126
8141
  }
8127
8142
  });
8128
- const Field = withInstall(stdin_default$15);
8143
+ const Field = withInstall(stdin_default$16);
8129
8144
  const [name$L, bem$L] = createNamespace("search");
8130
8145
  const searchProps = extend({}, fieldSharedProps, {
8131
8146
  shape: makeStringProp("round"),
@@ -8139,7 +8154,7 @@ const searchProps = extend({}, fieldSharedProps, {
8139
8154
  actionText: String,
8140
8155
  showAction: Boolean
8141
8156
  });
8142
- var stdin_default$14 = vue.defineComponent({
8157
+ var stdin_default$15 = vue.defineComponent({
8143
8158
  name: name$L,
8144
8159
  props: searchProps,
8145
8160
  emits: [
@@ -8252,8 +8267,8 @@ var stdin_default$14 = vue.defineComponent({
8252
8267
  };
8253
8268
  }
8254
8269
  });
8255
- const Search = withInstall(stdin_default$14);
8256
- var stdin_default$13 = Search;
8270
+ const Search = withInstall(stdin_default$15);
8271
+ var stdin_default$14 = Search;
8257
8272
  const parseNumber = (obj, defaultValue = 0) => {
8258
8273
  let result = parseInt(obj, 10);
8259
8274
  if (isNaN(result)) {
@@ -8289,7 +8304,7 @@ const tagProps = {
8289
8304
  stamp: Boolean,
8290
8305
  stampDiameter: makeNumberProp(60)
8291
8306
  };
8292
- var stdin_default$12 = vue.defineComponent({
8307
+ var stdin_default$13 = vue.defineComponent({
8293
8308
  name: name$K,
8294
8309
  props: tagProps,
8295
8310
  emits: ["close"],
@@ -8346,7 +8361,7 @@ var stdin_default$12 = vue.defineComponent({
8346
8361
  }, null);
8347
8362
  const LeftIcon = () => {
8348
8363
  if (props.image) {
8349
- return vue.createVNode(stdin_default$1I, {
8364
+ return vue.createVNode(stdin_default$1J, {
8350
8365
  "class": bem$K("image"),
8351
8366
  "src": props.image
8352
8367
  }, null);
@@ -8413,8 +8428,8 @@ var stdin_default$12 = vue.defineComponent({
8413
8428
  });
8414
8429
  }
8415
8430
  });
8416
- const Tag = withInstall(stdin_default$12);
8417
- var stdin_default$11 = Tag;
8431
+ const Tag = withInstall(stdin_default$13);
8432
+ var stdin_default$12 = Tag;
8418
8433
  function deepClone(obj) {
8419
8434
  if (!isDef(obj)) {
8420
8435
  return obj;
@@ -8440,9 +8455,11 @@ const drawerSelectProps = {
8440
8455
  expandAll: {
8441
8456
  type: Boolean,
8442
8457
  default: false
8443
- }
8458
+ },
8459
+ defaultSelectNode: Object,
8460
+ activeClassName: makeStringProp("")
8444
8461
  };
8445
- var stdin_default$10 = vue.defineComponent({
8462
+ var stdin_default$11 = vue.defineComponent({
8446
8463
  name: name$J,
8447
8464
  props: drawerSelectProps,
8448
8465
  emits: ["change", "select"],
@@ -8451,7 +8468,7 @@ var stdin_default$10 = vue.defineComponent({
8451
8468
  }) {
8452
8469
  const keyword = vue.ref("");
8453
8470
  const expandNode = vue.ref();
8454
- const selectNode = vue.ref();
8471
+ const selectNode = vue.ref(props.defaultSelectNode);
8455
8472
  const flatArray = vue.ref([]);
8456
8473
  const show = vue.ref(false);
8457
8474
  const searchRef = vue.ref();
@@ -8629,7 +8646,7 @@ var stdin_default$10 = vue.defineComponent({
8629
8646
  "onClick": () => item.expand = !item.expand
8630
8647
  }, [vue.createVNode("span", {
8631
8648
  "class": [bem$J("label--placeholder")]
8632
- }, [children2.length > 0 && vue.createVNode(stdin_default$1R, {
8649
+ }, [children2.length > 0 && vue.createVNode(stdin_default$1S, {
8633
8650
  "name": "play-small",
8634
8651
  "class": [bem$J("label--icon", {
8635
8652
  active: item.expand
@@ -8650,6 +8667,7 @@ var stdin_default$10 = vue.defineComponent({
8650
8667
  const renderItem = (item) => {
8651
8668
  var _a, _b;
8652
8669
  const empty = isEmpty(item);
8670
+ const active = empty && ((_a = selectNode.value) == null ? void 0 : _a.value) == item[fields.value.value];
8653
8671
  return vue.createVNode("div", {
8654
8672
  "onClick": (e) => {
8655
8673
  e.stopPropagation();
@@ -8660,7 +8678,7 @@ var stdin_default$10 = vue.defineComponent({
8660
8678
  "class": [bem$J("item--header")]
8661
8679
  }, [vue.createVNode("span", {
8662
8680
  "class": [bem$J("item--placeholder")]
8663
- }, [!empty && vue.createVNode(stdin_default$1R, {
8681
+ }, [!empty && vue.createVNode(stdin_default$1S, {
8664
8682
  "name": "play-small",
8665
8683
  "class": [bem$J("item--icon", {
8666
8684
  active: item.checked
@@ -8668,8 +8686,10 @@ var stdin_default$10 = vue.defineComponent({
8668
8686
  "size": "20"
8669
8687
  }, null)]), vue.createVNode("div", {
8670
8688
  "class": [bem$J("item--label", {
8671
- active: empty && ((_a = selectNode.value) == null ? void 0 : _a.value) == item[fields.value.value]
8672
- }), "zt-hairline--top"]
8689
+ active
8690
+ }), "zt-hairline--top", {
8691
+ [props.activeClassName]: active
8692
+ }]
8673
8693
  }, [item[fields.value.text]])]), vue.createVNode("div", {
8674
8694
  "class": [bem$J("item--child")]
8675
8695
  }, [!empty && item.checked && ((_b = item[fields.value.children]) == null ? void 0 : _b.map(renderItem))])]);
@@ -8696,7 +8716,7 @@ var stdin_default$10 = vue.defineComponent({
8696
8716
  }, [vue.createVNode("div", {
8697
8717
  "class": [bem$J("search")],
8698
8718
  "ref": searchRef
8699
- }, [vue.createVNode(stdin_default$13, {
8719
+ }, [vue.createVNode(stdin_default$14, {
8700
8720
  "modelValue": keyword.value,
8701
8721
  "onUpdate:modelValue": [($event) => keyword.value = $event, onSearch],
8702
8722
  "placeholder": props.placeholder,
@@ -8710,7 +8730,7 @@ var stdin_default$10 = vue.defineComponent({
8710
8730
  "style": {
8711
8731
  top: `${offset.value}px`
8712
8732
  }
8713
- }, [vue.createVNode(stdin_default$1O, {
8733
+ }, [vue.createVNode(stdin_default$1P, {
8714
8734
  "class": [bem$J("popup")],
8715
8735
  "position": "top",
8716
8736
  "show": show.value,
@@ -8736,7 +8756,7 @@ var stdin_default$10 = vue.defineComponent({
8736
8756
  "class": [bem$J("history--title"), "zt-hairline--bottom"]
8737
8757
  }, [vue.createTextVNode("搜索历史")]), vue.createVNode("div", {
8738
8758
  "class": [bem$J("history--content")]
8739
- }, [historyList.value.map((item) => vue.createVNode(stdin_default$11, {
8759
+ }, [historyList.value.map((item) => vue.createVNode(stdin_default$12, {
8740
8760
  "onClick": () => onHistoryClick(item),
8741
8761
  "round": true,
8742
8762
  "text-color": "var(--zt-gray-a8)",
@@ -8746,7 +8766,7 @@ var stdin_default$10 = vue.defineComponent({
8746
8766
  }))]), vue.createVNode("div", {
8747
8767
  "class": [bem$J("history--clear")],
8748
8768
  "onClick": onClearHistory
8749
- }, [vue.createVNode(stdin_default$1R, {
8769
+ }, [vue.createVNode(stdin_default$1S, {
8750
8770
  "name": "delete",
8751
8771
  "size": "20"
8752
8772
  }, null), vue.createTextVNode("清空搜索历史")])]), historyList.value.length === 0 && vue.createVNode("div", {
@@ -8777,7 +8797,7 @@ var stdin_default$10 = vue.defineComponent({
8777
8797
  };
8778
8798
  }
8779
8799
  });
8780
- const DrawerSelect = withInstall(stdin_default$10);
8800
+ const DrawerSelect = withInstall(stdin_default$11);
8781
8801
  const [name$I, bem$I] = createNamespace("dropdown-menu");
8782
8802
  const dropdownMenuProps = {
8783
8803
  overlay: truthProp,
@@ -8789,7 +8809,7 @@ const dropdownMenuProps = {
8789
8809
  closeOnClickOverlay: truthProp
8790
8810
  };
8791
8811
  const DROPDOWN_KEY = Symbol(name$I);
8792
- var stdin_default$$ = vue.defineComponent({
8812
+ var stdin_default$10 = vue.defineComponent({
8793
8813
  name: name$I,
8794
8814
  props: dropdownMenuProps,
8795
8815
  setup(props, {
@@ -8856,6 +8876,7 @@ var stdin_default$$ = vue.defineComponent({
8856
8876
  if (item.$slots.header) {
8857
8877
  return item.$slots.header(item);
8858
8878
  }
8879
+ const itemTitle = item.renderTitle();
8859
8880
  return vue.createVNode("div", {
8860
8881
  "id": `${id}-${index}`,
8861
8882
  "role": "button",
@@ -8881,7 +8902,9 @@ var stdin_default$$ = vue.defineComponent({
8881
8902
  }, [vue.createVNode("div", {
8882
8903
  "class": "zt-ellipsis",
8883
8904
  "style": "padding-right: 18px"
8884
- }, [slots.title || item.renderTitle(), slots.icon || vue.createVNode(stdin_default$1R, {
8905
+ }, [slots.title || (itemTitle ? itemTitle : vue.createVNode("div", {
8906
+ "class": [bem$I("placeholder")]
8907
+ }, [item.placeholder])), slots.icon || vue.createVNode(stdin_default$1S, {
8885
8908
  "class": bem$I("icon"),
8886
8909
  "name": "spinner-expand"
8887
8910
  }, null)])])]);
@@ -8924,9 +8947,11 @@ const dropdownItemProps = {
8924
8947
  modelValueArray: makeArrayProp(),
8925
8948
  titleClass: unknownProp,
8926
8949
  multiSelect: Boolean,
8927
- itemLabel: String
8950
+ itemLabel: String,
8951
+ placeholder: makeStringProp("未选择"),
8952
+ resetDefaultValue: makeArrayProp()
8928
8953
  };
8929
- var stdin_default$_ = vue.defineComponent({
8954
+ var stdin_default$$ = vue.defineComponent({
8930
8955
  name: name$H,
8931
8956
  inheritAttrs: false,
8932
8957
  props: dropdownItemProps,
@@ -8981,10 +9006,9 @@ var stdin_default$_ = vue.defineComponent({
8981
9006
  }
8982
9007
  };
8983
9008
  const onClickReset = () => {
8984
- props.options.forEach((item) => {
8985
- item.selected = false;
8986
- });
9009
+ var _a;
8987
9010
  modelArray.splice(0);
9011
+ modelArray.push(...(_a = props.resetDefaultValue) != null ? _a : []);
8988
9012
  state.showPopup = false;
8989
9013
  emit("reset");
8990
9014
  };
@@ -9020,7 +9044,7 @@ var stdin_default$_ = vue.defineComponent({
9020
9044
  if (title.length > 0) {
9021
9045
  title = title.substring(0, title.length - 1);
9022
9046
  }
9023
- return title || "未选择";
9047
+ return title;
9024
9048
  }
9025
9049
  const match = props.options.find((option) => option[fields.value.value] === props.modelValue);
9026
9050
  return match ? match[fields.value.text] : "";
@@ -9033,8 +9057,11 @@ var stdin_default$_ = vue.defineComponent({
9033
9057
  const text = option[fields.value.text];
9034
9058
  let active = false;
9035
9059
  if (props.multiSelect) {
9036
- if (option.selected) {
9060
+ if (modelArray == null ? void 0 : modelArray.includes(value)) {
9037
9061
  active = true;
9062
+ option.selected = true;
9063
+ } else {
9064
+ option.selected = false;
9038
9065
  }
9039
9066
  } else {
9040
9067
  active = value === props.modelValue;
@@ -9042,12 +9069,10 @@ var stdin_default$_ = vue.defineComponent({
9042
9069
  const onClick = () => {
9043
9070
  if (props.multiSelect) {
9044
9071
  if (option.selected) {
9045
- option.selected = false;
9046
9072
  modelArray.splice(modelArray.indexOf(value), 1);
9047
9073
  emit("update:modelValue", -value);
9048
9074
  emit("change", -value);
9049
9075
  } else {
9050
- option.selected = true;
9051
9076
  modelArray.push(value);
9052
9077
  emit("update:modelValue", value);
9053
9078
  emit("change", value);
@@ -9217,9 +9242,9 @@ var stdin_default$_ = vue.defineComponent({
9217
9242
  };
9218
9243
  }
9219
9244
  });
9220
- const DropdownItem = withInstall(stdin_default$_);
9221
- const DropdownMenu = withInstall(stdin_default$$);
9222
- const renderNotFound = (bem2) => vue.createVNode("svg", {
9245
+ const DropdownItem = withInstall(stdin_default$$);
9246
+ const DropdownMenu = withInstall(stdin_default$10);
9247
+ const renderNotFound = (bem2, getId, getUrlById) => vue.createVNode("svg", {
9223
9248
  "xmlns": "http://www.w3.org/2000/svg",
9224
9249
  "viewBox": "0 0 160 160",
9225
9250
  "class": "design-iconfont"
@@ -9228,7 +9253,7 @@ const renderNotFound = (bem2) => vue.createVNode("svg", {
9228
9253
  "y1": "100%",
9229
9254
  "x2": "50%",
9230
9255
  "y2": "0%",
9231
- "id": "iwtsazmcp__0l3luddeua"
9256
+ "id": getId(1)
9232
9257
  }, [vue.createVNode("stop", {
9233
9258
  "class": bem2("svg-defs-stop-color-gradient"),
9234
9259
  "stop-opacity": ".1",
@@ -9242,7 +9267,7 @@ const renderNotFound = (bem2) => vue.createVNode("svg", {
9242
9267
  "y1": "100%",
9243
9268
  "x2": "50%",
9244
9269
  "y2": "0%",
9245
- "id": "iwtsazmcp__fsa5v33ucb"
9270
+ "id": getId(2)
9246
9271
  }, [vue.createVNode("stop", {
9247
9272
  "class": bem2("svg-defs-stop-color"),
9248
9273
  "stop-opacity": "0",
@@ -9256,7 +9281,7 @@ const renderNotFound = (bem2) => vue.createVNode("svg", {
9256
9281
  "y1": "100%",
9257
9282
  "x2": "50%",
9258
9283
  "y2": "0%",
9259
- "id": "iwtsazmcp__zyelz8r8tc"
9284
+ "id": getId(3)
9260
9285
  }, [vue.createVNode("stop", {
9261
9286
  "class": bem2("svg-defs-stop-color"),
9262
9287
  "offset": "0%"
@@ -9319,14 +9344,14 @@ const renderNotFound = (bem2) => vue.createVNode("svg", {
9319
9344
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
9320
9345
  }, null), vue.createVNode("path", {
9321
9346
  "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",
9322
- "fill": "url(#iwtsazmcp__0l3luddeua)"
9347
+ "fill": getUrlById(1)
9323
9348
  }, null), vue.createVNode("path", {
9324
9349
  "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",
9325
- "fill": "url(#iwtsazmcp__fsa5v33ucb)",
9350
+ "fill": getUrlById(2),
9326
9351
  "transform": "translate(43 30)"
9327
9352
  }, null), vue.createVNode("path", {
9328
9353
  "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",
9329
- "fill": "url(#iwtsazmcp__zyelz8r8tc)",
9354
+ "fill": getUrlById(3),
9330
9355
  "transform": "translate(43 30)"
9331
9356
  }, null), vue.createVNode("g", {
9332
9357
  "transform": "translate(43 30)"
@@ -9347,7 +9372,7 @@ const renderNotFound = (bem2) => vue.createVNode("svg", {
9347
9372
  "fill": "#FFF",
9348
9373
  "xlink:href": "#iwtsazmcp__qni97e1yqg"
9349
9374
  }, null)])])]);
9350
- const renderServerError = (bem2) => vue.createVNode("svg", {
9375
+ const renderServerError = (bem2, getId, getUrlById) => vue.createVNode("svg", {
9351
9376
  "xmlns": "http://www.w3.org/2000/svg",
9352
9377
  "viewBox": "0 0 160 160",
9353
9378
  "class": "design-iconfont"
@@ -9356,7 +9381,7 @@ const renderServerError = (bem2) => vue.createVNode("svg", {
9356
9381
  "y1": "100%",
9357
9382
  "x2": "50%",
9358
9383
  "y2": "0%",
9359
- "id": "7kkq7j5p7__15jshfc70a"
9384
+ "id": getId(1)
9360
9385
  }, [vue.createVNode("stop", {
9361
9386
  "class": bem2("svg-defs-stop-color-gradient"),
9362
9387
  "stop-opacity": ".1",
@@ -9370,7 +9395,7 @@ const renderServerError = (bem2) => vue.createVNode("svg", {
9370
9395
  "y1": "100%",
9371
9396
  "x2": "50%",
9372
9397
  "y2": "0%",
9373
- "id": "7kkq7j5p7__99j8u0oreb"
9398
+ "id": getId(2)
9374
9399
  }, [vue.createVNode("stop", {
9375
9400
  "class": bem2("svg-defs-stop-color"),
9376
9401
  "stop-opacity": "0",
@@ -9384,7 +9409,7 @@ const renderServerError = (bem2) => vue.createVNode("svg", {
9384
9409
  "y1": "100%",
9385
9410
  "x2": "50%",
9386
9411
  "y2": "0%",
9387
- "id": "7kkq7j5p7__6mkfsut7ac"
9412
+ "id": getId(3)
9388
9413
  }, [vue.createVNode("stop", {
9389
9414
  "class": bem2("svg-defs-stop-color"),
9390
9415
  "offset": "0%"
@@ -9446,13 +9471,13 @@ const renderServerError = (bem2) => vue.createVNode("svg", {
9446
9471
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
9447
9472
  }, null), vue.createVNode("path", {
9448
9473
  "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",
9449
- "fill": "url(#7kkq7j5p7__15jshfc70a)"
9474
+ "fill": getUrlById(1)
9450
9475
  }, null), vue.createVNode("path", {
9451
9476
  "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",
9452
- "fill": "url(#7kkq7j5p7__99j8u0oreb)"
9477
+ "fill": getUrlById(2)
9453
9478
  }, null), vue.createVNode("path", {
9454
9479
  "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",
9455
- "fill": "url(#7kkq7j5p7__6mkfsut7ac)"
9480
+ "fill": getUrlById(3)
9456
9481
  }, null), vue.createVNode("g", {
9457
9482
  "transform": "translate(53.42222 65.5)"
9458
9483
  }, [vue.createVNode("use", {
@@ -9472,7 +9497,7 @@ const renderServerError = (bem2) => vue.createVNode("svg", {
9472
9497
  "fill": "#FFF",
9473
9498
  "xlink:href": "#7kkq7j5p7__45z80jbylg"
9474
9499
  }, null)])])]);
9475
- const renderAccessRestricted = (bem2) => vue.createVNode("svg", {
9500
+ const renderAccessRestricted = (bem2, getId, getUrlById) => vue.createVNode("svg", {
9476
9501
  "xmlns": "http://www.w3.org/2000/svg",
9477
9502
  "viewBox": "0 0 160 160",
9478
9503
  "class": "design-iconfont"
@@ -9481,7 +9506,7 @@ const renderAccessRestricted = (bem2) => vue.createVNode("svg", {
9481
9506
  "y1": "100%",
9482
9507
  "x2": "50%",
9483
9508
  "y2": "0%",
9484
- "id": "osn32hg6k__gjst0w01ba"
9509
+ "id": getId(1)
9485
9510
  }, [vue.createVNode("stop", {
9486
9511
  "class": bem2("svg-defs-stop-color"),
9487
9512
  "stop-opacity": ".1",
@@ -9495,7 +9520,7 @@ const renderAccessRestricted = (bem2) => vue.createVNode("svg", {
9495
9520
  "y1": "100%",
9496
9521
  "x2": "50%",
9497
9522
  "y2": "0%",
9498
- "id": "osn32hg6k__1f6krzwf2b"
9523
+ "id": getId(2)
9499
9524
  }, [vue.createVNode("stop", {
9500
9525
  "class": bem2("svg-defs-stop-color"),
9501
9526
  "stop-opacity": "0",
@@ -9509,7 +9534,7 @@ const renderAccessRestricted = (bem2) => vue.createVNode("svg", {
9509
9534
  "y1": "100%",
9510
9535
  "x2": "50%",
9511
9536
  "y2": "0%",
9512
- "id": "osn32hg6k__gdmvw9w4yc"
9537
+ "id": getId(3)
9513
9538
  }, [vue.createVNode("stop", {
9514
9539
  "class": bem2("svg-defs-stop-color"),
9515
9540
  "offset": "0%"
@@ -9546,13 +9571,13 @@ const renderAccessRestricted = (bem2) => vue.createVNode("svg", {
9546
9571
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
9547
9572
  }, null), vue.createVNode("path", {
9548
9573
  "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",
9549
- "fill": "url(#osn32hg6k__gjst0w01ba)"
9574
+ "fill": getUrlById(1)
9550
9575
  }, null), vue.createVNode("path", {
9551
9576
  "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",
9552
- "fill": "url(#osn32hg6k__1f6krzwf2b)"
9577
+ "fill": getUrlById(2)
9553
9578
  }, null), vue.createVNode("path", {
9554
9579
  "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",
9555
- "fill": "url(#osn32hg6k__gdmvw9w4yc)"
9580
+ "fill": getUrlById(3)
9556
9581
  }, null), vue.createVNode("g", null, [vue.createVNode("use", {
9557
9582
  "class": bem2("svg-defs-path-fill"),
9558
9583
  "filter": "url(#osn32hg6k__96p18i5xad)",
@@ -9561,7 +9586,7 @@ const renderAccessRestricted = (bem2) => vue.createVNode("svg", {
9561
9586
  "fill": "#FFF",
9562
9587
  "xlink:href": "#osn32hg6k__2vtr6xgyge"
9563
9588
  }, null)])])]);
9564
- const renderDeveloping = (bem2) => vue.createVNode("svg", {
9589
+ const renderDeveloping = (bem2, getId, getUrlById) => vue.createVNode("svg", {
9565
9590
  "xmlns": "http://www.w3.org/2000/svg",
9566
9591
  "viewBox": "0 0 160 160",
9567
9592
  "class": "design-iconfont"
@@ -9570,7 +9595,7 @@ const renderDeveloping = (bem2) => vue.createVNode("svg", {
9570
9595
  "y1": "100%",
9571
9596
  "x2": "50%",
9572
9597
  "y2": "0%",
9573
- "id": "0rplvus3a__oscf81e1aa"
9598
+ "id": getId(1)
9574
9599
  }, [vue.createVNode("stop", {
9575
9600
  "class": bem2("svg-defs-stop-color"),
9576
9601
  "stop-opacity": ".1",
@@ -9584,7 +9609,7 @@ const renderDeveloping = (bem2) => vue.createVNode("svg", {
9584
9609
  "y1": "100%",
9585
9610
  "x2": "50%",
9586
9611
  "y2": "0%",
9587
- "id": "0rplvus3a__azrppckntb"
9612
+ "id": getId(2)
9588
9613
  }, [vue.createVNode("stop", {
9589
9614
  "class": bem2("svg-defs-stop-color"),
9590
9615
  "offset": "0%"
@@ -9596,7 +9621,7 @@ const renderDeveloping = (bem2) => vue.createVNode("svg", {
9596
9621
  "y1": "100%",
9597
9622
  "x2": "50%",
9598
9623
  "y2": "0%",
9599
- "id": "0rplvus3a__9ocf4qkfyc"
9624
+ "id": getId(3)
9600
9625
  }, [vue.createVNode("stop", {
9601
9626
  "class": bem2("svg-defs-stop-color"),
9602
9627
  "stop-opacity": "0",
@@ -9635,15 +9660,15 @@ const renderDeveloping = (bem2) => vue.createVNode("svg", {
9635
9660
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
9636
9661
  }, null), vue.createVNode("path", {
9637
9662
  "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",
9638
- "fill": "url(#0rplvus3a__oscf81e1aa)",
9663
+ "fill": getUrlById(1),
9639
9664
  "transform": "translate(36 37)"
9640
9665
  }, null), vue.createVNode("path", {
9641
9666
  "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",
9642
- "fill": "url(#0rplvus3a__azrppckntb)",
9667
+ "fill": getUrlById(2),
9643
9668
  "transform": "translate(36 37)"
9644
9669
  }, null), vue.createVNode("path", {
9645
9670
  "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",
9646
- "fill": "url(#0rplvus3a__9ocf4qkfyc)",
9671
+ "fill": getUrlById(3),
9647
9672
  "transform": "translate(36 37)"
9648
9673
  }, null), vue.createVNode("path", {
9649
9674
  "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",
@@ -9659,7 +9684,7 @@ const renderDeveloping = (bem2) => vue.createVNode("svg", {
9659
9684
  "fill": "#FFF",
9660
9685
  "xlink:href": "#0rplvus3a__7t0ftckj4e"
9661
9686
  }, null)])])]);
9662
- const renderNetworkError = (bem2) => vue.createVNode("svg", {
9687
+ const renderNetworkError = (bem2, getId, getUrlById) => vue.createVNode("svg", {
9663
9688
  "xmlns": "http://www.w3.org/2000/svg",
9664
9689
  "viewBox": "0 0 160 160",
9665
9690
  "class": "design-iconfont"
@@ -9668,7 +9693,7 @@ const renderNetworkError = (bem2) => vue.createVNode("svg", {
9668
9693
  "y1": "100%",
9669
9694
  "x2": "50%",
9670
9695
  "y2": "0%",
9671
- "id": "xg345q5xi__5lbyx15b5b"
9696
+ "id": getId(1)
9672
9697
  }, [vue.createVNode("stop", {
9673
9698
  "class": bem2("svg-defs-stop-color-gradient"),
9674
9699
  "stop-opacity": "0",
@@ -9682,7 +9707,7 @@ const renderNetworkError = (bem2) => vue.createVNode("svg", {
9682
9707
  "y1": "0%",
9683
9708
  "x2": "50%",
9684
9709
  "y2": "100%",
9685
- "id": "xg345q5xi__ty8l0w0aga"
9710
+ "id": getId(2)
9686
9711
  }, [vue.createVNode("stop", {
9687
9712
  "class": bem2("svg-defs-stop-color-gradient"),
9688
9713
  "offset": "0%"
@@ -9723,9 +9748,9 @@ const renderNetworkError = (bem2) => vue.createVNode("svg", {
9723
9748
  "opacity": ".24220203"
9724
9749
  }, null), vue.createVNode("path", {
9725
9750
  "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",
9726
- "stroke": "url(#xg345q5xi__ty8l0w0aga)",
9751
+ "stroke": getUrlById(2),
9727
9752
  "stroke-width": "8",
9728
- "fill": "url(#xg345q5xi__5lbyx15b5b)"
9753
+ "fill": getUrlById(1)
9729
9754
  }, null), vue.createVNode("use", {
9730
9755
  "class": bem2("svg-defs-path-fill"),
9731
9756
  "filter": "url(#xg345q5xi__ky1vat27oc)",
@@ -9748,7 +9773,7 @@ const renderNetworkError = (bem2) => vue.createVNode("svg", {
9748
9773
  "height": "16",
9749
9774
  "rx": "4"
9750
9775
  }, null)])]);
9751
- const renderEmptyResult = (bem2) => vue.createVNode("svg", {
9776
+ const renderEmptyResult = (bem2, getId, getUrlById) => vue.createVNode("svg", {
9752
9777
  "xmlns": "http://www.w3.org/2000/svg",
9753
9778
  "viewBox": "0 0 160 160",
9754
9779
  "class": "design-iconfont"
@@ -9757,7 +9782,7 @@ const renderEmptyResult = (bem2) => vue.createVNode("svg", {
9757
9782
  "y1": "100%",
9758
9783
  "x2": "50%",
9759
9784
  "y2": "0%",
9760
- "id": "cgogdnfso__fj6f5739ra"
9785
+ "id": getId(1)
9761
9786
  }, [vue.createVNode("stop", {
9762
9787
  "class": bem2("svg-defs-stop-color"),
9763
9788
  "stop-opacity": ".1",
@@ -9771,7 +9796,7 @@ const renderEmptyResult = (bem2) => vue.createVNode("svg", {
9771
9796
  "y1": "100%",
9772
9797
  "x2": "50%",
9773
9798
  "y2": "0%",
9774
- "id": "cgogdnfso__u8bce9jl0b"
9799
+ "id": getId(2)
9775
9800
  }, [vue.createVNode("stop", {
9776
9801
  "class": bem2("svg-defs-stop-color"),
9777
9802
  "stop-opacity": "0",
@@ -9785,7 +9810,7 @@ const renderEmptyResult = (bem2) => vue.createVNode("svg", {
9785
9810
  "y1": "100%",
9786
9811
  "x2": "50%",
9787
9812
  "y2": "0%",
9788
- "id": "cgogdnfso__1yqn57bztc"
9813
+ "id": getId(3)
9789
9814
  }, [vue.createVNode("stop", {
9790
9815
  "class": bem2("svg-defs-stop-color"),
9791
9816
  "offset": "0%"
@@ -9822,13 +9847,13 @@ const renderEmptyResult = (bem2) => vue.createVNode("svg", {
9822
9847
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
9823
9848
  }, null), vue.createVNode("path", {
9824
9849
  "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",
9825
- "fill": "url(#cgogdnfso__fj6f5739ra)"
9850
+ "fill": getUrlById(1)
9826
9851
  }, null), vue.createVNode("path", {
9827
9852
  "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",
9828
- "fill": "url(#cgogdnfso__u8bce9jl0b)"
9853
+ "fill": getUrlById(2)
9829
9854
  }, null), vue.createVNode("path", {
9830
9855
  "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",
9831
- "fill": "url(#cgogdnfso__1yqn57bztc)"
9856
+ "fill": getUrlById(3)
9832
9857
  }, null), vue.createVNode("g", null, [vue.createVNode("use", {
9833
9858
  "class": bem2("svg-defs-path-fill"),
9834
9859
  "filter": "url(#cgogdnfso__7fi3sy00cd)",
@@ -9837,7 +9862,7 @@ const renderEmptyResult = (bem2) => vue.createVNode("svg", {
9837
9862
  "fill": "#FFF",
9838
9863
  "xlink:href": "#cgogdnfso__sffqrzc91e"
9839
9864
  }, null)])])]);
9840
- const renderFindNull = (bem2) => vue.createVNode("svg", {
9865
+ const renderFindNull = (bem2, getId, getUrlById) => vue.createVNode("svg", {
9841
9866
  "xmlns": "http://www.w3.org/2000/svg",
9842
9867
  "viewBox": "0 0 160 160",
9843
9868
  "class": "design-iconfont"
@@ -9846,7 +9871,7 @@ const renderFindNull = (bem2) => vue.createVNode("svg", {
9846
9871
  "y1": "100%",
9847
9872
  "x2": "50%",
9848
9873
  "y2": "0%",
9849
- "id": "cgogdnfso__fj6f5739ra"
9874
+ "id": getId(1)
9850
9875
  }, [vue.createVNode("stop", {
9851
9876
  "class": bem2("svg-defs-stop-color"),
9852
9877
  "stop-opacity": ".1",
@@ -9860,7 +9885,7 @@ const renderFindNull = (bem2) => vue.createVNode("svg", {
9860
9885
  "y1": "100%",
9861
9886
  "x2": "50%",
9862
9887
  "y2": "0%",
9863
- "id": "cgogdnfso__u8bce9jl0b"
9888
+ "id": getId(2)
9864
9889
  }, [vue.createVNode("stop", {
9865
9890
  "class": bem2("svg-defs-stop-color"),
9866
9891
  "stop-opacity": "0",
@@ -9874,7 +9899,7 @@ const renderFindNull = (bem2) => vue.createVNode("svg", {
9874
9899
  "y1": "100%",
9875
9900
  "x2": "50%",
9876
9901
  "y2": "0%",
9877
- "id": "cgogdnfso__1yqn57bztc"
9902
+ "id": getId(3)
9878
9903
  }, [vue.createVNode("stop", {
9879
9904
  "class": bem2("svg-defs-stop-color"),
9880
9905
  "offset": "0%"
@@ -9887,7 +9912,7 @@ const renderFindNull = (bem2) => vue.createVNode("svg", {
9887
9912
  "width": "181.2%",
9888
9913
  "height": "183.9%",
9889
9914
  "filterUnits": "objectBoundingBox",
9890
- "id": "cgogdnfso__7fi3sy00cd"
9915
+ "id": getId(4)
9891
9916
  }, [vue.createVNode("feOffset", {
9892
9917
  "dy": "2",
9893
9918
  "in": "SourceGraphic",
@@ -9911,22 +9936,22 @@ const renderFindNull = (bem2) => vue.createVNode("svg", {
9911
9936
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
9912
9937
  }, null), vue.createVNode("path", {
9913
9938
  "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",
9914
- "fill": "url(#cgogdnfso__fj6f5739ra)"
9939
+ "fill": getUrlById(1)
9915
9940
  }, null), vue.createVNode("path", {
9916
9941
  "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",
9917
- "fill": "url(#cgogdnfso__u8bce9jl0b)"
9942
+ "fill": getUrlById(2)
9918
9943
  }, null), vue.createVNode("path", {
9919
9944
  "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",
9920
- "fill": "url(#cgogdnfso__1yqn57bztc)"
9945
+ "fill": getUrlById(3)
9921
9946
  }, null), vue.createVNode("g", null, [vue.createVNode("use", {
9922
9947
  "class": bem2("svg-defs-path-fill"),
9923
- "filter": "url(#cgogdnfso__7fi3sy00cd)",
9948
+ "filter": getUrlById(4),
9924
9949
  "xlink:href": "#cgogdnfso__sffqrzc91e"
9925
9950
  }, null), vue.createVNode("use", {
9926
9951
  "fill": "#FFF",
9927
9952
  "xlink:href": "#cgogdnfso__sffqrzc91e"
9928
9953
  }, null)])])]);
9929
- const renderEmptyInterface = (bem2) => vue.createVNode("svg", {
9954
+ const renderEmptyInterface = (bem2, getId, getUrlById) => vue.createVNode("svg", {
9930
9955
  "xmlns": "http://www.w3.org/2000/svg",
9931
9956
  "viewBox": "0 0 160 160",
9932
9957
  "class": "design-iconfont"
@@ -9935,7 +9960,7 @@ const renderEmptyInterface = (bem2) => vue.createVNode("svg", {
9935
9960
  "y1": "100%",
9936
9961
  "x2": "50%",
9937
9962
  "y2": "0%",
9938
- "id": "6t7l7j7ds__wirruftrqa"
9963
+ "id": getId(1)
9939
9964
  }, [vue.createVNode("stop", {
9940
9965
  "class": bem2("svg-defs-stop-color"),
9941
9966
  "stop-opacity": ".1",
@@ -9949,7 +9974,7 @@ const renderEmptyInterface = (bem2) => vue.createVNode("svg", {
9949
9974
  "y1": "100%",
9950
9975
  "x2": "50%",
9951
9976
  "y2": "0%",
9952
- "id": "6t7l7j7ds__j7hvusgxab"
9977
+ "id": getId(2)
9953
9978
  }, [vue.createVNode("stop", {
9954
9979
  "class": bem2("svg-defs-stop-color"),
9955
9980
  "stop-opacity": "0",
@@ -9963,7 +9988,7 @@ const renderEmptyInterface = (bem2) => vue.createVNode("svg", {
9963
9988
  "y1": "100%",
9964
9989
  "x2": "50%",
9965
9990
  "y2": "0%",
9966
- "id": "6t7l7j7ds__joal40yxdc"
9991
+ "id": getId(3)
9967
9992
  }, [vue.createVNode("stop", {
9968
9993
  "class": bem2("svg-defs-stop-color"),
9969
9994
  "offset": "0%"
@@ -9976,7 +10001,7 @@ const renderEmptyInterface = (bem2) => vue.createVNode("svg", {
9976
10001
  "width": "172.2%",
9977
10002
  "height": "425%",
9978
10003
  "filterUnits": "objectBoundingBox",
9979
- "id": "6t7l7j7ds__39x4ds797d"
10004
+ "id": getId(4)
9980
10005
  }, [vue.createVNode("feOffset", {
9981
10006
  "dy": "2",
9982
10007
  "in": "SourceGraphic",
@@ -10000,22 +10025,22 @@ const renderEmptyInterface = (bem2) => vue.createVNode("svg", {
10000
10025
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
10001
10026
  }, null), vue.createVNode("path", {
10002
10027
  "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",
10003
- "fill": "url(#6t7l7j7ds__wirruftrqa)"
10028
+ "fill": getUrlById(1)
10004
10029
  }, null), vue.createVNode("path", {
10005
10030
  "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",
10006
- "fill": "url(#6t7l7j7ds__j7hvusgxab)"
10031
+ "fill": getUrlById(2)
10007
10032
  }, null), vue.createVNode("path", {
10008
10033
  "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",
10009
- "fill": "url(#6t7l7j7ds__joal40yxdc)"
10034
+ "fill": getUrlById(3)
10010
10035
  }, null), vue.createVNode("g", null, [vue.createVNode("use", {
10011
10036
  "class": bem2("svg-defs-path-fill"),
10012
- "filter": "url(#6t7l7j7ds__39x4ds797d)",
10037
+ "filter": getUrlById(4),
10013
10038
  "xlink:href": "#6t7l7j7ds__41nn7lg6ve"
10014
10039
  }, null), vue.createVNode("use", {
10015
10040
  "fill": "#FFF",
10016
10041
  "xlink:href": "#6t7l7j7ds__41nn7lg6ve"
10017
10042
  }, null)])])]);
10018
- const renderReportSuccess = (bem2) => vue.createVNode("svg", {
10043
+ const renderReportSuccess = (bem2, getId, getUrlById) => vue.createVNode("svg", {
10019
10044
  "xmlns": "http://www.w3.org/2000/svg",
10020
10045
  "viewBox": "0 0 160 160",
10021
10046
  "class": "design-iconfont"
@@ -10024,7 +10049,7 @@ const renderReportSuccess = (bem2) => vue.createVNode("svg", {
10024
10049
  "y1": "100%",
10025
10050
  "x2": "50%",
10026
10051
  "y2": "0%",
10027
- "id": "h3r8rva5d__eew5rymana"
10052
+ "id": getId(1)
10028
10053
  }, [vue.createVNode("stop", {
10029
10054
  "class": bem2("svg-defs-stop-color"),
10030
10055
  "stop-opacity": ".1",
@@ -10038,7 +10063,7 @@ const renderReportSuccess = (bem2) => vue.createVNode("svg", {
10038
10063
  "y1": "100%",
10039
10064
  "x2": "50%",
10040
10065
  "y2": "0%",
10041
- "id": "h3r8rva5d__92vm2xo10b"
10066
+ "id": getId(2)
10042
10067
  }, [vue.createVNode("stop", {
10043
10068
  "class": bem2("svg-defs-stop-color"),
10044
10069
  "stop-opacity": "0",
@@ -10052,7 +10077,7 @@ const renderReportSuccess = (bem2) => vue.createVNode("svg", {
10052
10077
  "y1": "100%",
10053
10078
  "x2": "50%",
10054
10079
  "y2": "0%",
10055
- "id": "h3r8rva5d__hy0jyvrkqc"
10080
+ "id": getId(3)
10056
10081
  }, [vue.createVNode("stop", {
10057
10082
  "class": bem2("svg-defs-stop-color"),
10058
10083
  "offset": "0%"
@@ -10065,7 +10090,7 @@ const renderReportSuccess = (bem2) => vue.createVNode("svg", {
10065
10090
  "width": "169.6%",
10066
10091
  "height": "168.4%",
10067
10092
  "filterUnits": "objectBoundingBox",
10068
- "id": "h3r8rva5d__z54fmdxnmd"
10093
+ "id": getId(4)
10069
10094
  }, [vue.createVNode("feOffset", {
10070
10095
  "dy": "2",
10071
10096
  "in": "SourceGraphic",
@@ -10083,7 +10108,7 @@ const renderReportSuccess = (bem2) => vue.createVNode("svg", {
10083
10108
  "width": "220%",
10084
10109
  "height": "220%",
10085
10110
  "filterUnits": "objectBoundingBox",
10086
- "id": "h3r8rva5d__zhi8u4oqbf"
10111
+ "id": getId(5)
10087
10112
  }, [vue.createVNode("feOffset", {
10088
10113
  "dy": "3",
10089
10114
  "in": "SourceGraphic",
@@ -10110,16 +10135,16 @@ const renderReportSuccess = (bem2) => vue.createVNode("svg", {
10110
10135
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
10111
10136
  }, null), vue.createVNode("path", {
10112
10137
  "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",
10113
- "fill": "url(#h3r8rva5d__eew5rymana)"
10138
+ "fill": getUrlById(1)
10114
10139
  }, null), vue.createVNode("path", {
10115
10140
  "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",
10116
- "fill": "url(#h3r8rva5d__92vm2xo10b)"
10141
+ "fill": getUrlById(2)
10117
10142
  }, null), vue.createVNode("path", {
10118
10143
  "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",
10119
- "fill": "url(#h3r8rva5d__hy0jyvrkqc)"
10144
+ "fill": getUrlById(3)
10120
10145
  }, null), vue.createVNode("g", null, [vue.createVNode("use", {
10121
10146
  "class": bem2("svg-defs-path-fill"),
10122
- "filter": "url(#h3r8rva5d__z54fmdxnmd)",
10147
+ "filter": getUrlById(4),
10123
10148
  "xlink:href": "#h3r8rva5d__d7rd04hahe"
10124
10149
  }, null), vue.createVNode("use", {
10125
10150
  "fill": "#FFF",
@@ -10128,7 +10153,7 @@ const renderReportSuccess = (bem2) => vue.createVNode("svg", {
10128
10153
  "transform": "translate(78 77)"
10129
10154
  }, [vue.createVNode("use", {
10130
10155
  "class": bem2("svg-defs-path-fill"),
10131
- "filter": "url(#h3r8rva5d__zhi8u4oqbf)",
10156
+ "filter": getUrlById(5),
10132
10157
  "xlink:href": "#h3r8rva5d__jk95ntyavg"
10133
10158
  }, null), vue.createVNode("use", {
10134
10159
  "fill": "#28CD78",
@@ -10139,7 +10164,7 @@ const renderReportSuccess = (bem2) => vue.createVNode("svg", {
10139
10164
  "fill-rule": "nonzero",
10140
10165
  "transform": "translate(78 77)"
10141
10166
  }, null)])]);
10142
- const renderReportError = (bem2) => vue.createVNode("svg", {
10167
+ const renderReportError = (bem2, getId, getUrlById) => vue.createVNode("svg", {
10143
10168
  "xmlns": "http://www.w3.org/2000/svg",
10144
10169
  "viewBox": "0 0 160 160",
10145
10170
  "class": "design-iconfont"
@@ -10148,7 +10173,7 @@ const renderReportError = (bem2) => vue.createVNode("svg", {
10148
10173
  "y1": "100%",
10149
10174
  "x2": "50%",
10150
10175
  "y2": "0%",
10151
- "id": "hjjrs2jmp__jc920q6pda"
10176
+ "id": getId(1)
10152
10177
  }, [vue.createVNode("stop", {
10153
10178
  "class": bem2("svg-defs-stop-color"),
10154
10179
  "stop-opacity": ".1",
@@ -10162,7 +10187,7 @@ const renderReportError = (bem2) => vue.createVNode("svg", {
10162
10187
  "y1": "100%",
10163
10188
  "x2": "50%",
10164
10189
  "y2": "0%",
10165
- "id": "hjjrs2jmp__sst8kz92tb"
10190
+ "id": getId(2)
10166
10191
  }, [vue.createVNode("stop", {
10167
10192
  "class": bem2("svg-defs-stop-color"),
10168
10193
  "stop-opacity": "0",
@@ -10176,7 +10201,7 @@ const renderReportError = (bem2) => vue.createVNode("svg", {
10176
10201
  "y1": "100%",
10177
10202
  "x2": "50%",
10178
10203
  "y2": "0%",
10179
- "id": "hjjrs2jmp__z0qr0ea01c"
10204
+ "id": getId(3)
10180
10205
  }, [vue.createVNode("stop", {
10181
10206
  "class": bem2("svg-defs-stop-color"),
10182
10207
  "offset": "0%"
@@ -10189,7 +10214,7 @@ const renderReportError = (bem2) => vue.createVNode("svg", {
10189
10214
  "width": "169.6%",
10190
10215
  "height": "168.4%",
10191
10216
  "filterUnits": "objectBoundingBox",
10192
- "id": "hjjrs2jmp__mlg5ragdid"
10217
+ "id": getId(4)
10193
10218
  }, [vue.createVNode("feOffset", {
10194
10219
  "dy": "2",
10195
10220
  "in": "SourceGraphic",
@@ -10207,7 +10232,7 @@ const renderReportError = (bem2) => vue.createVNode("svg", {
10207
10232
  "width": "170%",
10208
10233
  "height": "170%",
10209
10234
  "filterUnits": "objectBoundingBox",
10210
- "id": "hjjrs2jmp__6snr8pwn9f"
10235
+ "id": getId(5)
10211
10236
  }, [vue.createVNode("feOffset", {
10212
10237
  "dy": "2",
10213
10238
  "in": "SourceGraphic",
@@ -10234,16 +10259,16 @@ const renderReportError = (bem2) => vue.createVNode("svg", {
10234
10259
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
10235
10260
  }, null), vue.createVNode("path", {
10236
10261
  "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",
10237
- "fill": "url(#hjjrs2jmp__jc920q6pda)"
10262
+ "fill": getUrlById(1)
10238
10263
  }, null), vue.createVNode("path", {
10239
10264
  "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",
10240
- "fill": "url(#hjjrs2jmp__sst8kz92tb)"
10265
+ "fill": getUrlById(2)
10241
10266
  }, null), vue.createVNode("path", {
10242
10267
  "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",
10243
- "fill": "url(#hjjrs2jmp__z0qr0ea01c)"
10268
+ "fill": getUrlById(3)
10244
10269
  }, null), vue.createVNode("g", null, [vue.createVNode("use", {
10245
10270
  "class": bem2("svg-defs-path-fill"),
10246
- "filter": "url(#hjjrs2jmp__mlg5ragdid)",
10271
+ "filter": getUrlById(4),
10247
10272
  "xlink:href": "#hjjrs2jmp__inq21tde9e"
10248
10273
  }, null), vue.createVNode("use", {
10249
10274
  "fill": "#FFF",
@@ -10252,7 +10277,7 @@ const renderReportError = (bem2) => vue.createVNode("svg", {
10252
10277
  "transform": "translate(78 77)"
10253
10278
  }, [vue.createVNode("use", {
10254
10279
  "class": bem2("svg-defs-path-fill"),
10255
- "filter": "url(#hjjrs2jmp__6snr8pwn9f)",
10280
+ "filter": getUrlById(5),
10256
10281
  "xlink:href": "#hjjrs2jmp__l8g1n1l71g"
10257
10282
  }, null), vue.createVNode("use", {
10258
10283
  "fill": "#FF5023",
@@ -10263,7 +10288,7 @@ const renderReportError = (bem2) => vue.createVNode("svg", {
10263
10288
  "fill-rule": "nonzero",
10264
10289
  "transform": "translate(78 77)"
10265
10290
  }, null)])]);
10266
- const renderNoCollect = (bem2) => vue.createVNode("svg", {
10291
+ const renderNoCollect = (bem2, getId, getUrlById) => vue.createVNode("svg", {
10267
10292
  "xmlns": "http://www.w3.org/2000/svg",
10268
10293
  "viewBox": "0 0 160 160",
10269
10294
  "class": "design-iconfont"
@@ -10272,7 +10297,7 @@ const renderNoCollect = (bem2) => vue.createVNode("svg", {
10272
10297
  "y1": "100%",
10273
10298
  "x2": "50%",
10274
10299
  "y2": "0%",
10275
- "id": "4roobwtpf__prfnix21ja"
10300
+ "id": getId(1)
10276
10301
  }, [vue.createVNode("stop", {
10277
10302
  "class": bem2("svg-defs-stop-color"),
10278
10303
  "stop-opacity": ".1",
@@ -10286,7 +10311,7 @@ const renderNoCollect = (bem2) => vue.createVNode("svg", {
10286
10311
  "y1": "100%",
10287
10312
  "x2": "50%",
10288
10313
  "y2": "0%",
10289
- "id": "4roobwtpf__8kugdsm5kb"
10314
+ "id": getId(2)
10290
10315
  }, [vue.createVNode("stop", {
10291
10316
  "class": bem2("svg-defs-stop-color"),
10292
10317
  "stop-opacity": "0",
@@ -10300,7 +10325,7 @@ const renderNoCollect = (bem2) => vue.createVNode("svg", {
10300
10325
  "y1": "100%",
10301
10326
  "x2": "50%",
10302
10327
  "y2": "0%",
10303
- "id": "4roobwtpf__j168jpsc5c"
10328
+ "id": getId(3)
10304
10329
  }, [vue.createVNode("stop", {
10305
10330
  "class": bem2("svg-defs-stop-color"),
10306
10331
  "offset": "0%"
@@ -10313,7 +10338,7 @@ const renderNoCollect = (bem2) => vue.createVNode("svg", {
10313
10338
  "width": "182.1%",
10314
10339
  "height": "186.4%",
10315
10340
  "filterUnits": "objectBoundingBox",
10316
- "id": "4roobwtpf__ydijz0bb9d"
10341
+ "id": getId(4)
10317
10342
  }, [vue.createVNode("feOffset", {
10318
10343
  "dy": "2",
10319
10344
  "in": "SourceGraphic",
@@ -10337,16 +10362,16 @@ const renderNoCollect = (bem2) => vue.createVNode("svg", {
10337
10362
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
10338
10363
  }, null), vue.createVNode("path", {
10339
10364
  "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",
10340
- "fill": "url(#4roobwtpf__prfnix21ja)"
10365
+ "fill": getUrlById(1)
10341
10366
  }, null), vue.createVNode("path", {
10342
10367
  "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",
10343
- "fill": "url(#4roobwtpf__8kugdsm5kb)"
10368
+ "fill": getUrlById(2)
10344
10369
  }, null), vue.createVNode("path", {
10345
10370
  "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",
10346
- "fill": "url(#4roobwtpf__j168jpsc5c)"
10371
+ "fill": getUrlById(3)
10347
10372
  }, null), vue.createVNode("g", null, [vue.createVNode("use", {
10348
10373
  "class": bem2("svg-defs-path-fill"),
10349
- "filter": "url(#4roobwtpf__ydijz0bb9d)",
10374
+ "filter": getUrlById(4),
10350
10375
  "xlink:href": "#4roobwtpf__8hxpuw7vce"
10351
10376
  }, null), vue.createVNode("use", {
10352
10377
  "fill": "#FFF",
@@ -10372,18 +10397,21 @@ const emptyProps = {
10372
10397
  imageSize: [Number, String, Array],
10373
10398
  description: String
10374
10399
  };
10375
- var stdin_default$Z = vue.defineComponent({
10400
+ var stdin_default$_ = vue.defineComponent({
10376
10401
  name: name$G,
10377
10402
  props: emptyProps,
10378
10403
  setup(props, {
10379
10404
  slots
10380
10405
  }) {
10406
+ const baseId = useId();
10407
+ const getId = (num) => `${baseId}-${num}`;
10408
+ const getUrlById = (num) => `url(#${getId(num)})`;
10381
10409
  const renderImage = () => {
10382
10410
  var _a;
10383
10411
  if (slots.image) {
10384
10412
  return slots.image();
10385
10413
  }
10386
- return ((_a = PRESET_IMAGES[props.image]) == null ? void 0 : _a.call(PRESET_IMAGES, bem$G)) || vue.createVNode("img", {
10414
+ return ((_a = PRESET_IMAGES[props.image]) == null ? void 0 : _a.call(PRESET_IMAGES, bem$G, getId, getUrlById)) || vue.createVNode("img", {
10387
10415
  "src": props.image
10388
10416
  }, null);
10389
10417
  };
@@ -10410,7 +10438,7 @@ var stdin_default$Z = vue.defineComponent({
10410
10438
  }, [renderImage()]), renderDescription(), renderBottom()]);
10411
10439
  }
10412
10440
  });
10413
- const Empty = withInstall(stdin_default$Z);
10441
+ const Empty = withInstall(stdin_default$_);
10414
10442
  const floatingBubbleProps = {
10415
10443
  gap: makeNumberProp(24),
10416
10444
  icon: String,
@@ -10429,7 +10457,7 @@ const floatingBubbleProps = {
10429
10457
  }
10430
10458
  };
10431
10459
  const [name$F, bem$F] = createNamespace("floating-bubble");
10432
- var stdin_default$Y = vue.defineComponent({
10460
+ var stdin_default$Z = vue.defineComponent({
10433
10461
  name: name$F,
10434
10462
  inheritAttrs: false,
10435
10463
  props: floatingBubbleProps,
@@ -10570,7 +10598,7 @@ var stdin_default$Y = vue.defineComponent({
10570
10598
  "onTouchcancel": onTouchEnd,
10571
10599
  "onClick": onClick,
10572
10600
  "style": rootStyle.value
10573
- }, attrs), [slots.default ? slots.default() : vue.createVNode(stdin_default$1R, {
10601
+ }, attrs), [slots.default ? slots.default() : vue.createVNode(stdin_default$1S, {
10574
10602
  "name": props.icon,
10575
10603
  "class": bem$F("icon")
10576
10604
  }, null)]), [[vue.vShow, show.value]]);
@@ -10582,7 +10610,7 @@ var stdin_default$Y = vue.defineComponent({
10582
10610
  };
10583
10611
  }
10584
10612
  });
10585
- const FloatingBubble = withInstall(stdin_default$Y);
10613
+ const FloatingBubble = withInstall(stdin_default$Z);
10586
10614
  const [name$E, bem$E] = createNamespace("form");
10587
10615
  const formProps = {
10588
10616
  colon: Boolean,
@@ -10602,7 +10630,7 @@ const formProps = {
10602
10630
  default: "onBlur"
10603
10631
  }
10604
10632
  };
10605
- var stdin_default$X = vue.defineComponent({
10633
+ var stdin_default$Y = vue.defineComponent({
10606
10634
  name: name$E,
10607
10635
  props: formProps,
10608
10636
  emits: ["submit", "failed"],
@@ -10733,7 +10761,7 @@ var stdin_default$X = vue.defineComponent({
10733
10761
  };
10734
10762
  }
10735
10763
  });
10736
- const Form = withInstall(stdin_default$X);
10764
+ const Form = withInstall(stdin_default$Y);
10737
10765
  const [name$D, bem$D] = createNamespace("grid");
10738
10766
  const gridProps = {
10739
10767
  square: Boolean,
@@ -10747,7 +10775,7 @@ const gridProps = {
10747
10775
  columnNum: makeNumericProp(4)
10748
10776
  };
10749
10777
  const GRID_KEY = Symbol(name$D);
10750
- var stdin_default$W = vue.defineComponent({
10778
+ var stdin_default$X = vue.defineComponent({
10751
10779
  name: name$D,
10752
10780
  props: gridProps,
10753
10781
  setup(props, {
@@ -10772,8 +10800,8 @@ var stdin_default$W = vue.defineComponent({
10772
10800
  };
10773
10801
  }
10774
10802
  });
10775
- const Grid = withInstall(stdin_default$W);
10776
- var stdin_default$V = Grid;
10803
+ const Grid = withInstall(stdin_default$X);
10804
+ var stdin_default$W = Grid;
10777
10805
  const [name$C, bem$C] = createNamespace("grid-item");
10778
10806
  const gridItemProps = extend({}, routeProps, {
10779
10807
  dot: Boolean,
@@ -10784,7 +10812,7 @@ const gridItemProps = extend({}, routeProps, {
10784
10812
  iconPrefix: String,
10785
10813
  badgeProps: Object
10786
10814
  });
10787
- var stdin_default$U = vue.defineComponent({
10815
+ var stdin_default$V = vue.defineComponent({
10788
10816
  name: name$C,
10789
10817
  props: gridItemProps,
10790
10818
  setup(props, {
@@ -10908,8 +10936,8 @@ var stdin_default$U = vue.defineComponent({
10908
10936
  };
10909
10937
  }
10910
10938
  });
10911
- const GridItem = withInstall(stdin_default$U);
10912
- var stdin_default$T = GridItem;
10939
+ const GridItem = withInstall(stdin_default$V);
10940
+ var stdin_default$U = GridItem;
10913
10941
  const SubIcon = (bem2) => vue.createVNode("svg", {
10914
10942
  "class": bem2("svg-sub-icon"),
10915
10943
  "xmlns": "http://www.w3.org/2000/svg",
@@ -10930,7 +10958,7 @@ const BreadcrumbProps = {
10930
10958
  textKey: makeStringProp("name"),
10931
10959
  breadcrumbTitle: makeStringProp("全部")
10932
10960
  };
10933
- var stdin_default$S = vue.defineComponent({
10961
+ var stdin_default$T = vue.defineComponent({
10934
10962
  name: name$B,
10935
10963
  props: BreadcrumbProps,
10936
10964
  emits: ["chooseSenior"],
@@ -10954,7 +10982,7 @@ var stdin_default$S = vue.defineComponent({
10954
10982
  }
10955
10983
  }, [props.breadcrumbTitle]), props.data.map((item, index) => vue.createVNode("div", {
10956
10984
  "class": bem$B("item")
10957
- }, [vue.createVNode(stdin_default$1R, {
10985
+ }, [vue.createVNode(stdin_default$1S, {
10958
10986
  "class": bem$B("icon"),
10959
10987
  "name": "arrow-right",
10960
10988
  "color": "#C6CED9"
@@ -10994,6 +11022,10 @@ const hierarchySelectProps = {
10994
11022
  type: Boolean,
10995
11023
  default: false
10996
11024
  },
11025
+ showParentChecked: {
11026
+ type: Boolean,
11027
+ default: true
11028
+ },
10997
11029
  multiple: {
10998
11030
  type: Boolean,
10999
11031
  default: false
@@ -11011,7 +11043,7 @@ const hierarchySelectProps = {
11011
11043
  breadcrumbTitle: makeStringProp("全部"),
11012
11044
  autoChangeToChildren: Boolean
11013
11045
  };
11014
- var stdin_default$R = vue.defineComponent({
11046
+ var stdin_default$S = vue.defineComponent({
11015
11047
  name: name$A,
11016
11048
  props: hierarchySelectProps,
11017
11049
  emits: ["asyncGetter", "selected", "change", "update:checkedList"],
@@ -11106,6 +11138,9 @@ var stdin_default$R = vue.defineComponent({
11106
11138
  emitChange && emit("change", checkedList.value);
11107
11139
  };
11108
11140
  const selected = (item) => {
11141
+ if (showSub(item) && !props.showParentChecked) {
11142
+ return;
11143
+ }
11109
11144
  if (isDisabled(item) || item.disabled) {
11110
11145
  return;
11111
11146
  }
@@ -11211,7 +11246,7 @@ var stdin_default$R = vue.defineComponent({
11211
11246
  round: true,
11212
11247
  checked: getChecked(item)
11213
11248
  })
11214
- }, [vue.createVNode(stdin_default$1R, {
11249
+ }, [vue.createVNode(stdin_default$1S, {
11215
11250
  "name": "checkbox-select"
11216
11251
  }, null)]);
11217
11252
  }
@@ -11221,14 +11256,14 @@ var stdin_default$R = vue.defineComponent({
11221
11256
  checked: true,
11222
11257
  round: true
11223
11258
  })
11224
- }, [vue.createVNode(stdin_default$1R, {
11259
+ }, [vue.createVNode(stdin_default$1S, {
11225
11260
  "name": "checkbox-select"
11226
11261
  }, null)]) : vue.createVNode("span", {
11227
11262
  "class": bem$A("icon", {
11228
11263
  round: true,
11229
11264
  indeterminate
11230
11265
  })
11231
- }, [vue.createVNode(stdin_default$1R, {
11266
+ }, [vue.createVNode(stdin_default$1S, {
11232
11267
  "name": indeterminate ? "minus" : "check-blank-r",
11233
11268
  "class": bem$A("uncheck-icon")
11234
11269
  }, null)]);
@@ -11268,13 +11303,16 @@ var stdin_default$R = vue.defineComponent({
11268
11303
  dataList.value = historyLayers.value[index + 1];
11269
11304
  historyLayers.value.splice(index + 1);
11270
11305
  };
11306
+ const showRadio = (item) => {
11307
+ return !showSub(item) || showSub(item) && props.showParentChecked;
11308
+ };
11271
11309
  adapterHierarchTree(props.treeData, false);
11272
11310
  useExpose({
11273
11311
  toNodeLevel
11274
11312
  });
11275
11313
  return () => vue.createVNode("div", {
11276
11314
  "class": bem$A()
11277
- }, [vue.createVNode(stdin_default$S, {
11315
+ }, [vue.createVNode(stdin_default$T, {
11278
11316
  "data": breadcrumbData.value,
11279
11317
  "valueKey": props.valueKey,
11280
11318
  "textKey": props.textKey,
@@ -11282,7 +11320,7 @@ var stdin_default$R = vue.defineComponent({
11282
11320
  "breadcrumbTitle": props.breadcrumbTitle
11283
11321
  }, null), dataList.value.map((item, index) => vue.createVNode("div", {
11284
11322
  "class": [bem$A("score-item"), isDisabled(item) ? bem$A("disable-parent") : "", item.disabled ? bem$A("disable") : ""]
11285
- }, [props.multiple && vue.createVNode("div", {
11323
+ }, [props.multiple && showRadio(item) && vue.createVNode("div", {
11286
11324
  "class": bem$A("multiple-button"),
11287
11325
  "onClick": () => {
11288
11326
  multipleClicked(item);
@@ -11306,10 +11344,10 @@ var stdin_default$R = vue.defineComponent({
11306
11344
  }, [SubIcon(bem$A)]), vue.createVNode("span", null, [vue.createTextVNode("下级")])])])]))]);
11307
11345
  }
11308
11346
  });
11309
- const HierarchySelect = withInstall(stdin_default$R);
11347
+ const HierarchySelect = withInstall(stdin_default$S);
11310
11348
  const getDistance = (touches) => Math.sqrt((touches[0].clientX - touches[1].clientX) ** 2 + (touches[0].clientY - touches[1].clientY) ** 2);
11311
11349
  const bem$z = createNamespace("image-preview")[1];
11312
- var stdin_default$Q = vue.defineComponent({
11350
+ var stdin_default$R = vue.defineComponent({
11313
11351
  props: {
11314
11352
  src: String,
11315
11353
  show: Boolean,
@@ -11594,7 +11632,7 @@ const imagePreviewProps = {
11594
11632
  closeIconPosition: makeStringProp("top-right"),
11595
11633
  teleport: [String, Object]
11596
11634
  };
11597
- var stdin_default$P = vue.defineComponent({
11635
+ var stdin_default$Q = vue.defineComponent({
11598
11636
  name: name$z,
11599
11637
  props: imagePreviewProps,
11600
11638
  emits: ["scale", "close", "closed", "change", "longPress", "update:show"],
@@ -11682,7 +11720,7 @@ var stdin_default$P = vue.defineComponent({
11682
11720
  "onDragEnd": onDragEnd,
11683
11721
  "onDragStart": onDragStart
11684
11722
  }, {
11685
- default: () => [props.images.map((image, index) => vue.createVNode(stdin_default$Q, {
11723
+ default: () => [props.images.map((image, index) => vue.createVNode(stdin_default$R, {
11686
11724
  "src": image.url,
11687
11725
  "show": props.show,
11688
11726
  "active": state.active,
@@ -11789,7 +11827,7 @@ function initInstance$1() {
11789
11827
  const onClosed = () => {
11790
11828
  state.images = [];
11791
11829
  };
11792
- return () => vue.createVNode(stdin_default$P, vue.mergeProps(state, {
11830
+ return () => vue.createVNode(stdin_default$Q, vue.mergeProps(state, {
11793
11831
  "onClosed": onClosed,
11794
11832
  "onUpdate:show": toggle
11795
11833
  }), null);
@@ -11822,7 +11860,7 @@ const showImagePreview = (options, startPosition = 0) => {
11822
11860
  instance$1.open(extend({}, defaultConfig, options));
11823
11861
  return instance$1;
11824
11862
  };
11825
- const ImagePreview = withInstall(stdin_default$P);
11863
+ const ImagePreview = withInstall(stdin_default$Q);
11826
11864
  function genAlphabet() {
11827
11865
  const charCodeOfA = "A".charCodeAt(0);
11828
11866
  const indexList = Array(26).fill("").map((_, i) => String.fromCharCode(charCodeOfA + i));
@@ -11845,7 +11883,7 @@ const indexBarProps = {
11845
11883
  };
11846
11884
  const INDEX_BAR_KEY = Symbol(name$y);
11847
11885
  const MIN_CONTRACTION_NUM = 2;
11848
- var stdin_default$O = vue.defineComponent({
11886
+ var stdin_default$P = vue.defineComponent({
11849
11887
  name: name$y,
11850
11888
  props: indexBarProps,
11851
11889
  emits: ["select", "change", "anchorClick", "update:activeAnchor"],
@@ -12233,7 +12271,7 @@ const [name$x, bem$w] = createNamespace("index-anchor");
12233
12271
  const indexAnchorProps = {
12234
12272
  index: numericProp
12235
12273
  };
12236
- var stdin_default$N = vue.defineComponent({
12274
+ var stdin_default$O = vue.defineComponent({
12237
12275
  name: name$x,
12238
12276
  props: indexAnchorProps,
12239
12277
  setup(props, {
@@ -12306,8 +12344,8 @@ var stdin_default$N = vue.defineComponent({
12306
12344
  };
12307
12345
  }
12308
12346
  });
12309
- const IndexAnchor = withInstall(stdin_default$N);
12310
- const IndexBar = withInstall(stdin_default$O);
12347
+ const IndexAnchor = withInstall(stdin_default$O);
12348
+ const IndexBar = withInstall(stdin_default$P);
12311
12349
  const [name$w, bem$v, t$3] = createNamespace("list");
12312
12350
  const listProps = {
12313
12351
  error: Boolean,
@@ -12321,7 +12359,7 @@ const listProps = {
12321
12359
  finishedText: String,
12322
12360
  immediateCheck: truthProp
12323
12361
  };
12324
- var stdin_default$M = vue.defineComponent({
12362
+ var stdin_default$N = vue.defineComponent({
12325
12363
  name: name$w,
12326
12364
  props: listProps,
12327
12365
  emits: ["load", "update:error", "update:loading"],
@@ -12445,8 +12483,8 @@ var stdin_default$M = vue.defineComponent({
12445
12483
  };
12446
12484
  }
12447
12485
  });
12448
- const List = withInstall(stdin_default$M);
12449
- var stdin_default$L = vue.defineComponent({
12486
+ const List = withInstall(stdin_default$N);
12487
+ var stdin_default$M = vue.defineComponent({
12450
12488
  name: "DeleteIcon",
12451
12489
  setup() {
12452
12490
  return () => vue.createVNode("svg", {
@@ -12477,7 +12515,7 @@ const mediaPlayerProps = {
12477
12515
  mediaUrl: makeStringProp("")
12478
12516
  };
12479
12517
  const [name$v, bem$u] = createNamespace("media-player");
12480
- var stdin_default$K = vue.defineComponent({
12518
+ var stdin_default$L = vue.defineComponent({
12481
12519
  name: name$v,
12482
12520
  props: mediaPlayerProps,
12483
12521
  emits: ["update:show"],
@@ -12549,7 +12587,7 @@ var stdin_default$K = vue.defineComponent({
12549
12587
  }
12550
12588
  }
12551
12589
  };
12552
- return () => vue.createVNode(stdin_default$1O, {
12590
+ return () => vue.createVNode(stdin_default$1P, {
12553
12591
  "class": bem$u(),
12554
12592
  "show": props.show,
12555
12593
  "position": "bottom",
@@ -12569,9 +12607,9 @@ var stdin_default$K = vue.defineComponent({
12569
12607
  });
12570
12608
  }
12571
12609
  });
12572
- const MediaPlayer = withInstall(stdin_default$K);
12573
- var stdin_default$J = MediaPlayer;
12574
- var stdin_default$I = vue.defineComponent({
12610
+ const MediaPlayer = withInstall(stdin_default$L);
12611
+ var stdin_default$K = MediaPlayer;
12612
+ var stdin_default$J = vue.defineComponent({
12575
12613
  name: "DefaultVideoIcon",
12576
12614
  setup() {
12577
12615
  return () => vue.createVNode("svg", {
@@ -12685,7 +12723,7 @@ var stdin_default$I = vue.defineComponent({
12685
12723
  }, null)])]);
12686
12724
  }
12687
12725
  });
12688
- var stdin_default$H = vue.defineComponent({
12726
+ var stdin_default$I = vue.defineComponent({
12689
12727
  name: "DefaultAudioIcon",
12690
12728
  setup() {
12691
12729
  return () => vue.createVNode("svg", {
@@ -12778,7 +12816,7 @@ var stdin_default$H = vue.defineComponent({
12778
12816
  }, null)])])]);
12779
12817
  }
12780
12818
  });
12781
- var stdin_default$G = vue.defineComponent({
12819
+ var stdin_default$H = vue.defineComponent({
12782
12820
  name: "DefaultFileIcon",
12783
12821
  setup() {
12784
12822
  return () => vue.createVNode("svg", {
@@ -12860,7 +12898,7 @@ var stdin_default$G = vue.defineComponent({
12860
12898
  }, null)])])]);
12861
12899
  }
12862
12900
  });
12863
- var stdin_default$F = vue.defineComponent({
12901
+ var stdin_default$G = vue.defineComponent({
12864
12902
  name: "TakePhotoIcon",
12865
12903
  setup() {
12866
12904
  return () => vue.createVNode("svg", {
@@ -12882,7 +12920,7 @@ var stdin_default$F = vue.defineComponent({
12882
12920
  }, null)])])]);
12883
12921
  }
12884
12922
  });
12885
- var stdin_default$E = vue.defineComponent({
12923
+ var stdin_default$F = vue.defineComponent({
12886
12924
  name: "PickPhotoIcon",
12887
12925
  setup() {
12888
12926
  return () => vue.createVNode("svg", {
@@ -12904,7 +12942,7 @@ var stdin_default$E = vue.defineComponent({
12904
12942
  }, null)])])]);
12905
12943
  }
12906
12944
  });
12907
- var stdin_default$D = vue.defineComponent({
12945
+ var stdin_default$E = vue.defineComponent({
12908
12946
  name: "TakeVideoIcon",
12909
12947
  setup() {
12910
12948
  return () => vue.createVNode("svg", {
@@ -12926,7 +12964,7 @@ var stdin_default$D = vue.defineComponent({
12926
12964
  }, null)])])]);
12927
12965
  }
12928
12966
  });
12929
- var stdin_default$C = vue.defineComponent({
12967
+ var stdin_default$D = vue.defineComponent({
12930
12968
  name: "TakeAudioIcon",
12931
12969
  setup() {
12932
12970
  return () => vue.createVNode("svg", {
@@ -12948,7 +12986,7 @@ var stdin_default$C = vue.defineComponent({
12948
12986
  }, null)])])]);
12949
12987
  }
12950
12988
  });
12951
- var stdin_default$B = vue.defineComponent({
12989
+ var stdin_default$C = vue.defineComponent({
12952
12990
  name: "PickFileIcon",
12953
12991
  setup() {
12954
12992
  return () => vue.createVNode("svg", {
@@ -13986,6 +14024,68 @@ class ImageProcessor {
13986
14024
  );
13987
14025
  }
13988
14026
  }
14027
+ const chooseImage = (type) => {
14028
+ return new Promise((resolve, reject) => {
14029
+ window.wx.chooseImage({
14030
+ count: 1,
14031
+ sizeType: ["original", "compressed"],
14032
+ // 可以指定是原图还是压缩图,默认二者都有
14033
+ sourceType: [type],
14034
+ // 可以指定来源是相册还是相机,默认二者都有
14035
+ success: function({ localIds }) {
14036
+ resolve(localIds);
14037
+ },
14038
+ fail: function(res) {
14039
+ reject(res);
14040
+ }
14041
+ });
14042
+ });
14043
+ };
14044
+ const uploadImage = (localId) => {
14045
+ return new Promise((resolve, reject) => {
14046
+ window.wx.uploadImage({
14047
+ localId,
14048
+ // 需要上传的图片的本地ID,由chooseImage接口获得
14049
+ isShowProgressTips: 1,
14050
+ // 默认为1,显示进度提示
14051
+ success: function({ serverId }) {
14052
+ resolve(serverId);
14053
+ },
14054
+ fail: function(res) {
14055
+ reject(res);
14056
+ }
14057
+ });
14058
+ });
14059
+ };
14060
+ const wxUploadImage = (type) => {
14061
+ return new Promise((resolve) => {
14062
+ const newMedias = [];
14063
+ chooseImage(type).then((localIds) => {
14064
+ const time = (/* @__PURE__ */ new Date()).getTime().toString();
14065
+ const media = {
14066
+ type: "photo",
14067
+ uniqueCode: time,
14068
+ fileSize: 0,
14069
+ fileName: time,
14070
+ originalName: time,
14071
+ originalSize: 0,
14072
+ lastModified: 0,
14073
+ deletable: true
14074
+ };
14075
+ localIds.forEach((localId) => {
14076
+ media.showSrc = localId;
14077
+ media.url = localId;
14078
+ uploadImage(localId).then((serverId) => {
14079
+ media.wxServerId = serverId;
14080
+ newMedias.push(media);
14081
+ if (newMedias.length === localIds.length) {
14082
+ resolve(newMedias);
14083
+ }
14084
+ });
14085
+ });
14086
+ });
14087
+ });
14088
+ };
13989
14089
  const [name$u, bem$t] = createNamespace("media-picker");
13990
14090
  const FILE_SIZE_LIMIT = 100;
13991
14091
  const mediaPickerProps = {
@@ -14035,9 +14135,11 @@ const mediaPickerProps = {
14035
14135
  // 文件读取完成后的回调函数,获取到对应的 media 对象
14036
14136
  afterRead: Function,
14037
14137
  // 文件删除前的回调函数,返回 false 可终止文件读取,支持返回 Promise
14038
- beforeDelete: Function
14138
+ beforeDelete: Function,
14139
+ // 是否强制使用微信
14140
+ useWx: Boolean
14039
14141
  };
14040
- var stdin_default$A = vue.defineComponent({
14142
+ var stdin_default$B = vue.defineComponent({
14041
14143
  name: name$u,
14042
14144
  props: mediaPickerProps,
14043
14145
  emits: ["update:mediaList", "delete"],
@@ -14091,10 +14193,17 @@ var stdin_default$A = vue.defineComponent({
14091
14193
  return;
14092
14194
  }
14093
14195
  if (mediaType === "photo") {
14094
- if (mediaAddType === "take") {
14095
- triggerHiddenInput(cameraInputRef.value);
14096
- } else if (mediaAddType === "pick") {
14097
- triggerHiddenInput(imageInputRef.value);
14196
+ if (props.useWx && isWeixin() && window.wx) {
14197
+ const type = mediaAddType === "take" ? "camera" : "album";
14198
+ wxUploadImage(type).then((newMedias) => {
14199
+ emit("update:mediaList", [...props.mediaList, ...newMedias]);
14200
+ });
14201
+ } else {
14202
+ if (mediaAddType === "take") {
14203
+ triggerHiddenInput(cameraInputRef.value);
14204
+ } else if (mediaAddType === "pick") {
14205
+ triggerHiddenInput(imageInputRef.value);
14206
+ }
14098
14207
  }
14099
14208
  } else if (mediaType === "video") {
14100
14209
  if (mediaAddType === "take") {
@@ -14426,24 +14535,24 @@ var stdin_default$A = vue.defineComponent({
14426
14535
  const renderIcon = (mediaType, mediaAddType) => {
14427
14536
  if (mediaType === "photo") {
14428
14537
  if (mediaAddType === "take") {
14429
- return vue.createVNode(stdin_default$F, {
14538
+ return vue.createVNode(stdin_default$G, {
14430
14539
  "class": bem$t("icon")
14431
14540
  }, null);
14432
14541
  } else if (mediaAddType === "pick") {
14433
- return vue.createVNode(stdin_default$E, {
14542
+ return vue.createVNode(stdin_default$F, {
14434
14543
  "class": bem$t("icon")
14435
14544
  }, null);
14436
14545
  }
14437
14546
  } else if (mediaType === "video") {
14438
- return vue.createVNode(stdin_default$D, {
14547
+ return vue.createVNode(stdin_default$E, {
14439
14548
  "class": bem$t("icon")
14440
14549
  }, null);
14441
14550
  } else if (mediaType === "audio") {
14442
- return vue.createVNode(stdin_default$C, {
14551
+ return vue.createVNode(stdin_default$D, {
14443
14552
  "class": bem$t("icon")
14444
14553
  }, null);
14445
14554
  } else if (mediaType === "file") {
14446
- return vue.createVNode(stdin_default$B, {
14555
+ return vue.createVNode(stdin_default$C, {
14447
14556
  "class": bem$t("icon")
14448
14557
  }, null);
14449
14558
  }
@@ -14509,10 +14618,10 @@ var stdin_default$A = vue.defineComponent({
14509
14618
  message
14510
14619
  } = media;
14511
14620
  if (status === "uploading" || status === "failed") {
14512
- const MaskIcon = status === "failed" ? vue.createVNode(stdin_default$1R, {
14621
+ const MaskIcon = status === "failed" ? vue.createVNode(stdin_default$1S, {
14513
14622
  "name": "close",
14514
14623
  "class": bem$t("mask-icon")
14515
- }, null) : vue.createVNode(stdin_default$1M, {
14624
+ }, null) : vue.createVNode(stdin_default$1N, {
14516
14625
  "class": bem$t("loading")
14517
14626
  }, null);
14518
14627
  const showMessage = isDef(message) && message !== "";
@@ -14530,22 +14639,27 @@ var stdin_default$A = vue.defineComponent({
14530
14639
  emit("delete", media, index);
14531
14640
  };
14532
14641
  const renderMediaThumbnail = (media) => {
14533
- if (media.showSrc) {
14534
- return vue.createVNode(stdin_default$1I, {
14535
- "src": media.showSrc,
14536
- "fit": "cover",
14537
- "radius": "4"
14642
+ if (media.type === "video") {
14643
+ return vue.createVNode(stdin_default$J, {
14644
+ "class": bem$t("thumbnail")
14538
14645
  }, null);
14539
- } else if (media.type === "video") {
14646
+ } else if (media.type === "audio") {
14540
14647
  return vue.createVNode(stdin_default$I, {
14541
14648
  "class": bem$t("thumbnail")
14542
14649
  }, null);
14543
- } else if (media.type === "audio") {
14650
+ } else if (media.type === "file") {
14544
14651
  return vue.createVNode(stdin_default$H, {
14545
14652
  "class": bem$t("thumbnail")
14546
14653
  }, null);
14547
- } else if (media.type === "file") {
14548
- return vue.createVNode(stdin_default$G, {
14654
+ } else if (media.type === "photo") {
14655
+ const thumbnailUrl = media.showSrc || media.url;
14656
+ return vue.createVNode(stdin_default$1J, {
14657
+ "src": thumbnailUrl,
14658
+ "fit": "cover",
14659
+ "radius": "4"
14660
+ }, null);
14661
+ } else {
14662
+ return vue.createVNode(stdin_default$H, {
14549
14663
  "class": bem$t("thumbnail")
14550
14664
  }, null);
14551
14665
  }
@@ -14604,14 +14718,14 @@ var stdin_default$A = vue.defineComponent({
14604
14718
  };
14605
14719
  const renderMediaList = () => props.mediaList.map((media, index) => {
14606
14720
  const showDelete = media.deletable && media.status !== "uploading";
14607
- const deleteIcon = showDelete && vue.createVNode(stdin_default$L, {
14721
+ const deleteIcon = showDelete && vue.createVNode(stdin_default$M, {
14608
14722
  "class": bem$t("delete"),
14609
14723
  "onClick": (event) => {
14610
14724
  event.stopPropagation();
14611
14725
  onDelete(media, index);
14612
14726
  }
14613
14727
  }, null);
14614
- return vue.createVNode(stdin_default$T, {
14728
+ return vue.createVNode(stdin_default$U, {
14615
14729
  "key": media.uniqueCode,
14616
14730
  "onClick": () => previewMedia(index)
14617
14731
  }, {
@@ -14626,14 +14740,15 @@ var stdin_default$A = vue.defineComponent({
14626
14740
  const title = props.showTitle && vue.createVNode("div", {
14627
14741
  "class": bem$t("title")
14628
14742
  }, [props.title]);
14743
+ const showButtons = props.allowTakePhoto || props.allowPickPhoto || props.allowTakeVideo || props.allowPickVideo || props.allowTakeAudio || props.allowPickAudio || props.allowPickFile;
14629
14744
  return vue.createVNode("div", {
14630
14745
  "class": bem$t()
14631
- }, [title, hiddenInput(), vue.createVNode(stdin_default$J, {
14746
+ }, [title, hiddenInput(), vue.createVNode(stdin_default$K, {
14632
14747
  "show": mediaPlayerVisible.value,
14633
14748
  "onUpdate:show": ($event) => mediaPlayerVisible.value = $event,
14634
14749
  "mediaType": mediaTypeToPlay.value,
14635
14750
  "mediaUrl": mediaUrlToPlay.value
14636
- }, null), vue.createVNode(stdin_default$1K, {
14751
+ }, null), vue.createVNode(stdin_default$1L, {
14637
14752
  "show": actionVisible.value,
14638
14753
  "onUpdate:show": ($event) => actionVisible.value = $event,
14639
14754
  "actions": actionOptions.value,
@@ -14641,9 +14756,9 @@ var stdin_default$A = vue.defineComponent({
14641
14756
  "cancel-text": "取消",
14642
14757
  "close-on-click-action": true,
14643
14758
  "onSelect": selectAction
14644
- }, null), vue.createVNode("div", {
14759
+ }, null), vue.withDirectives(vue.createVNode("div", {
14645
14760
  "class": bem$t("line")
14646
- }, [renderButtons()]), vue.withDirectives(vue.createVNode(stdin_default$V, {
14761
+ }, [renderButtons()]), [[vue.vShow, showButtons]]), vue.withDirectives(vue.createVNode(stdin_default$W, {
14647
14762
  "column-num": "3",
14648
14763
  "border": false,
14649
14764
  "square": true,
@@ -14655,7 +14770,16 @@ var stdin_default$A = vue.defineComponent({
14655
14770
  };
14656
14771
  }
14657
14772
  });
14658
- const MediaPicker = withInstall(stdin_default$A);
14773
+ const defaultMedia = {
14774
+ uniqueCode: "",
14775
+ fileSize: 0,
14776
+ fileName: "",
14777
+ originalName: "",
14778
+ originalSize: 0,
14779
+ lastModified: 0,
14780
+ deletable: false
14781
+ };
14782
+ const MediaPicker = withInstall(stdin_default$B);
14659
14783
  const [name$t, bem$s] = createNamespace("multiple-picker-options");
14660
14784
  const multiplePickerOptionsProps = {
14661
14785
  textKey: makeStringProp(""),
@@ -14666,7 +14790,7 @@ const multiplePickerOptionsProps = {
14666
14790
  initialOptions: makeArrayProp([]),
14667
14791
  currentIndexes: makeArrayProp([])
14668
14792
  };
14669
- var stdin_default$z = vue.defineComponent({
14793
+ var stdin_default$A = vue.defineComponent({
14670
14794
  name: name$t,
14671
14795
  props: multiplePickerOptionsProps,
14672
14796
  emits: ["change", "update:currentIndexes"],
@@ -14779,7 +14903,7 @@ const multiplePickerProps = {
14779
14903
  selectedValue: makeArrayProp([]),
14780
14904
  popup: truthProp
14781
14905
  };
14782
- var stdin_default$y = vue.defineComponent({
14906
+ var stdin_default$z = vue.defineComponent({
14783
14907
  name: name$s,
14784
14908
  props: multiplePickerProps,
14785
14909
  emits: ["cancel", "confirm", "change", "update:showPicker", "update:selectedIndex", "update:selectedValue"],
@@ -14858,7 +14982,7 @@ var stdin_default$y = vue.defineComponent({
14858
14982
  };
14859
14983
  const genCancel = () => {
14860
14984
  const text = props.cancelButtonText || "取消";
14861
- return vue.createVNode(stdin_default$1F, {
14985
+ return vue.createVNode(stdin_default$1G, {
14862
14986
  "size": "normal",
14863
14987
  "block": true,
14864
14988
  "style": {
@@ -14871,7 +14995,7 @@ var stdin_default$y = vue.defineComponent({
14871
14995
  };
14872
14996
  const genConfirm = () => {
14873
14997
  const text = props.confirmButtonText || "确定";
14874
- return vue.createVNode(stdin_default$1F, {
14998
+ return vue.createVNode(stdin_default$1G, {
14875
14999
  "type": "primary",
14876
15000
  "size": "normal",
14877
15001
  "block": true,
@@ -14900,7 +15024,7 @@ var stdin_default$y = vue.defineComponent({
14900
15024
  } else {
14901
15025
  formatOptions = props.options;
14902
15026
  }
14903
- return vue.createVNode(stdin_default$z, {
15027
+ return vue.createVNode(stdin_default$A, {
14904
15028
  "ref": pickerOptions,
14905
15029
  "currentIndexes": confirmIndexes.value,
14906
15030
  "onUpdate:currentIndexes": ($event) => confirmIndexes.value = $event,
@@ -14920,12 +15044,12 @@ var stdin_default$y = vue.defineComponent({
14920
15044
  }, [genOptionItems()]);
14921
15045
  const renderMultiplePicker = () => vue.createVNode("div", {
14922
15046
  "class": bem$r()
14923
- }, [genTitle(), props.loading ? vue.createVNode(stdin_default$1M, {
15047
+ }, [genTitle(), props.loading ? vue.createVNode(stdin_default$1N, {
14924
15048
  "class": bem$r("loading")
14925
15049
  }, null) : "", genOptions2(), props.toolbarPosition === "bottom" ? genToolbar() : ""]);
14926
15050
  return () => {
14927
15051
  if (props.popup) {
14928
- return vue.createVNode(stdin_default$1O, {
15052
+ return vue.createVNode(stdin_default$1P, {
14929
15053
  "show": currentShow.value,
14930
15054
  "onUpdate:show": [($event) => currentShow.value = $event, updateShow],
14931
15055
  "round": true,
@@ -14941,7 +15065,7 @@ var stdin_default$y = vue.defineComponent({
14941
15065
  };
14942
15066
  }
14943
15067
  });
14944
- const MultiplePicker = withInstall(stdin_default$y);
15068
+ const MultiplePicker = withInstall(stdin_default$z);
14945
15069
  function usePlaceholder(contentRef, bem2) {
14946
15070
  const height = useHeight(contentRef, true);
14947
15071
  return (renderContent) => vue.createVNode("div", {
@@ -14968,7 +15092,7 @@ const navBarProps = {
14968
15092
  navBarBackground: String,
14969
15093
  leftBtnStyle: Object
14970
15094
  };
14971
- var stdin_default$x = vue.defineComponent({
15095
+ var stdin_default$y = vue.defineComponent({
14972
15096
  name: name$r,
14973
15097
  props: navBarProps,
14974
15098
  emits: ["clickLeft", "clickRight"],
@@ -15057,7 +15181,7 @@ var stdin_default$x = vue.defineComponent({
15057
15181
  };
15058
15182
  }
15059
15183
  });
15060
- const NavBar = withInstall(stdin_default$x);
15184
+ const NavBar = withInstall(stdin_default$y);
15061
15185
  const [name$q, bem$p] = createNamespace("notice-bar");
15062
15186
  const noticeBarProps = {
15063
15187
  text: String,
@@ -15073,7 +15197,7 @@ const noticeBarProps = {
15073
15197
  default: null
15074
15198
  }
15075
15199
  };
15076
- var stdin_default$w = vue.defineComponent({
15200
+ var stdin_default$x = vue.defineComponent({
15077
15201
  name: name$q,
15078
15202
  props: noticeBarProps,
15079
15203
  emits: ["close", "replay"],
@@ -15096,7 +15220,7 @@ var stdin_default$w = vue.defineComponent({
15096
15220
  return slots["left-icon"]();
15097
15221
  }
15098
15222
  if (props.leftIcon) {
15099
- return vue.createVNode(stdin_default$1R, {
15223
+ return vue.createVNode(stdin_default$1S, {
15100
15224
  "class": bem$p("left-icon"),
15101
15225
  "name": props.leftIcon
15102
15226
  }, null);
@@ -15122,7 +15246,7 @@ var stdin_default$w = vue.defineComponent({
15122
15246
  }
15123
15247
  const name2 = getRightIconName();
15124
15248
  if (name2) {
15125
- return vue.createVNode(stdin_default$1R, {
15249
+ return vue.createVNode(stdin_default$1S, {
15126
15250
  "name": name2,
15127
15251
  "class": bem$p("right-icon"),
15128
15252
  "onClick": onClickRightIcon
@@ -15213,7 +15337,7 @@ var stdin_default$w = vue.defineComponent({
15213
15337
  };
15214
15338
  }
15215
15339
  });
15216
- const NoticeBar = withInstall(stdin_default$w);
15340
+ const NoticeBar = withInstall(stdin_default$x);
15217
15341
  const [name$p, bem$o] = createNamespace("notify");
15218
15342
  const notifyProps = extend({}, popupSharedProps, {
15219
15343
  type: makeStringProp("danger"),
@@ -15224,7 +15348,7 @@ const notifyProps = extend({}, popupSharedProps, {
15224
15348
  background: String,
15225
15349
  lockScroll: Boolean
15226
15350
  });
15227
- var stdin_default$v = vue.defineComponent({
15351
+ var stdin_default$w = vue.defineComponent({
15228
15352
  name: name$p,
15229
15353
  props: notifyProps,
15230
15354
  emits: ["update:show"],
@@ -15264,7 +15388,7 @@ function initInstance() {
15264
15388
  state,
15265
15389
  toggle
15266
15390
  } = usePopupState();
15267
- return () => vue.createVNode(stdin_default$v, vue.mergeProps(state, {
15391
+ return () => vue.createVNode(stdin_default$w, vue.mergeProps(state, {
15268
15392
  "onUpdate:show": toggle
15269
15393
  }), null);
15270
15394
  }
@@ -15308,17 +15432,17 @@ const setNotifyDefaultOptions = (options) => extend(currentOptions, options);
15308
15432
  const resetNotifyDefaultOptions = () => {
15309
15433
  currentOptions = getDefaultOptions();
15310
15434
  };
15311
- const Notify = withInstall(stdin_default$v);
15435
+ const Notify = withInstall(stdin_default$w);
15312
15436
  const [name$o, bem$n] = createNamespace("key");
15313
- const CollapseIcon = vue.createVNode(stdin_default$1R, {
15437
+ const CollapseIcon = vue.createVNode(stdin_default$1S, {
15314
15438
  "name": "keyboard-shrink",
15315
15439
  "size": "40"
15316
15440
  }, null);
15317
- const DeleteIcon = vue.createVNode(stdin_default$1R, {
15441
+ const DeleteIcon = vue.createVNode(stdin_default$1S, {
15318
15442
  "name": "backspace",
15319
15443
  "size": "40"
15320
15444
  }, null);
15321
- var stdin_default$u = vue.defineComponent({
15445
+ var stdin_default$v = vue.defineComponent({
15322
15446
  name: name$o,
15323
15447
  props: {
15324
15448
  type: String,
@@ -15421,7 +15545,7 @@ function shuffle(array) {
15421
15545
  }
15422
15546
  return array;
15423
15547
  }
15424
- var stdin_default$t = vue.defineComponent({
15548
+ var stdin_default$u = vue.defineComponent({
15425
15549
  name: name$n,
15426
15550
  props: numberKeyboardProps,
15427
15551
  emits: ["show", "hide", "blur", "input", "close", "delete", "update:modelValue"],
@@ -15533,7 +15657,7 @@ var stdin_default$t = vue.defineComponent({
15533
15657
  if (key.type === "extra") {
15534
15658
  keySlots.default = slots["extra-key"];
15535
15659
  }
15536
- return vue.createVNode(stdin_default$u, {
15660
+ return vue.createVNode(stdin_default$v, {
15537
15661
  "key": key.text,
15538
15662
  "text": key.text,
15539
15663
  "type": key.type,
@@ -15546,14 +15670,14 @@ var stdin_default$t = vue.defineComponent({
15546
15670
  if (props.theme === "custom") {
15547
15671
  return vue.createVNode("div", {
15548
15672
  "class": bem$m("sidebar")
15549
- }, [props.showDeleteKey && vue.createVNode(stdin_default$u, {
15673
+ }, [props.showDeleteKey && vue.createVNode(stdin_default$v, {
15550
15674
  "large": true,
15551
15675
  "text": props.deleteButtonText,
15552
15676
  "type": "delete",
15553
15677
  "onPress": onPress
15554
15678
  }, {
15555
15679
  delete: slots.delete
15556
- }), vue.createVNode(stdin_default$u, {
15680
+ }), vue.createVNode(stdin_default$v, {
15557
15681
  "large": true,
15558
15682
  "text": props.closeButtonText,
15559
15683
  "type": "close",
@@ -15607,7 +15731,7 @@ var stdin_default$t = vue.defineComponent({
15607
15731
  };
15608
15732
  }
15609
15733
  });
15610
- const NumberKeyboard = withInstall(stdin_default$t);
15734
+ const NumberKeyboard = withInstall(stdin_default$u);
15611
15735
  const [name$m, bem$l] = createNamespace("password-input");
15612
15736
  const passwordInputProps = {
15613
15737
  info: String,
@@ -15618,7 +15742,7 @@ const passwordInputProps = {
15618
15742
  focused: Boolean,
15619
15743
  errorInfo: String
15620
15744
  };
15621
- var stdin_default$s = vue.defineComponent({
15745
+ var stdin_default$t = vue.defineComponent({
15622
15746
  name: name$m,
15623
15747
  props: passwordInputProps,
15624
15748
  emits: ["focus"],
@@ -15680,7 +15804,7 @@ var stdin_default$s = vue.defineComponent({
15680
15804
  };
15681
15805
  }
15682
15806
  });
15683
- const PasswordInput = withInstall(stdin_default$s);
15807
+ const PasswordInput = withInstall(stdin_default$t);
15684
15808
  var __async = (__this, __arguments, generator) => {
15685
15809
  return new Promise((resolve, reject) => {
15686
15810
  var fulfilled = (value) => {
@@ -15731,7 +15855,7 @@ const popoverProps = {
15731
15855
  default: false
15732
15856
  }
15733
15857
  };
15734
- var stdin_default$r = vue.defineComponent({
15858
+ var stdin_default$s = vue.defineComponent({
15735
15859
  name: name$l,
15736
15860
  props: popoverProps,
15737
15861
  emits: ["select", "touchstart", "update:show"],
@@ -15952,7 +16076,7 @@ var stdin_default$r = vue.defineComponent({
15952
16076
  };
15953
16077
  }
15954
16078
  });
15955
- const Popover = withInstall(stdin_default$r);
16079
+ const Popover = withInstall(stdin_default$s);
15956
16080
  const [name$k, bem$j, t$2] = createNamespace("pull-refresh");
15957
16081
  const DEFAULT_HEAD_HEIGHT = 50;
15958
16082
  const TEXT_STATUS = ["pulling", "loosing", "success"];
@@ -15969,7 +16093,7 @@ const pullRefreshProps = {
15969
16093
  animationDuration: makeNumericProp(300),
15970
16094
  scrollElement: null
15971
16095
  };
15972
- var stdin_default$q = vue.defineComponent({
16096
+ var stdin_default$r = vue.defineComponent({
15973
16097
  name: name$k,
15974
16098
  props: pullRefreshProps,
15975
16099
  emits: ["change", "refresh", "update:modelValue"],
@@ -16151,7 +16275,7 @@ var stdin_default$q = vue.defineComponent({
16151
16275
  };
16152
16276
  }
16153
16277
  });
16154
- const PullRefresh = withInstall(stdin_default$q);
16278
+ const PullRefresh = withInstall(stdin_default$r);
16155
16279
  const [name$j, bem$i] = createNamespace("radio-group");
16156
16280
  const radioGroupProps = {
16157
16281
  disabled: Boolean,
@@ -16161,7 +16285,7 @@ const radioGroupProps = {
16161
16285
  checkedColor: String
16162
16286
  };
16163
16287
  const RADIO_KEY = Symbol(name$j);
16164
- var stdin_default$p = vue.defineComponent({
16288
+ var stdin_default$q = vue.defineComponent({
16165
16289
  name: name$j,
16166
16290
  props: radioGroupProps,
16167
16291
  emits: ["change", "update:modelValue"],
@@ -16189,7 +16313,7 @@ var stdin_default$p = vue.defineComponent({
16189
16313
  }
16190
16314
  });
16191
16315
  const [name$i, bem$h] = createNamespace("radio");
16192
- var stdin_default$o = vue.defineComponent({
16316
+ var stdin_default$p = vue.defineComponent({
16193
16317
  name: name$i,
16194
16318
  props: checkerProps,
16195
16319
  emits: ["update:modelValue"],
@@ -16211,7 +16335,7 @@ var stdin_default$o = vue.defineComponent({
16211
16335
  emit("update:modelValue", props.name);
16212
16336
  }
16213
16337
  };
16214
- return () => vue.createVNode(stdin_default$1n, vue.mergeProps({
16338
+ return () => vue.createVNode(stdin_default$1o, vue.mergeProps({
16215
16339
  "bem": bem$h,
16216
16340
  "role": "radio",
16217
16341
  "parent": parent,
@@ -16220,8 +16344,8 @@ var stdin_default$o = vue.defineComponent({
16220
16344
  }, props), pick(slots, ["default", "icon"]));
16221
16345
  }
16222
16346
  });
16223
- const Radio = withInstall(stdin_default$o);
16224
- const RadioGroup = withInstall(stdin_default$p);
16347
+ const Radio = withInstall(stdin_default$p);
16348
+ const RadioGroup = withInstall(stdin_default$q);
16225
16349
  const [name$h, bem$g, t$1] = createNamespace("radio-picker");
16226
16350
  const getFirstEnabledOption = (options) => options.find((option) => !option.disabled) || options[0];
16227
16351
  function getColumnsType(columns, fields) {
@@ -16293,7 +16417,7 @@ const MOMENTUM_TIME = 300;
16293
16417
  const MOMENTUM_DISTANCE = 15;
16294
16418
  const [name$g, bem$f] = createNamespace("radio-picker-column");
16295
16419
  const PICKER_KEY = Symbol(name$g);
16296
- var stdin_default$n = vue.defineComponent({
16420
+ var stdin_default$o = vue.defineComponent({
16297
16421
  name: name$g,
16298
16422
  props: {
16299
16423
  value: numericProp,
@@ -16458,7 +16582,7 @@ var stdin_default$n = vue.defineComponent({
16458
16582
  const childData = {
16459
16583
  [props.allowHtml || isSearchedTrans ? "innerHTML" : "textContent"]: text
16460
16584
  };
16461
- return vue.createVNode(stdin_default$o, data, {
16585
+ return vue.createVNode(stdin_default$p, data, {
16462
16586
  default: () => [slots.option ? slots.option({
16463
16587
  option,
16464
16588
  searchValue: props.autoSearchVal
@@ -16479,7 +16603,7 @@ var stdin_default$n = vue.defineComponent({
16479
16603
  if (slots.searchEmpty) {
16480
16604
  return (_a = slots.searchEmpty) == null ? void 0 : _a.call(slots);
16481
16605
  }
16482
- return vue.createVNode(stdin_default$Z, {
16606
+ return vue.createVNode(stdin_default$_, {
16483
16607
  "class": bem$f("search-empty"),
16484
16608
  "image": "no-search-result"
16485
16609
  }, {
@@ -16504,7 +16628,7 @@ var stdin_default$n = vue.defineComponent({
16504
16628
  },
16505
16629
  "class": bem$f("wrapper"),
16506
16630
  "onTransitionend": stopMomentum
16507
- }, [vue.createVNode(stdin_default$p, {
16631
+ }, [vue.createVNode(stdin_default$q, {
16508
16632
  "modelValue": props.value
16509
16633
  }, {
16510
16634
  default: () => [renderOptions()]
@@ -16518,7 +16642,7 @@ const pickerToolbarProps = {
16518
16642
  };
16519
16643
  const pickerToolbarSlots = ["cancel", "confirm", "title", "toolbar"];
16520
16644
  const pickerToolbarPropKeys = Object.keys(pickerToolbarProps);
16521
- var stdin_default$m = vue.defineComponent({
16645
+ var stdin_default$n = vue.defineComponent({
16522
16646
  name: name$f,
16523
16647
  props: pickerToolbarProps,
16524
16648
  emits: ["confirm", "cancel"],
@@ -16634,7 +16758,7 @@ const radioPickerProps = extend({}, pickerSharedProps, {
16634
16758
  autoSearch: truthProp,
16635
16759
  searchPlaceholder: makeStringProp("请搜索")
16636
16760
  });
16637
- var stdin_default$l = vue.defineComponent({
16761
+ var stdin_default$m = vue.defineComponent({
16638
16762
  name: name$h,
16639
16763
  props: radioPickerProps,
16640
16764
  emits: ["confirm", "cancel", "change", "clickOption", "update:modelValue", "update:showPicker"],
@@ -16736,7 +16860,7 @@ var stdin_default$l = vue.defineComponent({
16736
16860
  emit("cancel", getEventParams());
16737
16861
  };
16738
16862
  const updateShow = (value) => emit("update:showPicker", value);
16739
- const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$n, {
16863
+ const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$o, {
16740
16864
  "value": selectedValues.value[columnIndex],
16741
16865
  "fields": fields.value,
16742
16866
  "options": options,
@@ -16782,7 +16906,7 @@ var stdin_default$l = vue.defineComponent({
16782
16906
  if (props.searchable) {
16783
16907
  return vue.createVNode("div", {
16784
16908
  "class": bem$g("search")
16785
- }, [vue.createVNode(stdin_default$13, {
16909
+ }, [vue.createVNode(stdin_default$14, {
16786
16910
  "show-action": !props.autoSearch,
16787
16911
  "modelValue": searchVal.value,
16788
16912
  "placeholder": props.searchPlaceholder,
@@ -16804,7 +16928,7 @@ var stdin_default$l = vue.defineComponent({
16804
16928
  };
16805
16929
  const renderToolbar = () => {
16806
16930
  if (props.showToolbar) {
16807
- return vue.createVNode(stdin_default$m, vue.mergeProps(pick(props, pickerToolbarPropKeys), {
16931
+ return vue.createVNode(stdin_default$n, vue.mergeProps(pick(props, pickerToolbarPropKeys), {
16808
16932
  "onConfirm": confirm,
16809
16933
  "onCancel": cancel
16810
16934
  }), pick(slots, pickerToolbarSlots));
@@ -16870,7 +16994,7 @@ var stdin_default$l = vue.defineComponent({
16870
16994
  };
16871
16995
  return () => {
16872
16996
  if (props.popup) {
16873
- return vue.createVNode(stdin_default$1O, {
16997
+ return vue.createVNode(stdin_default$1P, {
16874
16998
  "show": showPicker.value,
16875
16999
  "onUpdate:show": [($event) => showPicker.value = $event, updateShow],
16876
17000
  "round": true,
@@ -16883,7 +17007,7 @@ var stdin_default$l = vue.defineComponent({
16883
17007
  };
16884
17008
  }
16885
17009
  });
16886
- const RadioPicker = withInstall(stdin_default$l);
17010
+ const RadioPicker = withInstall(stdin_default$m);
16887
17011
  const [name$e, bem$e] = createNamespace("rate");
16888
17012
  function getRateStatus(value, index, allowHalf, readonly) {
16889
17013
  if (value >= index) {
@@ -16926,7 +17050,7 @@ const rateProps = {
16926
17050
  modelValue: makeNumberProp(0),
16927
17051
  disabledColor: String
16928
17052
  };
16929
- var stdin_default$k = vue.defineComponent({
17053
+ var stdin_default$l = vue.defineComponent({
16930
17054
  name: name$e,
16931
17055
  props: rateProps,
16932
17056
  emits: ["change", "update:modelValue"],
@@ -17091,8 +17215,8 @@ var stdin_default$k = vue.defineComponent({
17091
17215
  }, [list.value.map(renderStar)]);
17092
17216
  }
17093
17217
  });
17094
- const Rate = withInstall(stdin_default$k);
17095
- const Row = withInstall(stdin_default$1l);
17218
+ const Rate = withInstall(stdin_default$l);
17219
+ const Row = withInstall(stdin_default$1m);
17096
17220
  const isPortrait = () => window.orientation == null || window.orientation === 180 || window.orientation === 0;
17097
17221
  const getForceLandscapeStyle = (offsetLeft, offsetTop, forceLandscape) => {
17098
17222
  const resultStyle = {
@@ -17177,7 +17301,7 @@ const signatureProps = {
17177
17301
  unSupportTpl: makeStringProp("对不起,当前浏览器不支持Canvas,无法使用签名组件"),
17178
17302
  allowPortrait: Boolean
17179
17303
  };
17180
- var stdin_default$j = vue.defineComponent({
17304
+ var stdin_default$k = vue.defineComponent({
17181
17305
  name: name$d,
17182
17306
  props: signatureProps,
17183
17307
  emits: ["clear", "cancel", "confirm"],
@@ -17358,20 +17482,20 @@ var stdin_default$j = vue.defineComponent({
17358
17482
  "height": canvasHeight.value
17359
17483
  }, null), [[vue.vShow, isCanvasSupported.value]])]), vue.createVNode("div", {
17360
17484
  "class": bem$d("actions")
17361
- }, [vue.createVNode(stdin_default$1F, {
17485
+ }, [vue.createVNode(stdin_default$1G, {
17362
17486
  "plain": true,
17363
17487
  "type": "warning",
17364
17488
  "onClick": () => clear(),
17365
17489
  "class": bem$d("button-again")
17366
17490
  }, {
17367
17491
  default: () => [vue.createTextVNode("重签")]
17368
- }), vue.createVNode(stdin_default$1F, {
17492
+ }), vue.createVNode(stdin_default$1G, {
17369
17493
  "type": "default",
17370
17494
  "onClick": cancel,
17371
17495
  "class": bem$d("button-cancel")
17372
17496
  }, {
17373
17497
  default: () => [vue.createTextVNode("取消")]
17374
- }), vue.createVNode(stdin_default$1F, {
17498
+ }), vue.createVNode(stdin_default$1G, {
17375
17499
  "block": true,
17376
17500
  "type": "primary",
17377
17501
  "disabled": isCompleteButtonDisabled.value,
@@ -17383,7 +17507,7 @@ var stdin_default$j = vue.defineComponent({
17383
17507
  });
17384
17508
  }
17385
17509
  });
17386
- const Signature = withInstall(stdin_default$j);
17510
+ const Signature = withInstall(stdin_default$k);
17387
17511
  const [name$c, bem$c] = createNamespace("skeleton");
17388
17512
  const DEFAULT_ROW_WIDTH = "100%";
17389
17513
  const DEFAULT_LAST_ROW_WIDTH = "60%";
@@ -17404,7 +17528,7 @@ const skeletonProps = {
17404
17528
  default: DEFAULT_ROW_WIDTH
17405
17529
  }
17406
17530
  };
17407
- var stdin_default$i = vue.defineComponent({
17531
+ var stdin_default$j = vue.defineComponent({
17408
17532
  name: name$c,
17409
17533
  inheritAttrs: false,
17410
17534
  props: skeletonProps,
@@ -17493,7 +17617,7 @@ var stdin_default$i = vue.defineComponent({
17493
17617
  };
17494
17618
  }
17495
17619
  });
17496
- const Skeleton = withInstall(stdin_default$i);
17620
+ const Skeleton = withInstall(stdin_default$j);
17497
17621
  const [name$b, bem$b] = createNamespace("slider");
17498
17622
  const sliderProps = {
17499
17623
  min: makeNumericProp(0),
@@ -17517,7 +17641,7 @@ const sliderProps = {
17517
17641
  direction: makeStringProp("horizontal"),
17518
17642
  showPercent: truthProp
17519
17643
  };
17520
- var stdin_default$h = vue.defineComponent({
17644
+ var stdin_default$i = vue.defineComponent({
17521
17645
  name: name$b,
17522
17646
  props: sliderProps,
17523
17647
  emits: ["change", "dragEnd", "dragStart", "update:modelValue"],
@@ -17561,6 +17685,12 @@ var stdin_default$h = vue.defineComponent({
17561
17685
  }
17562
17686
  return "0%";
17563
17687
  };
17688
+ const getPositionKey = () => {
17689
+ if (props.vertical) {
17690
+ return props.reverse ? "bottom" : "top";
17691
+ }
17692
+ return props.reverse ? "right" : "left";
17693
+ };
17564
17694
  const barStyle = vue.computed(() => {
17565
17695
  const mainAxis = props.vertical ? "height" : "width";
17566
17696
  const style = {
@@ -17570,12 +17700,6 @@ var stdin_default$h = vue.defineComponent({
17570
17700
  if (dragStatus.value) {
17571
17701
  style.transition = "none";
17572
17702
  }
17573
- const getPositionKey = () => {
17574
- if (props.vertical) {
17575
- return props.reverse ? "bottom" : "top";
17576
- }
17577
- return props.reverse ? "right" : "left";
17578
- };
17579
17703
  style[getPositionKey()] = calcOffset();
17580
17704
  return style;
17581
17705
  });
@@ -17697,13 +17821,6 @@ var stdin_default$h = vue.defineComponent({
17697
17821
  }
17698
17822
  dragStatus.value = "";
17699
17823
  };
17700
- const getButtonClassName = (index) => {
17701
- if (typeof index === "number") {
17702
- const position = ["left", "right"];
17703
- return bem$b(`button-wrapper`, position[index]);
17704
- }
17705
- return bem$b("button-wrapper", props.reverse ? "left" : "right");
17706
- };
17707
17824
  const renderButtonContent = (value, index) => {
17708
17825
  const dragging = dragStatus.value === "dragging";
17709
17826
  if (typeof index === "number") {
@@ -17733,10 +17850,15 @@ var stdin_default$h = vue.defineComponent({
17733
17850
  };
17734
17851
  const renderButton = (index) => {
17735
17852
  const current22 = typeof index === "number" ? props.modelValue[index] : props.modelValue;
17853
+ const left = `${(current22 - Number(props.min)) * 100 / scope.value}%`;
17854
+ const style = {
17855
+ [getPositionKey()]: left,
17856
+ transform: `translate(-${left},-50%)`
17857
+ };
17736
17858
  return vue.createVNode("div", {
17737
17859
  "ref": slider[index != null ? index : 0],
17738
17860
  "role": "slider",
17739
- "class": getButtonClassName(index),
17861
+ "class": bem$b("button-wrapper"),
17740
17862
  "tabindex": props.disabled ? void 0 : 0,
17741
17863
  "aria-valuemin": props.min,
17742
17864
  "aria-valuenow": current22,
@@ -17752,7 +17874,8 @@ var stdin_default$h = vue.defineComponent({
17752
17874
  },
17753
17875
  "onTouchend": onTouchEnd,
17754
17876
  "onTouchcancel": onTouchEnd,
17755
- "onClick": stopPropagation
17877
+ "onClick": stopPropagation,
17878
+ "style": style
17756
17879
  }, [renderButtonContent(current22, index)]);
17757
17880
  };
17758
17881
  const renderTitle = () => {
@@ -17817,10 +17940,10 @@ var stdin_default$h = vue.defineComponent({
17817
17940
  }, [vue.createVNode("div", {
17818
17941
  "class": bem$b("bar"),
17819
17942
  "style": barStyle.value
17820
- }, [renderButtons()])]))]);
17943
+ }, null), renderButtons()]))]);
17821
17944
  }
17822
17945
  });
17823
- const Slider = withInstall(stdin_default$h);
17946
+ const Slider = withInstall(stdin_default$i);
17824
17947
  const [name$a, bem$a] = createNamespace("steps");
17825
17948
  const stepsProps = {
17826
17949
  active: makeNumericProp(0),
@@ -17835,7 +17958,7 @@ const stepsProps = {
17835
17958
  titleInactiveColor: String
17836
17959
  };
17837
17960
  const STEPS_KEY = Symbol(name$a);
17838
- var stdin_default$g = vue.defineComponent({
17961
+ var stdin_default$h = vue.defineComponent({
17839
17962
  name: name$a,
17840
17963
  props: stepsProps,
17841
17964
  emits: ["clickStep"],
@@ -17867,7 +17990,7 @@ const stepProps = {
17867
17990
  activeIcon: String,
17868
17991
  inactiveIcon: String
17869
17992
  };
17870
- var stdin_default$f = vue.defineComponent({
17993
+ var stdin_default$g = vue.defineComponent({
17871
17994
  name: name$9,
17872
17995
  props: stepProps,
17873
17996
  setup(props, {
@@ -17992,7 +18115,7 @@ var stdin_default$f = vue.defineComponent({
17992
18115
  };
17993
18116
  }
17994
18117
  });
17995
- const Step = withInstall(stdin_default$f);
18118
+ const Step = withInstall(stdin_default$g);
17996
18119
  const [name$8, bem$8] = createNamespace("stepper");
17997
18120
  const LONG_PRESS_INTERVAL = 200;
17998
18121
  const isEqual = (value1, value2) => String(value1) === String(value2);
@@ -18020,7 +18143,7 @@ const stepperProps = {
18020
18143
  defaultValue: makeNumericProp(1),
18021
18144
  decimalLength: numericProp
18022
18145
  };
18023
- var stdin_default$e = vue.defineComponent({
18146
+ var stdin_default$f = vue.defineComponent({
18024
18147
  name: name$8,
18025
18148
  props: stepperProps,
18026
18149
  emits: ["plus", "blur", "minus", "focus", "change", "overlimit", "update:modelValue"],
@@ -18205,7 +18328,7 @@ var stdin_default$e = vue.defineComponent({
18205
18328
  }
18206
18329
  ],
18207
18330
  "aria-disabled": minusDisabled.value || void 0
18208
- }, createListeners("minus")), [vue.createVNode(stdin_default$1R, {
18331
+ }, createListeners("minus")), [vue.createVNode(stdin_default$1S, {
18209
18332
  "name": "minus",
18210
18333
  "size": (props == null ? void 0 : props.buttonSize) ? props.buttonSize : "32"
18211
18334
  }, null)]), [[vue.vShow, props.showMinus]]), vue.withDirectives(vue.createVNode("input", {
@@ -18238,14 +18361,14 @@ var stdin_default$e = vue.defineComponent({
18238
18361
  // { [HAPTICS_FEEDBACK]: !plusDisabled.value },
18239
18362
  ],
18240
18363
  "aria-disabled": plusDisabled.value || void 0
18241
- }, createListeners("plus")), [vue.createVNode(stdin_default$1R, {
18364
+ }, createListeners("plus")), [vue.createVNode(stdin_default$1S, {
18242
18365
  "name": "plus",
18243
18366
  "size": (props == null ? void 0 : props.buttonSize) ? props.buttonSize : "32"
18244
18367
  }, null)]), [[vue.vShow, props.showPlus]])]);
18245
18368
  }
18246
18369
  });
18247
- const Stepper = withInstall(stdin_default$e);
18248
- const Steps = withInstall(stdin_default$g);
18370
+ const Stepper = withInstall(stdin_default$f);
18371
+ const Steps = withInstall(stdin_default$h);
18249
18372
  const [name$7, bem$7] = createNamespace("swipe-cell");
18250
18373
  const swipeCellProps = {
18251
18374
  name: makeNumericProp(""),
@@ -18255,7 +18378,7 @@ const swipeCellProps = {
18255
18378
  beforeClose: Function,
18256
18379
  stopPropagation: Boolean
18257
18380
  };
18258
- var stdin_default$d = vue.defineComponent({
18381
+ var stdin_default$e = vue.defineComponent({
18259
18382
  name: name$7,
18260
18383
  props: swipeCellProps,
18261
18384
  emits: ["open", "close", "click"],
@@ -18408,7 +18531,7 @@ var stdin_default$d = vue.defineComponent({
18408
18531
  };
18409
18532
  }
18410
18533
  });
18411
- const SwipeCell = withInstall(stdin_default$d);
18534
+ const SwipeCell = withInstall(stdin_default$e);
18412
18535
  const [name$6, bem$6] = createNamespace("switch");
18413
18536
  const switchProps = {
18414
18537
  size: numericProp,
@@ -18426,7 +18549,7 @@ const switchProps = {
18426
18549
  default: false
18427
18550
  }
18428
18551
  };
18429
- var stdin_default$c = vue.defineComponent({
18552
+ var stdin_default$d = vue.defineComponent({
18430
18553
  name: name$6,
18431
18554
  props: switchProps,
18432
18555
  emits: ["change", "update:modelValue"],
@@ -18486,8 +18609,8 @@ var stdin_default$c = vue.defineComponent({
18486
18609
  };
18487
18610
  }
18488
18611
  });
18489
- const Switch = withInstall(stdin_default$c);
18490
- var stdin_default$b = Switch;
18612
+ const Switch = withInstall(stdin_default$d);
18613
+ var stdin_default$c = Switch;
18491
18614
  const [name$5, bem$5] = createNamespace("tabbar");
18492
18615
  const tabbarProps = {
18493
18616
  route: Boolean,
@@ -18505,7 +18628,7 @@ const tabbarProps = {
18505
18628
  }
18506
18629
  };
18507
18630
  const TABBAR_KEY = Symbol(name$5);
18508
- var stdin_default$a = vue.defineComponent({
18631
+ var stdin_default$b = vue.defineComponent({
18509
18632
  name: name$5,
18510
18633
  props: tabbarProps,
18511
18634
  emits: ["change", "update:modelValue"],
@@ -18563,7 +18686,7 @@ var stdin_default$a = vue.defineComponent({
18563
18686
  };
18564
18687
  }
18565
18688
  });
18566
- const Tabbar = withInstall(stdin_default$a);
18689
+ const Tabbar = withInstall(stdin_default$b);
18567
18690
  const [name$4, bem$4] = createNamespace("tabbar-item");
18568
18691
  const tabbarItemProps = extend({}, routeProps, {
18569
18692
  dot: Boolean,
@@ -18573,7 +18696,7 @@ const tabbarItemProps = extend({}, routeProps, {
18573
18696
  badgeProps: Object,
18574
18697
  iconPrefix: String
18575
18698
  });
18576
- var stdin_default$9 = vue.defineComponent({
18699
+ var stdin_default$a = vue.defineComponent({
18577
18700
  name: name$4,
18578
18701
  props: tabbarItemProps,
18579
18702
  emits: ["click"],
@@ -18675,19 +18798,165 @@ var stdin_default$9 = vue.defineComponent({
18675
18798
  };
18676
18799
  }
18677
18800
  });
18678
- const TabbarItem = withInstall(stdin_default$9);
18801
+ const TabbarItem = withInstall(stdin_default$a);
18679
18802
  var SortOrderEnum = /* @__PURE__ */ ((SortOrderEnum2) => {
18680
18803
  SortOrderEnum2["ASCEND"] = "ascend";
18681
18804
  SortOrderEnum2["DESCEND"] = "descend";
18682
18805
  return SortOrderEnum2;
18683
18806
  })(SortOrderEnum || {});
18684
- const [name$3, bem$3] = createNamespace("table");
18685
- const tableProps = {
18686
- headList: makeArrayProp(),
18687
- dataList: makeArrayProp(),
18688
- striped: truthProp,
18689
- emptyValue: makeStringProp("-"),
18690
- loading: {
18807
+ const [name$3, bem$3] = createNamespace("text-ellipsis");
18808
+ const textEllipsisProps = {
18809
+ rows: makeNumericProp(1),
18810
+ dots: makeStringProp("..."),
18811
+ content: makeStringProp(""),
18812
+ expandText: makeStringProp(""),
18813
+ expandType: makeStringProp("flat"),
18814
+ collapseText: makeStringProp(""),
18815
+ position: makeStringProp("end")
18816
+ };
18817
+ var stdin_default$9 = vue.defineComponent({
18818
+ name: name$3,
18819
+ props: textEllipsisProps,
18820
+ emits: ["clickAction"],
18821
+ setup(props, {
18822
+ emit
18823
+ }) {
18824
+ const text = vue.ref("");
18825
+ const expanded = vue.ref(false);
18826
+ const hasAction = vue.ref(false);
18827
+ const root = vue.ref();
18828
+ const actionText = vue.computed(() => expanded.value ? props.collapseText : props.expandText);
18829
+ const pxToNum = (value) => {
18830
+ if (!value)
18831
+ return 0;
18832
+ const match = value.match(/^\d*(\.\d*)?/);
18833
+ return match ? Number(match[0]) : 0;
18834
+ };
18835
+ const calcEllipsised = () => {
18836
+ const cloneContainer = () => {
18837
+ if (!root.value)
18838
+ return;
18839
+ const originStyle = window.getComputedStyle(root.value);
18840
+ const container2 = document.createElement("div");
18841
+ const styleNames = Array.prototype.slice.apply(originStyle);
18842
+ styleNames.forEach((name2) => {
18843
+ container2.style.setProperty(name2, originStyle.getPropertyValue(name2));
18844
+ });
18845
+ container2.style.position = "fixed";
18846
+ container2.style.zIndex = "-9999";
18847
+ container2.style.top = "-9999px";
18848
+ container2.style.height = "auto";
18849
+ container2.style.minHeight = "auto";
18850
+ container2.style.maxHeight = "auto";
18851
+ container2.innerText = props.content;
18852
+ document.body.appendChild(container2);
18853
+ return container2;
18854
+ };
18855
+ const calcEllipsisText = (container2, maxHeight2) => {
18856
+ const {
18857
+ content,
18858
+ position,
18859
+ dots
18860
+ } = props;
18861
+ const end = content.length;
18862
+ const calcEllipse = () => {
18863
+ const tail = (left, right) => {
18864
+ if (right - left <= 1) {
18865
+ if (position === "end") {
18866
+ return content.slice(0, left) + dots;
18867
+ }
18868
+ return dots + content.slice(right, end);
18869
+ }
18870
+ const middle2 = Math.round((left + right) / 2);
18871
+ if (position === "end") {
18872
+ container2.innerText = content.slice(0, middle2) + dots + actionText.value;
18873
+ } else {
18874
+ container2.innerText = dots + content.slice(middle2, end) + actionText.value;
18875
+ }
18876
+ if (container2.offsetHeight > maxHeight2) {
18877
+ if (position === "end") {
18878
+ return tail(left, middle2);
18879
+ }
18880
+ return tail(middle2, right);
18881
+ }
18882
+ if (position === "end") {
18883
+ return tail(middle2, right);
18884
+ }
18885
+ return tail(left, middle2);
18886
+ };
18887
+ container2.innerText = tail(0, end);
18888
+ };
18889
+ const middleTail = (leftPart, rightPart) => {
18890
+ if (leftPart[1] - leftPart[0] <= 1 && rightPart[1] - rightPart[0] <= 1) {
18891
+ return content.slice(0, leftPart[0]) + dots + content.slice(rightPart[1], end);
18892
+ }
18893
+ const leftMiddle = Math.floor((leftPart[0] + leftPart[1]) / 2);
18894
+ const rightMiddle = Math.ceil((rightPart[0] + rightPart[1]) / 2);
18895
+ container2.innerText = props.content.slice(0, leftMiddle) + props.dots + props.content.slice(rightMiddle, end) + props.expandText;
18896
+ if (container2.offsetHeight >= maxHeight2) {
18897
+ return middleTail([leftPart[0], leftMiddle], [rightMiddle, rightPart[1]]);
18898
+ }
18899
+ return middleTail([leftMiddle, leftPart[1]], [rightPart[0], rightMiddle]);
18900
+ };
18901
+ const middle = 0 + end >> 1;
18902
+ props.position === "middle" ? container2.innerText = middleTail([0, middle], [middle, end]) : calcEllipse();
18903
+ return container2.innerText;
18904
+ };
18905
+ const container = cloneContainer();
18906
+ if (!container)
18907
+ return;
18908
+ const {
18909
+ paddingBottom,
18910
+ paddingTop,
18911
+ lineHeight
18912
+ } = container.style;
18913
+ const maxHeight = Math.ceil((Number(props.rows) + 0.5) * pxToNum(lineHeight) + pxToNum(paddingTop) + pxToNum(paddingBottom));
18914
+ if (maxHeight < container.offsetHeight) {
18915
+ hasAction.value = true;
18916
+ text.value = calcEllipsisText(container, maxHeight);
18917
+ } else {
18918
+ hasAction.value = false;
18919
+ text.value = props.content;
18920
+ }
18921
+ document.body.removeChild(container);
18922
+ };
18923
+ const onClickAction = (event) => {
18924
+ event.stopPropagation();
18925
+ event.preventDefault();
18926
+ expanded.value = !expanded.value;
18927
+ emit("clickAction", event);
18928
+ };
18929
+ const renderAction = () => vue.createVNode("span", {
18930
+ "class": bem$3("action"),
18931
+ "onClick": onClickAction
18932
+ }, [actionText.value]);
18933
+ const onClickEllipsis = () => {
18934
+ if (props.expandType === "dialog" && hasAction.value) {
18935
+ showDialog({
18936
+ message: props.content
18937
+ }).then(() => {
18938
+ });
18939
+ }
18940
+ };
18941
+ vue.onMounted(calcEllipsised);
18942
+ vue.watch(() => [props.content, props.rows, props.position], calcEllipsised);
18943
+ use.useEventListener("resize", calcEllipsised);
18944
+ return () => vue.createVNode("div", {
18945
+ "ref": root,
18946
+ "class": bem$3(),
18947
+ "onClick": onClickEllipsis
18948
+ }, [expanded.value ? props.content : text.value, props.expandType !== "dialog" && hasAction.value ? renderAction() : null]);
18949
+ }
18950
+ });
18951
+ const TextEllipsis = withInstall(stdin_default$9);
18952
+ var stdin_default$8 = TextEllipsis;
18953
+ const [name$2, bem$2] = createNamespace("table");
18954
+ const tableProps = {
18955
+ headList: makeArrayProp(),
18956
+ dataList: makeArrayProp(),
18957
+ striped: truthProp,
18958
+ emptyValue: makeStringProp("-"),
18959
+ loading: {
18691
18960
  type: Boolean,
18692
18961
  default: false
18693
18962
  },
@@ -18698,14 +18967,19 @@ const tableProps = {
18698
18967
  border: {
18699
18968
  type: Boolean,
18700
18969
  default: false
18970
+ },
18971
+ hideTableHead: {
18972
+ type: Boolean,
18973
+ default: false
18701
18974
  }
18702
18975
  };
18703
- var stdin_default$8 = vue.defineComponent({
18704
- name: name$3,
18976
+ var stdin_default$7 = vue.defineComponent({
18977
+ name: name$2,
18705
18978
  props: tableProps,
18706
18979
  emits: ["sort"],
18707
18980
  setup(props, {
18708
- emit
18981
+ emit,
18982
+ slots
18709
18983
  }) {
18710
18984
  const sortOrder = vue.ref("");
18711
18985
  const sortKey = vue.ref("");
@@ -18783,9 +19057,11 @@ var stdin_default$8 = vue.defineComponent({
18783
19057
  pingedLeft.value = mergedScrollLeft > 0;
18784
19058
  };
18785
19059
  const getHead = (colData) => {
19060
+ const headSlot = slots[`head-${colData.id}`];
19061
+ const headEllipsisType = colData.sorter ? "flat" : "dialog";
18786
19062
  if ((colData == null ? void 0 : colData.colSpan) !== 0) {
18787
19063
  return vue.createVNode("th", {
18788
- "class": bem$3("left", {
19064
+ "class": bem$2("left", {
18789
19065
  fixed: colData.fixed,
18790
19066
  last: colData.lastFixLeft && pingedLeft.value
18791
19067
  }),
@@ -18793,22 +19069,26 @@ var stdin_default$8 = vue.defineComponent({
18793
19069
  left: colData.fixed ? colData.left : ""
18794
19070
  },
18795
19071
  "colspan": (colData == null ? void 0 : colData.colSpan) !== 1 ? colData == null ? void 0 : colData.colSpan : null
18796
- }, [vue.createVNode("div", {
18797
- "class": bem$3("head"),
19072
+ }, [headSlot ? headSlot(colData) : vue.createVNode("div", {
19073
+ "class": bem$2("head"),
18798
19074
  "onClick": () => onHeaderClick(colData)
18799
- }, [vue.createVNode("span", {
18800
- "class": bem$3("head-label")
19075
+ }, [colData.ellipsis ? vue.createVNode(stdin_default$8, {
19076
+ "content": colData.label,
19077
+ "expandType": headEllipsisType,
19078
+ "class": bem$2("head-label-ellipsis")
19079
+ }, null) : vue.createVNode("span", {
19080
+ "class": bem$2("head-label")
18801
19081
  }, [colData.label]), colData.sorter ? vue.createVNode("span", {
18802
- "class": bem$3("head-sort")
19082
+ "class": bem$2("head-sort")
18803
19083
  }, [vue.createVNode(Icon, {
18804
- "class": [colData.key === sortKey.value && sortOrder.value === SortOrderEnum.ASCEND ? bem$3("sort-active") : ""],
19084
+ "class": [colData.key === sortKey.value && sortOrder.value === SortOrderEnum.ASCEND ? bem$2("sort-active") : ""],
18805
19085
  "name": "spinner-shrink",
18806
19086
  "size": "12",
18807
19087
  "style": {
18808
19088
  marginBottom: "-3px"
18809
19089
  }
18810
19090
  }, null), vue.createVNode(Icon, {
18811
- "class": [colData.key === sortKey.value && sortOrder.value === SortOrderEnum.DESCEND ? bem$3("sort-active") : ""],
19091
+ "class": [colData.key === sortKey.value && sortOrder.value === SortOrderEnum.DESCEND ? bem$2("sort-active") : ""],
18812
19092
  "name": "spinner-expand",
18813
19093
  "size": "12",
18814
19094
  "style": {
@@ -18817,6 +19097,15 @@ var stdin_default$8 = vue.defineComponent({
18817
19097
  }, null)]) : ""])]);
18818
19098
  }
18819
19099
  };
19100
+ const getElement = (rowData, colData) => {
19101
+ if (rowData[colData.key] && rowData[colData.key].id && slots[`data-${rowData[colData.key].id}`]) {
19102
+ return slots[`data-${rowData[colData.key].id}`](rowData[colData.key]);
19103
+ }
19104
+ return colData.ellipsis ? vue.createVNode(stdin_default$8, {
19105
+ "content": rowData[colData.key],
19106
+ "expandType": "dialog"
19107
+ }, null) : rowData[colData.key];
19108
+ };
18820
19109
  const getBody = (rowData, rowIndex) => vue.createVNode("tr", null, [formatColumns.value.map((colData) => {
18821
19110
  let additionalCellProps;
18822
19111
  if (colData.customCell) {
@@ -18826,23 +19115,23 @@ var stdin_default$8 = vue.defineComponent({
18826
19115
  style.left = colData.fixed ? colData.left : "";
18827
19116
  return (additionalCellProps == null ? void 0 : additionalCellProps.rowSpan) !== 0 && (additionalCellProps == null ? void 0 : additionalCellProps.colSpan) !== 0 && vue.createVNode("td", {
18828
19117
  "onClick": () => colData.click && colData.click(rowData, rowIndex),
18829
- "class": bem$3("left", {
19118
+ "class": bem$2("left", {
18830
19119
  fixed: colData.fixed,
18831
19120
  last: colData.lastFixLeft && pingedLeft.value
18832
19121
  }),
18833
19122
  "colspan": (additionalCellProps == null ? void 0 : additionalCellProps.colSpan) !== 1 ? additionalCellProps == null ? void 0 : additionalCellProps.colSpan : null,
18834
19123
  "rowspan": (additionalCellProps == null ? void 0 : additionalCellProps.rowSpan) !== 1 ? additionalCellProps == null ? void 0 : additionalCellProps.rowSpan : null,
18835
19124
  "style": style
18836
- }, [rowData[colData.key]]);
19125
+ }, [getElement(rowData, colData)]);
18837
19126
  })]);
18838
19127
  const getCol = () => {
18839
19128
  const cols = [];
18840
19129
  const col = resortHeadList.value.length;
18841
19130
  for (let j = 0; j < col; j++) {
18842
19131
  cols.push(vue.createVNode("div", {
18843
- "class": bem$3("col")
19132
+ "class": bem$2("col")
18844
19133
  }, [vue.createVNode("div", {
18845
- "class": bem$3("col-item")
19134
+ "class": bem$2("col-item")
18846
19135
  }, null)]));
18847
19136
  }
18848
19137
  return cols;
@@ -18851,7 +19140,7 @@ var stdin_default$8 = vue.defineComponent({
18851
19140
  const Rows = [];
18852
19141
  for (let i = 0; i < props.skeletonRow; i++) {
18853
19142
  Rows.push(vue.createVNode("div", {
18854
- "class": bem$3("row", {
19143
+ "class": bem$2("row", {
18855
19144
  head: i === 0
18856
19145
  })
18857
19146
  }, [getCol()]));
@@ -18859,12 +19148,12 @@ var stdin_default$8 = vue.defineComponent({
18859
19148
  return Rows;
18860
19149
  };
18861
19150
  return () => props.loading ? vue.createVNode("div", {
18862
- "class": bem$3({
19151
+ "class": bem$2({
18863
19152
  animate: true,
18864
19153
  skeleton: true
18865
19154
  })
18866
19155
  }, [getLoadingColumn()]) : vue.createVNode("div", {
18867
- "class": bem$3({
19156
+ "class": bem$2({
18868
19157
  fixed: fixedColumn.value.length > 0,
18869
19158
  bordered: props.border,
18870
19159
  striped: props.striped
@@ -18874,149 +19163,14 @@ var stdin_default$8 = vue.defineComponent({
18874
19163
  "style": {
18875
19164
  width: item.width
18876
19165
  }
18877
- }, null))]), vue.createVNode("thead", {
18878
- "class": bem$3("thead")
18879
- }, [vue.createVNode("tr", null, [formatColumns.value.map((colData) => getHead(colData))])]), vue.createVNode("tbody", {
18880
- "class": bem$3("tbody")
19166
+ }, null))]), vue.withDirectives(vue.createVNode("thead", {
19167
+ "class": bem$2("thead")
19168
+ }, [vue.createVNode("tr", null, [formatColumns.value.map((colData) => getHead(colData))])]), [[vue.vShow, !props.hideTableHead]]), vue.createVNode("tbody", {
19169
+ "class": bem$2("tbody")
18881
19170
  }, [props.dataList.map((rowData, rowIndex) => getBody(rowData, rowIndex))])])]);
18882
19171
  }
18883
19172
  });
18884
- const Table = withInstall(stdin_default$8);
18885
- const [name$2, bem$2] = createNamespace("text-ellipsis");
18886
- const textEllipsisProps = {
18887
- rows: makeNumericProp(1),
18888
- dots: makeStringProp("..."),
18889
- content: makeStringProp(""),
18890
- expandText: makeStringProp(""),
18891
- collapseText: makeStringProp(""),
18892
- position: makeStringProp("end")
18893
- };
18894
- var stdin_default$7 = vue.defineComponent({
18895
- name: name$2,
18896
- props: textEllipsisProps,
18897
- emits: ["clickAction"],
18898
- setup(props, {
18899
- emit
18900
- }) {
18901
- const text = vue.ref("");
18902
- const expanded = vue.ref(false);
18903
- const hasAction = vue.ref(false);
18904
- const root = vue.ref();
18905
- const actionText = vue.computed(() => expanded.value ? props.collapseText : props.expandText);
18906
- const pxToNum = (value) => {
18907
- if (!value)
18908
- return 0;
18909
- const match = value.match(/^\d*(\.\d*)?/);
18910
- return match ? Number(match[0]) : 0;
18911
- };
18912
- const calcEllipsised = () => {
18913
- const cloneContainer = () => {
18914
- if (!root.value)
18915
- return;
18916
- const originStyle = window.getComputedStyle(root.value);
18917
- const container2 = document.createElement("div");
18918
- const styleNames = Array.prototype.slice.apply(originStyle);
18919
- styleNames.forEach((name2) => {
18920
- container2.style.setProperty(name2, originStyle.getPropertyValue(name2));
18921
- });
18922
- container2.style.position = "fixed";
18923
- container2.style.zIndex = "-9999";
18924
- container2.style.top = "-9999px";
18925
- container2.style.height = "auto";
18926
- container2.style.minHeight = "auto";
18927
- container2.style.maxHeight = "auto";
18928
- container2.innerText = props.content;
18929
- document.body.appendChild(container2);
18930
- return container2;
18931
- };
18932
- const calcEllipsisText = (container2, maxHeight2) => {
18933
- const {
18934
- content,
18935
- position,
18936
- dots
18937
- } = props;
18938
- const end = content.length;
18939
- const calcEllipse = () => {
18940
- const tail = (left, right) => {
18941
- if (right - left <= 1) {
18942
- if (position === "end") {
18943
- return content.slice(0, left) + dots;
18944
- }
18945
- return dots + content.slice(right, end);
18946
- }
18947
- const middle2 = Math.round((left + right) / 2);
18948
- if (position === "end") {
18949
- container2.innerText = content.slice(0, middle2) + dots + actionText.value;
18950
- } else {
18951
- container2.innerText = dots + content.slice(middle2, end) + actionText.value;
18952
- }
18953
- if (container2.offsetHeight > maxHeight2) {
18954
- if (position === "end") {
18955
- return tail(left, middle2);
18956
- }
18957
- return tail(middle2, right);
18958
- }
18959
- if (position === "end") {
18960
- return tail(middle2, right);
18961
- }
18962
- return tail(left, middle2);
18963
- };
18964
- container2.innerText = tail(0, end);
18965
- };
18966
- const middleTail = (leftPart, rightPart) => {
18967
- if (leftPart[1] - leftPart[0] <= 1 && rightPart[1] - rightPart[0] <= 1) {
18968
- return content.slice(0, leftPart[0]) + dots + content.slice(rightPart[1], end);
18969
- }
18970
- const leftMiddle = Math.floor((leftPart[0] + leftPart[1]) / 2);
18971
- const rightMiddle = Math.ceil((rightPart[0] + rightPart[1]) / 2);
18972
- container2.innerText = props.content.slice(0, leftMiddle) + props.dots + props.content.slice(rightMiddle, end) + props.expandText;
18973
- if (container2.offsetHeight >= maxHeight2) {
18974
- return middleTail([leftPart[0], leftMiddle], [rightMiddle, rightPart[1]]);
18975
- }
18976
- return middleTail([leftMiddle, leftPart[1]], [rightPart[0], rightMiddle]);
18977
- };
18978
- const middle = 0 + end >> 1;
18979
- props.position === "middle" ? container2.innerText = middleTail([0, middle], [middle, end]) : calcEllipse();
18980
- return container2.innerText;
18981
- };
18982
- const container = cloneContainer();
18983
- if (!container)
18984
- return;
18985
- const {
18986
- paddingBottom,
18987
- paddingTop,
18988
- lineHeight
18989
- } = container.style;
18990
- const maxHeight = Math.ceil((Number(props.rows) + 0.5) * pxToNum(lineHeight) + pxToNum(paddingTop) + pxToNum(paddingBottom));
18991
- if (maxHeight < container.offsetHeight) {
18992
- hasAction.value = true;
18993
- text.value = calcEllipsisText(container, maxHeight);
18994
- } else {
18995
- hasAction.value = false;
18996
- text.value = props.content;
18997
- }
18998
- document.body.removeChild(container);
18999
- };
19000
- const onClickAction = (event) => {
19001
- event.stopPropagation();
19002
- event.preventDefault();
19003
- expanded.value = !expanded.value;
19004
- emit("clickAction", event);
19005
- };
19006
- const renderAction = () => vue.createVNode("span", {
19007
- "class": bem$2("action"),
19008
- "onClick": onClickAction
19009
- }, [actionText.value]);
19010
- vue.onMounted(calcEllipsised);
19011
- vue.watch(() => [props.content, props.rows, props.position], calcEllipsised);
19012
- use.useEventListener("resize", calcEllipsised);
19013
- return () => vue.createVNode("div", {
19014
- "ref": root,
19015
- "class": bem$2()
19016
- }, [expanded.value ? props.content : text.value, hasAction.value ? renderAction() : null]);
19017
- }
19018
- });
19019
- const TextEllipsis = withInstall(stdin_default$7);
19173
+ const Table = withInstall(stdin_default$7);
19020
19174
  const [name$1, bem$1] = createNamespace("timeline");
19021
19175
  const timelineProps = {
19022
19176
  title: makeStringProp("办理经过"),
@@ -19060,7 +19214,7 @@ var stdin_default$6 = vue.defineComponent({
19060
19214
  "class": bem$1("top-right")
19061
19215
  }, [vue.createVNode("span", {
19062
19216
  "class": bem$1("fold-text")
19063
- }, [vue.createTextVNode("折叠"), props.title]), vue.createVNode(stdin_default$b, {
19217
+ }, [vue.createTextVNode("折叠"), props.title]), vue.createVNode(stdin_default$c, {
19064
19218
  "modelValue": isFold.value,
19065
19219
  "onUpdate:modelValue": ($event) => isFold.value = $event
19066
19220
  }, null)])]);
@@ -20613,7 +20767,7 @@ const Lazyload = {
20613
20767
  });
20614
20768
  }
20615
20769
  };
20616
- const version = "3.1.16";
20770
+ const version = "3.1.18";
20617
20771
  function install(app) {
20618
20772
  const components = [
20619
20773
  ActionSheet,
@@ -20793,6 +20947,7 @@ exports.collapseItemProps = collapseItemProps;
20793
20947
  exports.collapseProps = collapseProps;
20794
20948
  exports.dateTimePickerProps = dateTimePickerProps;
20795
20949
  exports.default = stdin_default;
20950
+ exports.defaultMedia = defaultMedia;
20796
20951
  exports.dialogProps = dialogProps;
20797
20952
  exports.dropdownItemProps = dropdownItemProps;
20798
20953
  exports.dropdownMenuProps = dropdownMenuProps;