knt-shared 1.8.10 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/components/Drawer/BasicDrawer.vue.d.ts +122 -0
  2. package/dist/components/Drawer/BasicDrawer.vue.d.ts.map +1 -0
  3. package/dist/components/Drawer/index.d.ts +5 -0
  4. package/dist/components/Drawer/index.d.ts.map +1 -0
  5. package/dist/components/Drawer/types.d.ts +177 -0
  6. package/dist/components/Drawer/types.d.ts.map +1 -0
  7. package/dist/components/Drawer/useDrawer.d.ts +10 -0
  8. package/dist/components/Drawer/useDrawer.d.ts.map +1 -0
  9. package/dist/components/Drawer/useDrawerInner.d.ts +10 -0
  10. package/dist/components/Drawer/useDrawerInner.d.ts.map +1 -0
  11. package/dist/components/Form/componentMap.d.ts +33 -33
  12. package/dist/components/Form/components/ApiCascader.vue.d.ts +1 -1
  13. package/dist/components/Form/components/ApiCascader.vue.d.ts.map +1 -1
  14. package/dist/components/Form/components/ApiSelect.vue.d.ts +1 -1
  15. package/dist/components/Form/components/ApiSelect.vue.d.ts.map +1 -1
  16. package/dist/components/Image/BasicImage.vue.d.ts +1 -1
  17. package/dist/components/Loading/BasicLoading.vue.d.ts +1 -1
  18. package/dist/components/Modal/BasicModal.vue.d.ts +9 -9
  19. package/dist/components/Table/components/componentMap.d.ts +33 -33
  20. package/dist/components/Table/index.d.ts +2 -1
  21. package/dist/components/Table/index.d.ts.map +1 -1
  22. package/dist/components/Upload/BasicUpload.vue.d.ts +1 -1
  23. package/dist/components/Upload/components/VideoPreviewModal.vue.d.ts +1 -1
  24. package/dist/components/index.d.ts +1 -0
  25. package/dist/components/index.d.ts.map +1 -1
  26. package/dist/index.cjs.js +644 -116
  27. package/dist/index.cjs.js.map +1 -1
  28. package/dist/index.esm.js +644 -116
  29. package/dist/index.esm.js.map +1 -1
  30. package/dist/style.css +10 -0
  31. package/package.json +70 -1
package/dist/index.cjs.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const vue = require("vue");
4
3
  const ArcoVue = require("@arco-design/web-vue");
4
+ const vue = require("vue");
5
5
  const configProviderInjectionKey = Symbol("ArcoConfigProvider");
6
6
  const CLASS_PREFIX = "arco";
7
7
  const GLOBAL_CONFIG_NAME = "$arco";
@@ -24,7 +24,7 @@ var _export_sfc$1 = (sfc, props) => {
24
24
  }
25
25
  return sfc;
26
26
  };
27
- const _sfc_main$y = vue.defineComponent({
27
+ const _sfc_main$z = vue.defineComponent({
28
28
  name: "IconPlus",
29
29
  props: {
30
30
  size: {
@@ -77,7 +77,7 @@ const _sfc_main$y = vue.defineComponent({
77
77
  };
78
78
  }
79
79
  });
80
- const _hoisted_1$t = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
80
+ const _hoisted_1$u = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
81
81
  function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
82
82
  return vue.openBlock(), vue.createElementBlock("svg", {
83
83
  viewBox: "0 0 48 48",
@@ -92,9 +92,9 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
92
92
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
93
93
  }, _cache[1] || (_cache[1] = [
94
94
  vue.createElementVNode("path", { d: "M5 24h38M24 5v38" }, null, -1)
95
- ]), 14, _hoisted_1$t);
95
+ ]), 14, _hoisted_1$u);
96
96
  }
97
- var _IconPlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$y, [["render", _sfc_render$g]]);
97
+ var _IconPlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$z, [["render", _sfc_render$g]]);
98
98
  const IconPlus = Object.assign(_IconPlus, {
99
99
  install: (app, options) => {
100
100
  var _a;
@@ -102,7 +102,7 @@ const IconPlus = Object.assign(_IconPlus, {
102
102
  app.component(iconPrefix + _IconPlus.name, _IconPlus);
103
103
  }
104
104
  });
105
- const _sfc_main$x = vue.defineComponent({
105
+ const _sfc_main$y = vue.defineComponent({
106
106
  name: "IconQuestionCircle",
107
107
  props: {
108
108
  size: {
@@ -155,7 +155,7 @@ const _sfc_main$x = vue.defineComponent({
155
155
  };
156
156
  }
157
157
  });
158
- const _hoisted_1$s = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
158
+ const _hoisted_1$t = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
159
159
  function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
160
160
  return vue.openBlock(), vue.createElementBlock("svg", {
161
161
  viewBox: "0 0 48 48",
@@ -171,9 +171,9 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
171
171
  }, _cache[1] || (_cache[1] = [
172
172
  vue.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),
173
173
  vue.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)
174
- ]), 14, _hoisted_1$s);
174
+ ]), 14, _hoisted_1$t);
175
175
  }
176
- var _IconQuestionCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$x, [["render", _sfc_render$f]]);
176
+ var _IconQuestionCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$y, [["render", _sfc_render$f]]);
177
177
  const IconQuestionCircle = Object.assign(_IconQuestionCircle, {
178
178
  install: (app, options) => {
179
179
  var _a;
@@ -181,7 +181,7 @@ const IconQuestionCircle = Object.assign(_IconQuestionCircle, {
181
181
  app.component(iconPrefix + _IconQuestionCircle.name, _IconQuestionCircle);
182
182
  }
183
183
  });
184
- const _sfc_main$w = vue.defineComponent({
184
+ const _sfc_main$x = vue.defineComponent({
185
185
  name: "IconEye",
186
186
  props: {
187
187
  size: {
@@ -234,7 +234,7 @@ const _sfc_main$w = vue.defineComponent({
234
234
  };
235
235
  }
236
236
  });
237
- const _hoisted_1$r = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
237
+ const _hoisted_1$s = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
238
238
  function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
239
239
  return vue.openBlock(), vue.createElementBlock("svg", {
240
240
  viewBox: "0 0 48 48",
@@ -253,9 +253,9 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
253
253
  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"
254
254
  }, null, -1),
255
255
  vue.createElementVNode("path", { d: "M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z" }, null, -1)
256
- ]), 14, _hoisted_1$r);
256
+ ]), 14, _hoisted_1$s);
257
257
  }
258
- var _IconEye = /* @__PURE__ */ _export_sfc$1(_sfc_main$w, [["render", _sfc_render$e]]);
258
+ var _IconEye = /* @__PURE__ */ _export_sfc$1(_sfc_main$x, [["render", _sfc_render$e]]);
259
259
  const IconEye = Object.assign(_IconEye, {
260
260
  install: (app, options) => {
261
261
  var _a;
@@ -263,7 +263,7 @@ const IconEye = Object.assign(_IconEye, {
263
263
  app.component(iconPrefix + _IconEye.name, _IconEye);
264
264
  }
265
265
  });
266
- const _sfc_main$v = vue.defineComponent({
266
+ const _sfc_main$w = vue.defineComponent({
267
267
  name: "IconMore",
268
268
  props: {
269
269
  size: {
@@ -316,7 +316,7 @@ const _sfc_main$v = vue.defineComponent({
316
316
  };
317
317
  }
318
318
  });
319
- const _hoisted_1$q = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
319
+ const _hoisted_1$r = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
320
320
  function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
321
321
  return vue.openBlock(), vue.createElementBlock("svg", {
322
322
  viewBox: "0 0 48 48",
@@ -336,9 +336,9 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
336
336
  stroke: "none"
337
337
  }, null, -1),
338
338
  vue.createElementVNode("path", { d: "M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z" }, null, -1)
339
- ]), 14, _hoisted_1$q);
339
+ ]), 14, _hoisted_1$r);
340
340
  }
