zartui 3.1.18 → 3.1.20

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 (85) hide show
  1. package/es/calendar/Calendar.mjs +1 -2
  2. package/es/date-time-picker/DateTimePicker.mjs +15 -0
  3. package/es/dialog/index.css +1 -1
  4. package/es/drawer-select/DrawerSelect.d.ts +17 -1
  5. package/es/drawer-select/DrawerSelect.mjs +9 -4
  6. package/es/drawer-select/index.d.ts +11 -0
  7. package/es/dropdown-item/DropdownItem.d.ts +26 -0
  8. package/es/dropdown-item/DropdownItem.mjs +11 -9
  9. package/es/dropdown-item/index.d.ts +18 -0
  10. package/es/dropdown-menu/DropdownMenu.mjs +4 -1
  11. package/es/dropdown-menu/index.css +1 -1
  12. package/es/empty/Empty.mjs +5 -1
  13. package/es/empty/Images.d.ts +14 -11
  14. package/es/empty/Images.mjs +89 -89
  15. package/es/empty/types.d.ts +1 -0
  16. package/es/hierarchy-select/index.css +1 -1
  17. package/es/index.d.ts +1 -1
  18. package/es/index.mjs +1 -1
  19. package/es/media-picker/MediaPicker.d.ts +18 -1
  20. package/es/media-picker/MediaPicker.mjs +71 -15
  21. package/es/media-picker/index.d.ts +13 -1
  22. package/es/media-picker/type.d.ts +3 -0
  23. package/es/media-picker/util/wx-util.d.ts +4 -0
  24. package/es/media-picker/util/wx-util.mjs +67 -0
  25. package/es/popup/index.css +1 -1
  26. package/es/slider/Slider.mjs +15 -16
  27. package/es/slider/index.css +1 -1
  28. package/es/table/Table.d.ts +13 -0
  29. package/es/table/Table.mjs +28 -7
  30. package/es/table/index.css +1 -1
  31. package/es/table/index.d.ts +9 -0
  32. package/es/table/style/index.mjs +6 -0
  33. package/es/tabs/TabsTitle.mjs +1 -0
  34. package/es/tabs/index.css +1 -1
  35. package/es/text-ellipsis/TextEllipsis.d.ts +13 -0
  36. package/es/text-ellipsis/TextEllipsis.mjs +15 -4
  37. package/es/text-ellipsis/index.d.ts +9 -0
  38. package/es/text-ellipsis/style/index.mjs +7 -0
  39. package/es/toast/index.css +1 -1
  40. package/lib/calendar/Calendar.js +1 -2
  41. package/lib/date-time-picker/DateTimePicker.js +15 -0
  42. package/lib/dialog/index.css +1 -1
  43. package/lib/drawer-select/DrawerSelect.d.ts +17 -1
  44. package/lib/drawer-select/DrawerSelect.js +9 -4
  45. package/lib/drawer-select/index.d.ts +11 -0
  46. package/lib/dropdown-item/DropdownItem.d.ts +26 -0
  47. package/lib/dropdown-item/DropdownItem.js +10 -8
  48. package/lib/dropdown-item/index.d.ts +18 -0
  49. package/lib/dropdown-menu/DropdownMenu.js +4 -1
  50. package/lib/dropdown-menu/index.css +1 -1
  51. package/lib/empty/Empty.js +5 -1
  52. package/lib/empty/Images.d.ts +14 -11
  53. package/lib/empty/Images.js +89 -89
  54. package/lib/empty/types.d.ts +1 -0
  55. package/lib/hierarchy-select/index.css +1 -1
  56. package/lib/index.css +1 -1
  57. package/lib/index.d.ts +1 -1
  58. package/lib/index.js +1 -1
  59. package/lib/media-picker/MediaPicker.d.ts +18 -1
  60. package/lib/media-picker/MediaPicker.js +70 -14
  61. package/lib/media-picker/index.d.ts +13 -1
  62. package/lib/media-picker/type.d.ts +3 -0
  63. package/lib/media-picker/util/wx-util.d.ts +4 -0
  64. package/lib/media-picker/util/wx-util.js +86 -0
  65. package/lib/popup/index.css +1 -1
  66. package/lib/slider/Slider.js +15 -16
  67. package/lib/slider/index.css +1 -1
  68. package/lib/table/Table.d.ts +13 -0
  69. package/lib/table/Table.js +37 -6
  70. package/lib/table/index.css +1 -1
  71. package/lib/table/index.d.ts +9 -0
  72. package/lib/table/style/index.js +6 -0
  73. package/lib/tabs/TabsTitle.js +1 -0
  74. package/lib/tabs/index.css +1 -1
  75. package/lib/text-ellipsis/TextEllipsis.d.ts +13 -0
  76. package/lib/text-ellipsis/TextEllipsis.js +13 -2
  77. package/lib/text-ellipsis/index.d.ts +9 -0
  78. package/lib/text-ellipsis/style/index.js +7 -0
  79. package/lib/toast/index.css +1 -1
  80. package/lib/web-types.json +1 -1
  81. package/lib/zartui.cjs.js +741 -566
  82. package/lib/zartui.es.js +741 -566
  83. package/lib/zartui.js +741 -566
  84. package/lib/zartui.min.js +1 -1
  85. package/package.json +6 -6
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"
@@ -11015,7 +11043,7 @@ const hierarchySelectProps = {
11015
11043
  breadcrumbTitle: makeStringProp("全部"),
11016
11044
  autoChangeToChildren: Boolean
11017
11045
  };
11018
- var stdin_default$R = vue.defineComponent({
11046
+ var stdin_default$S = vue.defineComponent({
11019
11047
  name: name$A,
11020
11048
  props: hierarchySelectProps,
11021
11049
  emits: ["asyncGetter", "selected", "change", "update:checkedList"],
@@ -11218,7 +11246,7 @@ var stdin_default$R = vue.defineComponent({
11218
11246
  round: true,
11219
11247
  checked: getChecked(item)
11220
11248
  })
11221
- }, [vue.createVNode(stdin_default$1R, {
11249
+ }, [vue.createVNode(stdin_default$1S, {
11222
11250
  "name": "checkbox-select"
11223
11251
  }, null)]);
11224
11252
  }
@@ -11228,14 +11256,14 @@ var stdin_default$R = vue.defineComponent({
11228
11256
  checked: true,
11229
11257
  round: true
11230
11258
  })
11231
- }, [vue.createVNode(stdin_default$1R, {
11259
+ }, [vue.createVNode(stdin_default$1S, {
11232
11260
  "name": "checkbox-select"
11233
11261
  }, null)]) : vue.createVNode("span", {
11234
11262
  "class": bem$A("icon", {
11235
11263
  round: true,
11236
11264
  indeterminate
11237
11265
  })
11238
- }, [vue.createVNode(stdin_default$1R, {
11266
+ }, [vue.createVNode(stdin_default$1S, {
11239
11267
  "name": indeterminate ? "minus" : "check-blank-r",
11240
11268
  "class": bem$A("uncheck-icon")
11241
11269
  }, null)]);
@@ -11284,7 +11312,7 @@ var stdin_default$R = vue.defineComponent({
11284
11312
  });
11285
11313
  return () => vue.createVNode("div", {
11286
11314
  "class": bem$A()
11287
- }, [vue.createVNode(stdin_default$S, {
11315
+ }, [vue.createVNode(stdin_default$T, {
11288
11316
  "data": breadcrumbData.value,
11289
11317
  "valueKey": props.valueKey,
11290
11318
  "textKey": props.textKey,
@@ -11316,10 +11344,10 @@ var stdin_default$R = vue.defineComponent({
11316
11344
  }, [SubIcon(bem$A)]), vue.createVNode("span", null, [vue.createTextVNode("下级")])])])]))]);
11317
11345
  }
11318
11346
  });
11319
- const HierarchySelect = withInstall(stdin_default$R);
11347
+ const HierarchySelect = withInstall(stdin_default$S);
11320
11348
  const getDistance = (touches) => Math.sqrt((touches[0].clientX - touches[1].clientX) ** 2 + (touches[0].clientY - touches[1].clientY) ** 2);
11321
11349
  const bem$z = createNamespace("image-preview")[1];
