knt-shared 1.6.8 → 1.6.10

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.
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getCurrentInstance, inject, defineComponent, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, resolveComponent, createCommentVNode, createVNode, createBlock, unref, reactive, Fragment, renderList, withModifiers, ref, watch, onMounted, onUnmounted, withDirectives, vModelText, vShow, toDisplayString, withCtx, createTextVNode, useCssVars, nextTick, renderSlot, mergeProps, createSlots, onBeforeUnmount, toRef, normalizeProps, guardReactiveProps, h, resolveDynamicComponent, isVNode, useSlots } from "vue";
1
+ import { getCurrentInstance, inject, defineComponent, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, resolveComponent, createCommentVNode, createVNode, createBlock, unref, reactive, Fragment, renderList, withModifiers, ref, watch, onMounted, onUnmounted, withDirectives, vModelText, vShow, toDisplayString, withCtx, createTextVNode, useCssVars, nextTick, renderSlot, mergeProps, createSlots, onBeforeUnmount, toRef, normalizeProps, guardReactiveProps, h, resolveDynamicComponent, isVNode, useSlots, Teleport, createApp } from "vue";
2
2
  import { Message, Transfer, Mention, Upload, Rate, Slider, Switch, RangePicker, TimePicker, DatePicker, TreeSelect, Cascader, CheckboxGroup, Checkbox, RadioGroup, Radio, Select, AutoComplete, Textarea, InputPassword, InputNumber, Input, ImagePreviewGroup, Image, Modal } from "@arco-design/web-vue";
3
3
  const configProviderInjectionKey = Symbol("ArcoConfigProvider");
4
4
  const CLASS_PREFIX = "arco";
@@ -22,7 +22,7 @@ var _export_sfc$1 = (sfc, props) => {
22
22
  }
23
23
  return sfc;
24
24
  };
25
- const _sfc_main$v = defineComponent({
25
+ const _sfc_main$y = defineComponent({
26
26
  name: "IconExclamationCircle",
27
27
  props: {
28
28
  size: {
@@ -75,7 +75,7 @@ const _sfc_main$v = defineComponent({
75
75
  };
76
76
  }
77
77
  });
78
- const _hoisted_1$r = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
78
+ const _hoisted_1$t = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
79
79
  function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
80
80
  return openBlock(), createElementBlock("svg", {
81
81
  viewBox: "0 0 48 48",
@@ -90,9 +90,9 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
90
90
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
91
91
  }, _cache[1] || (_cache[1] = [
92
92
  createElementVNode("path", { d: "M24 28V14m0 16v4M6 24c0-9.941 8.059-18 18-18s18 8.059 18 18-8.059 18-18 18S6 33.941 6 24Z" }, null, -1)
93
- ]), 14, _hoisted_1$r);
93
+ ]), 14, _hoisted_1$t);
94
94
  }
95
- var _IconExclamationCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["render", _sfc_render$g]]);
95
+ var _IconExclamationCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$y, [["render", _sfc_render$g]]);
96
96
  const IconExclamationCircle = Object.assign(_IconExclamationCircle, {
97
97
  install: (app, options) => {
98
98
  var _a;
@@ -100,7 +100,7 @@ const IconExclamationCircle = Object.assign(_IconExclamationCircle, {
100
100
  app.component(iconPrefix + _IconExclamationCircle.name, _IconExclamationCircle);
101
101
  }
102
102
  });
103
- const _sfc_main$u = defineComponent({
103
+ const _sfc_main$x = defineComponent({
104
104
  name: "IconPlus",
105
105
  props: {
106
106
  size: {
@@ -153,7 +153,7 @@ const _sfc_main$u = defineComponent({
153
153
  };
154
154
  }
155
155
  });
156
- const _hoisted_1$q = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
156
+ const _hoisted_1$s = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
157
157
  function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
158
158
  return openBlock(), createElementBlock("svg", {
159
159
  viewBox: "0 0 48 48",
@@ -168,9 +168,9 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
168
168
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
169
169
  }, _cache[1] || (_cache[1] = [
170
170
  createElementVNode("path", { d: "M5 24h38M24 5v38" }, null, -1)
171
- ]), 14, _hoisted_1$q);
171
+ ]), 14, _hoisted_1$s);
172
172
  }
173
- var _IconPlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["render", _sfc_render$f]]);
173
+ var _IconPlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$x, [["render", _sfc_render$f]]);
174
174
  const IconPlus = Object.assign(_IconPlus, {
175
175
  install: (app, options) => {
176
176
  var _a;
@@ -178,7 +178,7 @@ const IconPlus = Object.assign(_IconPlus, {
178
178
  app.component(iconPrefix + _IconPlus.name, _IconPlus);
179
179
  }
180
180
  });
181
- const _sfc_main$t = defineComponent({
181
+ const _sfc_main$w = defineComponent({
182
182
  name: "IconQuestionCircle",
183
183
  props: {
184
184
  size: {
@@ -231,7 +231,7 @@ const _sfc_main$t = defineComponent({
231
231
  };
232
232
  }
233
233
  });
234
- const _hoisted_1$p = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
234
+ const _hoisted_1$r = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
235
235
  function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
236
236
  return openBlock(), createElementBlock("svg", {
237
237
  viewBox: "0 0 48 48",
@@ -247,9 +247,9 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
247
247
  }, _cache[1] || (_cache[1] = [
248
248
  createElementVNode("path", { d: "M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z" }, null, -1),
249
249
  createElementVNode("path", { d: "M24.006 31v4.008m0-6.008L24 28c0-3 3-4 4.78-6.402C30.558 19.195 28.288 15 23.987 15c-4.014 0-5.382 2.548-5.388 4.514v.465" }, null, -1)
250
- ]), 14, _hoisted_1$p);
250
+ ]), 14, _hoisted_1$r);
251
251
  }
252
- var _IconQuestionCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$e]]);
252
+ var _IconQuestionCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$w, [["render", _sfc_render$e]]);
253
253
  const IconQuestionCircle = Object.assign(_IconQuestionCircle, {
254
254
  install: (app, options) => {
255
255
  var _a;
@@ -257,7 +257,7 @@ const IconQuestionCircle = Object.assign(_IconQuestionCircle, {
257
257
  app.component(iconPrefix + _IconQuestionCircle.name, _IconQuestionCircle);
258
258
  }
259
259
  });
260
- const _sfc_main$s = defineComponent({
260
+ const _sfc_main$v = defineComponent({
261
261
  name: "IconEye",
262
262
  props: {
263
263
  size: {
@@ -310,7 +310,7 @@ const _sfc_main$s = defineComponent({
310
310
  };
311
311
  }
312
312
  });
313
- const _hoisted_1$o = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
313
+ const _hoisted_1$q = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
314
314
  function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
315
315
  return openBlock(), createElementBlock("svg", {
316
316
  viewBox: "0 0 48 48",
@@ -329,9 +329,9 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
329
329
  d: "M24 37c6.627 0 12.627-4.333 18-13-5.373-8.667-11.373-13-18-13-6.627 0-12.627 4.333-18 13 5.373 8.667 11.373 13 18 13Z"
330
330
  }, null, -1),
331
331
  createElementVNode("path", { d: "M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z" }, null, -1)
332
- ]), 14, _hoisted_1$o);
332
+ ]), 14, _hoisted_1$q);
333
333
  }
334
- var _IconEye = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_render$d]]);
334
+ var _IconEye = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["render", _sfc_render$d]]);
335
335
  const IconEye = Object.assign(_IconEye, {
336
336
  install: (app, options) => {
337
337
  var _a;
@@ -339,7 +339,7 @@ const IconEye = Object.assign(_IconEye, {
339
339
  app.component(iconPrefix + _IconEye.name, _IconEye);
340
340
  }
341
341
  });
342
- const _sfc_main$r = defineComponent({
342
+ const _sfc_main$u = defineComponent({
343
343
  name: "IconMore",
344
344
  props: {
345
345
  size: {
@@ -392,7 +392,7 @@ const _sfc_main$r = defineComponent({
392
392
  };
393
393
  }
394
394
  });
395
- const _hoisted_1$n = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
395
+ const _hoisted_1$p = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
396
396
  function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
397
397
  return openBlock(), createElementBlock("svg", {
398
398
  viewBox: "0 0 48 48",
@@ -412,9 +412,9 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
412
412
  stroke: "none"
413
413
  }, null, -1),
414
414
  createElementVNode("path", { d: "M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z" }, null, -1)
415
- ]), 14, _hoisted_1$n);
415
+ ]), 14, _hoisted_1$p);
416
416
  }