341
- var _IconMore = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["render", _sfc_render$d]]);
341
+ var _IconMore = /* @__PURE__ */ _export_sfc$1(_sfc_main$w, [["render", _sfc_render$d]]);
342
342
  const IconMore = Object.assign(_IconMore, {
343
343
  install: (app, options) => {
344
344
  var _a;
@@ -346,7 +346,7 @@ const IconMore = Object.assign(_IconMore, {
346
346
  app.component(iconPrefix + _IconMore.name, _IconMore);
347
347
  }
348
348
  });
349
- const _sfc_main$u = vue.defineComponent({
349
+ const _sfc_main$v = vue.defineComponent({
350
350
  name: "IconRefresh",
351
351
  props: {
352
352
  size: {
@@ -399,7 +399,7 @@ const _sfc_main$u = vue.defineComponent({
399
399
  };
400
400
  }
401
401
  });
402
- const _hoisted_1$p = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
402
+ const _hoisted_1$q = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
403
403
  function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
404
404
  return vue.openBlock(), vue.createElementBlock("svg", {
405
405
  viewBox: "0 0 48 48",
@@ -414,9 +414,9 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
414
414
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
415
415
  }, _cache[1] || (_cache[1] = [
416
416
  vue.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)
417
- ]), 14, _hoisted_1$p);
417
+ ]), 14, _hoisted_1$q);
418
418
  }
419
- var _IconRefresh = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["render", _sfc_render$c]]);
419
+ var _IconRefresh = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["render", _sfc_render$c]]);
420
420
  const IconRefresh = Object.assign(_IconRefresh, {
421
421
  install: (app, options) => {
422
422
  var _a;
@@ -424,7 +424,7 @@ const IconRefresh = Object.assign(_IconRefresh, {
424
424
  app.component(iconPrefix + _IconRefresh.name, _IconRefresh);
425
425
  }
426
426
  });
427
- const _sfc_main$t = vue.defineComponent({
427
+ const _sfc_main$u = vue.defineComponent({
428
428
  name: "IconSearch",
429
429
  props: {
430
430
  size: {
@@ -477,7 +477,7 @@ const _sfc_main$t = vue.defineComponent({
477
477
  };
478
478
  }
479
479
  });
480
- const _hoisted_1$o = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
480
+ const _hoisted_1$p = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
481
481
  function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
482
482
  return vue.openBlock(), vue.createElementBlock("svg", {
483
483
  viewBox: "0 0 48 48",
@@ -492,9 +492,9 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
492
492
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
493
493
  }, _cache[1] || (_cache[1] = [
494
494
  vue.createElementVNode("path", { d: "M33.072 33.071c6.248-6.248 6.248-16.379 0-22.627-6.249-6.249-16.38-6.249-22.628 0-6.248 6.248-6.248 16.379 0 22.627 6.248 6.248 16.38 6.248 22.628 0Zm0 0 8.485 8.485" }, null, -1)
495
- ]), 14, _hoisted_1$o);
495
+ ]), 14, _hoisted_1$p);
496
496
  }
497
- var _IconSearch = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$b]]);
497
+ var _IconSearch = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["render", _sfc_render$b]]);
498
498
  const IconSearch = Object.assign(_IconSearch, {
499
499
  install: (app, options) => {
500
500
  var _a;
@@ -502,7 +502,7 @@ const IconSearch = Object.assign(_IconSearch, {
502
502
  app.component(iconPrefix + _IconSearch.name, _IconSearch);
503
503
  }
504
504
  });
505
- const _sfc_main$s = vue.defineComponent({
505
+ const _sfc_main$t = vue.defineComponent({
506
506
  name: "IconSettings",
507
507
  props: {
508
508
  size: {
@@ -555,7 +555,7 @@ const _sfc_main$s = vue.defineComponent({
555
555
  };
556
556
  }
557
557
  });
558
- const _hoisted_1$n = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
558
+ const _hoisted_1$o = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
559
559
  function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
560
560
  return vue.openBlock(), vue.createElementBlock("svg", {
561
561
  viewBox: "0 0 48 48",
@@ -571,9 +571,9 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
571
571
  }, _cache[1] || (_cache[1] = [
572
572
  vue.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),
573
573
  vue.createElementVNode("path", { d: "M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z" }, null, -1)
574
- ]), 14, _hoisted_1$n);
574
+ ]), 14, _hoisted_1$o);
575
575
  }
576
- var _IconSettings = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_render$a]]);
576
+ var _IconSettings = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$a]]);
577
577
  const IconSettings = Object.assign(_IconSettings, {
578
578
  install: (app, options) => {
579
579
  var _a;
@@ -581,7 +581,7 @@ const IconSettings = Object.assign(_IconSettings, {
581
581
  app.component(iconPrefix + _IconSettings.name, _IconSettings);
582
582
  }
583
583
  });
584
- const _sfc_main$r = vue.defineComponent({
584
+ const _sfc_main$s = vue.defineComponent({
585
585
  name: "IconUpload",
586
586
  props: {
587
587
  size: {
@@ -634,7 +634,7 @@ const _sfc_main$r = vue.defineComponent({
634
634
  };
635
635
  }
636
636
  });
637
- const _hoisted_1$m = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
637
+ const _hoisted_1$n = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
638
638
  function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
639
639
  return vue.openBlock(), vue.createElementBlock("svg", {
640
640
  viewBox: "0 0 48 48",
@@ -649,9 +649,9 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
649
649
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
650
650
  }, _cache[1] || (_cache[1] = [
651
651
  vue.createElementVNode("path", { d: "M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6" }, null, -1)
652
- ]), 14, _hoisted_1$m);
652
+ ]), 14, _hoisted_1$n);
653
653
  }
654
- var _IconUpload = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _sfc_render$9]]);
654
+ var _IconUpload = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_render$9]]);
655
655
  const IconUpload = Object.assign(_IconUpload, {
656
656
  install: (app, options) => {
657
657
  var _a;
@@ -659,7 +659,7 @@ const IconUpload = Object.assign(_IconUpload, {
659
659
  app.component(iconPrefix + _IconUpload.name, _IconUpload);
660
660
  }
661
661
  });
662
- const _sfc_main$q = vue.defineComponent({
662
+ const _sfc_main$r = vue.defineComponent({
663
663
  name: "IconDelete",
664
664
  props: {
665
665
  size: {
@@ -712,7 +712,7 @@ const _sfc_main$q = vue.defineComponent({
712
712
  };
713
713
  }
714
714
  });
715
- const _hoisted_1$l = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
715
+ const _hoisted_1$m = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
716
716
  function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
717
717
  return vue.openBlock(), vue.createElementBlock("svg", {
718
718
  viewBox: "0 0 48 48",
@@ -727,9 +727,9 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
727
727
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
728
728
  }, _cache[1] || (_cache[1] = [
729
729
  vue.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)
730
- ]), 14, _hoisted_1$l);
730
+ ]), 14, _hoisted_1$m);
731
731
  }
732
- var _IconDelete = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["render", _sfc_render$8]]);
732
+ var _IconDelete = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _sfc_render$8]]);
733
733
  const IconDelete = Object.assign(_IconDelete, {
734
734
  install: (app, options) => {
735
735
  var _a;
@@ -737,7 +737,7 @@ const IconDelete = Object.assign(_IconDelete, {
737
737
  app.component(iconPrefix + _IconDelete.name, _IconDelete);
738
738
  }
739
739
  });
740
- const _sfc_main$p = vue.defineComponent({
740
+ const _sfc_main$q = vue.defineComponent({
741
741
  name: "IconLineHeight",
742
742
  props: {
743
743
  size: {
@@ -790,7 +790,7 @@ const _sfc_main$p = vue.defineComponent({
790
790
  };
791
791
  }
792
792
  });
793
- const _hoisted_1$k = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
793
+ const _hoisted_1$l = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
794
794
  function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
795
795
  return vue.openBlock(), vue.createElementBlock("svg", {
796
796
  viewBox: "0 0 48 48",
@@ -811,9 +811,9 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
811
811
  stroke: "none"
812
812
  }, null, -1),
813
813
  vue.createElementVNode("path", { d: "M39 13h2l-2-3.5-2 3.5h2Zm0 0v22m0 0h2l-2 3.5-2-3.5h2Z" }, null, -1)
814
- ]), 14, _hoisted_1$k);
814
+ ]), 14, _hoisted_1$l);
815
815
  }