11322
- var stdin_default$Q = vue.defineComponent({
11350
+ var stdin_default$R = vue.defineComponent({
11323
11351
  props: {
11324
11352
  src: String,
11325
11353
  show: Boolean,
@@ -11604,7 +11632,7 @@ const imagePreviewProps = {
11604
11632
  closeIconPosition: makeStringProp("top-right"),
11605
11633
  teleport: [String, Object]
11606
11634
  };
11607
- var stdin_default$P = vue.defineComponent({
11635
+ var stdin_default$Q = vue.defineComponent({
11608
11636
  name: name$z,
11609
11637
  props: imagePreviewProps,
11610
11638
  emits: ["scale", "close", "closed", "change", "longPress", "update:show"],
@@ -11692,7 +11720,7 @@ var stdin_default$P = vue.defineComponent({
11692
11720
  "onDragEnd": onDragEnd,
11693
11721
  "onDragStart": onDragStart
11694
11722
  }, {
11695
- default: () => [props.images.map((image, index) => vue.createVNode(stdin_default$Q, {
11723
+ default: () => [props.images.map((image, index) => vue.createVNode(stdin_default$R, {
11696
11724
  "src": image.url,
11697
11725
  "show": props.show,
11698
11726
  "active": state.active,
@@ -11799,7 +11827,7 @@ function initInstance$1() {
11799
11827
  const onClosed = () => {
11800
11828
  state.images = [];
11801
11829
  };
11802
- return () => vue.createVNode(stdin_default$P, vue.mergeProps(state, {
11830
+ return () => vue.createVNode(stdin_default$Q, vue.mergeProps(state, {
11803
11831
  "onClosed": onClosed,
11804
11832
  "onUpdate:show": toggle
11805
11833
  }), null);
@@ -11832,7 +11860,7 @@ const showImagePreview = (options, startPosition = 0) => {
11832
11860
  instance$1.open(extend({}, defaultConfig, options));
11833
11861
  return instance$1;
11834
11862
  };
11835
- const ImagePreview = withInstall(stdin_default$P);
11863
+ const ImagePreview = withInstall(stdin_default$Q);
11836
11864
  function genAlphabet() {
11837
11865
  const charCodeOfA = "A".charCodeAt(0);
11838
11866
  const indexList = Array(26).fill("").map((_, i) => String.fromCharCode(charCodeOfA + i));
@@ -11855,7 +11883,7 @@ const indexBarProps = {
11855
11883
  };
11856
11884
  const INDEX_BAR_KEY = Symbol(name$y);
11857
11885
  const MIN_CONTRACTION_NUM = 2;
11858
- var stdin_default$O = vue.defineComponent({
11886
+ var stdin_default$P = vue.defineComponent({
11859
11887
  name: name$y,
11860
11888
  props: indexBarProps,
11861
11889
  emits: ["select", "change", "anchorClick", "update:activeAnchor"],
@@ -12243,7 +12271,7 @@ const [name$x, bem$w] = createNamespace("index-anchor");
12243
12271
  const indexAnchorProps = {
12244
12272
  index: numericProp
12245
12273
  };
12246
- var stdin_default$N = vue.defineComponent({
12274
+ var stdin_default$O = vue.defineComponent({
12247
12275
  name: name$x,
12248
12276
  props: indexAnchorProps,
12249
12277
  setup(props, {
@@ -12316,8 +12344,8 @@ var stdin_default$N = vue.defineComponent({
12316
12344
  };
12317
12345
  }
12318
12346
  });
12319
- const IndexAnchor = withInstall(stdin_default$N);
12320
- const IndexBar = withInstall(stdin_default$O);
12347
+ const IndexAnchor = withInstall(stdin_default$O);
12348
+ const IndexBar = withInstall(stdin_default$P);
12321
12349
  const [name$w, bem$v, t$3] = createNamespace("list");
12322
12350
  const listProps = {
12323
12351
  error: Boolean,
@@ -12331,7 +12359,7 @@ const listProps = {
12331
12359
  finishedText: String,
12332
12360
  immediateCheck: truthProp
12333
12361
  };
12334
- var stdin_default$M = vue.defineComponent({
12362
+ var stdin_default$N = vue.defineComponent({
12335
12363
  name: name$w,
12336
12364
  props: listProps,
12337
12365
  emits: ["load", "update:error", "update:loading"],
@@ -12455,8 +12483,8 @@ var stdin_default$M = vue.defineComponent({
12455
12483
  };
12456
12484
  }
12457
12485
  });
12458
- const List = withInstall(stdin_default$M);
12459
- var stdin_default$L = vue.defineComponent({
12486
+ const List = withInstall(stdin_default$N);
12487
+ var stdin_default$M = vue.defineComponent({
12460
12488
  name: "DeleteIcon",
12461
12489
  setup() {
12462
12490
  return () => vue.createVNode("svg", {
@@ -12487,7 +12515,7 @@ const mediaPlayerProps = {
12487
12515
  mediaUrl: makeStringProp("")
12488
12516
  };
12489
12517
  const [name$v, bem$u] = createNamespace("media-player");
12490
- var stdin_default$K = vue.defineComponent({
12518
+ var stdin_default$L = vue.defineComponent({
12491
12519
  name: name$v,
12492
12520
  props: mediaPlayerProps,
12493
12521
  emits: ["update:show"],
@@ -12559,7 +12587,7 @@ var stdin_default$K = vue.defineComponent({
12559
12587
  }
12560
12588
  }
12561
12589
  };
12562
- return () => vue.createVNode(stdin_default$1O, {
12590
+ return () => vue.createVNode(stdin_default$1P, {
12563
12591
  "class": bem$u(),
12564
12592
  "show": props.show,
12565
12593
  "position": "bottom",
@@ -12579,9 +12607,9 @@ var stdin_default$K = vue.defineComponent({
12579
12607
  });
12580
12608
  }
12581
12609
  });
12582
- const MediaPlayer = withInstall(stdin_default$K);
12583
- var stdin_default$J = MediaPlayer;
12584
- 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({
12585
12613
  name: "DefaultVideoIcon",
12586
12614
  setup() {
12587
12615
  return () => vue.createVNode("svg", {
@@ -12695,7 +12723,7 @@ var stdin_default$I = vue.defineComponent({
12695
12723
  }, null)])]);
12696
12724
  }
12697
12725
  });
12698
- var stdin_default$H = vue.defineComponent({
12726
+ var stdin_default$I = vue.defineComponent({
12699
12727
  name: "DefaultAudioIcon",
12700
12728
  setup() {
12701
12729
  return () => vue.createVNode("svg", {
@@ -12788,7 +12816,7 @@ var stdin_default$H = vue.defineComponent({
12788
12816
  }, null)])])]);
12789
12817
  }
12790
12818
  });
12791
- var stdin_default$G = vue.defineComponent({
12819
+ var stdin_default$H = vue.defineComponent({
12792
12820
  name: "DefaultFileIcon",
12793
12821
  setup() {
12794
12822
  return () => vue.createVNode("svg", {
@@ -12870,7 +12898,7 @@ var stdin_default$G = vue.defineComponent({
12870
12898
  }, null)])])]);
12871
12899
  }
12872
12900
  });
12873
- var stdin_default$F = vue.defineComponent({
12901
+ var stdin_default$G = vue.defineComponent({
12874
12902
  name: "TakePhotoIcon",
12875
12903
  setup() {
12876
12904
  return () => vue.createVNode("svg", {
@@ -12892,7 +12920,7 @@ var stdin_default$F = vue.defineComponent({
12892
12920
  }, null)])])]);
12893
12921
  }
12894
12922
  });
12895
- var stdin_default$E = vue.defineComponent({
12923
+ var stdin_default$F = vue.defineComponent({
12896
12924
  name: "PickPhotoIcon",
12897
12925
  setup() {
12898
12926
  return () => vue.createVNode("svg", {
@@ -12914,7 +12942,7 @@ var stdin_default$E = vue.defineComponent({
12914
12942
  }, null)])])]);
12915
12943
  }
12916
12944
  });
12917
- var stdin_default$D = vue.defineComponent({
12945
+ var stdin_default$E = vue.defineComponent({
12918
12946
  name: "TakeVideoIcon",
12919
12947
  setup() {
12920
12948
  return () => vue.createVNode("svg", {
@@ -12936,7 +12964,7 @@ var stdin_default$D = vue.defineComponent({
12936
12964
  }, null)])])]);
12937
12965
  }
12938
12966
  });
12939
- var stdin_default$C = vue.defineComponent({
12967
+ var stdin_default$D = vue.defineComponent({
12940
12968
  name: "TakeAudioIcon",
12941
12969
  setup() {
12942
12970
  return () => vue.createVNode("svg", {
@@ -12958,7 +12986,7 @@ var stdin_default$C = vue.defineComponent({
12958
12986
  }, null)])])]);
12959
12987
  }
12960
12988
  });
12961
- var stdin_default$B = vue.defineComponent({
12989
+ var stdin_default$C = vue.defineComponent({
12962
12990
  name: "PickFileIcon",
12963
12991
  setup() {
12964
12992
  return () => vue.createVNode("svg", {
@@ -13996,6 +14024,68 @@ class ImageProcessor {
13996
14024
  );
13997
14025
  }
13998
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
+ };
13999
14089
  const [name$u, bem$t] = createNamespace("media-picker");
14000
14090
  const FILE_SIZE_LIMIT = 100;
14001
14091
  const mediaPickerProps = {
@@ -14045,9 +14135,12 @@ const mediaPickerProps = {
14045
14135
  // 文件读取完成后的回调函数,获取到对应的 media 对象
14046
14136
  afterRead: Function,
14047
14137
  // 文件删除前的回调函数,返回 false 可终止文件读取,支持返回 Promise
14048
- beforeDelete: Function
14138
+ beforeDelete: Function,
14139
+ // 是否强制使用微信
14140
+ useWx: Boolean,
14141
+ imageSizeType: makeStringProp("compressed")
14049
14142
  };
14050
- var stdin_default$A = vue.defineComponent({
14143
+ var stdin_default$B = vue.defineComponent({
14051
14144
  name: name$u,
14052
14145
  props: mediaPickerProps,
14053
14146
  emits: ["update:mediaList", "delete"],
@@ -14101,10 +14194,17 @@ var stdin_default$A = vue.defineComponent({
14101
14194
  return;
14102
14195
  }
14103
14196
  if (mediaType === "photo") {
14104
- if (mediaAddType === "take") {
14105
- triggerHiddenInput(cameraInputRef.value);
14106
- } else if (mediaAddType === "pick") {
14107
- triggerHiddenInput(imageInputRef.value);
14197
+ if (props.useWx && isWeixin() && window.wx) {
14198
+ const type = mediaAddType === "take" ? "camera" : "album";
14199
+ wxUploadImage(type).then((newMedias) => {
14200
+ emit("update:mediaList", [...props.mediaList, ...newMedias]);
14201
+ });
14202
+ } else {
14203
+ if (mediaAddType === "take") {
14204
+ triggerHiddenInput(cameraInputRef.value);
14205
+ } else if (mediaAddType === "pick") {
14206
+ triggerHiddenInput(imageInputRef.value);
14207
+ }
14108
14208
  }
14109
14209
  } else if (mediaType === "video") {
14110
14210
  if (mediaAddType === "take") {
@@ -14246,6 +14346,47 @@ var stdin_default$A = vue.defineComponent({
14246
14346
  message: ""
14247
14347
  };
14248
14348
  };
14349
+ const transformImageFilesWithoutCompress = (files) => {
14350
+ const mediaList = files.map((file) => {
14351
+ return file2DataURL(file).then((base64) => {
14352
+ const media = {
14353
+ showSrc: base64,
14354
+ type: "photo",
14355
+ file,
14356
+ // 需要以原始file的信息作为唯一标识
14357
+ uniqueCode: getFileUniqueCode(file),
14358
+ lastModified: file.lastModified,
14359
+ fileSize: file.size,
14360
+ // 修改后大小,水印,压缩等
14361
+ fileName: file.name,
14362
+ // 修改后名称
14363
+ deletable: true,
14364
+ message: "",
14365
+ originalName: file.name,
14366
+ // 原始名称
14367
+ originalSize: file.size
14368
+ // 原始大小
14369
+ };
14370
+ return media;
14371
+ });
14372
+ });
14373
+ showLoadingToast({
14374
+ message: "处理中...",
14375
+ forbidClick: true,
14376
+ duration: 0
14377
+ });
14378
+ return Promise.all(mediaList).then((medias) => {
14379
+ const _medias = [];
14380
+ medias.forEach((media) => {
14381
+ if (isDef(media)) {
14382
+ _medias.push(media);
14383
+ }
14384
+ });
14385
+ return _medias;
14386
+ }).finally(() => {
14387
+ closeToast();
14388
+ });
14389
+ };
14249
14390
  const transformImageFiles = (files) => {
14250
14391
  const promisesTodo = [];
14251
14392
  const resizeOptions = new ResizeOptions(props.maxImageSideLength);
@@ -14330,7 +14471,7 @@ var stdin_default$A = vue.defineComponent({
14330
14471
  if (imageFiles.length === 0) {
14331
14472
  promise = Promise.resolve([]);
14332
14473
  } else {
14333
- promise = transformImageFiles(imageFiles);
14474
+ promise = props.imageSizeType === "original" ? transformImageFilesWithoutCompress(imageFiles) : transformImageFiles(imageFiles);
14334
14475
  }
14335
14476
  promise.then((medias) => {
14336
14477
  if (medias && medias.length > 0) {
@@ -14436,24 +14577,24 @@ var stdin_default$A = vue.defineComponent({
14436
14577
  const renderIcon = (mediaType, mediaAddType) => {
14437
14578
  if (mediaType === "photo") {
14438
14579
  if (mediaAddType === "take") {
14439
- return vue.createVNode(stdin_default$F, {
14580
+ return vue.createVNode(stdin_default$G, {
14440
14581
  "class": bem$t("icon")
14441
14582
  }, null);
14442
14583
  } else if (mediaAddType === "pick") {
14443
- return vue.createVNode(stdin_default$E, {
14584
+ return vue.createVNode(stdin_default$F, {
14444
14585
  "class": bem$t("icon")
14445
14586
  }, null);
14446
14587
  }
14447
14588
  } else if (mediaType === "video") {
14448
- return vue.createVNode(stdin_default$D, {
14589
+ return vue.createVNode(stdin_default$E, {
14449
14590
  "class": bem$t("icon")
14450
14591
  }, null);
14451
14592
  } else if (mediaType === "audio") {
14452
- return vue.createVNode(stdin_default$C, {
14593
+ return vue.createVNode(stdin_default$D, {
14453
14594
  "class": bem$t("icon")
14454
14595
  }, null);
14455
14596
  } else if (mediaType === "file") {
14456
- return vue.createVNode(stdin_default$B, {
14597
+ return vue.createVNode(stdin_default$C, {
14457
14598
  "class": bem$t("icon")
14458
14599
  }, null);
14459
14600
  }
@@ -14519,10 +14660,10 @@ var stdin_default$A = vue.defineComponent({
14519
14660
  message
14520
14661
  } = media;
14521
14662
  if (status === "uploading" || status === "failed") {
14522
- const MaskIcon = status === "failed" ? vue.createVNode(stdin_default$1R, {
14663
+ const MaskIcon = status === "failed" ? vue.createVNode(stdin_default$1S, {
14523
14664
  "name": "close",
14524
14665
  "class": bem$t("mask-icon")
14525
- }, null) : vue.createVNode(stdin_default$1M, {
14666
+ }, null) : vue.createVNode(stdin_default$1N, {
14526
14667
  "class": bem$t("loading")
14527
14668
  }, null);
14528
14669
  const showMessage = isDef(message) && message !== "";
@@ -14540,23 +14681,27 @@ var stdin_default$A = vue.defineComponent({
14540
14681
  emit("delete", media, index);
14541
14682
  };
14542
14683
  const renderMediaThumbnail = (media) => {
14543
- const thumbnailUrl = media.showSrc || media.url;
14544
- if (thumbnailUrl) {
14545
- return vue.createVNode(stdin_default$1I, {
14546
- "src": thumbnailUrl,
14547
- "fit": "cover",
14548
- "radius": "4"
14684
+ if (media.type === "video") {
14685
+ return vue.createVNode(stdin_default$J, {
14686
+ "class": bem$t("thumbnail")
14549
14687
  }, null);
14550
- } else if (media.type === "video") {
14688
+ } else if (media.type === "audio") {
14551
14689
  return vue.createVNode(stdin_default$I, {
14552
14690
  "class": bem$t("thumbnail")
14553
14691
  }, null);
14554
- } else if (media.type === "audio") {
14692
+ } else if (media.type === "file") {
14555
14693
  return vue.createVNode(stdin_default$H, {
14556
14694
  "class": bem$t("thumbnail")
14557
14695
  }, null);
14558
- } else if (media.type === "file") {
14559
- return vue.createVNode(stdin_default$G, {
14696
+ } else if (media.type === "photo") {
14697
+ const thumbnailUrl = media.showSrc || media.url;
14698
+ return vue.createVNode(stdin_default$1J, {
14699
+ "src": thumbnailUrl,
14700
+ "fit": "cover",
14701
+ "radius": "4"
14702
+ }, null);
14703
+ } else {
14704
+ return vue.createVNode(stdin_default$H, {
14560
14705
  "class": bem$t("thumbnail")
14561
14706
  }, null);
14562
14707
  }
@@ -14615,14 +14760,14 @@ var stdin_default$A = vue.defineComponent({
14615
14760
  };
14616
14761
  const renderMediaList = () => props.mediaList.map((media, index) => {
14617
14762
  const showDelete = media.deletable && media.status !== "uploading";
14618
- const deleteIcon = showDelete && vue.createVNode(stdin_default$L, {
14763
+ const deleteIcon = showDelete && vue.createVNode(stdin_default$M, {
14619
14764
  "class": bem$t("delete"),
14620
14765
  "onClick": (event) => {
14621
14766
  event.stopPropagation();
14622
14767
  onDelete(media, index);
14623
14768
  }
14624
14769
  }, null);
14625
- return vue.createVNode(stdin_default$T, {
14770
+ return vue.createVNode(stdin_default$U, {
14626
14771
  "key": media.uniqueCode,
14627
14772
  "onClick": () => previewMedia(index)
14628
14773
  }, {
@@ -14640,12 +14785,12 @@ var stdin_default$A = vue.defineComponent({
14640
14785
  const showButtons = props.allowTakePhoto || props.allowPickPhoto || props.allowTakeVideo || props.allowPickVideo || props.allowTakeAudio || props.allowPickAudio || props.allowPickFile;
14641
14786
  return vue.createVNode("div", {
14642
14787
  "class": bem$t()
14643
- }, [title, hiddenInput(), vue.createVNode(stdin_default$J, {
14788
+ }, [title, hiddenInput(), vue.createVNode(stdin_default$K, {
14644
14789
  "show": mediaPlayerVisible.value,
14645
14790
  "onUpdate:show": ($event) => mediaPlayerVisible.value = $event,
14646
14791
  "mediaType": mediaTypeToPlay.value,
14647
14792
  "mediaUrl": mediaUrlToPlay.value
14648
- }, null), vue.createVNode(stdin_default$1K, {
14793
+ }, null), vue.createVNode(stdin_default$1L, {
14649
14794
  "show": actionVisible.value,
14650
14795
  "onUpdate:show": ($event) => actionVisible.value = $event,
14651
14796
  "actions": actionOptions.value,
@@ -14655,7 +14800,7 @@ var stdin_default$A = vue.defineComponent({
14655
14800
  "onSelect": selectAction
14656
14801
  }, null), vue.withDirectives(vue.createVNode("div", {
14657
14802
  "class": bem$t("line")
14658
- }, [renderButtons()]), [[vue.vShow, showButtons]]), vue.withDirectives(vue.createVNode(stdin_default$V, {
14803
+ }, [renderButtons()]), [[vue.vShow, showButtons]]), vue.withDirectives(vue.createVNode(stdin_default$W, {
14659
14804
  "column-num": "3",
14660
14805
  "border": false,
14661
14806
  "square": true,
@@ -14676,7 +14821,7 @@ const defaultMedia = {
14676
14821
  lastModified: 0,
14677
14822
  deletable: false
14678
14823
  };
14679
- const MediaPicker = withInstall(stdin_default$A);
14824
+ const MediaPicker = withInstall(stdin_default$B);
14680
14825
  const [name$t, bem$s] = createNamespace("multiple-picker-options");
14681
14826
  const multiplePickerOptionsProps = {
14682
14827
  textKey: makeStringProp(""),
@@ -14687,7 +14832,7 @@ const multiplePickerOptionsProps = {
14687
14832
  initialOptions: makeArrayProp([]),
14688
14833
  currentIndexes: makeArrayProp([])
14689
14834
  };
14690
- var stdin_default$z = vue.defineComponent({
14835
+ var stdin_default$A = vue.defineComponent({
14691
14836
  name: name$t,
14692
14837
  props: multiplePickerOptionsProps,
14693
14838
  emits: ["change", "update:currentIndexes"],
@@ -14800,7 +14945,7 @@ const multiplePickerProps = {
14800
14945
  selectedValue: makeArrayProp([]),
14801
14946
  popup: truthProp
14802
14947
  };
14803
- var stdin_default$y = vue.defineComponent({
14948
+ var stdin_default$z = vue.defineComponent({
14804
14949
  name: name$s,
14805
14950
  props: multiplePickerProps,
14806
14951
  emits: ["cancel", "confirm", "change", "update:showPicker", "update:selectedIndex", "update:selectedValue"],
@@ -14879,7 +15024,7 @@ var stdin_default$y = vue.defineComponent({
14879
15024
  };
14880
15025
  const genCancel = () => {
14881
15026
  const text = props.cancelButtonText || "取消";
14882
- return vue.createVNode(stdin_default$1F, {
15027
+ return vue.createVNode(stdin_default$1G, {
14883
15028
  "size": "normal",
14884
15029
  "block": true,
14885
15030
  "style": {
@@ -14892,7 +15037,7 @@ var stdin_default$y = vue.defineComponent({
14892
15037
  };
14893
15038
  const genConfirm = () => {
14894
15039
  const text = props.confirmButtonText || "确定";
14895
- return vue.createVNode(stdin_default$1F, {
15040
+ return vue.createVNode(stdin_default$1G, {
14896
15041
  "type": "primary",
14897
15042
  "size": "normal",
14898
15043
  "block": true,
@@ -14921,7 +15066,7 @@ var stdin_default$y = vue.defineComponent({
14921
15066
  } else {
14922
15067
  formatOptions = props.options;
14923
15068
  }
14924
- return vue.createVNode(stdin_default$z, {
15069
+ return vue.createVNode(stdin_default$A, {
14925
15070
  "ref": pickerOptions,
14926
15071
  "currentIndexes": confirmIndexes.value,
14927
15072
  "onUpdate:currentIndexes": ($event) => confirmIndexes.value = $event,
@@ -14941,12 +15086,12 @@ var stdin_default$y = vue.defineComponent({
14941
15086
  }, [genOptionItems()]);
14942
15087
  const renderMultiplePicker = () => vue.createVNode("div", {
14943
15088
  "class": bem$r()
14944
- }, [genTitle(), props.loading ? vue.createVNode(stdin_default$1M, {
15089
+ }, [genTitle(), props.loading ? vue.createVNode(stdin_default$1N, {
14945
15090
  "class": bem$r("loading")
14946
15091
  }, null) : "", genOptions2(), props.toolbarPosition === "bottom" ? genToolbar() : ""]);
14947
15092
  return () => {
14948
15093
  if (props.popup) {
14949
- return vue.createVNode(stdin_default$1O, {
15094
+ return vue.createVNode(stdin_default$1P, {
14950
15095
  "show": currentShow.value,
14951
15096
  "onUpdate:show": [($event) => currentShow.value = $event, updateShow],
14952
15097
  "round": true,
@@ -14962,7 +15107,7 @@ var stdin_default$y = vue.defineComponent({
14962
15107
  };
14963
15108
  }
14964
15109
  });
14965
- const MultiplePicker = withInstall(stdin_default$y);
15110
+ const MultiplePicker = withInstall(stdin_default$z);
14966
15111
  function usePlaceholder(contentRef, bem2) {
14967
15112
  const height = useHeight(contentRef, true);
14968
15113
  return (renderContent) => vue.createVNode("div", {
@@ -14989,7 +15134,7 @@ const navBarProps = {
14989
15134
  navBarBackground: String,
14990
15135
  leftBtnStyle: Object
14991
15136
  };
14992
- var stdin_default$x = vue.defineComponent({
15137
+ var stdin_default$y = vue.defineComponent({
14993
15138
  name: name$r,
14994
15139
  props: navBarProps,
14995
15140
  emits: ["clickLeft", "clickRight"],
@@ -15078,7 +15223,7 @@ var stdin_default$x = vue.defineComponent({
15078
15223
  };
15079
15224
  }
15080
15225
  });
15081
- const NavBar = withInstall(stdin_default$x);
15226
+ const NavBar = withInstall(stdin_default$y);
15082
15227
  const [name$q, bem$p] = createNamespace("notice-bar");
15083
15228
  const noticeBarProps = {
15084
15229
  text: String,
@@ -15094,7 +15239,7 @@ const noticeBarProps = {
15094
15239
  default: null
15095
15240
  }
15096
15241
  };
15097
- var stdin_default$w = vue.defineComponent({
15242
+ var stdin_default$x = vue.defineComponent({
15098
15243
  name: name$q,
15099
15244
  props: noticeBarProps,
15100
15245
  emits: ["close", "replay"],
@@ -15117,7 +15262,7 @@ var stdin_default$w = vue.defineComponent({
15117
15262
  return slots["left-icon"]();
15118
15263
  }
15119
15264
  if (props.leftIcon) {
15120
- return vue.createVNode(stdin_default$1R, {
15265
+ return vue.createVNode(stdin_default$1S, {
15121
15266
  "class": bem$p("left-icon"),
15122
15267
  "name": props.leftIcon
15123
15268
  }, null);
@@ -15143,7 +15288,7 @@ var stdin_default$w = vue.defineComponent({
15143
15288
  }
15144
15289
  const name2 = getRightIconName();
15145
15290
  if (name2) {
15146
- return vue.createVNode(stdin_default$1R, {
15291
+ return vue.createVNode(stdin_default$1S, {
15147
15292
  "name": name2,
15148
15293
  "class": bem$p("right-icon"),
15149
15294
  "onClick": onClickRightIcon
@@ -15234,7 +15379,7 @@ var stdin_default$w = vue.defineComponent({
15234
15379
  };
15235
15380
  }
15236
15381
  });
15237
- const NoticeBar = withInstall(stdin_default$w);
15382
+ const NoticeBar = withInstall(stdin_default$x);
15238
15383
  const [name$p, bem$o] = createNamespace("notify");
15239
15384
  const notifyProps = extend({}, popupSharedProps, {
15240
15385
  type: makeStringProp("danger"),
@@ -15245,7 +15390,7 @@ const notifyProps = extend({}, popupSharedProps, {
15245
15390
  background: String,
15246
15391
  lockScroll: Boolean
15247
15392
  });
15248
- var stdin_default$v = vue.defineComponent({
15393
+ var stdin_default$w = vue.defineComponent({
15249
15394
  name: name$p,
15250
15395
  props: notifyProps,
15251
15396
  emits: ["update:show"],
@@ -15285,7 +15430,7 @@ function initInstance() {
15285
15430
  state,
15286
15431
  toggle
15287
15432
  } = usePopupState();
15288
- return () => vue.createVNode(stdin_default$v, vue.mergeProps(state, {
15433
+ return () => vue.createVNode(stdin_default$w, vue.mergeProps(state, {
15289
15434
  "onUpdate:show": toggle
15290
15435
  }), null);
15291
15436
  }
@@ -15329,17 +15474,17 @@ const setNotifyDefaultOptions = (options) => extend(currentOptions, options);
15329
15474
  const resetNotifyDefaultOptions = () => {
15330
15475
  currentOptions = getDefaultOptions();
15331
15476
  };
15332
- const Notify = withInstall(stdin_default$v);
15477
+ const Notify = withInstall(stdin_default$w);
15333
15478
  const [name$o, bem$n] = createNamespace("key");
15334
- const CollapseIcon = vue.createVNode(stdin_default$1R, {
15479
+ const CollapseIcon = vue.createVNode(stdin_default$1S, {
15335
15480
  "name": "keyboard-shrink",
15336
15481
  "size": "40"
15337
15482
  }, null);
15338
- const DeleteIcon = vue.createVNode(stdin_default$1R, {
15483
+ const DeleteIcon = vue.createVNode(stdin_default$1S, {
15339
15484
  "name": "backspace",
15340
15485
  "size": "40"
15341
15486
  }, null);
15342
- var stdin_default$u = vue.defineComponent({
15487
+ var stdin_default$v = vue.defineComponent({
15343
15488
  name: name$o,
15344
15489
  props: {
15345
15490
  type: String,
@@ -15442,7 +15587,7 @@ function shuffle(array) {
15442
15587
  }
15443
15588
  return array;
15444
15589
  }
15445
- var stdin_default$t = vue.defineComponent({
15590
+ var stdin_default$u = vue.defineComponent({
15446
15591
  name: name$n,
15447
15592
  props: numberKeyboardProps,
15448
15593
  emits: ["show", "hide", "blur", "input", "close", "delete", "update:modelValue"],
@@ -15554,7 +15699,7 @@ var stdin_default$t = vue.defineComponent({
15554
15699
  if (key.type === "extra") {
15555
15700
  keySlots.default = slots["extra-key"];
15556
15701
  }
15557
- return vue.createVNode(stdin_default$u, {
15702
+ return vue.createVNode(stdin_default$v, {
15558
15703
  "key": key.text,
15559
15704
  "text": key.text,
15560
15705
  "type": key.type,
@@ -15567,14 +15712,14 @@ var stdin_default$t = vue.defineComponent({
15567
15712
  if (props.theme === "custom") {
15568
15713
  return vue.createVNode("div", {
15569
15714
  "class": bem$m("sidebar")
15570
- }, [props.showDeleteKey && vue.createVNode(stdin_default$u, {
15715
+ }, [props.showDeleteKey && vue.createVNode(stdin_default$v, {
15571
15716
  "large": true,
15572
15717
  "text": props.deleteButtonText,
15573
15718
  "type": "delete",
15574
15719
  "onPress": onPress
15575
15720
  }, {
15576
15721
  delete: slots.delete
15577
- }), vue.createVNode(stdin_default$u, {
15722
+ }), vue.createVNode(stdin_default$v, {
15578
15723
  "large": true,
15579
15724
  "text": props.closeButtonText,
15580
15725
  "type": "close",
@@ -15628,7 +15773,7 @@ var stdin_default$t = vue.defineComponent({
15628
15773
  };
15629
15774
  }
15630
15775
  });
15631
- const NumberKeyboard = withInstall(stdin_default$t);
15776
+ const NumberKeyboard = withInstall(stdin_default$u);
15632
15777
  const [name$m, bem$l] = createNamespace("password-input");
15633
15778
  const passwordInputProps = {
15634
15779
  info: String,
@@ -15639,7 +15784,7 @@ const passwordInputProps = {
15639
15784
  focused: Boolean,
15640
15785
  errorInfo: String
15641
15786
  };
15642
- var stdin_default$s = vue.defineComponent({
15787
+ var stdin_default$t = vue.defineComponent({
15643
15788
  name: name$m,
15644
15789
  props: passwordInputProps,
15645
15790
  emits: ["focus"],
@@ -15701,7 +15846,7 @@ var stdin_default$s = vue.defineComponent({
15701
15846
  };
15702
15847
  }
15703
15848
  });
15704
- const PasswordInput = withInstall(stdin_default$s);
15849
+ const PasswordInput = withInstall(stdin_default$t);
15705
15850
  var __async = (__this, __arguments, generator) => {
15706
15851
  return new Promise((resolve, reject) => {
15707
15852
  var fulfilled = (value) => {
@@ -15752,7 +15897,7 @@ const popoverProps = {
15752
15897
  default: false
15753
15898
  }
15754
15899
  };
15755
- var stdin_default$r = vue.defineComponent({
15900
+ var stdin_default$s = vue.defineComponent({
15756
15901
  name: name$l,
15757
15902
  props: popoverProps,
15758
15903
  emits: ["select", "touchstart", "update:show"],
@@ -15973,7 +16118,7 @@ var stdin_default$r = vue.defineComponent({
15973
16118
  };
15974
16119
  }
15975
16120
  });
15976
- const Popover = withInstall(stdin_default$r);
16121
+ const Popover = withInstall(stdin_default$s);
15977
16122
  const [name$k, bem$j, t$2] = createNamespace("pull-refresh");
15978
16123
  const DEFAULT_HEAD_HEIGHT = 50;
15979
16124
  const TEXT_STATUS = ["pulling", "loosing", "success"];
@@ -15990,7 +16135,7 @@ const pullRefreshProps = {
15990
16135
  animationDuration: makeNumericProp(300),
15991
16136
  scrollElement: null
15992
16137
  };
15993
- var stdin_default$q = vue.defineComponent({
16138
+ var stdin_default$r = vue.defineComponent({
15994
16139
  name: name$k,
15995
16140
  props: pullRefreshProps,
15996
16141
  emits: ["change", "refresh", "update:modelValue"],
@@ -16172,7 +16317,7 @@ var stdin_default$q = vue.defineComponent({
16172
16317
  };
16173
16318
  }
16174
16319
  });
16175
- const PullRefresh = withInstall(stdin_default$q);
16320
+ const PullRefresh = withInstall(stdin_default$r);
16176
16321
  const [name$j, bem$i] = createNamespace("radio-group");
16177
16322
  const radioGroupProps = {
16178
16323
  disabled: Boolean,
@@ -16182,7 +16327,7 @@ const radioGroupProps = {
16182
16327
  checkedColor: String
16183
16328
  };
16184
16329
  const RADIO_KEY = Symbol(name$j);
16185
- var stdin_default$p = vue.defineComponent({
16330
+ var stdin_default$q = vue.defineComponent({
16186
16331
  name: name$j,
16187
16332
  props: radioGroupProps,
16188
16333
  emits: ["change", "update:modelValue"],
@@ -16210,7 +16355,7 @@ var stdin_default$p = vue.defineComponent({
16210
16355
  }
16211
16356
  });
16212
16357
  const [name$i, bem$h] = createNamespace("radio");
16213
- var stdin_default$o = vue.defineComponent({
16358
+ var stdin_default$p = vue.defineComponent({
16214
16359
  name: name$i,
16215
16360
  props: checkerProps,
16216
16361
  emits: ["update:modelValue"],
@@ -16232,7 +16377,7 @@ var stdin_default$o = vue.defineComponent({
16232
16377
  emit("update:modelValue", props.name);
16233
16378
  }
16234
16379
  };
16235
- return () => vue.createVNode(stdin_default$1n, vue.mergeProps({
16380
+ return () => vue.createVNode(stdin_default$1o, vue.mergeProps({
16236
16381
  "bem": bem$h,
16237
16382
  "role": "radio",
16238
16383
  "parent": parent,
@@ -16241,8 +16386,8 @@ var stdin_default$o = vue.defineComponent({
16241
16386
  }, props), pick(slots, ["default", "icon"]));
16242
16387
  }
16243
16388
  });
16244
- const Radio = withInstall(stdin_default$o);
16245
- const RadioGroup = withInstall(stdin_default$p);
16389
+ const Radio = withInstall(stdin_default$p);
16390
+ const RadioGroup = withInstall(stdin_default$q);
16246
16391
  const [name$h, bem$g, t$1] = createNamespace("radio-picker");
16247
16392
  const getFirstEnabledOption = (options) => options.find((option) => !option.disabled) || options[0];
16248
16393
  function getColumnsType(columns, fields) {
@@ -16314,7 +16459,7 @@ const MOMENTUM_TIME = 300;
16314
16459
  const MOMENTUM_DISTANCE = 15;
16315
16460
  const [name$g, bem$f] = createNamespace("radio-picker-column");
16316
16461
  const PICKER_KEY = Symbol(name$g);
16317
- var stdin_default$n = vue.defineComponent({
16462
+ var stdin_default$o = vue.defineComponent({
16318
16463
  name: name$g,
16319
16464
  props: {
16320
16465
  value: numericProp,
@@ -16479,7 +16624,7 @@ var stdin_default$n = vue.defineComponent({
16479
16624
  const childData = {
16480
16625
  [props.allowHtml || isSearchedTrans ? "innerHTML" : "textContent"]: text
16481
16626
  };
16482
- return vue.createVNode(stdin_default$o, data, {
16627
+ return vue.createVNode(stdin_default$p, data, {
16483
16628
  default: () => [slots.option ? slots.option({
16484
16629
  option,
16485
16630
  searchValue: props.autoSearchVal
@@ -16500,7 +16645,7 @@ var stdin_default$n = vue.defineComponent({
16500
16645
  if (slots.searchEmpty) {
16501
16646
  return (_a = slots.searchEmpty) == null ? void 0 : _a.call(slots);
16502
16647
  }
16503
- return vue.createVNode(stdin_default$Z, {
16648
+ return vue.createVNode(stdin_default$_, {
16504
16649
  "class": bem$f("search-empty"),
16505
16650
  "image": "no-search-result"
16506
16651
  }, {
@@ -16525,7 +16670,7 @@ var stdin_default$n = vue.defineComponent({
16525
16670
  },
16526
16671
  "class": bem$f("wrapper"),
16527
16672
  "onTransitionend": stopMomentum
16528
- }, [vue.createVNode(stdin_default$p, {
16673
+ }, [vue.createVNode(stdin_default$q, {
16529
16674
  "modelValue": props.value
16530
16675
  }, {
16531
16676
  default: () => [renderOptions()]
@@ -16539,7 +16684,7 @@ const pickerToolbarProps = {
16539
16684
  };
16540
16685
  const pickerToolbarSlots = ["cancel", "confirm", "title", "toolbar"];
16541
16686
  const pickerToolbarPropKeys = Object.keys(pickerToolbarProps);
16542
- var stdin_default$m = vue.defineComponent({
16687
+ var stdin_default$n = vue.defineComponent({
16543
16688
  name: name$f,
16544
16689
  props: pickerToolbarProps,
16545
16690
  emits: ["confirm", "cancel"],
@@ -16655,7 +16800,7 @@ const radioPickerProps = extend({}, pickerSharedProps, {
16655
16800
  autoSearch: truthProp,
16656
16801
  searchPlaceholder: makeStringProp("请搜索")
16657
16802
  });
16658
- var stdin_default$l = vue.defineComponent({
16803
+ var stdin_default$m = vue.defineComponent({
16659
16804
  name: name$h,
16660
16805
  props: radioPickerProps,
16661
16806
  emits: ["confirm", "cancel", "change", "clickOption", "update:modelValue", "update:showPicker"],
@@ -16757,7 +16902,7 @@ var stdin_default$l = vue.defineComponent({
16757
16902
  emit("cancel", getEventParams());
16758
16903
  };
16759
16904
  const updateShow = (value) => emit("update:showPicker", value);
16760
- const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$n, {
16905
+ const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$o, {
16761
16906
  "value": selectedValues.value[columnIndex],
16762
16907
  "fields": fields.value,
16763
16908
  "options": options,
@@ -16803,7 +16948,7 @@ var stdin_default$l = vue.defineComponent({
16803
16948
  if (props.searchable) {
16804
16949
  return vue.createVNode("div", {
16805
16950
  "class": bem$g("search")
16806
- }, [vue.createVNode(stdin_default$13, {
16951
+ }, [vue.createVNode(stdin_default$14, {
16807
16952
  "show-action": !props.autoSearch,
16808
16953
  "modelValue": searchVal.value,
16809
16954
  "placeholder": props.searchPlaceholder,
@@ -16825,7 +16970,7 @@ var stdin_default$l = vue.defineComponent({
16825
16970
  };
16826
16971
  const renderToolbar = () => {
16827
16972
  if (props.showToolbar) {
16828
- return vue.createVNode(stdin_default$m, vue.mergeProps(pick(props, pickerToolbarPropKeys), {
16973
+ return vue.createVNode(stdin_default$n, vue.mergeProps(pick(props, pickerToolbarPropKeys), {
16829
16974
  "onConfirm": confirm,
16830
16975
  "onCancel": cancel
16831
16976
  }), pick(slots, pickerToolbarSlots));
@@ -16891,7 +17036,7 @@ var stdin_default$l = vue.defineComponent({
16891
17036
  };
16892
17037
  return () => {
16893
17038
  if (props.popup) {
16894
- return vue.createVNode(stdin_default$1O, {
17039
+ return vue.createVNode(stdin_default$1P, {
16895
17040
  "show": showPicker.value,
16896
17041
  "onUpdate:show": [($event) => showPicker.value = $event, updateShow],
16897
17042
  "round": true,
@@ -16904,7 +17049,7 @@ var stdin_default$l = vue.defineComponent({
16904
17049
  };
16905
17050
  }
16906
17051
  });
16907
- const RadioPicker = withInstall(stdin_default$l);
17052
+ const RadioPicker = withInstall(stdin_default$m);
16908
17053
  const [name$e, bem$e] = createNamespace("rate");
16909
17054
  function getRateStatus(value, index, allowHalf, readonly) {
16910
17055
  if (value >= index) {
@@ -16947,7 +17092,7 @@ const rateProps = {
16947
17092
  modelValue: makeNumberProp(0),
16948
17093
  disabledColor: String
16949
17094
  };
16950
- var stdin_default$k = vue.defineComponent({
17095
+ var stdin_default$l = vue.defineComponent({
16951
17096
  name: name$e,
16952
17097
  props: rateProps,
16953
17098
  emits: ["change", "update:modelValue"],
@@ -17112,8 +17257,8 @@ var stdin_default$k = vue.defineComponent({
17112
17257
  }, [list.value.map(renderStar)]);
17113
17258
  }
17114
17259
  });
17115
- const Rate = withInstall(stdin_default$k);
17116
- const Row = withInstall(stdin_default$1l);
17260
+ const Rate = withInstall(stdin_default$l);
17261
+ const Row = withInstall(stdin_default$1m);
17117
17262
  const isPortrait = () => window.orientation == null || window.orientation === 180 || window.orientation === 0;
17118
17263
  const getForceLandscapeStyle = (offsetLeft, offsetTop, forceLandscape) => {
17119
17264
  const resultStyle = {
@@ -17198,7 +17343,7 @@ const signatureProps = {
17198
17343
  unSupportTpl: makeStringProp("对不起,当前浏览器不支持Canvas,无法使用签名组件"),
17199
17344
  allowPortrait: Boolean
17200
17345
  };
17201
- var stdin_default$j = vue.defineComponent({
17346
+ var stdin_default$k = vue.defineComponent({
17202
17347
  name: name$d,
17203
17348
  props: signatureProps,
17204
17349
  emits: ["clear", "cancel", "confirm"],
@@ -17379,20 +17524,20 @@ var stdin_default$j = vue.defineComponent({
17379
17524
  "height": canvasHeight.value
17380
17525
  }, null), [[vue.vShow, isCanvasSupported.value]])]), vue.createVNode("div", {
17381
17526
  "class": bem$d("actions")
17382
- }, [vue.createVNode(stdin_default$1F, {
17527
+ }, [vue.createVNode(stdin_default$1G, {
17383
17528
  "plain": true,
17384
17529
  "type": "warning",
17385
17530
  "onClick": () => clear(),
17386
17531
  "class": bem$d("button-again")
17387
17532
  }, {
17388
17533
  default: () => [vue.createTextVNode("重签")]
17389
- }), vue.createVNode(stdin_default$1F, {
17534
+ }), vue.createVNode(stdin_default$1G, {
17390
17535
  "type": "default",
17391
17536
  "onClick": cancel,
17392
17537
  "class": bem$d("button-cancel")
17393
17538
  }, {
17394
17539
  default: () => [vue.createTextVNode("取消")]
17395
- }), vue.createVNode(stdin_default$1F, {
17540
+ }), vue.createVNode(stdin_default$1G, {
17396
17541
  "block": true,
17397
17542
  "type": "primary",
17398
17543
  "disabled": isCompleteButtonDisabled.value,
@@ -17404,7 +17549,7 @@ var stdin_default$j = vue.defineComponent({
17404
17549
  });
17405
17550
  }
17406
17551
  });
17407
- const Signature = withInstall(stdin_default$j);
17552
+ const Signature = withInstall(stdin_default$k);
17408
17553
  const [name$c, bem$c] = createNamespace("skeleton");
17409
17554
  const DEFAULT_ROW_WIDTH = "100%";
17410
17555
  const DEFAULT_LAST_ROW_WIDTH = "60%";
@@ -17425,7 +17570,7 @@ const skeletonProps = {
17425
17570
  default: DEFAULT_ROW_WIDTH
17426
17571
  }
17427
17572
  };
17428
- var stdin_default$i = vue.defineComponent({
17573
+ var stdin_default$j = vue.defineComponent({
17429
17574
  name: name$c,
17430
17575
  inheritAttrs: false,
17431
17576
  props: skeletonProps,
@@ -17514,7 +17659,7 @@ var stdin_default$i = vue.defineComponent({
17514
17659
  };
17515
17660
  }
17516
17661
  });
17517
- const Skeleton = withInstall(stdin_default$i);
17662
+ const Skeleton = withInstall(stdin_default$j);
17518
17663
  const [name$b, bem$b] = createNamespace("slider");
17519
17664
  const sliderProps = {
17520
17665
  min: makeNumericProp(0),
@@ -17538,7 +17683,7 @@ const sliderProps = {
17538
17683
  direction: makeStringProp("horizontal"),
17539
17684
  showPercent: truthProp
17540
17685
  };
17541
- var stdin_default$h = vue.defineComponent({
17686
+ var stdin_default$i = vue.defineComponent({
17542
17687
  name: name$b,
17543
17688
  props: sliderProps,
17544
17689
  emits: ["change", "dragEnd", "dragStart", "update:modelValue"],
@@ -17582,6 +17727,12 @@ var stdin_default$h = vue.defineComponent({
17582
17727
  }
17583
17728
  return "0%";
17584
17729
  };
17730
+ const getPositionKey = () => {
17731
+ if (props.vertical) {
17732
+ return props.reverse ? "bottom" : "top";
17733
+ }
17734
+ return props.reverse ? "right" : "left";
17735
+ };
17585
17736
  const barStyle = vue.computed(() => {
17586
17737
  const mainAxis = props.vertical ? "height" : "width";
17587
17738
  const style = {
@@ -17591,12 +17742,6 @@ var stdin_default$h = vue.defineComponent({
17591
17742
  if (dragStatus.value) {
17592
17743
  style.transition = "none";
17593
17744
  }
17594
- const getPositionKey = () => {
17595
- if (props.vertical) {
17596
- return props.reverse ? "bottom" : "top";
17597
- }
17598
- return props.reverse ? "right" : "left";
17599
- };
17600
17745
  style[getPositionKey()] = calcOffset();
17601
17746
  return style;
17602
17747
  });
@@ -17718,13 +17863,6 @@ var stdin_default$h = vue.defineComponent({
17718
17863
  }
17719
17864
  dragStatus.value = "";
17720
17865
  };
17721
- const getButtonClassName = (index) => {
17722
- if (typeof index === "number") {
17723
- const position = ["left", "right"];
17724
- return bem$b(`button-wrapper`, position[index]);
17725
- }
17726
- return bem$b("button-wrapper", props.reverse ? "left" : "right");
17727
- };
17728
17866
  const renderButtonContent = (value, index) => {
17729
17867
  const dragging = dragStatus.value === "dragging";
17730
17868
  if (typeof index === "number") {
@@ -17754,10 +17892,15 @@ var stdin_default$h = vue.defineComponent({
17754
17892
  };
17755
17893
  const renderButton = (index) => {
17756
17894
  const current22 = typeof index === "number" ? props.modelValue[index] : props.modelValue;
17895
+ const left = `${(current22 - Number(props.min)) * 100 / scope.value}%`;
17896
+ const style = {
17897
+ [getPositionKey()]: left,
17898
+ transform: `translate(-${left},-50%)`
17899
+ };
17757
17900
  return vue.createVNode("div", {
17758
17901
  "ref": slider[index != null ? index : 0],
17759
17902
  "role": "slider",
17760
- "class": getButtonClassName(index),
17903
+ "class": bem$b("button-wrapper"),
17761
17904
  "tabindex": props.disabled ? void 0 : 0,
17762
17905
  "aria-valuemin": props.min,
17763
17906
  "aria-valuenow": current22,
@@ -17773,7 +17916,8 @@ var stdin_default$h = vue.defineComponent({
17773
17916
  },
17774
17917
  "onTouchend": onTouchEnd,
17775
17918
  "onTouchcancel": onTouchEnd,
17776
- "onClick": stopPropagation
17919
+ "onClick": stopPropagation,
17920
+ "style": style
17777
17921
  }, [renderButtonContent(current22, index)]);
17778
17922
  };
17779
17923
  const renderTitle = () => {
@@ -17838,10 +17982,10 @@ var stdin_default$h = vue.defineComponent({
17838
17982
  }, [vue.createVNode("div", {
17839
17983
  "class": bem$b("bar"),
17840
17984
  "style": barStyle.value
17841
- }, [renderButtons()])]))]);
17985
+ }, null), renderButtons()]))]);
17842
17986
  }
17843
17987
  });
17844
- const Slider = withInstall(stdin_default$h);
17988
+ const Slider = withInstall(stdin_default$i);
17845
17989
  const [name$a, bem$a] = createNamespace("steps");
17846
17990
  const stepsProps = {
17847
17991
  active: makeNumericProp(0),
@@ -17856,7 +18000,7 @@ const stepsProps = {
17856
18000
  titleInactiveColor: String
17857
18001
  };
17858
18002
  const STEPS_KEY = Symbol(name$a);
17859
- var stdin_default$g = vue.defineComponent({
18003
+ var stdin_default$h = vue.defineComponent({
17860
18004
  name: name$a,
17861
18005
  props: stepsProps,
17862
18006
  emits: ["clickStep"],
@@ -17888,7 +18032,7 @@ const stepProps = {
17888
18032
  activeIcon: String,
17889
18033
  inactiveIcon: String
17890
18034
  };
17891
- var stdin_default$f = vue.defineComponent({
18035
+ var stdin_default$g = vue.defineComponent({
17892
18036
  name: name$9,
17893
18037
  props: stepProps,
17894
18038
  setup(props, {
@@ -18013,7 +18157,7 @@ var stdin_default$f = vue.defineComponent({
18013
18157
  };
18014
18158
  }
18015
18159
  });
18016
- const Step = withInstall(stdin_default$f);
18160
+ const Step = withInstall(stdin_default$g);
18017
18161
  const [name$8, bem$8] = createNamespace("stepper");
18018
18162
  const LONG_PRESS_INTERVAL = 200;
18019
18163
  const isEqual = (value1, value2) => String(value1) === String(value2);
@@ -18041,7 +18185,7 @@ const stepperProps = {
18041
18185
  defaultValue: makeNumericProp(1),
18042
18186
  decimalLength: numericProp
18043
18187
  };
18044
- var stdin_default$e = vue.defineComponent({
18188
+ var stdin_default$f = vue.defineComponent({
18045
18189
  name: name$8,
18046
18190
  props: stepperProps,
18047
18191
  emits: ["plus", "blur", "minus", "focus", "change", "overlimit", "update:modelValue"],
@@ -18226,7 +18370,7 @@ var stdin_default$e = vue.defineComponent({
18226
18370
  }
18227
18371
  ],
18228
18372
  "aria-disabled": minusDisabled.value || void 0
18229
- }, createListeners("minus")), [vue.createVNode(stdin_default$1R, {
18373
+ }, createListeners("minus")), [vue.createVNode(stdin_default$1S, {
18230
18374
  "name": "minus",
18231
18375
  "size": (props == null ? void 0 : props.buttonSize) ? props.buttonSize : "32"
18232
18376
  }, null)]), [[vue.vShow, props.showMinus]]), vue.withDirectives(vue.createVNode("input", {
@@ -18259,14 +18403,14 @@ var stdin_default$e = vue.defineComponent({
18259
18403
  // { [HAPTICS_FEEDBACK]: !plusDisabled.value },
18260
18404
  ],
18261
18405
  "aria-disabled": plusDisabled.value || void 0
18262
- }, createListeners("plus")), [vue.createVNode(stdin_default$1R, {
18406
+ }, createListeners("plus")), [vue.createVNode(stdin_default$1S, {
18263
18407
  "name": "plus",
18264
18408
  "size": (props == null ? void 0 : props.buttonSize) ? props.buttonSize : "32"
18265
18409
  }, null)]), [[vue.vShow, props.showPlus]])]);
18266
18410
  }
18267
18411
  });
18268
- const Stepper = withInstall(stdin_default$e);
18269
- const Steps = withInstall(stdin_default$g);
18412
+ const Stepper = withInstall(stdin_default$f);
18413
+ const Steps = withInstall(stdin_default$h);
18270
18414
  const [name$7, bem$7] = createNamespace("swipe-cell");
18271
18415
  const swipeCellProps = {
18272
18416
  name: makeNumericProp(""),
@@ -18276,7 +18420,7 @@ const swipeCellProps = {
18276
18420
  beforeClose: Function,
18277
18421
  stopPropagation: Boolean
18278
18422
  };
18279
- var stdin_default$d = vue.defineComponent({
18423
+ var stdin_default$e = vue.defineComponent({
18280
18424
  name: name$7,
18281
18425
  props: swipeCellProps,
18282
18426
  emits: ["open", "close", "click"],
@@ -18429,7 +18573,7 @@ var stdin_default$d = vue.defineComponent({
18429
18573
  };
18430
18574
  }
18431
18575
  });
18432
- const SwipeCell = withInstall(stdin_default$d);
18576
+ const SwipeCell = withInstall(stdin_default$e);
18433
18577
  const [name$6, bem$6] = createNamespace("switch");
18434
18578
  const switchProps = {
18435
18579
  size: numericProp,
@@ -18447,7 +18591,7 @@ const switchProps = {
18447
18591
  default: false
18448
18592
  }
18449
18593
  };
18450
- var stdin_default$c = vue.defineComponent({
18594
+ var stdin_default$d = vue.defineComponent({
18451
18595
  name: name$6,
18452
18596
  props: switchProps,
18453
18597
  emits: ["change", "update:modelValue"],
@@ -18507,8 +18651,8 @@ var stdin_default$c = vue.defineComponent({
18507
18651
  };
18508
18652
  }
18509
18653
  });
18510
- const Switch = withInstall(stdin_default$c);
18511
- var stdin_default$b = Switch;
18654
+ const Switch = withInstall(stdin_default$d);
18655
+ var stdin_default$c = Switch;
18512
18656
  const [name$5, bem$5] = createNamespace("tabbar");
18513
18657
  const tabbarProps = {
18514
18658
  route: Boolean,
@@ -18526,7 +18670,7 @@ const tabbarProps = {
18526
18670
  }
18527
18671
  };
18528
18672
  const TABBAR_KEY = Symbol(name$5);
18529
- var stdin_default$a = vue.defineComponent({
18673
+ var stdin_default$b = vue.defineComponent({
18530
18674
  name: name$5,
18531
18675
  props: tabbarProps,
18532
18676
  emits: ["change", "update:modelValue"],
@@ -18584,7 +18728,7 @@ var stdin_default$a = vue.defineComponent({
18584
18728
  };
18585
18729
  }
18586
18730
  });
18587
- const Tabbar = withInstall(stdin_default$a);
18731
+ const Tabbar = withInstall(stdin_default$b);
18588
18732
  const [name$4, bem$4] = createNamespace("tabbar-item");
18589
18733
  const tabbarItemProps = extend({}, routeProps, {
18590
18734
  dot: Boolean,
@@ -18594,7 +18738,7 @@ const tabbarItemProps = extend({}, routeProps, {
18594
18738
  badgeProps: Object,
18595
18739
  iconPrefix: String
18596
18740
  });
18597
- var stdin_default$9 = vue.defineComponent({
18741
+ var stdin_default$a = vue.defineComponent({
18598
18742
  name: name$4,
18599
18743
  props: tabbarItemProps,
18600
18744
  emits: ["click"],
@@ -18696,13 +18840,159 @@ var stdin_default$9 = vue.defineComponent({
18696
18840
  };
18697
18841
  }
18698
18842
  });
18699
- const TabbarItem = withInstall(stdin_default$9);
18843
+ const TabbarItem = withInstall(stdin_default$a);
18700
18844
  var SortOrderEnum = /* @__PURE__ */ ((SortOrderEnum2) => {
18701
18845
  SortOrderEnum2["ASCEND"] = "ascend";
18702
18846
  SortOrderEnum2["DESCEND"] = "descend";
18703
18847
  return SortOrderEnum2;
18704
18848
  })(SortOrderEnum || {});
18705
- const [name$3, bem$3] = createNamespace("table");
18849
+ const [name$3, bem$3] = createNamespace("text-ellipsis");
18850
+ const textEllipsisProps = {
18851
+ rows: makeNumericProp(1),
18852
+ dots: makeStringProp("..."),
18853
+ content: makeStringProp(""),
18854
+ expandText: makeStringProp(""),
18855
+ expandType: makeStringProp("flat"),
18856
+ collapseText: makeStringProp(""),
18857
+ position: makeStringProp("end")
18858
+ };
18859
+ var stdin_default$9 = vue.defineComponent({
18860
+ name: name$3,
18861
+ props: textEllipsisProps,
18862
+ emits: ["clickAction"],
18863
+ setup(props, {
18864
+ emit
18865
+ }) {
18866
+ const text = vue.ref("");
18867
+ const expanded = vue.ref(false);
18868
+ const hasAction = vue.ref(false);
18869
+ const root = vue.ref();
18870
+ const actionText = vue.computed(() => expanded.value ? props.collapseText : props.expandText);
18871
+ const pxToNum = (value) => {
18872
+ if (!value)
18873
+ return 0;
18874
+ const match = value.match(/^\d*(\.\d*)?/);
18875
+ return match ? Number(match[0]) : 0;
18876
+ };
18877
+ const calcEllipsised = () => {
18878
+ const cloneContainer = () => {
18879
+ if (!root.value)
18880
+ return;
18881
+ const originStyle = window.getComputedStyle(root.value);
18882
+ const container2 = document.createElement("div");
18883
+ const styleNames = Array.prototype.slice.apply(originStyle);
18884
+ styleNames.forEach((name2) => {
18885
+ container2.style.setProperty(name2, originStyle.getPropertyValue(name2));
18886
+ });
18887
+ container2.style.position = "fixed";
18888
+ container2.style.zIndex = "-9999";
18889
+ container2.style.top = "-9999px";
18890
+ container2.style.height = "auto";
18891
+ container2.style.minHeight = "auto";
18892
+ container2.style.maxHeight = "auto";
18893
+ container2.innerText = props.content;
18894
+ document.body.appendChild(container2);
18895
+ return container2;
18896
+ };
18897
+ const calcEllipsisText = (container2, maxHeight2) => {
18898
+ const {
18899
+ content,
18900
+ position,
18901
+ dots
18902
+ } = props;
18903
+ const end = content.length;
18904
+ const calcEllipse = () => {
18905
+ const tail = (left, right) => {
18906
+ if (right - left <= 1) {
18907
+ if (position === "end") {
18908
+ return content.slice(0, left) + dots;
18909
+ }
18910
+ return dots + content.slice(right, end);
18911
+ }
18912
+ const middle2 = Math.round((left + right) / 2);
18913
+ if (position === "end") {
18914
+ container2.innerText = content.slice(0, middle2) + dots + actionText.value;
18915
+ } else {
18916
+ container2.innerText = dots + content.slice(middle2, end) + actionText.value;
18917
+ }
18918
+ if (container2.offsetHeight > maxHeight2) {
18919
+ if (position === "end") {
18920
+ return tail(left, middle2);
18921
+ }
18922
+ return tail(middle2, right);
18923
+ }
18924
+ if (position === "end") {
18925
+ return tail(middle2, right);
18926
+ }
18927
+ return tail(left, middle2);
18928
+ };
18929
+ container2.innerText = tail(0, end);
18930
+ };
18931
+ const middleTail = (leftPart, rightPart) => {
18932
+ if (leftPart[1] - leftPart[0] <= 1 && rightPart[1] - rightPart[0] <= 1) {
18933
+ return content.slice(0, leftPart[0]) + dots + content.slice(rightPart[1], end);
18934
+ }
18935
+ const leftMiddle = Math.floor((leftPart[0] + leftPart[1]) / 2);
18936
+ const rightMiddle = Math.ceil((rightPart[0] + rightPart[1]) / 2);
18937
+ container2.innerText = props.content.slice(0, leftMiddle) + props.dots + props.content.slice(rightMiddle, end) + props.expandText;
18938
+ if (container2.offsetHeight >= maxHeight2) {
18939
+ return middleTail([leftPart[0], leftMiddle], [rightMiddle, rightPart[1]]);
18940
+ }
18941
+ return middleTail([leftMiddle, leftPart[1]], [rightPart[0], rightMiddle]);
18942
+ };
18943
+ const middle = 0 + end >> 1;
18944
+ props.position === "middle" ? container2.innerText = middleTail([0, middle], [middle, end]) : calcEllipse();
18945
+ return container2.innerText;
18946
+ };
18947
+ const container = cloneContainer();
18948
+ if (!container)
18949
+ return;
18950
+ const {
18951
+ paddingBottom,
18952
+ paddingTop,
18953
+ lineHeight
18954
+ } = container.style;
18955
+ const maxHeight = Math.ceil((Number(props.rows) + 0.5) * pxToNum(lineHeight) + pxToNum(paddingTop) + pxToNum(paddingBottom));
18956
+ if (maxHeight < container.offsetHeight) {
18957
+ hasAction.value = true;
18958
+ text.value = calcEllipsisText(container, maxHeight);
18959
+ } else {
18960
+ hasAction.value = false;
18961
+ text.value = props.content;
18962
+ }
18963
+ document.body.removeChild(container);
18964
+ };
18965
+ const onClickAction = (event) => {
18966
+ event.stopPropagation();
18967
+ event.preventDefault();
18968
+ expanded.value = !expanded.value;
18969
+ emit("clickAction", event);
18970
+ };
18971
+ const renderAction = () => vue.createVNode("span", {
18972
+ "class": bem$3("action"),
18973
+ "onClick": onClickAction
18974
+ }, [actionText.value]);
18975
+ const onClickEllipsis = () => {
18976
+ if (props.expandType === "dialog" && hasAction.value) {
18977
+ showDialog({
18978
+ message: props.content
18979
+ }).then(() => {
18980
+ });
18981
+ }
18982
+ };
18983
+ vue.onMounted(calcEllipsised);
18984
+ vue.watch(() => [props.content, props.rows, props.position], calcEllipsised);
18985
+ use.useEventListener("resize", calcEllipsised);
18986
+ return () => vue.createVNode("div", {
18987
+ "ref": root,
18988
+ "class": bem$3(),
18989
+ "onClick": onClickEllipsis
18990
+ }, [expanded.value ? props.content : text.value, props.expandType !== "dialog" && hasAction.value ? renderAction() : null]);
18991
+ }
18992
+ });
18993
+ const TextEllipsis = withInstall(stdin_default$9);
18994
+ var stdin_default$8 = TextEllipsis;
18995
+ const [name$2, bem$2] = createNamespace("table");
18706
18996
  const tableProps = {
18707
18997
  headList: makeArrayProp(),
18708
18998
  dataList: makeArrayProp(),
@@ -18719,14 +19009,19 @@ const tableProps = {
18719
19009
  border: {
18720
19010
  type: Boolean,
18721
19011
  default: false
19012
+ },
19013
+ hideTableHead: {
19014
+ type: Boolean,
19015
+ default: false
18722
19016
  }
18723
19017
  };
18724
- var stdin_default$8 = vue.defineComponent({
18725
- name: name$3,
19018
+ var stdin_default$7 = vue.defineComponent({
19019
+ name: name$2,
18726
19020
  props: tableProps,
18727
19021
  emits: ["sort"],
18728
19022
  setup(props, {
18729
- emit
19023
+ emit,
19024
+ slots
18730
19025
  }) {
18731
19026
  const sortOrder = vue.ref("");
18732
19027
  const sortKey = vue.ref("");
@@ -18804,9 +19099,11 @@ var stdin_default$8 = vue.defineComponent({
18804
19099
  pingedLeft.value = mergedScrollLeft > 0;
18805
19100
  };
18806
19101
  const getHead = (colData) => {
19102
+ const headSlot = slots[`head-${colData.id}`];
19103
+ const headEllipsisType = colData.sorter ? "flat" : "dialog";
18807
19104
  if ((colData == null ? void 0 : colData.colSpan) !== 0) {
18808
19105
  return vue.createVNode("th", {
18809
- "class": bem$3("left", {
19106
+ "class": bem$2("left", {
18810
19107
  fixed: colData.fixed,
18811
19108
  last: colData.lastFixLeft && pingedLeft.value
18812
19109
  }),
@@ -18814,22 +19111,26 @@ var stdin_default$8 = vue.defineComponent({
18814
19111
  left: colData.fixed ? colData.left : ""
18815
19112
  },
18816
19113
  "colspan": (colData == null ? void 0 : colData.colSpan) !== 1 ? colData == null ? void 0 : colData.colSpan : null
18817
- }, [vue.createVNode("div", {
18818
- "class": bem$3("head"),
19114
+ }, [headSlot ? headSlot(colData) : vue.createVNode("div", {
19115
+ "class": bem$2("head"),
18819
19116
  "onClick": () => onHeaderClick(colData)
18820
- }, [vue.createVNode("span", {
18821
- "class": bem$3("head-label")
19117
+ }, [colData.ellipsis ? vue.createVNode(stdin_default$8, {
19118
+ "content": colData.label,
19119
+ "expandType": headEllipsisType,
19120
+ "class": bem$2("head-label-ellipsis")
19121
+ }, null) : vue.createVNode("span", {
19122
+ "class": bem$2("head-label")
18822
19123
  }, [colData.label]), colData.sorter ? vue.createVNode("span", {
18823
- "class": bem$3("head-sort")
19124
+ "class": bem$2("head-sort")
18824
19125
  }, [vue.createVNode(Icon, {
18825
- "class": [colData.key === sortKey.value && sortOrder.value === SortOrderEnum.ASCEND ? bem$3("sort-active") : ""],
19126
+ "class": [colData.key === sortKey.value && sortOrder.value === SortOrderEnum.ASCEND ? bem$2("sort-active") : ""],
18826
19127
  "name": "spinner-shrink",
18827
19128
  "size": "12",
18828
19129
  "style": {
18829
19130
  marginBottom: "-3px"
18830
19131
  }
18831
19132
  }, null), vue.createVNode(Icon, {
18832
- "class": [colData.key === sortKey.value && sortOrder.value === SortOrderEnum.DESCEND ? bem$3("sort-active") : ""],
19133
+ "class": [colData.key === sortKey.value && sortOrder.value === SortOrderEnum.DESCEND ? bem$2("sort-active") : ""],
18833
19134
  "name": "spinner-expand",
18834
19135
  "size": "12",
18835
19136
  "style": {
@@ -18838,6 +19139,15 @@ var stdin_default$8 = vue.defineComponent({
18838
19139
  }, null)]) : ""])]);
18839
19140
  }
18840
19141
  };
19142
+ const getElement = (rowData, colData) => {
19143
+ if (rowData[colData.key] && rowData[colData.key].id && slots[`data-${rowData[colData.key].id}`]) {
19144
+ return slots[`data-${rowData[colData.key].id}`](rowData[colData.key]);
19145
+ }
19146
+ return colData.ellipsis ? vue.createVNode(stdin_default$8, {
19147
+ "content": rowData[colData.key],
19148
+ "expandType": "dialog"
19149
+ }, null) : rowData[colData.key];
19150
+ };
18841
19151
  const getBody = (rowData, rowIndex) => vue.createVNode("tr", null, [formatColumns.value.map((colData) => {
18842
19152
  let additionalCellProps;
18843
19153
  if (colData.customCell) {
@@ -18847,23 +19157,23 @@ var stdin_default$8 = vue.defineComponent({
18847
19157
  style.left = colData.fixed ? colData.left : "";
18848
19158
  return (additionalCellProps == null ? void 0 : additionalCellProps.rowSpan) !== 0 && (additionalCellProps == null ? void 0 : additionalCellProps.colSpan) !== 0 && vue.createVNode("td", {
18849
19159
  "onClick": () => colData.click && colData.click(rowData, rowIndex),
18850
- "class": bem$3("left", {
19160
+ "class": bem$2("left", {
18851
19161
  fixed: colData.fixed,
18852
19162
  last: colData.lastFixLeft && pingedLeft.value
18853
19163
  }),
18854
19164
  "colspan": (additionalCellProps == null ? void 0 : additionalCellProps.colSpan) !== 1 ? additionalCellProps == null ? void 0 : additionalCellProps.colSpan : null,
18855
19165
  "rowspan": (additionalCellProps == null ? void 0 : additionalCellProps.rowSpan) !== 1 ? additionalCellProps == null ? void 0 : additionalCellProps.rowSpan : null,
18856
19166
  "style": style
18857
- }, [rowData[colData.key]]);
19167
+ }, [getElement(rowData, colData)]);
18858
19168
  })]);
18859
19169
  const getCol = () => {
18860
19170
  const cols = [];
18861
19171
  const col = resortHeadList.value.length;
18862
19172
  for (let j = 0; j < col; j++) {
18863
19173
  cols.push(vue.createVNode("div", {
18864
- "class": bem$3("col")
19174
+ "class": bem$2("col")
18865
19175
  }, [vue.createVNode("div", {
18866
- "class": bem$3("col-item")
19176
+ "class": bem$2("col-item")
18867
19177
  }, null)]));
18868
19178
  }
18869
19179
  return cols;
@@ -18872,7 +19182,7 @@ var stdin_default$8 = vue.defineComponent({
18872
19182
  const Rows = [];
18873
19183
  for (let i = 0; i < props.skeletonRow; i++) {
18874
19184
  Rows.push(vue.createVNode("div", {
18875
- "class": bem$3("row", {
19185
+ "class": bem$2("row", {
18876
19186
  head: i === 0
18877
19187
  })
18878
19188
  }, [getCol()]));
@@ -18880,12 +19190,12 @@ var stdin_default$8 = vue.defineComponent({
18880
19190
  return Rows;
18881
19191
  };
18882
19192
  return () => props.loading ? vue.createVNode("div", {
18883
- "class": bem$3({
19193
+ "class": bem$2({
18884
19194
  animate: true,
18885
19195
  skeleton: true
18886
19196
  })
18887
19197
  }, [getLoadingColumn()]) : vue.createVNode("div", {
18888
- "class": bem$3({
19198
+ "class": bem$2({
18889
19199
  fixed: fixedColumn.value.length > 0,
18890
19200
  bordered: props.border,
18891
19201
  striped: props.striped
@@ -18895,149 +19205,14 @@ var stdin_default$8 = vue.defineComponent({
18895
19205
  "style": {
18896
19206
  width: item.width
18897
19207
  }
18898
- }, null))]), vue.createVNode("thead", {
18899
- "class": bem$3("thead")
18900
- }, [vue.createVNode("tr", null, [formatColumns.value.map((colData) => getHead(colData))])]), vue.createVNode("tbody", {
18901
- "class": bem$3("tbody")
19208
+ }, null))]), vue.withDirectives(vue.createVNode("thead", {
19209
+ "class": bem$2("thead")
19210
+ }, [vue.createVNode("tr", null, [formatColumns.value.map((colData) => getHead(colData))])]), [[vue.vShow, !props.hideTableHead]]), vue.createVNode("tbody", {
19211
+ "class": bem$2("tbody")
18902
19212
  }, [props.dataList.map((rowData, rowIndex) => getBody(rowData, rowIndex))])])]);
18903
19213
  }
18904
19214
  });
18905
- const Table = withInstall(stdin_default$8);
18906
- const [name$2, bem$2] = createNamespace("text-ellipsis");
18907
- const textEllipsisProps = {
18908
- rows: makeNumericProp(1),
18909
- dots: makeStringProp("..."),
18910
- content: makeStringProp(""),
18911
- expandText: makeStringProp(""),
18912
- collapseText: makeStringProp(""),
18913
- position: makeStringProp("end")
18914
- };
18915
- var stdin_default$7 = vue.defineComponent({
18916
- name: name$2,
18917
- props: textEllipsisProps,
18918
- emits: ["clickAction"],
18919
- setup(props, {
18920
- emit
18921
- }) {
18922
- const text = vue.ref("");
18923
- const expanded = vue.ref(false);
18924
- const hasAction = vue.ref(false);
18925
- const root = vue.ref();
18926
- const actionText = vue.computed(() => expanded.value ? props.collapseText : props.expandText);
18927
- const pxToNum = (value) => {
18928
- if (!value)
18929
- return 0;
18930
- const match = value.match(/^\d*(\.\d*)?/);
18931
- return match ? Number(match[0]) : 0;
18932
- };
18933
- const calcEllipsised = () => {
18934
- const cloneContainer = () => {
18935
- if (!root.value)
18936
- return;
18937
- const originStyle = window.getComputedStyle(root.value);
18938
- const container2 = document.createElement("div");
18939
- const styleNames = Array.prototype.slice.apply(originStyle);
18940
- styleNames.forEach((name2) => {
18941
- container2.style.setProperty(name2, originStyle.getPropertyValue(name2));
18942
- });
18943
- container2.style.position = "fixed";
18944
- container2.style.zIndex = "-9999";
18945
- container2.style.top = "-9999px";
18946
- container2.style.height = "auto";
18947
- container2.style.minHeight = "auto";
18948
- container2.style.maxHeight = "auto";
18949
- container2.innerText = props.content;
18950
- document.body.appendChild(container2);
18951
- return container2;
18952
- };
18953
- const calcEllipsisText = (container2, maxHeight2) => {
18954
- const {
18955
- content,
18956
- position,
18957
- dots
18958
- } = props;
18959
- const end = content.length;
18960
- const calcEllipse = () => {
18961
- const tail = (left, right) => {
18962
- if (right - left <= 1) {
18963
- if (position === "end") {
18964
- return content.slice(0, left) + dots;
18965
- }
18966
- return dots + content.slice(right, end);
18967
- }
18968
- const middle2 = Math.round((left + right) / 2);
18969
- if (position === "end") {
18970
- container2.innerText = content.slice(0, middle2) + dots + actionText.value;
18971
- } else {
18972
- container2.innerText = dots + content.slice(middle2, end) + actionText.value;
18973
- }
18974
- if (container2.offsetHeight > maxHeight2) {
18975
- if (position === "end") {
18976
- return tail(left, middle2);
18977
- }
18978
- return tail(middle2, right);
18979
- }
18980
- if (position === "end") {
18981
- return tail(middle2, right);
18982
- }
18983
- return tail(left, middle2);
18984
- };
18985
- container2.innerText = tail(0, end);
18986
- };
18987
- const middleTail = (leftPart, rightPart) => {
18988
- if (leftPart[1] - leftPart[0] <= 1 && rightPart[1] - rightPart[0] <= 1) {
18989
- return content.slice(0, leftPart[0]) + dots + content.slice(rightPart[1], end);
18990
- }
18991
- const leftMiddle = Math.floor((leftPart[0] + leftPart[1]) / 2);
18992
- const rightMiddle = Math.ceil((rightPart[0] + rightPart[1]) / 2);
18993
- container2.innerText = props.content.slice(0, leftMiddle) + props.dots + props.content.slice(rightMiddle, end) + props.expandText;
18994
- if (container2.offsetHeight >= maxHeight2) {
18995
- return middleTail([leftPart[0], leftMiddle], [rightMiddle, rightPart[1]]);
18996
- }
18997
- return middleTail([leftMiddle, leftPart[1]], [rightPart[0], rightMiddle]);
18998
- };
18999
- const middle = 0 + end >> 1;
19000
- props.position === "middle" ? container2.innerText = middleTail([0, middle], [middle, end]) : calcEllipse();
19001
- return container2.innerText;
19002
- };
19003
- const container = cloneContainer();
19004
- if (!container)
19005
- return;
19006
- const {
19007
- paddingBottom,
19008
- paddingTop,
19009
- lineHeight
19010
- } = container.style;
19011
- const maxHeight = Math.ceil((Number(props.rows) + 0.5) * pxToNum(lineHeight) + pxToNum(paddingTop) + pxToNum(paddingBottom));
19012
- if (maxHeight < container.offsetHeight) {
19013
- hasAction.value = true;
19014
- text.value = calcEllipsisText(container, maxHeight);
19015
- } else {
19016
- hasAction.value = false;
19017
- text.value = props.content;
19018
- }
19019
- document.body.removeChild(container);
19020
- };
19021
- const onClickAction = (event) => {
19022
- event.stopPropagation();
19023
- event.preventDefault();
19024
- expanded.value = !expanded.value;
19025
- emit("clickAction", event);
19026
- };
19027
- const renderAction = () => vue.createVNode("span", {
19028
- "class": bem$2("action"),
19029
- "onClick": onClickAction
19030
- }, [actionText.value]);
19031
- vue.onMounted(calcEllipsised);
19032
- vue.watch(() => [props.content, props.rows, props.position], calcEllipsised);
19033
- use.useEventListener("resize", calcEllipsised);
19034
- return () => vue.createVNode("div", {
19035
- "ref": root,
19036
- "class": bem$2()
19037
- }, [expanded.value ? props.content : text.value, hasAction.value ? renderAction() : null]);
19038
- }
19039
- });
19040
- const TextEllipsis = withInstall(stdin_default$7);
19215
+ const Table = withInstall(stdin_default$7);
19041
19216
  const [name$1, bem$1] = createNamespace("timeline");
19042
19217
  const timelineProps = {
19043
19218
  title: makeStringProp("办理经过"),
@@ -19081,7 +19256,7 @@ var stdin_default$6 = vue.defineComponent({
19081
19256
  "class": bem$1("top-right")
19082
19257
  }, [vue.createVNode("span", {
19083
19258
  "class": bem$1("fold-text")
19084
- }, [vue.createTextVNode("折叠"), props.title]), vue.createVNode(stdin_default$b, {
19259
+ }, [vue.createTextVNode("折叠"), props.title]), vue.createVNode(stdin_default$c, {
19085
19260
  "modelValue": isFold.value,
19086
19261
  "onUpdate:modelValue": ($event) => isFold.value = $event
19087
19262
  }, null)])]);
@@ -20634,7 +20809,7 @@ const Lazyload = {
20634
20809
  });
20635
20810
  }
20636
20811
  };
20637
- const version = "3.1.18";
20812
+ const version = "3.1.20";
20638
20813
  function install(app) {
20639
20814
  const components = [
20640
20815
  ActionSheet,