417
- var _IconMore = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _sfc_render$c]]);
417
+ var _IconMore = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["render", _sfc_render$c]]);
418
418
  const IconMore = Object.assign(_IconMore, {
419
419
  install: (app, options) => {
420
420
  var _a;
@@ -422,7 +422,7 @@ const IconMore = Object.assign(_IconMore, {
422
422
  app.component(iconPrefix + _IconMore.name, _IconMore);
423
423
  }
424
424
  });
425
- const _sfc_main$q = defineComponent({
425
+ const _sfc_main$t = defineComponent({
426
426
  name: "IconRefresh",
427
427
  props: {
428
428
  size: {
@@ -475,7 +475,7 @@ const _sfc_main$q = defineComponent({
475
475
  };
476
476
  }
477
477
  });
478
- const _hoisted_1$m = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
478
+ const _hoisted_1$o = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
479
479
  function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
480
480
  return openBlock(), createElementBlock("svg", {
481
481
  viewBox: "0 0 48 48",
@@ -490,9 +490,9 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
490
490
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
491
491
  }, _cache[1] || (_cache[1] = [
492
492
  createElementVNode("path", { d: "M38.837 18C36.463 12.136 30.715 8 24 8 15.163 8 8 15.163 8 24s7.163 16 16 16c7.455 0 13.72-5.1 15.496-12M40 8v10H30" }, null, -1)
493
- ]), 14, _hoisted_1$m);
493
+ ]), 14, _hoisted_1$o);
494
494
  }
495
- var _IconRefresh = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["render", _sfc_render$b]]);
495
+ var _IconRefresh = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$b]]);
496
496
  const IconRefresh = Object.assign(_IconRefresh, {
497
497
  install: (app, options) => {
498
498
  var _a;
@@ -500,7 +500,7 @@ const IconRefresh = Object.assign(_IconRefresh, {
500
500
  app.component(iconPrefix + _IconRefresh.name, _IconRefresh);
501
501
  }
502
502
  });
503
- const _sfc_main$p = defineComponent({
503
+ const _sfc_main$s = defineComponent({
504
504
  name: "IconSettings",
505
505
  props: {
506
506
  size: {
@@ -553,7 +553,7 @@ const _sfc_main$p = defineComponent({
553
553
  };
554
554
  }
555
555
  });
556
- const _hoisted_1$l = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
556
+ const _hoisted_1$n = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
557
557
  function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
558
558
  return openBlock(), createElementBlock("svg", {
559
559
  viewBox: "0 0 48 48",
@@ -569,9 +569,9 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
569
569
  }, _cache[1] || (_cache[1] = [
570
570
  createElementVNode("path", { d: "M18.797 6.732A1 1 0 0 1 19.76 6h8.48a1 1 0 0 1 .964.732l1.285 4.628a1 1 0 0 0 1.213.7l4.651-1.2a1 1 0 0 1 1.116.468l4.24 7.344a1 1 0 0 1-.153 1.2L38.193 23.3a1 1 0 0 0 0 1.402l3.364 3.427a1 1 0 0 1 .153 1.2l-4.24 7.344a1 1 0 0 1-1.116.468l-4.65-1.2a1 1 0 0 0-1.214.7l-1.285 4.628a1 1 0 0 1-.964.732h-8.48a1 1 0 0 1-.963-.732L17.51 36.64a1 1 0 0 0-1.213-.7l-4.65 1.2a1 1 0 0 1-1.116-.468l-4.24-7.344a1 1 0 0 1 .153-1.2L9.809 24.7a1 1 0 0 0 0-1.402l-3.364-3.427a1 1 0 0 1-.153-1.2l4.24-7.344a1 1 0 0 1 1.116-.468l4.65 1.2a1 1 0 0 0 1.213-.7l1.286-4.628Z" }, null, -1),
571
571
  createElementVNode("path", { d: "M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z" }, null, -1)
572
- ]), 14, _hoisted_1$l);
572
+ ]), 14, _hoisted_1$n);
573
573
  }
574
- var _IconSettings = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["render", _sfc_render$a]]);
574
+ var _IconSettings = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_render$a]]);
575
575
  const IconSettings = Object.assign(_IconSettings, {
576
576
  install: (app, options) => {
577
577
  var _a;
@@ -579,7 +579,7 @@ const IconSettings = Object.assign(_IconSettings, {
579
579
  app.component(iconPrefix + _IconSettings.name, _IconSettings);
580
580
  }
581
581
  });
582
- const _sfc_main$o = defineComponent({
582
+ const _sfc_main$r = defineComponent({
583
583
  name: "IconUpload",
584
584
  props: {
585
585
  size: {
@@ -632,7 +632,7 @@ const _sfc_main$o = defineComponent({
632
632
  };
633
633
  }
634
634
  });
635
- const _hoisted_1$k = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
635
+ const _hoisted_1$m = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
636
636
  function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
637
637
  return openBlock(), createElementBlock("svg", {
638
638
  viewBox: "0 0 48 48",
@@ -647,9 +647,9 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
647
647
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
648
648
  }, _cache[1] || (_cache[1] = [
649
649
  createElementVNode("path", { d: "M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6" }, null, -1)
650
- ]), 14, _hoisted_1$k);
650
+ ]), 14, _hoisted_1$m);
651
651
  }
652
- var _IconUpload = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_render$9]]);
652
+ var _IconUpload = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _sfc_render$9]]);
653
653
  const IconUpload = Object.assign(_IconUpload, {
654
654
  install: (app, options) => {
655
655
  var _a;
@@ -657,7 +657,7 @@ const IconUpload = Object.assign(_IconUpload, {
657
657
  app.component(iconPrefix + _IconUpload.name, _IconUpload);
658
658
  }
659
659
  });
660
- const _sfc_main$n = defineComponent({
660
+ const _sfc_main$q = defineComponent({
661
661
  name: "IconDelete",
662
662
  props: {
663
663
  size: {
@@ -710,7 +710,7 @@ const _sfc_main$n = defineComponent({
710
710
  };
711
711
  }
712
712
  });
713
- const _hoisted_1$j = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
713
+ const _hoisted_1$l = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
714
714
  function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
715
715
  return openBlock(), createElementBlock("svg", {
716
716
  viewBox: "0 0 48 48",
@@ -725,9 +725,9 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
725
725
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
726
726
  }, _cache[1] || (_cache[1] = [
727
727
  createElementVNode("path", { d: "M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15" }, null, -1)
728
- ]), 14, _hoisted_1$j);
728
+ ]), 14, _hoisted_1$l);
729
729
  }
730
- var _IconDelete = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$8]]);
730
+ var _IconDelete = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["render", _sfc_render$8]]);
731
731
  const IconDelete = Object.assign(_IconDelete, {
732
732
  install: (app, options) => {
733
733
  var _a;
@@ -735,7 +735,7 @@ const IconDelete = Object.assign(_IconDelete, {
735
735
  app.component(iconPrefix + _IconDelete.name, _IconDelete);
736
736
  }
737
737
  });
738
- const _sfc_main$m = defineComponent({
738
+ const _sfc_main$p = defineComponent({
739
739
  name: "IconLineHeight",
740
740
  props: {
741
741
  size: {
@@ -788,7 +788,7 @@ const _sfc_main$m = defineComponent({
788
788
  };
789
789
  }
790
790
  });
791
- const _hoisted_1$i = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
791
+ const _hoisted_1$k = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
792
792
  function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
793
793
  return openBlock(), createElementBlock("svg", {
794
794
  viewBox: "0 0 48 48",
@@ -809,9 +809,9 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
809
809
  stroke: "none"
810
810
  }, null, -1),
811
811
  createElementVNode("path", { d: "M39 13h2l-2-3.5-2 3.5h2Zm0 0v22m0 0h2l-2 3.5-2-3.5h2Z" }, null, -1)
812
- ]), 14, _hoisted_1$i);
812
+ ]), 14, _hoisted_1$k);
813
813
  }