816
- var _IconLineHeight = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["render", _sfc_render$7]]);
816
+ var _IconLineHeight = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["render", _sfc_render$7]]);
817
817
  const IconLineHeight = Object.assign(_IconLineHeight, {
818
818
  install: (app, options) => {
819
819
  var _a;
@@ -821,7 +821,7 @@ const IconLineHeight = Object.assign(_IconLineHeight, {
821
821
  app.component(iconPrefix + _IconLineHeight.name, _IconLineHeight);
822
822
  }
823
823
  });
824
- const _sfc_main$o = vue.defineComponent({
824
+ const _sfc_main$p = vue.defineComponent({
825
825
  name: "IconFullscreenExit",
826
826
  props: {
827
827
  size: {
@@ -874,7 +874,7 @@ const _sfc_main$o = vue.defineComponent({
874
874
  };
875
875
  }
876
876
  });
877
- const _hoisted_1$j = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
877
+ const _hoisted_1$k = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
878
878
  function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
879
879
  return vue.openBlock(), vue.createElementBlock("svg", {
880
880
  viewBox: "0 0 48 48",
@@ -889,9 +889,9 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
889
889
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
890
890
  }, _cache[1] || (_cache[1] = [
891
891
  vue.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)
892
- ]), 14, _hoisted_1$j);
892
+ ]), 14, _hoisted_1$k);
893
893
  }
894
- var _IconFullscreenExit = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_render$6]]);
894
+ var _IconFullscreenExit = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["render", _sfc_render$6]]);
895
895
  const IconFullscreenExit = Object.assign(_IconFullscreenExit, {
896
896
  install: (app, options) => {
897
897
  var _a;
@@ -899,7 +899,7 @@ const IconFullscreenExit = Object.assign(_IconFullscreenExit, {
899
899
  app.component(iconPrefix + _IconFullscreenExit.name, _IconFullscreenExit);
900
900
  }
901
901
  });
902
- const _sfc_main$n = vue.defineComponent({
902
+ const _sfc_main$o = vue.defineComponent({
903
903
  name: "IconFullscreen",
904
904
  props: {
905
905
  size: {
@@ -952,7 +952,7 @@ const _sfc_main$n = vue.defineComponent({
952
952
  };
953
953
  }
954
954
  });
955
- const _hoisted_1$i = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
955
+ const _hoisted_1$j = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
956
956
  function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
957
957
  return vue.openBlock(), vue.createElementBlock("svg", {
958
958
  viewBox: "0 0 48 48",
@@ -967,9 +967,9 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
967
967
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
968
968
  }, _cache[1] || (_cache[1] = [
969
969
  vue.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)
970
- ]), 14, _hoisted_1$i);
970
+ ]), 14, _hoisted_1$j);
971
971
  }
972
- var _IconFullscreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$5]]);
972
+ var _IconFullscreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_render$5]]);
973
973
  const IconFullscreen = Object.assign(_IconFullscreen, {
974
974
  install: (app, options) => {
975
975
  var _a;
@@ -977,7 +977,7 @@ const IconFullscreen = Object.assign(_IconFullscreen, {
977
977
  app.component(iconPrefix + _IconFullscreen.name, _IconFullscreen);
978
978
  }
979
979
  });
980
- const _sfc_main$m = vue.defineComponent({
980
+ const _sfc_main$n = vue.defineComponent({
981
981
  name: "IconMute",
982
982
  props: {
983
983
  size: {
@@ -1030,7 +1030,7 @@ const _sfc_main$m = vue.defineComponent({
1030
1030
  };
1031
1031
  }
1032
1032
  });
1033
- const _hoisted_1$h = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1033
+ const _hoisted_1$i = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1034
1034
  function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
1035
1035
  return vue.openBlock(), vue.createElementBlock("svg", {
1036
1036
  viewBox: "0 0 48 48",
@@ -1045,9 +1045,9 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
1045
1045
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
1046
1046
  }, _cache[1] || (_cache[1] = [
1047
1047
  vue.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)
1048
- ]), 14, _hoisted_1$h);
1048
+ ]), 14, _hoisted_1$i);
1049
1049
  }
1050
- var _IconMute = /* @__PURE__ */ _export_sfc$1(_sfc_main$m, [["render", _sfc_render$4]]);
1050
+ var _IconMute = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$4]]);
1051
1051
  const IconMute = Object.assign(_IconMute, {
1052
1052
  install: (app, options) => {
1053
1053
  var _a;
@@ -1055,7 +1055,7 @@ const IconMute = Object.assign(_IconMute, {
1055
1055
  app.component(iconPrefix + _IconMute.name, _IconMute);
1056
1056
  }
1057
1057
  });
1058
- const _sfc_main$l = vue.defineComponent({
1058
+ const _sfc_main$m = vue.defineComponent({
1059
1059
  name: "IconPause",
1060
1060
  props: {
1061
1061
  size: {
@@ -1108,7 +1108,7 @@ const _sfc_main$l = vue.defineComponent({
1108
1108
  };
1109
1109
  }
1110
1110
  });
1111
- const _hoisted_1$g = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1111
+ const _hoisted_1$h = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1112
1112
  function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
1113
1113
  return vue.openBlock(), vue.createElementBlock("svg", {
1114
1114
  viewBox: "0 0 48 48",
@@ -1128,9 +1128,9 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
1128
1128
  stroke: "none",
1129
1129
  d: "M14 12h4v24h-4zM30 12h4v24h-4z"
1130
1130
  }, null, -1)
1131
- ]), 14, _hoisted_1$g);
1131
+ ]), 14, _hoisted_1$h);
1132
1132
  }