814
- var _IconLineHeight = /* @__PURE__ */ _export_sfc$1(_sfc_main$m, [["render", _sfc_render$7]]);
814
+ var _IconLineHeight = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["render", _sfc_render$7]]);
815
815
  const IconLineHeight = Object.assign(_IconLineHeight, {
816
816
  install: (app, options) => {
817
817
  var _a;
@@ -819,7 +819,7 @@ const IconLineHeight = Object.assign(_IconLineHeight, {
819
819
  app.component(iconPrefix + _IconLineHeight.name, _IconLineHeight);
820
820
  }
821
821
  });
822
- const _sfc_main$l = defineComponent({
822
+ const _sfc_main$o = defineComponent({
823
823
  name: "IconFullscreenExit",
824
824
  props: {
825
825
  size: {
@@ -872,7 +872,7 @@ const _sfc_main$l = defineComponent({
872
872
  };
873
873
  }
874
874
  });
875
- const _hoisted_1$h = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
875
+ const _hoisted_1$j = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
876
876
  function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
877
877
  return openBlock(), createElementBlock("svg", {
878
878
  viewBox: "0 0 48 48",
@@ -887,9 +887,9 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
887
887
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
888
888
  }, _cache[1] || (_cache[1] = [
889
889
  createElementVNode("path", { d: "M35 6v8a1 1 0 0 0 1 1h8M13 6v8a1 1 0 0 1-1 1H4m31 27v-8a1 1 0 0 1 1-1h8m-31 9v-8a1 1 0 0 0-1-1H4" }, null, -1)
890
- ]), 14, _hoisted_1$h);
890
+ ]), 14, _hoisted_1$j);
891
891
  }
892
- var _IconFullscreenExit = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["render", _sfc_render$6]]);
892
+ var _IconFullscreenExit = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_render$6]]);
893
893
  const IconFullscreenExit = Object.assign(_IconFullscreenExit, {
894
894
  install: (app, options) => {
895
895
  var _a;
@@ -897,7 +897,7 @@ const IconFullscreenExit = Object.assign(_IconFullscreenExit, {
897
897
  app.component(iconPrefix + _IconFullscreenExit.name, _IconFullscreenExit);
898
898
  }
899
899
  });
900
- const _sfc_main$k = defineComponent({
900
+ const _sfc_main$n = defineComponent({
901
901
  name: "IconFullscreen",
902
902
  props: {
903
903
  size: {
@@ -950,7 +950,7 @@ const _sfc_main$k = defineComponent({
950
950
  };
951
951
  }
952
952
  });
953
- const _hoisted_1$g = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
953
+ const _hoisted_1$i = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
954
954
  function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
955
955
  return openBlock(), createElementBlock("svg", {
956
956
  viewBox: "0 0 48 48",
@@ -965,9 +965,9 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
965
965
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
966
966
  }, _cache[1] || (_cache[1] = [
967
967
  createElementVNode("path", { d: "M42 17V9a1 1 0 0 0-1-1h-8M6 17V9a1 1 0 0 1 1-1h8m27 23v8a1 1 0 0 1-1 1h-8M6 31v8a1 1 0 0 0 1 1h8" }, null, -1)
968
- ]), 14, _hoisted_1$g);
968
+ ]), 14, _hoisted_1$i);
969
969
  }
970
- var _IconFullscreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_render$5]]);
970
+ var _IconFullscreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$5]]);
971
971
  const IconFullscreen = Object.assign(_IconFullscreen, {
972
972
  install: (app, options) => {
973
973
  var _a;
@@ -975,7 +975,7 @@ const IconFullscreen = Object.assign(_IconFullscreen, {
975
975
  app.component(iconPrefix + _IconFullscreen.name, _IconFullscreen);
976
976
  }
977
977
  });
978
- const _sfc_main$j = defineComponent({
978
+ const _sfc_main$m = defineComponent({
979
979
  name: "IconMute",
980
980
  props: {
981
981
  size: {
@@ -1028,7 +1028,7 @@ const _sfc_main$j = defineComponent({
1028
1028
  };
1029
1029
  }
1030
1030
  });
1031
- const _hoisted_1$f = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1031
+ const _hoisted_1$h = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1032
1032
  function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
1033
1033
  return openBlock(), createElementBlock("svg", {
1034
1034
  viewBox: "0 0 48 48",
@@ -1043,9 +1043,9 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
1043
1043
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
1044
1044
  }, _cache[1] || (_cache[1] = [
1045
1045
  createElementVNode("path", { d: "m19 11.5 4.833-4.35a.1.1 0 0 1 .167.075V17m-14-1H7.1a.1.1 0 0 0-.1.1v15.8a.1.1 0 0 0 .1.1H14l9.833 8.85a.1.1 0 0 0 .167-.075V31m6.071-14.071C32.535 19.393 34 23 32.799 26m2.929-14.728C41.508 17.052 42.5 25 39.123 32M6.5 6.5l35 35" }, null, -1)
1046
- ]), 14, _hoisted_1$f);
1046
+ ]), 14, _hoisted_1$h);
1047
1047
  }
1048
- var _IconMute = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_render$4]]);
1048
+ var _IconMute = /* @__PURE__ */ _export_sfc$1(_sfc_main$m, [["render", _sfc_render$4]]);
1049
1049
  const IconMute = Object.assign(_IconMute, {
1050
1050
  install: (app, options) => {
1051
1051
  var _a;
@@ -1053,7 +1053,7 @@ const IconMute = Object.assign(_IconMute, {
1053
1053
  app.component(iconPrefix + _IconMute.name, _IconMute);
1054
1054
  }
1055
1055
  });
1056
- const _sfc_main$i = defineComponent({
1056
+ const _sfc_main$l = defineComponent({
1057
1057
  name: "IconPause",
1058
1058
  props: {
1059
1059
  size: {
@@ -1106,7 +1106,7 @@ const _sfc_main$i = defineComponent({
1106
1106
  };
1107
1107
  }
1108
1108
  });
1109
- const _hoisted_1$e = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1109
+ const _hoisted_1$g = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1110
1110
  function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
1111
1111
  return openBlock(), createElementBlock("svg", {
1112
1112
  viewBox: "0 0 48 48",
@@ -1126,9 +1126,9 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
1126
1126
  stroke: "none",
1127
1127
  d: "M14 12h4v24h-4zM30 12h4v24h-4z"
1128
1128
  }, null, -1)
1129
- ]), 14, _hoisted_1$e);
1129
+ ]), 14, _hoisted_1$g);
1130
1130
  }
1131
- var _IconPause = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["render", _sfc_render$3]]);
1131
+ var _IconPause = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["render", _sfc_render$3]]);
1132
1132
  const IconPause = Object.assign(_IconPause, {
1133
1133
  install: (app, options) => {
1134
1134
  var _a;
@@ -1136,7 +1136,7 @@ const IconPause = Object.assign(_IconPause, {
1136
1136
  app.component(iconPrefix + _IconPause.name, _IconPause);
1137
1137
  }
1138
1138
  });
1139
- const _sfc_main$h = defineComponent({
1139
+ const _sfc_main$k = defineComponent({
1140
1140
  name: "IconPlayArrow",
1141
1141
  props: {
1142
1142
  size: {
@@ -1189,7 +1189,7 @@ const _sfc_main$h = defineComponent({
1189
1189
  };
1190
1190
  }
1191
1191
  });
1192
- const _hoisted_1$d = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1192
+ const _hoisted_1$f = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1193
1193
  function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1194
1194
  return openBlock(), createElementBlock("svg", {
1195
1195
  viewBox: "0 0 48 48",
@@ -1204,9 +1204,9 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1204
1204
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
1205
1205
  }, _cache[1] || (_cache[1] = [
1206
1206
  createElementVNode("path", { d: "M12.533 7.965A1 1 0 0 0 11 8.81v30.377a1 1 0 0 0 1.533.846L36.656 24.84a1 1 0 0 0 0-1.692L12.533 7.965Z" }, null, -1)
1207
- ]), 14, _hoisted_1$d);
1207
+ ]), 14, _hoisted_1$f);
1208
1208
  }
1209
- var _IconPlayArrow = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["render", _sfc_render$2]]);
1209
+ var _IconPlayArrow = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_render$2]]);
1210
1210
  const IconPlayArrow = Object.assign(_IconPlayArrow, {
1211
1211
  install: (app, options) => {
1212
1212
  var _a;
@@ -1214,7 +1214,7 @@ const IconPlayArrow = Object.assign(_IconPlayArrow, {
1214
1214
  app.component(iconPrefix + _IconPlayArrow.name, _IconPlayArrow);
1215
1215
  }
1216
1216
  });
1217
- const _sfc_main$g = defineComponent({
1217
+ const _sfc_main$j = defineComponent({
1218
1218
  name: "IconSound",
1219
1219
  props: {
1220
1220
  size: {
@@ -1267,7 +1267,7 @@ const _sfc_main$g = defineComponent({
1267
1267
  };
1268
1268
  }
1269
1269
  });
1270
- const _hoisted_1$c = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1270
+ const _hoisted_1$e = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1271
1271
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
1272
1272
  return openBlock(), createElementBlock("svg", {
1273
1273
  viewBox: "0 0 48 48",
@@ -1283,9 +1283,9 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
1283
1283
  }, _cache[1] || (_cache[1] = [
1284
1284
  createElementVNode("path", { d: "m14 16 10-9v34l-10-9H6V16h8Z" }, null, -1),
1285
1285
  createElementVNode("path", { d: "M31.071 16.929c3.905 3.905 3.905 10.237 0 14.142M36.727 11.272c7.03 7.03 7.03 18.426 0 25.456" }, null, -1)
1286
- ]), 14, _hoisted_1$c);
1286
+ ]), 14, _hoisted_1$e);
1287
1287
  }
1288
- var _IconSound = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["render", _sfc_render$1]]);
1288
+ var _IconSound = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_render$1]]);
1289
1289
  const IconSound = Object.assign(_IconSound, {
1290
1290
  install: (app, options) => {
1291
1291
  var _a;
@@ -1293,7 +1293,7 @@ const IconSound = Object.assign(_IconSound, {
1293
1293
  app.component(iconPrefix + _IconSound.name, _IconSound);
1294
1294
  }
1295
1295
  });
1296
- const _sfc_main$f = defineComponent({
1296
+ const _sfc_main$i = defineComponent({
1297
1297
  name: "IconLoading",
1298
1298
  props: {
1299
1299
  size: {
@@ -1346,7 +1346,7 @@ const _sfc_main$f = defineComponent({
1346
1346
  };
1347
1347
  }
1348
1348
  });
1349
- const _hoisted_1$b = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1349
+ const _hoisted_1$d = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1350
1350
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1351
1351
  return openBlock(), createElementBlock("svg", {
1352
1352
  viewBox: "0 0 48 48",
@@ -1361,9 +1361,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1361
1361
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
1362
1362
  }, _cache[1] || (_cache[1] = [
1363
1363
  createElementVNode("path", { d: "M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6" }, null, -1)
1364
- ]), 14, _hoisted_1$b);
1364
+ ]), 14, _hoisted_1$d);
1365
1365
  }
1366
- var _IconLoading = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["render", _sfc_render]]);
1366
+ var _IconLoading = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["render", _sfc_render]]);
1367
1367
  const IconLoading = Object.assign(_IconLoading, {
1368
1368
  install: (app, options) => {
1369
1369
  var _a;
@@ -1371,9 +1371,9 @@ const IconLoading = Object.assign(_IconLoading, {
1371
1371
  app.component(iconPrefix + _IconLoading.name, _IconLoading);
1372
1372
  }
1373
1373
  });
1374
- const _hoisted_1$a = ["draggable"];
1375
- const _hoisted_2$8 = ["src", "alt"];
1376
- const _hoisted_3$6 = {
1374
+ const _hoisted_1$c = ["draggable"];
1375
+ const _hoisted_2$9 = ["src", "alt"];
1376
+ const _hoisted_3$7 = {
1377
1377
  key: 1,
1378
1378
  class: "upload-progress"
1379
1379
  };
@@ -1386,7 +1386,7 @@ const _hoisted_6$4 = {
1386
1386
  key: 3,
1387
1387
  class: "error-tip"
1388
1388
  };
1389
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
1389
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
1390
1390
  ...{
1391
1391
  name: "SortableFileItem"
1392
1392
  },
@@ -1450,8 +1450,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
1450
1450
  src: __props.file.url,
1451
1451
  alt: __props.file.name,
1452
1452
  class: "file-image"
1453
- }, null, 8, _hoisted_2$8)) : createCommentVNode("", true),
1454
- __props.file.status === "uploading" ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
1453
+ }, null, 8, _hoisted_2$9)) : createCommentVNode("", true),
1454
+ __props.file.status === "uploading" ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
1455
1455
  createVNode(_component_a_progress, {
1456
1456
  percent: __props.file.percent || 0,
1457
1457
  size: "mini"
@@ -1473,7 +1473,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
1473
1473
  __props.file.status === "error" ? (openBlock(), createElementBlock("div", _hoisted_6$4, [
1474
1474
  createVNode(unref(IconExclamationCircle))
1475
1475
  ])) : createCommentVNode("", true)
1476
- ], 46, _hoisted_1$a);
1476
+ ], 46, _hoisted_1$c);
1477
1477
  };
1478
1478
  }
1479
1479
  });
@@ -1484,9 +1484,9 @@ const _export_sfc = (sfc, props) => {
1484
1484
  }
1485
1485
  return target;
1486
1486
  };
1487
- const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-f3ec7e11"]]);
1488
- const _hoisted_1$9 = { class: "sortable-file-list" };
1489
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
1487
+ const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-f3ec7e11"]]);
1488
+ const _hoisted_1$b = { class: "sortable-file-list" };
1489
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
1490
1490
  ...{
1491
1491
  name: "SortableFileList"
1492
1492
  },
@@ -1550,7 +1550,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1550
1550
  emit("remove", file);
1551
1551
  };
1552
1552
  return (_ctx, _cache) => {
1553
- return openBlock(), createElementBlock("div", _hoisted_1$9, [
1553
+ return openBlock(), createElementBlock("div", _hoisted_1$b, [
1554
1554
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.fileList, (file, index) => {
1555
1555
  return openBlock(), createBlock(SortableFileItem, {
1556
1556
  key: file.uid,
@@ -1571,13 +1571,13 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1571
1571
  };
1572
1572
  }
1573
1573
  });
1574
- const SortableFileList = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-1ede8f45"]]);
1575
- const _hoisted_1$8 = ["src", "autoplay", "loop", "muted", "preload"];
1576
- const _hoisted_2$7 = {
1574
+ const SortableFileList = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-1ede8f45"]]);
1575
+ const _hoisted_1$a = ["src", "autoplay", "loop", "muted", "preload"];
1576
+ const _hoisted_2$8 = {
1577
1577
  key: 0,
1578
1578
  class: "play-overlay"
1579
1579
  };
1580
- const _hoisted_3$5 = { class: "play-button" };
1580
+ const _hoisted_3$6 = { class: "play-button" };
1581
1581
  const _hoisted_4$4 = {
1582
1582
  key: 1,
1583
1583
  class: "loading-overlay"
@@ -1589,7 +1589,7 @@ const _hoisted_8$1 = { class: "volume-slider-container" };
1589
1589
  const _hoisted_9 = { class: "time-display" };
1590
1590
  const _hoisted_10 = { class: "controls-right" };
1591
1591
  const _hoisted_11 = { class: "control-button" };
1592
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
1592
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
1593
1593
  ...{
1594
1594
  name: "VideoPreview"
1595
1595
  },
@@ -1809,9 +1809,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
1809
1809
  onPause: _cache[1] || (_cache[1] = ($event) => isPlaying.value = false),
1810
1810
  onEnded: handleEnded,
1811
1811
  onVolumechange: handleVolumeChange
1812
- }, null, 40, _hoisted_1$8),
1813
- !isPlaying.value && !isLoading.value ? (openBlock(), createElementBlock("div", _hoisted_2$7, [
1814
- createElementVNode("div", _hoisted_3$5, [
1812
+ }, null, 40, _hoisted_1$a),
1813
+ !isPlaying.value && !isLoading.value ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
1814
+ createElementVNode("div", _hoisted_3$6, [
1815
1815
  createVNode(unref(IconPlayArrow), { size: 48 })
1816
1816
  ])
1817
1817
  ])) : createCommentVNode("", true),
@@ -1938,11 +1938,11 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
1938
1938
  };
1939
1939
  }
1940
1940
  });