1133
- var _IconPause = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["render", _sfc_render$3]]);
1133
+ var _IconPause = /* @__PURE__ */ _export_sfc$1(_sfc_main$m, [["render", _sfc_render$3]]);
1134
1134
  const IconPause = Object.assign(_IconPause, {
1135
1135
  install: (app, options) => {
1136
1136
  var _a;
@@ -1138,7 +1138,7 @@ const IconPause = Object.assign(_IconPause, {
1138
1138
  app.component(iconPrefix + _IconPause.name, _IconPause);
1139
1139
  }
1140
1140
  });
1141
- const _sfc_main$k = vue.defineComponent({
1141
+ const _sfc_main$l = vue.defineComponent({
1142
1142
  name: "IconPlayArrow",
1143
1143
  props: {
1144
1144
  size: {
@@ -1191,7 +1191,7 @@ const _sfc_main$k = vue.defineComponent({
1191
1191
  };
1192
1192
  }
1193
1193
  });
1194
- const _hoisted_1$f = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1194
+ const _hoisted_1$g = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1195
1195
  function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1196
1196
  return vue.openBlock(), vue.createElementBlock("svg", {
1197
1197
  viewBox: "0 0 48 48",
@@ -1206,9 +1206,9 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1206
1206
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
1207
1207
  }, _cache[1] || (_cache[1] = [
1208
1208
  vue.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)
1209
- ]), 14, _hoisted_1$f);
1209
+ ]), 14, _hoisted_1$g);
1210
1210
  }
1211
- var _IconPlayArrow = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_render$2]]);
1211
+ var _IconPlayArrow = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["render", _sfc_render$2]]);
1212
1212
  const IconPlayArrow = Object.assign(_IconPlayArrow, {
1213
1213
  install: (app, options) => {
1214
1214
  var _a;
@@ -1216,7 +1216,7 @@ const IconPlayArrow = Object.assign(_IconPlayArrow, {
1216
1216
  app.component(iconPrefix + _IconPlayArrow.name, _IconPlayArrow);
1217
1217
  }
1218
1218
  });
1219
- const _sfc_main$j = vue.defineComponent({
1219
+ const _sfc_main$k = vue.defineComponent({
1220
1220
  name: "IconSound",
1221
1221
  props: {
1222
1222
  size: {
@@ -1269,7 +1269,7 @@ const _sfc_main$j = vue.defineComponent({
1269
1269
  };
1270
1270
  }
1271
1271
  });
1272
- const _hoisted_1$e = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1272
+ const _hoisted_1$f = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1273
1273
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
1274
1274
  return vue.openBlock(), vue.createElementBlock("svg", {
1275
1275
  viewBox: "0 0 48 48",
@@ -1285,9 +1285,9 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
1285
1285
  }, _cache[1] || (_cache[1] = [
1286
1286
  vue.createElementVNode("path", { d: "m14 16 10-9v34l-10-9H6V16h8Z" }, null, -1),
1287
1287
  vue.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)
1288
- ]), 14, _hoisted_1$e);
1288
+ ]), 14, _hoisted_1$f);
1289
1289
  }
1290
- var _IconSound = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_render$1]]);
1290
+ var _IconSound = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_render$1]]);
1291
1291
  const IconSound = Object.assign(_IconSound, {
1292
1292
  install: (app, options) => {
1293
1293
  var _a;
@@ -1295,7 +1295,7 @@ const IconSound = Object.assign(_IconSound, {
1295
1295
  app.component(iconPrefix + _IconSound.name, _IconSound);
1296
1296
  }
1297
1297
  });
1298
- const _sfc_main$i = vue.defineComponent({
1298
+ const _sfc_main$j = vue.defineComponent({
1299
1299
  name: "IconLoading",
1300
1300
  props: {
1301
1301
  size: {
@@ -1348,7 +1348,7 @@ const _sfc_main$i = vue.defineComponent({
1348
1348
  };
1349
1349
  }
1350
1350
  });
1351
- const _hoisted_1$d = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1351
+ const _hoisted_1$e = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1352
1352
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1353
1353
  return vue.openBlock(), vue.createElementBlock("svg", {
1354
1354
  viewBox: "0 0 48 48",
@@ -1363,9 +1363,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1363
1363
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
1364
1364
  }, _cache[1] || (_cache[1] = [
1365
1365
  vue.createElementVNode("path", { d: "M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6" }, null, -1)
1366
- ]), 14, _hoisted_1$d);
1366
+ ]), 14, _hoisted_1$e);
1367
1367
  }
1368
- var _IconLoading = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["render", _sfc_render]]);
1368
+ var _IconLoading = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_render]]);
1369
1369
  const IconLoading = Object.assign(_IconLoading, {
1370
1370
  install: (app, options) => {
1371
1371
  var _a;
@@ -2198,7 +2198,7 @@ function subtractLight(color, amount) {
2198
2198
  const c = cc < 0 ? 0 : cc;
2199
2199
  return c.toString(16).length > 1 ? c.toString(16) : `0${c.toString(16)}`;
2200
2200
  }
2201
- const _hoisted_1$c = ["draggable"];
2201
+ const _hoisted_1$d = ["draggable"];
2202
2202
  const _hoisted_2$9 = ["src", "alt"];
2203
2203
  const _hoisted_3$7 = {
2204
2204
  key: 1,
@@ -2213,7 +2213,7 @@ const _hoisted_6$4 = {
2213
2213
  key: 3,
2214
2214
  class: "error-tip"
2215
2215
  };
2216
- const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
2216
+ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
2217
2217
  ...{
2218
2218
  name: "SortableFileItem"
2219
2219
  },
@@ -2313,7 +2313,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
2313
2313
  onClick: handleRemove
2314
2314
  })) : vue.createCommentVNode("", true)
2315
2315
  ])) : vue.createCommentVNode("", true)
2316
- ], 46, _hoisted_1$c);
2316
+ ], 46, _hoisted_1$d);
2317
2317
  };
2318
2318
  }
2319
2319
  });
@@ -2324,9 +2324,9 @@ const _export_sfc = (sfc, props) => {
2324
2324
  }
2325
2325
  return target;
2326
2326
  };
2327
- const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-07a9ff47"]]);
2328
- const _hoisted_1$b = { class: "sortable-file-list" };
2329
- const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
2327
+ const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-07a9ff47"]]);
2328
+ const _hoisted_1$c = { class: "sortable-file-list" };
2329
+ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
2330
2330
  ...{
2331
2331
  name: "SortableFileList"
2332
2332
  },
@@ -2390,7 +2390,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
2390
2390
  emit("remove", file);
2391
2391
  };
2392
2392
  return (_ctx, _cache) => {
2393
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [
2393
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [
2394
2394
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.fileList, (file, index) => {
2395
2395
  return vue.openBlock(), vue.createBlock(SortableFileItem, {
2396
2396
  key: file.uid,
@@ -2411,8 +2411,8 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
2411
2411
  };
2412
2412
  }
2413
2413
  });
2414
- const SortableFileList = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-1ede8f45"]]);
2415
- const _hoisted_1$a = ["src", "autoplay", "loop", "muted", "preload"];
2414
+ const SortableFileList = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-1ede8f45"]]);
2415
+ const _hoisted_1$b = ["src", "autoplay", "loop", "muted", "preload"];
2416
2416
  const _hoisted_2$8 = {
2417
2417
  key: 0,
2418
2418
  class: "play-overlay"
@@ -2429,7 +2429,7 @@ const _hoisted_8$1 = { class: "volume-slider-container" };
2429
2429
  const _hoisted_9 = { class: "time-display" };
2430
2430
  const _hoisted_10 = { class: "controls-right" };
2431
2431
  const _hoisted_11 = { class: "control-button" };
2432
- const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
2432
+ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
2433
2433
  ...{
2434
2434
  name: "VideoPreview"
2435
2435
  },
@@ -2646,7 +2646,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
2646
2646
  onPause: _cache[1] || (_cache[1] = ($event) => isPlaying.value = false),
2647
2647
  onEnded: handleEnded,
2648
2648
  onVolumechange: handleVolumeChange
2649
- }, null, 40, _hoisted_1$a),
2649
+ }, null, 40, _hoisted_1$b),
2650
2650
  !isPlaying.value && !isLoading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$8, [
2651
2651
  vue.createElementVNode("div", _hoisted_3$6, [
2652
2652
  vue.createVNode(vue.unref(IconPlayArrow), { size: 48 })
@@ -2775,11 +2775,11 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
2775
2775
  };
2776
2776
  }
2777
2777
  });
2778
- const VideoPreview = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-b982f870"]]);
2779
- const _hoisted_1$9 = { class: "video-modal-title" };
2778
+ const VideoPreview = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-b982f870"]]);
2779
+ const _hoisted_1$a = { class: "video-modal-title" };
2780
2780
  const _hoisted_2$7 = { class: "file-name" };
2781
2781
  const _hoisted_3$5 = { class: "video-modal-content" };
2782
- const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
2782
+ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
2783
2783
  ...{
2784
2784
  name: "VideoPreviewModal"
2785
2785
  },
@@ -2829,7 +2829,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
2829
2829
  onCancel: handleClose
2830
2830
  }, {
2831
2831
  title: vue.withCtx(() => [
2832
- vue.createElementVNode("div", _hoisted_1$9, [
2832
+ vue.createElementVNode("div", _hoisted_1$a, [
2833
2833
  vue.createElementVNode("span", _hoisted_2$7, vue.toDisplayString(__props.fileName || "视频预览"), 1)
2834
2834
  ])
2835
2835
  ]),
@@ -2850,8 +2850,8 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
2850
2850
  };
2851
2851
  }
2852
2852
  });
2853
- const VideoPreviewModal = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-cac8e63e"]]);
2854
- const _hoisted_1$8 = { class: "basic-upload" };
2853
+ const VideoPreviewModal = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-cac8e63e"]]);
2854
+ const _hoisted_1$9 = { class: "basic-upload" };
2855
2855
  const _hoisted_2$6 = {
2856
2856
  key: 0,
2857
2857
  class: "upload-empty-state"
@@ -2877,7 +2877,7 @@ const _hoisted_8 = {
2877
2877
  key: 5,
2878
2878
  class: "inline-video-preview"
2879
2879
  };
2880
- const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
2880
+ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
2881
2881
  ...{
2882
2882
  name: "BasicUpload",
2883
2883
  inheritAttrs: false
@@ -3446,7 +3446,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
3446
3446
  });
3447
3447
  });