1941
- const VideoPreview = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-e8cbf700"]]);
1942
- const _hoisted_1$7 = { class: "video-modal-title" };
1943
- const _hoisted_2$6 = { class: "file-name" };
1944
- const _hoisted_3$4 = { class: "video-modal-content" };
1945
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
1941
+ const VideoPreview = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-e8cbf700"]]);
1942
+ const _hoisted_1$9 = { class: "video-modal-title" };
1943
+ const _hoisted_2$7 = { class: "file-name" };
1944
+ const _hoisted_3$5 = { class: "video-modal-content" };
1945
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
1946
1946
  ...{
1947
1947
  name: "VideoPreviewModal"
1948
1948
  },
@@ -1993,12 +1993,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
1993
1993
  onCancel: handleClose
1994
1994
  }, {
1995
1995
  title: withCtx(() => [
1996
- createElementVNode("div", _hoisted_1$7, [
1997
- createElementVNode("span", _hoisted_2$6, toDisplayString(__props.fileName || "视频预览"), 1)
1996
+ createElementVNode("div", _hoisted_1$9, [
1997
+ createElementVNode("span", _hoisted_2$7, toDisplayString(__props.fileName || "视频预览"), 1)
1998
1998
  ])
1999
1999
  ]),
2000
2000
  default: withCtx(() => [
2001
- createElementVNode("div", _hoisted_3$4, [
2001
+ createElementVNode("div", _hoisted_3$5, [
2002
2002
  __props.videoUrl ? (openBlock(), createBlock(VideoPreview, {
2003
2003
  key: 0,
2004
2004
  "video-url": __props.videoUrl,
@@ -2014,13 +2014,13 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
2014
2014
  };
2015
2015
  }
2016
2016
  });
2017
- const VideoPreviewModal = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-0ae4ec5c"]]);
2018
- const _hoisted_1$6 = { class: "basic-upload" };
2019
- const _hoisted_2$5 = {
2017
+ const VideoPreviewModal = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-0ae4ec5c"]]);
2018
+ const _hoisted_1$8 = { class: "basic-upload" };
2019
+ const _hoisted_2$6 = {
2020
2020
  key: 0,
2021
2021
  class: "upload-empty-state"
2022
2022
  };
2023
- const _hoisted_3$3 = {
2023
+ const _hoisted_3$4 = {
2024
2024
  key: 0,
2025
2025
  class: "upload-text"
2026
2026
  };
@@ -2041,7 +2041,7 @@ const _hoisted_8 = {
2041
2041
  key: 5,
2042
2042
  class: "inline-video-preview"
2043
2043
  };
2044
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
2044
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
2045
2045
  ...{
2046
2046
  name: "BasicUpload",
2047
2047
  inheritAttrs: false
@@ -2574,8 +2574,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2574
2574
  const _component_a_button = resolveComponent("a-button");
2575
2575
  const _component_a_upload = resolveComponent("a-upload");
2576
2576
  const _component_a_image = resolveComponent("a-image");
2577
- return openBlock(), createElementBlock("div", _hoisted_1$6, [
2578
- shouldShowEmptyState.value ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
2577
+ return openBlock(), createElementBlock("div", _hoisted_1$8, [
2578
+ shouldShowEmptyState.value ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
2579
2579
  renderSlot(_ctx.$slots, "empty", {}, () => [
2580
2580
  createTextVNode(toDisplayString(getProps.value.emptyText), 1)
2581
2581
  ], true)
@@ -2604,7 +2604,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2604
2604
  })
2605
2605
  }, [
2606
2606
  createVNode(unref(IconPlus), { size: 16 }),
2607
- getProps.value.uploadButtonText ? (openBlock(), createElementBlock("div", _hoisted_3$3, toDisplayString(getProps.value.uploadButtonText), 1)) : createCommentVNode("", true)
2607
+ getProps.value.uploadButtonText ? (openBlock(), createElementBlock("div", _hoisted_3$4, toDisplayString(getProps.value.uploadButtonText), 1)) : createCommentVNode("", true)
2608
2608
  ], 4)) : (openBlock(), createBlock(_component_a_button, {
2609
2609
  key: 1,
2610
2610
  type: getProps.value.uploadButtonType || "primary"
@@ -2722,7 +2722,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2722
2722
  };
2723
2723
  }
2724
2724
  });
2725
- const BasicUpload = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-507c779d"]]);
2725
+ const BasicUpload = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-507c779d"]]);
2726
2726
  function useUpload(props) {
2727
2727
  const uploadRef = ref(null);
2728
2728
  const fileListRef = ref((props == null ? void 0 : props.defaultFileList) || []);
@@ -3018,7 +3018,7 @@ function clearApiCache(api, params) {
3018
3018
  const cacheKey = getCacheKey(api, params);
3019
3019
  cacheMap.delete(cacheKey);
3020
3020
  }
3021
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3021
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3022
3022
  __name: "ApiSelect",
3023
3023
  props: {
3024
3024
  modelValue: {},
@@ -3129,7 +3129,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3129
3129
  };
3130
3130
  }
3131
3131
  });
3132
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
3132
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3133
3133
  __name: "ApiCascader",
3134
3134
  props: {
3135
3135
  modelValue: {},
@@ -3296,13 +3296,13 @@ const componentMap = {
3296
3296
  Textarea,
3297
3297
  AutoComplete,
3298
3298
  Select,
3299
- ApiSelect: _sfc_main$9,
3299
+ ApiSelect: _sfc_main$c,
3300
3300
  Radio,
3301
3301
  RadioGroup,
3302
3302
  Checkbox,
3303
3303
  CheckboxGroup,
3304
3304
  Cascader,
3305
- ApiCascader: _sfc_main$8,
3305
+ ApiCascader: _sfc_main$b,
3306
3306
  TreeSelect,
3307
3307
  DatePicker,
3308
3308
  TimePicker,
@@ -3330,6 +3330,7 @@ function getComponent(name) {
3330
3330
  }
3331
3331
  const componentsNeedPlaceholder = /* @__PURE__ */ new Set([
3332
3332
  "Input",
3333
+ "InputNumber",
3333
3334
  "InputPassword",
3334
3335
  "Textarea",
3335
3336
  "AutoComplete"
@@ -3899,7 +3900,7 @@ const rendererMap = {
3899
3900
  function getRenderer(component = "Input") {
3900
3901
  return rendererMap[component] || rendererMap.default;
3901
3902
  }
3902
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
3903
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
3903
3904
  ...{
3904
3905
  name: "BasicReadonlyField",
3905
3906
  inheritAttrs: false
@@ -4008,7 +4009,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
4008
4009
  };
4009
4010
  }
4010
4011
  });
4011
- const BasicReadonlyField = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-3d2d24e0"]]);
4012
+ const BasicReadonlyField = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-3d2d24e0"]]);
4012
4013
  function useReadonlyField(options) {
4013
4014
  const defaultEmptyText = (options == null ? void 0 : options.defaultEmptyText) || "-";
4014
4015
  const globalLabelMap = (options == null ? void 0 : options.globalLabelMap) || {};
@@ -4120,7 +4121,7 @@ function useReadonlyField(options) {
4120
4121
  clearCache
4121
4122
  };
4122
4123
  }
4123
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
4124
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
4124
4125
  ...{
4125
4126
  name: "BasicForm",
4126
4127
  inheritAttrs: false
@@ -4886,8 +4887,8 @@ function createFormSchema(schemas) {
4886
4887
  function mergeFormSchemas(...schemas) {
4887
4888
  return schemas.flat();
4888
4889
  }
4889
- const _hoisted_1$5 = { class: "basic-text-ellipsis" };
4890
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
4890
+ const _hoisted_1$7 = { class: "basic-text-ellipsis" };
4891
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
4891
4892
  __name: "BasicTextEllipsis",
4892
4893
  props: {
4893
4894
  text: { default: "" },
@@ -4975,7 +4976,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
4975
4976
  );
4976
4977
  return (_ctx, _cache) => {
4977
4978
  const _component_a_tooltip = resolveComponent("a-tooltip");
4978
- return openBlock(), createElementBlock("div", _hoisted_1$5, [
4979
+ return openBlock(), createElementBlock("div", _hoisted_1$7, [
4979
4980
  showTooltip.value ? (openBlock(), createBlock(_component_a_tooltip, mergeProps({
4980
4981
  key: 0,
4981
4982
  content: __props.text,
@@ -5001,7 +5002,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
5001
5002
  };
5002
5003
  }
5003
5004
  });
5004
- const BasicTextEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-05b93f77"]]);
5005
+ const BasicTextEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-05b93f77"]]);
5005
5006
  function useLocalStorage(key, initialValue) {
5006
5007
  let initialStoredValue;
5007
5008
  try {
@@ -5411,12 +5412,12 @@ function useEditFormat(options) {
5411
5412
  wrapFormatListeners
5412
5413
  };
5413
5414
  }
5414
- const _hoisted_1$4 = { class: "edit-cell" };
5415
- const _hoisted_2$4 = {
5415
+ const _hoisted_1$6 = { class: "edit-cell" };
5416
+ const _hoisted_2$5 = {
5416
5417
  key: 2,
5417
5418
  class: "edit-cell-error"
5418
5419
  };
5419
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
5420
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
5420
5421
  ...{
5421
5422
  name: "EditCell"
5422
5423
  },
@@ -5503,18 +5504,18 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
5503
5504
  }
5504
5505
  });
5505
5506
  return (_ctx, _cache) => {
5506
- return openBlock(), createElementBlock("div", _hoisted_1$4, [
5507
+ return openBlock(), createElementBlock("div", _hoisted_1$6, [
5507
5508
  props.column.editRender ? (openBlock(), createBlock(resolveDynamicComponent(customRenderContent.value), { key: 0 })) : (openBlock(), createBlock(resolveDynamicComponent(editComponent.value), mergeProps({ key: 1 }, mergedProps.value, {
5508
5509
  "model-value": unref(currentValue),
5509
5510
  "onUpdate:modelValue": handleChange,
5510
5511
  class: "edit-cell-input"
5511
5512
  }), null, 16, ["model-value"])),
5512
- __props.error ? (openBlock(), createElementBlock("div", _hoisted_2$4, toDisplayString(__props.error), 1)) : createCommentVNode("", true)
5513
+ __props.error ? (openBlock(), createElementBlock("div", _hoisted_2$5, toDisplayString(__props.error), 1)) : createCommentVNode("", true)
5513
5514
  ]);
5514
5515
  };
5515
5516
  }
5516
5517
  });
5517
- const EditCell = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-52761074"]]);
5518
+ const EditCell = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-52761074"]]);
5518
5519
  function useEditValidation() {
5519
5520
  const validateField = async (value, column, record) => {
5520
5521
  if (!column.editRule) {
@@ -5925,12 +5926,12 @@ function useTableEdit(props, dataSource, getRowKey) {
5925
5926
  getChangedValues
5926
5927
  };
5927
5928
  }
5928
- const _hoisted_1$3 = { class: "basic-table-wrapper" };
5929
- const _hoisted_2$3 = {
5929
+ const _hoisted_1$5 = { class: "basic-table-wrapper" };
5930
+ const _hoisted_2$4 = {
5930
5931
  key: 0,
5931
5932
  class: "basic-table-search"
5932
5933
  };
5933
- const _hoisted_3$2 = {
5934
+ const _hoisted_3$3 = {
5934
5935
  key: 1,
5935
5936
  class: "basic-table-toolbar"
5936
5937
  };
@@ -5944,7 +5945,7 @@ const _hoisted_6$1 = {
5944
5945
  class: "toolbar-right"
5945
5946
  };
5946
5947
  const _hoisted_7$1 = { class: "column-setting" };
5947
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
5948
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
5948
5949
  ...{
5949
5950
  name: "BasicTable"
5950
5951
  },
@@ -6896,9 +6897,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
6896
6897
  const _component_a_link = resolveComponent("a-link");
6897
6898
  const _component_a_popconfirm = resolveComponent("a-popconfirm");
6898
6899
  const _component_a_table = resolveComponent("a-table");
6899
- return openBlock(), createElementBlock("div", _hoisted_1$3, [
6900
- getSearchConfig.value.show ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
6901
- createVNode(unref(_sfc_main$6), mergeProps({
6900
+ return openBlock(), createElementBlock("div", _hoisted_1$5, [
6901
+ getSearchConfig.value.show ? (openBlock(), createElementBlock("div", _hoisted_2$4, [
6902
+ createVNode(unref(_sfc_main$9), mergeProps({
6902
6903
  ref_key: "searchFormRef",
6903
6904
  ref: searchFormRef
6904
6905
  }, getSearchFormProps.value, {
@@ -6916,7 +6917,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
6916
6917
  ]), 1040),
6917
6918
  createVNode(_component_a_divider, { class: "!mt-0" })
6918
6919
  ])) : createCommentVNode("", true),
6919
- getToolbarConfig.value.show || getToolbarConfig.value.title || _ctx.$slots.tableTitle ? (openBlock(), createElementBlock("div", _hoisted_3$2, [
6920
+ getToolbarConfig.value.show || getToolbarConfig.value.title || _ctx.$slots.tableTitle ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
6920
6921
  createElementVNode("div", _hoisted_4$2, [
6921
6922
  renderSlot(_ctx.$slots, "tableTitle", {}, () => [
6922
6923
  getToolbarConfig.value.title ? (openBlock(), createElementBlock("div", _hoisted_5$2, toDisplayString(getToolbarConfig.value.title), 1)) : createCommentVNode("", true)
@@ -7260,7 +7261,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
7260
7261
  };
7261
7262
  }
7262
7263
  });
7263
- const BasicTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-e0254887"]]);
7264
+ const BasicTable = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-e0254887"]]);
7264
7265
  function useTable(options = {}) {
7265
7266
  const tableRef = ref(null);
7266
7267
  const formRef = ref(null);
@@ -7611,9 +7612,9 @@ function createTableColumns(columns) {
7611
7612
  function mergeTableColumns(...columns) {
7612
7613
  return columns.flat();
7613
7614
  }
7614
- const _hoisted_1$2 = { style: { "position": "relative", "width": "100%" } };
7615
- const _hoisted_2$2 = { key: 1 };
7616
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
7615
+ const _hoisted_1$4 = { style: { "position": "relative", "width": "100%" } };
7616
+ const _hoisted_2$3 = { key: 1 };
7617
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
7617
7618
  ...{
7618
7619
  name: "BasicModal",
7619
7620
  inheritAttrs: false
@@ -7964,7 +7965,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
7964
7965
  } : getProps.value.title ? {
7965
7966
  name: "title",
7966
7967
  fn: withCtx(() => [
7967
- createElementVNode("div", _hoisted_1$2, [
7968
+ createElementVNode("div", _hoisted_1$4, [
7968
7969
  createElementVNode("span", {
7969
7970
  style: normalizeStyle({ display: "block", textAlign: getProps.value.titleAlign }),
7970
7971
  class: normalizeClass(["block"])
@@ -7999,7 +8000,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
7999
8000
  _: 1
8000
8001
  }))
8001
8002
  ], 64)) : createCommentVNode("", true),
8002
- getProps.value.canFullscreen ? (openBlock(), createElementBlock("div", _hoisted_2$2, [
8003
+ getProps.value.canFullscreen ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
8003
8004
  !fullscreenRef.value ? (openBlock(), createBlock(unref(IconFullscreen), {
8004
8005
  key: 0,
8005
8006
  class: "cursor-pointer",
@@ -8065,7 +8066,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
8065
8066
  };
8066
8067
  }
8067
8068
  });
8068
- const BasicModal = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-ce432825"]]);
8069
+ const BasicModal = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-ce432825"]]);
8069
8070
  function useModal(props) {
8070
8071
  const modalRef = ref(null);
8071
8072
  const loadedRef = ref(false);
@@ -8223,18 +8224,18 @@ function useModalInner(callbackFn) {
8223
8224
  }
8224
8225
  ];
8225
8226
  }
8226
- const _hoisted_1$1 = { class: "basic-description" };
8227
- const _hoisted_2$1 = {
8227
+ const _hoisted_1$3 = { class: "basic-description" };
8228
+ const _hoisted_2$2 = {
8228
8229
  key: 0,
8229
8230
  class: "description-header"
8230
8231
  };
8231
- const _hoisted_3$1 = { class: "description-title" };
8232
+ const _hoisted_3$2 = { class: "description-title" };
8232
8233
  const _hoisted_4$1 = {
8233
8234
  key: 0,
8234
8235
  class: "description-extra"
8235
8236
  };
8236
8237
  const _hoisted_5$1 = { key: 1 };
8237
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
8238
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
8238
8239
  ...{
8239
8240
  name: "BasicDescription",
8240
8241
  inheritAttrs: false
@@ -8365,9 +8366,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
8365
8366
  const _component_a_tooltip = resolveComponent("a-tooltip");
8366
8367
  const _component_a_descriptions_item = resolveComponent("a-descriptions-item");
8367
8368
  const _component_a_descriptions = resolveComponent("a-descriptions");
8368
- return openBlock(), createElementBlock("div", _hoisted_1$1, [
8369
- getProps.value.title || _ctx.$slots.title || _ctx.$slots.extra ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
8370
- createElementVNode("div", _hoisted_3$1, [
8369
+ return openBlock(), createElementBlock("div", _hoisted_1$3, [
8370
+ getProps.value.title || _ctx.$slots.title || _ctx.$slots.extra ? (openBlock(), createElementBlock("div", _hoisted_2$2, [
8371
+ createElementVNode("div", _hoisted_3$2, [
8371
8372
  _ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }, void 0, true) : getProps.value.title ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
8372
8373
  createElementVNode("span", null, toDisplayString(getProps.value.title), 1),
8373
8374
  ((_a = getProps.value.helpMessageOptions) == null ? void 0 : _a.helpMessage) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
@@ -8440,7 +8441,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
8440
8441
  };
8441
8442
  }
8442
8443
  });
8443
- const BasicDescription = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-f100005c"]]);
8444
+ const BasicDescription = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-f100005c"]]);
8444
8445
  function useDescription(props) {
8445
8446
  const descriptionRef = ref(null);
8446
8447
  const loadedRef = ref(false);
@@ -8483,12 +8484,12 @@ function useDescription(props) {
8483
8484
  }
8484
8485
  ];
8485
8486
  }
8486
- const _hoisted_1 = { class: "basic-image" };
8487
- const _hoisted_2 = {
8487
+ const _hoisted_1$2 = { class: "basic-image" };
8488
+ const _hoisted_2$1 = {
8488
8489
  key: 0,
8489
8490
  class: "basic-image-empty"
8490
8491
  };
8491
- const _hoisted_3 = { class: "empty-text" };
8492
+ const _hoisted_3$1 = { class: "empty-text" };
8492
8493
  const _hoisted_4 = {
8493
8494
  key: 0,
8494
8495
  class: "basic-image-simple"
@@ -8502,7 +8503,7 @@ const _hoisted_7 = {
8502
8503
  key: 0,
8503
8504
  style: { "display": "none" }
8504
8505
  };
8505
- const _sfc_main = /* @__PURE__ */ defineComponent({
8506
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8506
8507
  ...{
8507
8508
  name: "BasicImage"
8508
8509
  },
@@ -8582,10 +8583,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8582
8583
  __expose(methods);
8583
8584
  return (_ctx, _cache) => {
8584
8585
  const _component_a_image = resolveComponent("a-image");
8585
- return openBlock(), createElementBlock("div", _hoisted_1, [
8586
- normalizedImages.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_2, [
8586
+ return openBlock(), createElementBlock("div", _hoisted_1$2, [
8587
+ normalizedImages.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
8587
8588
  renderSlot(_ctx.$slots, "empty", {}, () => [
8588
- createElementVNode("span", _hoisted_3, toDisplayString(getProps.value.emptyText), 1)
8589
+ createElementVNode("span", _hoisted_3$1, toDisplayString(getProps.value.emptyText), 1)
8589
8590
  ], true)
8590
8591
  ])) : (openBlock(), createBlock(resolveDynamicComponent(getProps.value.preview ? "a-image-preview-group" : "div"), { key: 1 }, {
8591
8592
  default: withCtx(() => [
@@ -8640,7 +8641,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8640
8641
  };
8641
8642
  }
8642
8643
  });
8643
- const BasicImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8435954c"]]);
8644
+ const BasicImage = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-8435954c"]]);
8644
8645
  function useImage(options) {
8645
8646
  const imageRef = ref(null);
8646
8647
  const loadedRef = ref(false);
@@ -8687,6 +8688,239 @@ function useImage(options) {
8687
8688
  });
8688
8689
  return [register, methods];
8689
8690
  }
8691
+ const _hoisted_1$1 = { class: "knt-spinner" };
8692
+ const _hoisted_2 = { class: "knt-spinner__ring" };
8693
+ const _hoisted_3 = {
8694
+ key: 0,
8695
+ class: "knt-spinner__tip"
8696
+ };
8697
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
8698
+ ...{ name: "LoadingSpinner" },
8699
+ __name: "LoadingSpinner",
8700
+ props: {
8701
+ tip: {}
8702
+ },
8703
+ setup(__props) {
8704
+ return (_ctx, _cache) => {
8705
+ return openBlock(), createElementBlock("div", _hoisted_1$1, [
8706
+ createElementVNode("div", _hoisted_2, [
8707
+ (openBlock(), createElementBlock(Fragment, null, renderList(4, (i) => {
8708
+ return createElementVNode("span", { key: i });
8709
+ }), 64))
8710
+ ]),
8711
+ __props.tip ? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(__props.tip), 1)) : createCommentVNode("", true)
8712
+ ]);
8713
+ };
8714
+ }
8715
+ });
8716
+ const LoadingSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-8cd97aae"]]);
8717
+ const _hoisted_1 = { class: "knt-loading-overlay__content" };
8718
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
8719
+ ...{
8720
+ name: "LoadingOverlay",
8721
+ inheritAttrs: false
8722
+ },
8723
+ __name: "LoadingOverlay",
8724
+ props: {
8725
+ tip: { default: "" },
8726
+ zIndex: { default: 1e3 },
8727
+ maskStyle: {},
8728
+ maskClass: {},
8729
+ viewport: { type: Boolean, default: true }
8730
+ },
8731
+ setup(__props) {
8732
+ const props = __props;
8733
+ const overlayStyle = computed(() => {
8734
+ const base = {
8735
+ position: props.viewport ? "fixed" : "absolute",
8736
+ inset: 0,
8737
+ zIndex: props.zIndex,
8738
+ display: "flex",
8739
+ alignItems: "center",
8740
+ justifyContent: "center",
8741
+ backgroundColor: "rgba(255, 255, 255, 0.6)"
8742
+ };
8743
+ return base;
8744
+ });
8745
+ return (_ctx, _cache) => {
8746
+ return openBlock(), createElementBlock("div", {
8747
+ class: normalizeClass(["knt-loading-overlay", __props.maskClass]),
8748
+ style: normalizeStyle([overlayStyle.value, __props.maskStyle])
8749
+ }, [
8750
+ createElementVNode("div", _hoisted_1, [
8751
+ renderSlot(_ctx.$slots, "default", {}, () => [
8752
+ createVNode(LoadingSpinner, { tip: __props.tip }, null, 8, ["tip"])
8753
+ ], true)
8754
+ ])
8755
+ ], 6);
8756
+ };
8757
+ }
8758
+ });
8759
+ const LoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-b25f4ff8"]]);
8760
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8761
+ ...{
8762
+ name: "BasicLoading",
8763
+ inheritAttrs: false
8764
+ },
8765
+ __name: "BasicLoading",
8766
+ props: {
8767
+ loading: { type: Boolean, default: false },
8768
+ mode: { default: "viewport" },
8769
+ target: {},
8770
+ scrollLock: { type: Boolean, default: void 0 },
8771
+ tip: { default: "" },
8772
+ zIndex: { default: 1e3 },
8773
+ maskStyle: {},
8774
+ maskClass: {}
8775
+ },
8776
+ setup(__props) {
8777
+ const props = __props;
8778
+ const effectiveScrollLock = computed(() => {
8779
+ if (props.scrollLock !== void 0) return props.scrollLock;
8780
+ return props.mode === "viewport";
8781
+ });
8782
+ let bodyOverflowRestore = "";
8783
+ const applyScrollLock = (lock) => {
8784
+ if (lock) {
8785
+ bodyOverflowRestore = document.body.style.overflow;
8786
+ document.body.style.overflow = "hidden";
8787
+ } else {
8788
+ document.body.style.overflow = bodyOverflowRestore || "";
8789
+ }
8790
+ };
8791
+ watch(
8792
+ () => props.loading && effectiveScrollLock.value,
8793
+ (shouldLock) => {
8794
+ applyScrollLock(!!shouldLock);
8795
+ },
8796
+ { immediate: true }
8797
+ );
8798
+ onUnmounted(() => {
8799
+ if (props.loading && effectiveScrollLock.value) {
8800
+ document.body.style.overflow = bodyOverflowRestore || "";
8801
+ }
8802
+ });
8803
+ const teleportTo = ref(null);
8804
+ const resolveTeleportTarget = () => {
8805
+ if (!props.loading) {
8806
+ teleportTo.value = null;
8807
+ return;
8808
+ }
8809
+ if (props.mode === "viewport") {
8810
+ teleportTo.value = "body";
8811
+ return;
8812
+ }
8813
+ if (props.mode === "inside" && props.target) {
8814
+ const el = typeof props.target === "string" ? document.querySelector(props.target) : props.target;
8815
+ teleportTo.value = el;
8816
+ return;
8817
+ }
8818
+ teleportTo.value = null;
8819
+ };
8820
+ watch(
8821
+ () => [props.loading, props.mode, props.target],
8822
+ resolveTeleportTarget,
8823
+ { immediate: true }
8824
+ );
8825
+ return (_ctx, _cache) => {
8826
+ return __props.loading ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
8827
+ teleportTo.value ? (openBlock(), createBlock(Teleport, {
8828
+ key: 0,
8829
+ to: teleportTo.value
8830
+ }, [
8831
+ createVNode(LoadingOverlay, {
8832
+ tip: __props.tip,
8833
+ "z-index": __props.zIndex,
8834
+ viewport: __props.mode === "viewport",
8835
+ "mask-style": __props.maskStyle,
8836
+ "mask-class": __props.maskClass
8837
+ }, {
8838
+ default: withCtx(() => [
8839
+ renderSlot(_ctx.$slots, "default", {}, () => [
8840
+ createVNode(LoadingSpinner, { tip: __props.tip }, null, 8, ["tip"])
8841
+ ])
8842
+ ]),
8843
+ _: 3
8844
+ }, 8, ["tip", "z-index", "viewport", "mask-style", "mask-class"])
8845
+ ], 8, ["to"])) : createCommentVNode("", true)
8846
+ ], 64)) : createCommentVNode("", true);
8847
+ };
8848
+ }
8849
+ });
8850
+ function resolveTarget(options) {
8851
+ const { mode, target } = options;
8852
+ if (mode !== "inside" || !target) return null;
8853
+ return typeof target === "string" ? document.querySelector(target) : target;
8854
+ }
8855
+ function getEffectiveScrollLock(options) {
8856
+ if (options.scrollLock !== void 0) return options.scrollLock;
8857
+ return options.mode !== "inside";
8858
+ }
8859
+ function createLoading(options = {}) {
8860
+ const mode = options.mode ?? "viewport";
8861
+ const scrollLock = getEffectiveScrollLock(options);
8862
+ let containerEl = null;
8863
+ let app = null;
8864
+ let bodyOverflowRestore = "";
8865
+ const state = reactive({
8866
+ tip: options.tip ?? "",
8867
+ zIndex: options.zIndex ?? 1e3,
8868
+ maskStyle: options.maskStyle,
8869
+ maskClass: options.maskClass,
8870
+ viewport: mode === "viewport"
8871
+ });
8872
+ const applyScrollLock = (lock) => {
8873
+ if (lock) {
8874
+ bodyOverflowRestore = document.body.style.overflow;
8875
+ document.body.style.overflow = "hidden";
8876
+ } else {
8877
+ document.body.style.overflow = bodyOverflowRestore || "";
8878
+ }
8879
+ };
8880
+ const close = () => {
8881
+ if (!app || !containerEl) return;
8882
+ app.unmount();
8883
+ app = null;
8884
+ if (containerEl.parentNode) {
8885
+ containerEl.parentNode.removeChild(containerEl);
8886
+ }
8887
+ containerEl = null;
8888
+ if (scrollLock) applyScrollLock(false);
8889
+ };
8890
+ const open = (openOptions) => {
8891
+ if (containerEl && app) {
8892
+ if ((openOptions == null ? void 0 : openOptions.tip) !== void 0) state.tip = openOptions.tip;
8893
+ return;
8894
+ }
8895
+ if (mode === "inside") {
8896
+ const target = resolveTarget(options);
8897
+ if (!target) {
8898
+ console.warn("[createLoading] inside 模式需要有效的 target");
8899
+ return;
8900
+ }
8901
+ }
8902
+ state.tip = (openOptions == null ? void 0 : openOptions.tip) ?? options.tip ?? "";
8903
+ containerEl = document.createElement("div");
8904
+ if (mode === "inside") {
8905
+ containerEl.style.cssText = "position:absolute;inset:0;overflow:hidden;pointer-events:auto;";
8906
+ const target = resolveTarget(options);
8907
+ target.appendChild(containerEl);
8908
+ } else {
8909
+ document.body.appendChild(containerEl);
8910
+ }
8911
+ app = createApp(LoadingOverlay, state);
8912
+ app.mount(containerEl);
8913
+ if (scrollLock) applyScrollLock(true);
8914
+ };
8915
+ const setTip = (tip) => {
8916
+ state.tip = tip;
8917
+ };
8918
+ return {
8919
+ open,
8920
+ close,
8921
+ setTip
8922
+ };
8923
+ }
8690
8924
  function formatDate(date, format = "YYYY-MM-DD HH:mm:ss") {
8691
8925
  const d = typeof date === "number" ? new Date(date) : date;
8692
8926
  const year = d.getFullYear();
@@ -9222,11 +9456,12 @@ function useToggle(initialValue = false) {
9222
9456
  return [value, toggle, setTrue, setFalse];
9223
9457
  }
9224
9458
  export {
9225
- _sfc_main$8 as ApiCascader,
9226
- _sfc_main$9 as ApiSelect,
9459
+ _sfc_main$b as ApiCascader,
9460
+ _sfc_main$c as ApiSelect,
9227
9461
  BasicDescription,
9228
- _sfc_main$6 as BasicForm,
9462
+ _sfc_main$9 as BasicForm,
9229
9463
  BasicImage,
9464
+ _sfc_main as BasicLoading,
9230
9465
  BasicModal,
9231
9466
  BasicReadonlyField,
9232
9467
  BasicTable,
@@ -9242,6 +9477,7 @@ export {
9242
9477
  componentMap,
9243
9478
  copyToClipboard,
9244
9479
  createFormSchema,
9480
+ createLoading,
9245
9481
  createTableColumns,
9246
9482
  debounce,
9247
9483
  diffArrays,