3448
3448
  return (_ctx, _cache) => {
3449
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [
3449
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$9, [
3450
3450
  shouldShowEmptyState.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$6, [
3451
3451
  vue.renderSlot(_ctx.$slots, "empty", {}, () => [
3452
3452
  vue.createTextVNode(vue.toDisplayString(getProps.value.emptyText), 1)
@@ -3594,7 +3594,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
3594
3594
  };
3595
3595
  }
3596
3596
  });
3597
- const BasicUpload = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-13e8439f"]]);
3597
+ const BasicUpload = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-13e8439f"]]);
3598
3598
  function useUpload(props) {
3599
3599
  const uploadRef = vue.ref(null);
3600
3600
  const fileListRef = vue.ref((props == null ? void 0 : props.defaultFileList) || []);
@@ -3840,7 +3840,7 @@ function clearApiCache(api, params) {
3840
3840
  const cacheKey = getCacheKey(api, params);
3841
3841
  cacheMap.delete(cacheKey);
3842
3842
  }
3843
- const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
3843
+ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
3844
3844
  __name: "ApiSelect",
3845
3845
  props: {
3846
3846
  modelValue: {},
@@ -3950,7 +3950,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
3950
3950
  };
3951
3951
  }
3952
3952
  });
3953
- const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
3953
+ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
3954
3954
  __name: "ApiCascader",
3955
3955
  props: {
3956
3956
  modelValue: {},
@@ -4116,13 +4116,13 @@ const componentMap = {
4116
4116
  Textarea: ArcoVue.Textarea,
4117
4117
  AutoComplete: ArcoVue.AutoComplete,
4118
4118
  Select: ArcoVue.Select,
4119
- ApiSelect: _sfc_main$c,
4119
+ ApiSelect: _sfc_main$d,
4120
4120
  Radio: ArcoVue.Radio,
4121
4121
  RadioGroup: ArcoVue.RadioGroup,
4122
4122
  Checkbox: ArcoVue.Checkbox,
4123
4123
  CheckboxGroup: ArcoVue.CheckboxGroup,
4124
4124
  Cascader: ArcoVue.Cascader,
4125
- ApiCascader: _sfc_main$b,
4125
+ ApiCascader: _sfc_main$c,
4126
4126
  TreeSelect: ArcoVue.TreeSelect,
4127
4127
  DatePicker: ArcoVue.DatePicker,
4128
4128
  TimePicker: ArcoVue.TimePicker,
@@ -4728,7 +4728,7 @@ const rendererMap = {
4728
4728
  function getRenderer(component = "Input") {
4729
4729
  return rendererMap[component] || rendererMap.default;
4730
4730
  }
4731
- const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
4731
+ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
4732
4732
  ...{
4733
4733
  name: "BasicReadonlyField",
4734
4734
  inheritAttrs: false
@@ -4837,7 +4837,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
4837
4837
  };
4838
4838
  }
4839
4839
  });
4840
- const BasicReadonlyField = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-3d2d24e0"]]);
4840
+ const BasicReadonlyField = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-3d2d24e0"]]);
4841
4841
  function useReadonlyField(options) {
4842
4842
  const defaultEmptyText = (options == null ? void 0 : options.defaultEmptyText) || "-";
4843
4843
  const globalLabelMap = (options == null ? void 0 : options.globalLabelMap) || {};
@@ -4949,7 +4949,7 @@ function useReadonlyField(options) {
4949
4949
  clearCache
4950
4950
  };
4951
4951
  }
4952
- const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
4952
+ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
4953
4953
  ...{
4954
4954
  name: "BasicForm",
4955
4955
  inheritAttrs: false
@@ -5757,8 +5757,8 @@ function createFormSchema(schemas) {
5757
5757
  function mergeFormSchemas(...schemas) {
5758
5758
  return schemas.flat();
5759
5759
  }
5760
- const _hoisted_1$7 = { class: "basic-text-ellipsis" };
5761
- const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
5760
+ const _hoisted_1$8 = { class: "basic-text-ellipsis" };
5761
+ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
5762
5762
  __name: "BasicTextEllipsis",
5763
5763
  props: {
5764
5764
  text: { default: "" },
@@ -5845,7 +5845,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
5845
5845
  }
5846
5846
  );
5847
5847
  return (_ctx, _cache) => {
5848
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
5848
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [
5849
5849
  showTooltip.value ? (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Tooltip), vue.mergeProps({
5850
5850
  key: 0,
5851
5851
  content: __props.text,
@@ -5871,7 +5871,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
5871
5871
  };
5872
5872
  }
5873
5873
  });
5874
- const BasicTextEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-305f9842"]]);
5874
+ const BasicTextEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-305f9842"]]);
5875
5875
  function useLocalStorage(key, initialValue) {
5876
5876
  let initialStoredValue;
5877
5877
  try {
@@ -6281,12 +6281,12 @@ function useEditFormat(options) {
6281
6281
  wrapFormatListeners
6282
6282
  };
6283
6283
  }
6284
- const _hoisted_1$6 = { class: "edit-cell" };
6284
+ const _hoisted_1$7 = { class: "edit-cell" };
6285
6285
  const _hoisted_2$5 = {
6286
6286
  key: 2,
6287
6287
  class: "edit-cell-error"
6288
6288
  };
6289
- const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
6289
+ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
6290
6290
  ...{
6291
6291
  name: "EditCell"
6292
6292
  },
@@ -6373,7 +6373,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
6373
6373
  }
6374
6374
  });
6375
6375
  return (_ctx, _cache) => {
6376
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
6376
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
6377
6377
  props.column.editRender ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(customRenderContent.value), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(editComponent.value), vue.mergeProps({ key: 1 }, mergedProps.value, {
6378
6378
  "model-value": vue.unref(currentValue),
6379
6379
  "onUpdate:modelValue": handleChange,
@@ -6384,7 +6384,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
6384
6384
  };
6385
6385
  }
6386
6386
  });
6387
- const EditCell = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-52761074"]]);
6387
+ const EditCell = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-52761074"]]);
6388
6388
  function useEditValidation() {
6389
6389
  const validateField = async (value, column, record) => {
6390
6390
  if (!column.editRule) {
@@ -6795,7 +6795,7 @@ function useTableEdit(props, dataSource, getRowKey) {
6795
6795
  getChangedValues
6796
6796
  };
6797
6797
  }
6798
- const _hoisted_1$5 = {
6798
+ const _hoisted_1$6 = {
6799
6799
  key: 0,
6800
6800
  class: "basic-table-search"
6801
6801
  };
@@ -6813,7 +6813,7 @@ const _hoisted_5$2 = {
6813
6813
  class: "toolbar-right"
6814
6814
  };
6815
6815
  const _hoisted_6$1 = { class: "column-setting" };
6816
- const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
6816
+ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
6817
6817
  ...{
6818
6818
  name: "BasicTable"
6819
6819
  },
@@ -7930,8 +7930,8 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
7930
7930
  ref: tableWrapperRef,
7931
7931
  class: vue.normalizeClass(["basic-table-wrapper", { "is-fullscreen": isFullscreen.value }])
7932
7932
  }, [
7933
- getSearchConfig.value.show ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
7934
- vue.createVNode(vue.unref(_sfc_main$9), vue.mergeProps({
7933
+ getSearchConfig.value.show ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
7934
+ vue.createVNode(vue.unref(_sfc_main$a), vue.mergeProps({
7935
7935
  ref_key: "searchFormRef",
7936
7936
  ref: searchFormRef
7937
7937
  }, getSearchFormProps.value, {
@@ -8309,7 +8309,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
8309
8309
  };
8310
8310
  }
8311
8311
  });
8312
- const BasicTable = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-5f63dbb6"]]);
8312
+ const BasicTable = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-5f63dbb6"]]);
8313
8313
  function useTable(options = {}) {
8314
8314
  const tableRef = vue.ref(null);
8315
8315
  const formRef = vue.ref(null);
@@ -8668,9 +8668,9 @@ function createTableColumns(columns) {
8668
8668
  function mergeTableColumns(...columns) {
8669
8669
  return columns.flat();
8670
8670
  }
8671
- const _hoisted_1$4 = { style: { "position": "relative", "width": "100%" } };
8671
+ const _hoisted_1$5 = { style: { "position": "relative", "width": "100%" } };
8672
8672
  const _hoisted_2$3 = { key: 1 };
8673
- const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
8673
+ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
8674
8674
  ...{
8675
8675
  name: "BasicModal",
8676
8676
  inheritAttrs: false
@@ -9016,7 +9016,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
9016
9016
  } : getProps.value.title ? {
9017
9017
  name: "title",
9018
9018
  fn: vue.withCtx(() => [
9019
- vue.createElementVNode("div", _hoisted_1$4, [
9019
+ vue.createElementVNode("div", _hoisted_1$5, [
9020
9020
  vue.createElementVNode("span", {
9021
9021
  style: vue.normalizeStyle({ display: "block", textAlign: getProps.value.titleAlign }),
9022
9022
  class: vue.normalizeClass(["block"])
@@ -9117,7 +9117,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
9117
9117
  };
9118
9118
  }
9119
9119
  });
9120
- const BasicModal = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-e4400cf8"]]);
9120
+ const BasicModal = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-e4400cf8"]]);
9121
9121
  function useModal(props) {
9122
9122
  const modalRef = vue.ref(null);
9123
9123
  const loadedRef = vue.ref(false);
@@ -9275,6 +9275,530 @@ function useModalInner(callbackFn) {
9275
9275
  }
9276
9276
  ];
9277
9277
  }
9278
+ const _hoisted_1$4 = { style: { "position": "relative", "display": "flex", "align-items": "center", "gap": "0.5rem" } };
9279
+ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
9280
+ ...{
9281
+ name: "BasicDrawer",
9282
+ inheritAttrs: false
9283
+ },
9284
+ __name: "BasicDrawer",
9285
+ props: {
9286
+ visible: { type: Boolean, default: false },
9287
+ defaultVisible: { type: Boolean, default: false },
9288
+ placement: { default: "right" },
9289
+ title: {},
9290
+ mask: { type: Boolean, default: true },
9291
+ maskClosable: { type: Boolean, default: true },
9292
+ closable: { type: Boolean, default: true },
9293
+ okText: { default: "确定" },
9294
+ cancelText: { default: "取消" },
9295
+ okLoading: { type: Boolean },
9296
+ okButtonProps: {},
9297
+ cancelButtonProps: {},
9298
+ unmountOnClose: { type: Boolean },
9299
+ width: { default: 378 },
9300
+ height: {},
9301
+ popupContainer: {},
9302
+ drawerStyle: {},
9303
+ bodyClass: {},
9304
+ bodyStyle: { type: [Boolean, null, String, Object, Array] },
9305
+ onBeforeOk: {},
9306
+ onBeforeCancel: {},
9307
+ escToClose: { type: Boolean, default: true },
9308
+ renderToBody: { type: Boolean, default: true },
9309
+ header: { type: Boolean, default: true },
9310
+ footer: { type: Boolean, default: true },
9311
+ hideCancel: { type: Boolean, default: false },
9312
+ loading: { type: Boolean, default: false },
9313
+ loadingTip: {},
9314
+ showCancelBtn: { type: Boolean, default: true },
9315
+ showOkBtn: { type: Boolean, default: true },
9316
+ showFooter: { type: Boolean, default: true },
9317
+ helpMessage: {},
9318
+ closeFunc: {},
9319
+ clearDataOnClose: { type: Boolean },
9320
+ _data: {}
9321
+ },
9322
+ emits: ["register", "update:visible", "ok", "cancel", "open", "close", "before-open", "before-close", "visible-change"],
9323
+ setup(__props, { expose: __expose, emit: __emit }) {
9324
+ const props = __props;
9325
+ const emit = __emit;
9326
+ const visibleRef = vue.ref(false);
9327
+ const confirmLoading = vue.ref(false);
9328
+ const drawerLoading = vue.ref(false);
9329
+ const propsRef = vue.ref({});
9330
+ const getProps = vue.computed(() => {
9331
+ return { ...props, ...vue.unref(propsRef) };
9332
+ });
9333
+ const isValidClass = (value) => {
9334
+ if (value === void 0 || value === null) return false;
9335
+ return typeof value === "string" || Array.isArray(value);
9336
+ };
9337
+ const isValidStyle = (value) => {
9338
+ if (value === void 0 || value === null) return false;
9339
+ if (typeof value === "string") return true;
9340
+ if (Array.isArray(value)) return true;
9341
+ if (typeof value === "object" && !Array.isArray(value)) return true;
9342
+ return false;
9343
+ };
9344
+ const isValidButtonProps = (value) => {
9345
+ if (value === void 0 || value === null) return false;
9346
+ return typeof value === "object" && !Array.isArray(value);
9347
+ };
9348
+ const isValidPopupContainer = (value) => {
9349
+ if (value === void 0 || value === null) return false;
9350
+ return typeof value === "string" || value instanceof HTMLElement;
9351
+ };
9352
+ const getBindValue = vue.computed(() => {
9353
+ const propsData = vue.unref(getProps);
9354
+ return {
9355
+ defaultVisible: propsData.defaultVisible,
9356
+ placement: propsData.placement,
9357
+ title: propsData.title,
9358
+ width: propsData.width,
9359
+ height: propsData.height,
9360
+ mask: propsData.mask,
9361
+ maskClosable: propsData.maskClosable,
9362
+ closable: propsData.closable,
9363
+ okText: propsData.okText,
9364
+ cancelText: propsData.cancelText,
9365
+ okLoading: propsData.okLoading,
9366
+ okButtonProps: isValidButtonProps(propsData.okButtonProps) ? propsData.okButtonProps : void 0,
9367
+ cancelButtonProps: isValidButtonProps(propsData.cancelButtonProps) ? propsData.cancelButtonProps : void 0,
9368
+ unmountOnClose: propsData.unmountOnClose,
9369
+ popupContainer: isValidPopupContainer(propsData.popupContainer) ? propsData.popupContainer : void 0,
9370
+ drawerStyle: isValidStyle(propsData.drawerStyle) ? propsData.drawerStyle : void 0,
9371
+ bodyClass: isValidClass(propsData.bodyClass) ? propsData.bodyClass : void 0,
9372
+ bodyStyle: isValidStyle(propsData.bodyStyle) ? propsData.bodyStyle : void 0,
9373
+ escToClose: propsData.escToClose,
9374
+ renderToBody: propsData.renderToBody,
9375
+ header: propsData.header,
9376
+ footer: propsData.footer === false ? false : void 0,
9377
+ hideCancel: propsData.hideCancel
9378
+ };
9379
+ });
9380
+ const spinStyle = vue.computed(() => {
9381
+ const propsData = vue.unref(getProps);
9382
+ const style = {
9383
+ minHeight: "46px",
9384
+ width: "100%"
9385
+ };
9386
+ if (propsData.loading) {
9387
+ style.pointerEvents = "none";
9388
+ }
9389
+ return style;
9390
+ });
9391
+ const getCancelButtonProps = vue.computed(() => {
9392
+ const propsData = vue.unref(getProps);
9393
+ return {
9394
+ ...propsData.cancelButtonProps
9395
+ };
9396
+ });
9397
+ const getOkButtonProps = vue.computed(() => {
9398
+ const propsData = vue.unref(getProps);
9399
+ return {
9400
+ ...propsData.okButtonProps,
9401
+ loading: confirmLoading.value || propsData.okLoading
9402
+ };
9403
+ });
9404
+ const handleVisibleChange = (visible) => {
9405
+ visibleRef.value = visible;
9406
+ emit("update:visible", visible);
9407
+ emit("visible-change", visible);
9408
+ };
9409
+ const handleOk = async (ev) => {
9410
+ const propsData = vue.unref(getProps);
9411
+ if (confirmLoading.value || propsData.loading) {
9412
+ return;
9413
+ }
9414
+ if (propsData.onBeforeOk) {
9415
+ confirmLoading.value = true;
9416
+ try {
9417
+ await new Promise((resolve, reject) => {
9418
+ propsData.onBeforeOk((closed) => {
9419
+ if (closed) {
9420
+ resolve(true);
9421
+ } else {
9422
+ reject(false);
9423
+ }
9424
+ });
9425
+ });
9426
+ emit("ok", ev);
9427
+ handleVisibleChange(false);
9428
+ } catch {
9429
+ } finally {
9430
+ confirmLoading.value = false;
9431
+ }
9432
+ return;
9433
+ }
9434
+ if (propsData.closeFunc) {
9435
+ confirmLoading.value = true;
9436
+ try {
9437
+ const canClose = await propsData.closeFunc();
9438
+ if (canClose) {
9439
+ emit("ok", ev);
9440
+ handleVisibleChange(false);
9441
+ }
9442
+ } finally {
9443
+ confirmLoading.value = false;
9444
+ }
9445
+ return;
9446
+ }
9447
+ emit("ok", ev);
9448
+ handleVisibleChange(false);
9449
+ };
9450
+ const handleCancel = async (ev) => {
9451
+ const propsData = vue.unref(getProps);
9452
+ if (propsData.onBeforeCancel) {
9453
+ try {
9454
+ const result = propsData.onBeforeCancel();
9455
+ if (result === false) {
9456
+ return;
9457
+ }
9458
+ emit("cancel", ev);
9459
+ handleVisibleChange(false);
9460
+ } catch {
9461
+ }
9462
+ return;
9463
+ }
9464
+ emit("cancel", ev);
9465
+ handleVisibleChange(false);
9466
+ };
9467
+ const setDrawerProps = (drawerProps) => {
9468
+ propsRef.value = { ...vue.unref(propsRef), ...drawerProps };
9469
+ };
9470
+ const openDrawer = () => {
9471
+ handleVisibleChange(true);
9472
+ };
9473
+ const closeDrawer = () => {
9474
+ handleVisibleChange(false);
9475
+ const propsData = vue.unref(getProps);
9476
+ if (propsData.clearDataOnClose) {
9477
+ setTimeout(() => {
9478
+ clearData();
9479
+ }, 300);
9480
+ }
9481
+ };
9482
+ const changeOkLoading = (loading) => {
9483
+ confirmLoading.value = loading;
9484
+ };
9485
+ const changeLoading = (loading) => {
9486
+ drawerLoading.value = loading;
9487
+ setDrawerProps({ loading });
9488
+ };
9489
+ const getDrawerProps = () => {
9490
+ return { ...vue.unref(getProps), visible: visibleRef.value };
9491
+ };
9492
+ const clearData = () => {
9493
+ propsRef.value = {};
9494
+ confirmLoading.value = false;
9495
+ drawerLoading.value = false;
9496
+ };
9497
+ const drawerMethods = {
9498
+ setDrawerProps,
9499
+ openDrawer,
9500
+ closeDrawer,
9501
+ changeOkLoading,
9502
+ changeLoading,
9503
+ getDrawerProps,
9504
+ clearData
9505
+ };
9506
+ __expose(drawerMethods);
9507
+ vue.watch(
9508
+ () => getProps.value.visible,
9509
+ (val) => {
9510
+ visibleRef.value = val ?? false;
9511
+ },
9512
+ { immediate: true }
9513
+ );
9514
+ vue.onMounted(() => {
9515
+ vue.nextTick(() => {
9516
+ emit("register", drawerMethods);
9517
+ });
9518
+ });
9519
+ return (_ctx, _cache) => {
9520
+ return vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Drawer), vue.mergeProps(getBindValue.value, {
9521
+ visible: visibleRef.value,
9522
+ "onUpdate:visible": handleVisibleChange,
9523
+ onOk: handleOk,
9524
+ onCancel: handleCancel,
9525
+ onOpen: _cache[0] || (_cache[0] = ($event) => emit("open")),
9526
+ onClose: _cache[1] || (_cache[1] = ($event) => emit("close")),
9527
+ onBeforeOpen: _cache[2] || (_cache[2] = ($event) => emit("before-open")),
9528
+ onBeforeClose: _cache[3] || (_cache[3] = ($event) => emit("before-close"))
9529
+ }), vue.createSlots({
9530
+ default: vue.withCtx(() => [
9531
+ vue.createVNode(vue.unref(ArcoVue.Spin), {
9532
+ loading: getProps.value.loading,
9533
+ tip: getProps.value.loadingTip,
9534
+ style: vue.normalizeStyle(spinStyle.value),
9535
+ class: "w-full"
9536
+ }, {
9537
+ default: vue.withCtx(() => [
9538
+ vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
9539
+ ]),
9540
+ _: 3
9541
+ }, 8, ["loading", "tip", "style"])
9542
+ ]),
9543
+ _: 2
9544
+ }, [
9545
+ _ctx.$slots.title ? {
9546
+ name: "title",
9547
+ fn: vue.withCtx(() => [
9548
+ vue.renderSlot(_ctx.$slots, "title", {}, void 0, true)
9549
+ ]),
9550
+ key: "0"
9551
+ } : getProps.value.title ? {
9552
+ name: "title",
9553
+ fn: vue.withCtx(() => [
9554
+ vue.createElementVNode("div", _hoisted_1$4, [
9555
+ vue.createElementVNode("span", null, vue.toDisplayString(getProps.value.title), 1),
9556
+ getProps.value.helpMessage ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
9557
+ Array.isArray(getProps.value.helpMessage) ? (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Tooltip), {
9558
+ key: 0,
9559
+ position: "top"
9560
+ }, {
9561
+ content: vue.withCtx(() => [
9562
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(getProps.value.helpMessage, (msg, index) => {
9563
+ return vue.openBlock(), vue.createElementBlock("div", { key: index }, vue.toDisplayString(msg), 1);
9564
+ }), 128))
9565
+ ]),
9566
+ default: vue.withCtx(() => [
9567
+ vue.createVNode(vue.unref(IconQuestionCircle), { class: "cursor-help text-gray-400" })
9568
+ ]),
9569
+ _: 1
9570
+ })) : (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Tooltip), {
9571
+ key: 1,
9572
+ position: "top"
9573
+ }, {
9574
+ content: vue.withCtx(() => [
9575
+ vue.createTextVNode(vue.toDisplayString(getProps.value.helpMessage), 1)
9576
+ ]),
9577
+ default: vue.withCtx(() => [
9578
+ vue.createVNode(vue.unref(IconQuestionCircle), { class: "cursor-help text-gray-400" })
9579
+ ]),
9580
+ _: 1
9581
+ }))
9582
+ ], 64)) : vue.createCommentVNode("", true)
9583
+ ])
9584
+ ]),
9585
+ key: "1"
9586
+ } : void 0,
9587
+ _ctx.$slots.header ? {
9588
+ name: "header",
9589
+ fn: vue.withCtx(() => [
9590
+ vue.renderSlot(_ctx.$slots, "header", {}, void 0, true)
9591
+ ]),
9592
+ key: "2"
9593
+ } : void 0,
9594
+ _ctx.$slots.footer ? {
9595
+ name: "footer",
9596
+ fn: vue.withCtx(() => [
9597
+ vue.renderSlot(_ctx.$slots, "footer", {}, void 0, true)
9598
+ ]),
9599
+ key: "3"
9600
+ } : getProps.value.showFooter !== false ? {
9601
+ name: "footer",
9602
+ fn: vue.withCtx(() => [
9603
+ vue.createElementVNode("div", {
9604
+ style: vue.normalizeStyle({
9605
+ pointerEvents: getProps.value.loading ? "none" : "auto",
9606
+ opacity: getProps.value.loading ? 0.6 : 1
9607
+ })
9608
+ }, [
9609
+ vue.createVNode(vue.unref(ArcoVue.Space), null, {
9610
+ default: vue.withCtx(() => [
9611
+ vue.renderSlot(_ctx.$slots, "insertFooter", {}, void 0, true),
9612
+ getProps.value.showCancelBtn ? (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Button), vue.mergeProps({ key: 0 }, getCancelButtonProps.value, { onClick: handleCancel }), {
9613
+ default: vue.withCtx(() => [
9614
+ vue.createTextVNode(vue.toDisplayString(getProps.value.cancelText || "取消"), 1)
9615
+ ]),
9616
+ _: 1
9617
+ }, 16)) : vue.createCommentVNode("", true),
9618
+ vue.renderSlot(_ctx.$slots, "centerFooter", {}, void 0, true),
9619
+ getProps.value.showOkBtn ? (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Button), vue.mergeProps({ key: 1 }, getOkButtonProps.value, {
9620
+ type: "primary",
9621
+ onClick: handleOk
9622
+ }), {
9623
+ default: vue.withCtx(() => [
9624
+ vue.createTextVNode(vue.toDisplayString(getProps.value.okText || "确定"), 1)
9625
+ ]),
9626
+ _: 1
9627
+ }, 16)) : vue.createCommentVNode("", true),
9628
+ vue.renderSlot(_ctx.$slots, "appendFooter", {}, void 0, true)
9629
+ ]),
9630
+ _: 3
9631
+ })
9632
+ ], 4)
9633
+ ]),
9634
+ key: "4"
9635
+ } : {
9636
+ name: "footer",
9637
+ fn: vue.withCtx(() => []),
9638
+ key: "5"
9639
+ }
9640
+ ]), 1040, ["visible"]);
9641
+ };
9642
+ }
9643
+ });
9644
+ const BasicDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-83e4752e"]]);
9645
+ function useDrawer(props) {
9646
+ const drawerRef = vue.ref(null);
9647
+ const loadedRef = vue.ref(false);
9648
+ const register = (drawerInstance) => {
9649
+ drawerRef.value = drawerInstance;
9650
+ loadedRef.value = true;
9651
+ if (props && Object.keys(props).length > 0) {
9652
+ setDrawerProps(props);
9653
+ }
9654
+ };
9655
+ const getDrawer = () => {
9656
+ const drawer = vue.unref(drawerRef);
9657
+ if (!drawer) {
9658
+ console.error("Drawer 实例尚未注册,请确保组件已挂载并正确使用 @register");
9659
+ return null;
9660
+ }
9661
+ return drawer;
9662
+ };
9663
+ const openDrawer = (visible = true, data) => {
9664
+ const drawer = getDrawer();
9665
+ if (!drawer) return;
9666
+ drawer.setDrawerProps({ _data: data });
9667
+ if (visible) {
9668
+ drawer.openDrawer();
9669
+ } else {
9670
+ drawer.closeDrawer();
9671
+ }
9672
+ };
9673
+ const closeDrawer = () => {
9674
+ const drawer = getDrawer();
9675
+ if (!drawer) return;
9676
+ drawer.closeDrawer();
9677
+ setTimeout(() => {
9678
+ drawer.setDrawerProps({ _data: void 0 });
9679
+ });
9680
+ };
9681
+ const setDrawerProps = (drawerProps) => {
9682
+ const drawer = getDrawer();
9683
+ if (!drawer) return;
9684
+ drawer.setDrawerProps(drawerProps);
9685
+ };
9686
+ const getVisible = () => {
9687
+ const drawer = getDrawer();
9688
+ if (!drawer) return false;
9689
+ return drawer.getDrawerProps().visible || false;
9690
+ };
9691
+ const changeOkLoading = (loading) => {
9692
+ const drawer = getDrawer();
9693
+ if (!drawer) return;
9694
+ drawer.changeOkLoading(loading);
9695
+ };
9696
+ const changeLoading = (loading) => {
9697
+ const drawer = getDrawer();
9698
+ if (!drawer) return;
9699
+ drawer.changeLoading(loading);
9700
+ };
9701
+ const getDrawerProps = () => {
9702
+ const drawer = getDrawer();
9703
+ if (!drawer) return {};
9704
+ return drawer.getDrawerProps();
9705
+ };
9706
+ const clearData = () => {
9707
+ const drawer = getDrawer();
9708
+ if (!drawer) return;
9709
+ drawer.clearData();
9710
+ };
9711
+ return [
9712
+ register,
9713
+ {
9714
+ openDrawer,
9715
+ closeDrawer,
9716
+ setDrawerProps,
9717
+ getVisible,
9718
+ changeOkLoading,
9719
+ changeLoading,
9720
+ getDrawerProps,
9721
+ clearData
9722
+ }
9723
+ ];
9724
+ }
9725
+ function useDrawerInner(callbackFn) {
9726
+ const drawerRef = vue.ref(null);
9727
+ const loadedRef = vue.ref(false);
9728
+ const instance = vue.getCurrentInstance();
9729
+ if (!instance) {
9730
+ throw new Error("useDrawerInner 必须在 setup 函数中调用");
9731
+ }
9732
+ const register = (drawerInstance) => {
9733
+ var _a, _b;
9734
+ if (vue.unref(loadedRef) && drawerInstance === vue.unref(drawerRef)) return;
9735
+ drawerRef.value = drawerInstance;
9736
+ loadedRef.value = true;
9737
+ (_a = instance.proxy) == null ? void 0 : _a.$watch(
9738
+ () => getDrawerProps().visible,
9739
+ (visible) => {
9740
+ if (visible && callbackFn) {
9741
+ const currentProps = getDrawerProps();
9742
+ callbackFn(currentProps._data);
9743
+ }
9744
+ }
9745
+ );
9746
+ (_b = instance.emit) == null ? void 0 : _b.call(instance, "register", drawerInstance);
9747
+ };
9748
+ const getDrawer = () => {
9749
+ const drawer = vue.unref(drawerRef);
9750
+ if (!drawer) {
9751
+ console.error("Drawer 实例尚未注册,请确保组件已挂载并正确使用 @register");
9752
+ return null;
9753
+ }
9754
+ return drawer;
9755
+ };
9756
+ const closeDrawer = () => {
9757
+ const drawer = getDrawer();
9758
+ if (!drawer) return;
9759
+ drawer.closeDrawer();
9760
+ };
9761
+ const changeOkLoading = (loading) => {
9762
+ const drawer = getDrawer();
9763
+ if (!drawer) return;
9764
+ drawer.changeOkLoading(loading);
9765
+ };
9766
+ const changeLoading = (loading) => {
9767
+ const drawer = getDrawer();
9768
+ if (!drawer) return;
9769
+ drawer.changeLoading(loading);
9770
+ };
9771
+ const setDrawerProps = (props) => {
9772
+ const drawer = getDrawer();
9773
+ if (!drawer) return;
9774
+ drawer.setDrawerProps(props);
9775
+ };
9776
+ const getDrawerProps = () => {
9777
+ const drawer = vue.unref(drawerRef);
9778
+ if (!drawer) return {};
9779
+ return drawer.getDrawerProps();
9780
+ };
9781
+ const clearData = () => {
9782
+ const drawer = getDrawer();
9783
+ if (!drawer) return;
9784
+ drawer.clearData();
9785
+ };
9786
+ vue.onUnmounted(() => {
9787
+ drawerRef.value = null;
9788
+ loadedRef.value = false;
9789
+ });
9790
+ return [
9791
+ register,
9792
+ {
9793
+ closeDrawer,
9794
+ changeOkLoading,
9795
+ changeLoading,
9796
+ setDrawerProps,
9797
+ getDrawerProps,
9798
+ clearData
9799
+ }
9800
+ ];
9801
+ }
9278
9802
  const _hoisted_1$3 = { class: "basic-description" };
9279
9803
  const _hoisted_2$2 = {
9280
9804
  key: 0,
@@ -10058,10 +10582,11 @@ const KntSharedPlugin = {
10058
10582
  app.use(ArcoVue);
10059
10583
  }
10060
10584
  };
10061
- exports.ApiCascader = _sfc_main$b;
10062
- exports.ApiSelect = _sfc_main$c;
10585
+ exports.ApiCascader = _sfc_main$c;
10586
+ exports.ApiSelect = _sfc_main$d;
10063
10587
  exports.BasicDescription = BasicDescription;
10064
- exports.BasicForm = _sfc_main$9;
10588
+ exports.BasicDrawer = BasicDrawer;
10589
+ exports.BasicForm = _sfc_main$a;
10065
10590
  exports.BasicImage = BasicImage;
10066
10591
  exports.BasicLoading = _sfc_main;
10067
10592
  exports.BasicModal = BasicModal;
@@ -10069,6 +10594,7 @@ exports.BasicReadonlyField = BasicReadonlyField;
10069
10594
  exports.BasicTable = BasicTable;
10070
10595
  exports.BasicTextEllipsis = BasicTextEllipsis;
10071
10596
  exports.BasicUpload = BasicUpload;
10597
+ exports.EditCell = EditCell;
10072
10598
  exports.KntSharedPlugin = KntSharedPlugin;
10073
10599
  exports.VideoPreview = VideoPreview;
10074
10600
  exports.VideoPreviewModal = VideoPreviewModal;
@@ -10154,6 +10680,8 @@ exports.urlToBase64 = urlToBase64;
10154
10680
  exports.useApiRequest = useApiRequest;
10155
10681
  exports.useDebounce = useDebounce;
10156
10682
  exports.useDescription = useDescription;
10683
+ exports.useDrawer = useDrawer;
10684
+ exports.useDrawerInner = useDrawerInner;
10157
10685
  exports.useForm = useForm;
10158
10686
  exports.useImage = useImage;
10159
10687
  exports.useLocalStorage = useLocalStorage;