knt-shared 1.8.9 → 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 (32) 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/SortableFileItem.vue.d.ts.map +1 -1
  24. package/dist/components/Upload/components/VideoPreviewModal.vue.d.ts +1 -1
  25. package/dist/components/index.d.ts +1 -0
  26. package/dist/components/index.d.ts.map +1 -1
  27. package/dist/index.cjs.js +648 -194
  28. package/dist/index.cjs.js.map +1 -1
  29. package/dist/index.esm.js +648 -194
  30. package/dist/index.esm.js.map +1 -1
  31. package/dist/style.css +28 -18
  32. package/package.json +70 -1
package/dist/index.esm.js CHANGED
@@ -1,5 +1,5 @@
1
+ import ArcoVue, { Progress, Spin, Dropdown, Doption, Modal, Upload, Button, Image as Image$1, Message, Select, Cascader, Transfer, Mention, Rate, Slider, Switch, RangePicker, TimePicker, DatePicker, TreeSelect, CheckboxGroup, Checkbox, RadioGroup, Radio, AutoComplete, Textarea, InputPassword, InputNumber, Input, ImagePreviewGroup, Form, Row, Col, FormItem, Tooltip, Space, Divider, Popover, Table, Popconfirm, Link, Drawer, Descriptions, DescriptionsItem } from "@arco-design/web-vue";
1
2
  import { getCurrentInstance, inject, defineComponent, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, createCommentVNode, createVNode, unref, createBlock, 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
- import ArcoVue, { Progress, Spin, Dropdown, Doption, Modal, Upload, Button, Image as Image$1, Message, Select, Cascader, Transfer, Mention, Rate, Slider, Switch, RangePicker, TimePicker, DatePicker, TreeSelect, CheckboxGroup, Checkbox, RadioGroup, Radio, AutoComplete, Textarea, InputPassword, InputNumber, Input, ImagePreviewGroup, Form, Row, Col, FormItem, Tooltip, Space, Divider, Popover, Table, Popconfirm, Link, Descriptions, DescriptionsItem } from "@arco-design/web-vue";
3
3
  const configProviderInjectionKey = Symbol("ArcoConfigProvider");
4
4
  const CLASS_PREFIX = "arco";
5
5
  const GLOBAL_CONFIG_NAME = "$arco";
@@ -23,84 +23,6 @@ var _export_sfc$1 = (sfc, props) => {
23
23
  return sfc;
24
24
  };
25
25
  const _sfc_main$z = defineComponent({
26
- name: "IconExclamationCircle",
27
- props: {
28
- size: {
29
- type: [Number, String]
30
- },
31
- strokeWidth: {
32
- type: Number,
33
- default: 4
34
- },
35
- strokeLinecap: {
36
- type: String,
37
- default: "butt",
38
- validator: (value) => {
39
- return ["butt", "round", "square"].includes(value);
40
- }
41
- },
42
- strokeLinejoin: {
43
- type: String,
44
- default: "miter",
45
- validator: (value) => {
46
- return ["arcs", "bevel", "miter", "miter-clip", "round"].includes(value);
47
- }
48
- },
49
- rotate: Number,
50
- spin: Boolean
51
- },
52
- emits: {
53
- click: (ev) => true
54
- },
55
- setup(props, { emit }) {
56
- const prefixCls = getPrefixCls("icon");
57
- const cls = computed(() => [prefixCls, `${prefixCls}-exclamation-circle`, { [`${prefixCls}-spin`]: props.spin }]);
58
- const innerStyle = computed(() => {
59
- const styles = {};
60
- if (props.size) {
61
- styles.fontSize = isNumber$1(props.size) ? `${props.size}px` : props.size;
62
- }
63
- if (props.rotate) {
64
- styles.transform = `rotate(${props.rotate}deg)`;
65
- }
66
- return styles;
67
- });
68
- const onClick = (ev) => {
69
- emit("click", ev);
70
- };
71
- return {
72
- cls,
73
- innerStyle,
74
- onClick
75
- };
76
- }
77
- });
78
- const _hoisted_1$u = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
79
- function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
80
- return openBlock(), createElementBlock("svg", {
81
- viewBox: "0 0 48 48",
82
- fill: "none",
83
- xmlns: "http://www.w3.org/2000/svg",
84
- stroke: "currentColor",
85
- class: normalizeClass(_ctx.cls),
86
- style: normalizeStyle(_ctx.innerStyle),
87
- "stroke-width": _ctx.strokeWidth,
88
- "stroke-linecap": _ctx.strokeLinecap,
89
- "stroke-linejoin": _ctx.strokeLinejoin,
90
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
91
- }, _cache[1] || (_cache[1] = [
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$u);
94
- }
95
- var _IconExclamationCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$z, [["render", _sfc_render$h]]);
96
- const IconExclamationCircle = Object.assign(_IconExclamationCircle, {
97
- install: (app, options) => {
98
- var _a;
99
- const iconPrefix = (_a = options == null ? void 0 : options.iconPrefix) != null ? _a : "";
100
- app.component(iconPrefix + _IconExclamationCircle.name, _IconExclamationCircle);
101
- }
102
- });
103
- const _sfc_main$y = defineComponent({
104
26
  name: "IconPlus",
105
27
  props: {
106
28
  size: {
@@ -153,7 +75,7 @@ const _sfc_main$y = defineComponent({
153
75
  };
154
76
  }
155
77
  });
156
- const _hoisted_1$t = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
78
+ const _hoisted_1$u = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
157
79
  function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
158
80
  return openBlock(), createElementBlock("svg", {
159
81
  viewBox: "0 0 48 48",
@@ -168,9 +90,9 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
168
90
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
169
91
  }, _cache[1] || (_cache[1] = [
170
92
  createElementVNode("path", { d: "M5 24h38M24 5v38" }, null, -1)
171
- ]), 14, _hoisted_1$t);
93
+ ]), 14, _hoisted_1$u);
172
94
  }
173
- var _IconPlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$y, [["render", _sfc_render$g]]);
95
+ var _IconPlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$z, [["render", _sfc_render$g]]);
174
96
  const IconPlus = Object.assign(_IconPlus, {
175
97
  install: (app, options) => {
176
98
  var _a;
@@ -178,7 +100,7 @@ const IconPlus = Object.assign(_IconPlus, {
178
100
  app.component(iconPrefix + _IconPlus.name, _IconPlus);
179
101
  }
180
102
  });
181
- const _sfc_main$x = defineComponent({
103
+ const _sfc_main$y = defineComponent({
182
104
  name: "IconQuestionCircle",
183
105
  props: {
184
106
  size: {
@@ -231,7 +153,7 @@ const _sfc_main$x = defineComponent({
231
153
  };
232
154
  }
233
155
  });
234
- const _hoisted_1$s = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
156
+ const _hoisted_1$t = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
235
157
  function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
236
158
  return openBlock(), createElementBlock("svg", {
237
159
  viewBox: "0 0 48 48",
@@ -247,9 +169,9 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
247
169
  }, _cache[1] || (_cache[1] = [
248
170
  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
171
  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$s);
172
+ ]), 14, _hoisted_1$t);
251
173
  }
252
- var _IconQuestionCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$x, [["render", _sfc_render$f]]);
174
+ var _IconQuestionCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$y, [["render", _sfc_render$f]]);
253
175
  const IconQuestionCircle = Object.assign(_IconQuestionCircle, {
254
176
  install: (app, options) => {
255
177
  var _a;
@@ -257,7 +179,7 @@ const IconQuestionCircle = Object.assign(_IconQuestionCircle, {
257
179
  app.component(iconPrefix + _IconQuestionCircle.name, _IconQuestionCircle);
258
180
  }
259
181
  });
260
- const _sfc_main$w = defineComponent({
182
+ const _sfc_main$x = defineComponent({
261
183
  name: "IconEye",
262
184
  props: {
263
185
  size: {
@@ -310,7 +232,7 @@ const _sfc_main$w = defineComponent({
310
232
  };
311
233
  }
312
234
  });
313
- const _hoisted_1$r = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
235
+ const _hoisted_1$s = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
314
236
  function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
315
237
  return openBlock(), createElementBlock("svg", {
316
238
  viewBox: "0 0 48 48",
@@ -329,9 +251,9 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
329
251
  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
252
  }, null, -1),
331
253
  createElementVNode("path", { d: "M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z" }, null, -1)
332
- ]), 14, _hoisted_1$r);
254
+ ]), 14, _hoisted_1$s);
333
255
  }
334
- var _IconEye = /* @__PURE__ */ _export_sfc$1(_sfc_main$w, [["render", _sfc_render$e]]);
256
+ var _IconEye = /* @__PURE__ */ _export_sfc$1(_sfc_main$x, [["render", _sfc_render$e]]);
335
257
  const IconEye = Object.assign(_IconEye, {
336
258
  install: (app, options) => {
337
259
  var _a;
@@ -339,7 +261,7 @@ const IconEye = Object.assign(_IconEye, {
339
261
  app.component(iconPrefix + _IconEye.name, _IconEye);
340
262
  }
341
263
  });
342
- const _sfc_main$v = defineComponent({
264
+ const _sfc_main$w = defineComponent({
343
265
  name: "IconMore",
344
266
  props: {
345
267
  size: {
@@ -392,7 +314,7 @@ const _sfc_main$v = defineComponent({
392
314
  };
393
315
  }
394
316
  });
395
- const _hoisted_1$q = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
317
+ const _hoisted_1$r = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
396
318
  function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
397
319
  return openBlock(), createElementBlock("svg", {
398
320
  viewBox: "0 0 48 48",
@@ -412,9 +334,9 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
412
334
  stroke: "none"
413
335
  }, null, -1),
414
336
  createElementVNode("path", { d: "M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z" }, null, -1)
415
- ]), 14, _hoisted_1$q);
337
+ ]), 14, _hoisted_1$r);
416
338
  }
417
- var _IconMore = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["render", _sfc_render$d]]);
339
+ var _IconMore = /* @__PURE__ */ _export_sfc$1(_sfc_main$w, [["render", _sfc_render$d]]);
418
340
  const IconMore = Object.assign(_IconMore, {
419
341
  install: (app, options) => {
420
342
  var _a;
@@ -422,7 +344,7 @@ const IconMore = Object.assign(_IconMore, {
422
344
  app.component(iconPrefix + _IconMore.name, _IconMore);
423
345
  }
424
346
  });
425
- const _sfc_main$u = defineComponent({
347
+ const _sfc_main$v = defineComponent({
426
348
  name: "IconRefresh",
427
349
  props: {
428
350
  size: {
@@ -475,7 +397,7 @@ const _sfc_main$u = defineComponent({
475
397
  };
476
398
  }
477
399
  });
478
- const _hoisted_1$p = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
400
+ const _hoisted_1$q = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
479
401
  function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
480
402
  return openBlock(), createElementBlock("svg", {
481
403
  viewBox: "0 0 48 48",
@@ -490,9 +412,9 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
490
412
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
491
413
  }, _cache[1] || (_cache[1] = [
492
414
  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$p);
415
+ ]), 14, _hoisted_1$q);
494
416
  }
495
- var _IconRefresh = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["render", _sfc_render$c]]);
417
+ var _IconRefresh = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["render", _sfc_render$c]]);
496
418
  const IconRefresh = Object.assign(_IconRefresh, {
497
419
  install: (app, options) => {
498
420
  var _a;
@@ -500,7 +422,7 @@ const IconRefresh = Object.assign(_IconRefresh, {
500
422
  app.component(iconPrefix + _IconRefresh.name, _IconRefresh);
501
423
  }
502
424
  });
503
- const _sfc_main$t = defineComponent({
425
+ const _sfc_main$u = defineComponent({
504
426
  name: "IconSearch",
505
427
  props: {
506
428
  size: {
@@ -553,7 +475,7 @@ const _sfc_main$t = defineComponent({
553
475
  };
554
476
  }
555
477
  });
556
- const _hoisted_1$o = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
478
+ const _hoisted_1$p = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
557
479
  function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
558
480
  return openBlock(), createElementBlock("svg", {
559
481
  viewBox: "0 0 48 48",
@@ -568,9 +490,9 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
568
490
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
569
491
  }, _cache[1] || (_cache[1] = [
570
492
  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)
571
- ]), 14, _hoisted_1$o);
493
+ ]), 14, _hoisted_1$p);
572
494
  }
573
- var _IconSearch = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$b]]);
495
+ var _IconSearch = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["render", _sfc_render$b]]);
574
496
  const IconSearch = Object.assign(_IconSearch, {
575
497
  install: (app, options) => {
576
498
  var _a;
@@ -578,7 +500,7 @@ const IconSearch = Object.assign(_IconSearch, {
578
500
  app.component(iconPrefix + _IconSearch.name, _IconSearch);
579
501
  }
580
502
  });
581
- const _sfc_main$s = defineComponent({
503
+ const _sfc_main$t = defineComponent({
582
504
  name: "IconSettings",
583
505
  props: {
584
506
  size: {
@@ -631,7 +553,7 @@ const _sfc_main$s = defineComponent({
631
553
  };
632
554
  }
633
555
  });
634
- const _hoisted_1$n = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
556
+ const _hoisted_1$o = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
635
557
  function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
636
558
  return openBlock(), createElementBlock("svg", {
637
559
  viewBox: "0 0 48 48",
@@ -647,9 +569,9 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
647
569
  }, _cache[1] || (_cache[1] = [
648
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),
649
571
  createElementVNode("path", { d: "M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z" }, null, -1)
650
- ]), 14, _hoisted_1$n);
572
+ ]), 14, _hoisted_1$o);
651
573
  }
652
- var _IconSettings = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_render$a]]);
574
+ var _IconSettings = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$a]]);
653
575
  const IconSettings = Object.assign(_IconSettings, {
654
576
  install: (app, options) => {
655
577
  var _a;
@@ -657,7 +579,7 @@ const IconSettings = Object.assign(_IconSettings, {
657
579
  app.component(iconPrefix + _IconSettings.name, _IconSettings);
658
580
  }
659
581
  });
660
- const _sfc_main$r = defineComponent({
582
+ const _sfc_main$s = defineComponent({
661
583
  name: "IconUpload",
662
584
  props: {
663
585
  size: {
@@ -710,7 +632,7 @@ const _sfc_main$r = defineComponent({
710
632
  };
711
633
  }
712
634
  });
713
- const _hoisted_1$m = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
635
+ const _hoisted_1$n = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
714
636
  function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
715
637
  return openBlock(), createElementBlock("svg", {
716
638
  viewBox: "0 0 48 48",
@@ -725,9 +647,9 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
725
647
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
726
648
  }, _cache[1] || (_cache[1] = [
727
649
  createElementVNode("path", { d: "M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6" }, null, -1)
728
- ]), 14, _hoisted_1$m);
650
+ ]), 14, _hoisted_1$n);
729
651
  }
730
- var _IconUpload = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _sfc_render$9]]);
652
+ var _IconUpload = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_render$9]]);
731
653
  const IconUpload = Object.assign(_IconUpload, {
732
654
  install: (app, options) => {
733
655
  var _a;
@@ -735,7 +657,7 @@ const IconUpload = Object.assign(_IconUpload, {
735
657
  app.component(iconPrefix + _IconUpload.name, _IconUpload);
736
658
  }
737
659
  });
738
- const _sfc_main$q = defineComponent({
660
+ const _sfc_main$r = defineComponent({
739
661
  name: "IconDelete",
740
662
  props: {
741
663
  size: {
@@ -788,7 +710,7 @@ const _sfc_main$q = defineComponent({
788
710
  };
789
711
  }
790
712
  });
791
- const _hoisted_1$l = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
713
+ const _hoisted_1$m = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
792
714
  function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
793
715
  return openBlock(), createElementBlock("svg", {
794
716
  viewBox: "0 0 48 48",
@@ -803,9 +725,9 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
803
725
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
804
726
  }, _cache[1] || (_cache[1] = [
805
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)
806
- ]), 14, _hoisted_1$l);
728
+ ]), 14, _hoisted_1$m);
807
729
  }
808
- var _IconDelete = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["render", _sfc_render$8]]);
730
+ var _IconDelete = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _sfc_render$8]]);
809
731
  const IconDelete = Object.assign(_IconDelete, {
810
732
  install: (app, options) => {
811
733
  var _a;
@@ -813,7 +735,7 @@ const IconDelete = Object.assign(_IconDelete, {
813
735
  app.component(iconPrefix + _IconDelete.name, _IconDelete);
814
736
  }
815
737
  });
816
- const _sfc_main$p = defineComponent({
738
+ const _sfc_main$q = defineComponent({
817
739
  name: "IconLineHeight",
818
740
  props: {
819
741
  size: {
@@ -866,7 +788,7 @@ const _sfc_main$p = defineComponent({
866
788
  };
867
789
  }
868
790
  });
869
- const _hoisted_1$k = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
791
+ const _hoisted_1$l = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
870
792
  function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
871
793
  return openBlock(), createElementBlock("svg", {
872
794
  viewBox: "0 0 48 48",
@@ -887,9 +809,9 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
887
809
  stroke: "none"
888
810
  }, null, -1),
889
811
  createElementVNode("path", { d: "M39 13h2l-2-3.5-2 3.5h2Zm0 0v22m0 0h2l-2 3.5-2-3.5h2Z" }, null, -1)
890
- ]), 14, _hoisted_1$k);
812
+ ]), 14, _hoisted_1$l);
891
813
  }
892
- var _IconLineHeight = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["render", _sfc_render$7]]);
814
+ var _IconLineHeight = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["render", _sfc_render$7]]);
893
815
  const IconLineHeight = Object.assign(_IconLineHeight, {
894
816
  install: (app, options) => {
895
817
  var _a;
@@ -897,7 +819,7 @@ const IconLineHeight = Object.assign(_IconLineHeight, {
897
819
  app.component(iconPrefix + _IconLineHeight.name, _IconLineHeight);
898
820
  }
899
821
  });
900
- const _sfc_main$o = defineComponent({
822
+ const _sfc_main$p = defineComponent({
901
823
  name: "IconFullscreenExit",
902
824
  props: {
903
825
  size: {
@@ -950,7 +872,7 @@ const _sfc_main$o = defineComponent({
950
872
  };
951
873
  }
952
874
  });
953
- const _hoisted_1$j = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
875
+ const _hoisted_1$k = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
954
876
  function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
955
877
  return openBlock(), createElementBlock("svg", {
956
878
  viewBox: "0 0 48 48",
@@ -965,9 +887,9 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
965
887
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
966
888
  }, _cache[1] || (_cache[1] = [
967
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)
968
- ]), 14, _hoisted_1$j);
890
+ ]), 14, _hoisted_1$k);
969
891
  }
970
- var _IconFullscreenExit = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_render$6]]);
892
+ var _IconFullscreenExit = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["render", _sfc_render$6]]);
971
893
  const IconFullscreenExit = Object.assign(_IconFullscreenExit, {
972
894
  install: (app, options) => {
973
895
  var _a;
@@ -975,7 +897,7 @@ const IconFullscreenExit = Object.assign(_IconFullscreenExit, {
975
897
  app.component(iconPrefix + _IconFullscreenExit.name, _IconFullscreenExit);
976
898
  }
977
899
  });
978
- const _sfc_main$n = defineComponent({
900
+ const _sfc_main$o = defineComponent({
979
901
  name: "IconFullscreen",
980
902
  props: {
981
903
  size: {
@@ -1028,7 +950,7 @@ const _sfc_main$n = defineComponent({
1028
950
  };
1029
951
  }
1030
952
  });
1031
- const _hoisted_1$i = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
953
+ const _hoisted_1$j = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1032
954
  function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
1033
955
  return openBlock(), createElementBlock("svg", {
1034
956
  viewBox: "0 0 48 48",
@@ -1043,9 +965,9 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
1043
965
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
1044
966
  }, _cache[1] || (_cache[1] = [
1045
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)
1046
- ]), 14, _hoisted_1$i);
968
+ ]), 14, _hoisted_1$j);
1047
969
  }
1048
- var _IconFullscreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$5]]);
970
+ var _IconFullscreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_render$5]]);
1049
971
  const IconFullscreen = Object.assign(_IconFullscreen, {
1050
972
  install: (app, options) => {
1051
973
  var _a;
@@ -1053,7 +975,7 @@ const IconFullscreen = Object.assign(_IconFullscreen, {
1053
975
  app.component(iconPrefix + _IconFullscreen.name, _IconFullscreen);
1054
976
  }
1055
977
  });
1056
- const _sfc_main$m = defineComponent({
978
+ const _sfc_main$n = defineComponent({
1057
979
  name: "IconMute",
1058
980
  props: {
1059
981
  size: {
@@ -1106,7 +1028,7 @@ const _sfc_main$m = defineComponent({
1106
1028
  };
1107
1029
  }
1108
1030
  });
1109
- const _hoisted_1$h = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1031
+ const _hoisted_1$i = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1110
1032
  function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
1111
1033
  return openBlock(), createElementBlock("svg", {
1112
1034
  viewBox: "0 0 48 48",
@@ -1121,9 +1043,9 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
1121
1043
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
1122
1044
  }, _cache[1] || (_cache[1] = [
1123
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)
1124
- ]), 14, _hoisted_1$h);
1046
+ ]), 14, _hoisted_1$i);
1125
1047
  }
1126
- var _IconMute = /* @__PURE__ */ _export_sfc$1(_sfc_main$m, [["render", _sfc_render$4]]);
1048
+ var _IconMute = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$4]]);
1127
1049
  const IconMute = Object.assign(_IconMute, {
1128
1050
  install: (app, options) => {
1129
1051
  var _a;
@@ -1131,7 +1053,7 @@ const IconMute = Object.assign(_IconMute, {
1131
1053
  app.component(iconPrefix + _IconMute.name, _IconMute);
1132
1054
  }
1133
1055
  });
1134
- const _sfc_main$l = defineComponent({
1056
+ const _sfc_main$m = defineComponent({
1135
1057
  name: "IconPause",
1136
1058
  props: {
1137
1059
  size: {
@@ -1184,7 +1106,7 @@ const _sfc_main$l = defineComponent({
1184
1106
  };
1185
1107
  }
1186
1108
  });
1187
- const _hoisted_1$g = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1109
+ const _hoisted_1$h = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1188
1110
  function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
1189
1111
  return openBlock(), createElementBlock("svg", {
1190
1112
  viewBox: "0 0 48 48",
@@ -1204,9 +1126,9 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
1204
1126
  stroke: "none",
1205
1127
  d: "M14 12h4v24h-4zM30 12h4v24h-4z"
1206
1128
  }, null, -1)
1207
- ]), 14, _hoisted_1$g);
1129
+ ]), 14, _hoisted_1$h);
1208
1130
  }
1209
- var _IconPause = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["render", _sfc_render$3]]);
1131
+ var _IconPause = /* @__PURE__ */ _export_sfc$1(_sfc_main$m, [["render", _sfc_render$3]]);
1210
1132
  const IconPause = Object.assign(_IconPause, {
1211
1133
  install: (app, options) => {
1212
1134
  var _a;
@@ -1214,7 +1136,7 @@ const IconPause = Object.assign(_IconPause, {
1214
1136
  app.component(iconPrefix + _IconPause.name, _IconPause);
1215
1137
  }
1216
1138
  });
1217
- const _sfc_main$k = defineComponent({
1139
+ const _sfc_main$l = defineComponent({
1218
1140
  name: "IconPlayArrow",
1219
1141
  props: {
1220
1142
  size: {
@@ -1267,7 +1189,7 @@ const _sfc_main$k = defineComponent({
1267
1189
  };
1268
1190
  }
1269
1191
  });
1270
- const _hoisted_1$f = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1192
+ const _hoisted_1$g = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1271
1193
  function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1272
1194
  return openBlock(), createElementBlock("svg", {
1273
1195
  viewBox: "0 0 48 48",
@@ -1282,9 +1204,9 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1282
1204
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
1283
1205
  }, _cache[1] || (_cache[1] = [
1284
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)
1285
- ]), 14, _hoisted_1$f);
1207
+ ]), 14, _hoisted_1$g);
1286
1208
  }
1287
- var _IconPlayArrow = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_render$2]]);
1209
+ var _IconPlayArrow = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["render", _sfc_render$2]]);
1288
1210
  const IconPlayArrow = Object.assign(_IconPlayArrow, {
1289
1211
  install: (app, options) => {
1290
1212
  var _a;
@@ -1292,7 +1214,7 @@ const IconPlayArrow = Object.assign(_IconPlayArrow, {
1292
1214
  app.component(iconPrefix + _IconPlayArrow.name, _IconPlayArrow);
1293
1215
  }
1294
1216
  });
1295
- const _sfc_main$j = defineComponent({
1217
+ const _sfc_main$k = defineComponent({
1296
1218
  name: "IconSound",
1297
1219
  props: {
1298
1220
  size: {
@@ -1345,7 +1267,7 @@ const _sfc_main$j = defineComponent({
1345
1267
  };
1346
1268
  }
1347
1269
  });
1348
- const _hoisted_1$e = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1270
+ const _hoisted_1$f = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1349
1271
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
1350
1272
  return openBlock(), createElementBlock("svg", {
1351
1273
  viewBox: "0 0 48 48",
@@ -1361,9 +1283,9 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
1361
1283
  }, _cache[1] || (_cache[1] = [
1362
1284
  createElementVNode("path", { d: "m14 16 10-9v34l-10-9H6V16h8Z" }, null, -1),
1363
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)
1364
- ]), 14, _hoisted_1$e);
1286
+ ]), 14, _hoisted_1$f);
1365
1287
  }
1366
- var _IconSound = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_render$1]]);
1288
+ var _IconSound = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_render$1]]);
1367
1289
  const IconSound = Object.assign(_IconSound, {
1368
1290
  install: (app, options) => {
1369
1291
  var _a;
@@ -1371,7 +1293,7 @@ const IconSound = Object.assign(_IconSound, {
1371
1293
  app.component(iconPrefix + _IconSound.name, _IconSound);
1372
1294
  }
1373
1295
  });
1374
- const _sfc_main$i = defineComponent({
1296
+ const _sfc_main$j = defineComponent({
1375
1297
  name: "IconLoading",
1376
1298
  props: {
1377
1299
  size: {
@@ -1424,7 +1346,7 @@ const _sfc_main$i = defineComponent({
1424
1346
  };
1425
1347
  }
1426
1348
  });
1427
- const _hoisted_1$d = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1349
+ const _hoisted_1$e = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1428
1350
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1429
1351
  return openBlock(), createElementBlock("svg", {
1430
1352
  viewBox: "0 0 48 48",
@@ -1439,9 +1361,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1439
1361
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
1440
1362
  }, _cache[1] || (_cache[1] = [
1441
1363
  createElementVNode("path", { d: "M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6" }, null, -1)
1442
- ]), 14, _hoisted_1$d);
1364
+ ]), 14, _hoisted_1$e);
1443
1365
  }
1444
- var _IconLoading = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["render", _sfc_render]]);
1366
+ var _IconLoading = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_render]]);
1445
1367
  const IconLoading = Object.assign(_IconLoading, {
1446
1368
  install: (app, options) => {
1447
1369
  var _a;
@@ -2274,7 +2196,7 @@ function subtractLight(color, amount) {
2274
2196
  const c = cc < 0 ? 0 : cc;
2275
2197
  return c.toString(16).length > 1 ? c.toString(16) : `0${c.toString(16)}`;
2276
2198
  }
2277
- const _hoisted_1$c = ["draggable"];
2199
+ const _hoisted_1$d = ["draggable"];
2278
2200
  const _hoisted_2$9 = ["src", "alt"];
2279
2201
  const _hoisted_3$7 = {
2280
2202
  key: 1,
@@ -2289,7 +2211,7 @@ const _hoisted_6$4 = {
2289
2211
  key: 3,
2290
2212
  class: "error-tip"
2291
2213
  };
2292
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
2214
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
2293
2215
  ...{
2294
2216
  name: "SortableFileItem"
2295
2217
  },
@@ -2383,9 +2305,13 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
2383
2305
  ])
2384
2306
  ])) : createCommentVNode("", true),
2385
2307
  __props.file.status === "error" ? (openBlock(), createElementBlock("div", _hoisted_6$4, [
2386
- createVNode(unref(IconExclamationCircle))
2308
+ !__props.disabled ? (openBlock(), createBlock(unref(IconDelete), {
2309
+ key: 0,
2310
+ class: "action-icon",
2311
+ onClick: handleRemove
2312
+ })) : createCommentVNode("", true)
2387
2313
  ])) : createCommentVNode("", true)
2388
- ], 46, _hoisted_1$c);
2314
+ ], 46, _hoisted_1$d);
2389
2315
  };
2390
2316
  }
2391
2317
  });
@@ -2396,9 +2322,9 @@ const _export_sfc = (sfc, props) => {
2396
2322
  }
2397
2323
  return target;
2398
2324
  };
2399
- const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-b7fe69e3"]]);
2400
- const _hoisted_1$b = { class: "sortable-file-list" };
2401
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
2325
+ const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-07a9ff47"]]);
2326
+ const _hoisted_1$c = { class: "sortable-file-list" };
2327
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
2402
2328
  ...{
2403
2329
  name: "SortableFileList"
2404
2330
  },
@@ -2462,7 +2388,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
2462
2388
  emit("remove", file);
2463
2389
  };
2464
2390
  return (_ctx, _cache) => {
2465
- return openBlock(), createElementBlock("div", _hoisted_1$b, [
2391
+ return openBlock(), createElementBlock("div", _hoisted_1$c, [
2466
2392
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.fileList, (file, index) => {
2467
2393
  return openBlock(), createBlock(SortableFileItem, {
2468
2394
  key: file.uid,
@@ -2483,8 +2409,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
2483
2409
  };
2484
2410
  }
2485
2411
  });
2486
- const SortableFileList = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-1ede8f45"]]);
2487
- const _hoisted_1$a = ["src", "autoplay", "loop", "muted", "preload"];
2412
+ const SortableFileList = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-1ede8f45"]]);
2413
+ const _hoisted_1$b = ["src", "autoplay", "loop", "muted", "preload"];
2488
2414
  const _hoisted_2$8 = {
2489
2415
  key: 0,
2490
2416
  class: "play-overlay"
@@ -2501,7 +2427,7 @@ const _hoisted_8$1 = { class: "volume-slider-container" };
2501
2427
  const _hoisted_9 = { class: "time-display" };
2502
2428
  const _hoisted_10 = { class: "controls-right" };
2503
2429
  const _hoisted_11 = { class: "control-button" };
2504
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
2430
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
2505
2431
  ...{
2506
2432
  name: "VideoPreview"
2507
2433
  },
@@ -2718,7 +2644,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2718
2644
  onPause: _cache[1] || (_cache[1] = ($event) => isPlaying.value = false),
2719
2645
  onEnded: handleEnded,
2720
2646
  onVolumechange: handleVolumeChange
2721
- }, null, 40, _hoisted_1$a),
2647
+ }, null, 40, _hoisted_1$b),
2722
2648
  !isPlaying.value && !isLoading.value ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
2723
2649
  createElementVNode("div", _hoisted_3$6, [
2724
2650
  createVNode(unref(IconPlayArrow), { size: 48 })
@@ -2847,11 +2773,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2847
2773
  };
2848
2774
  }
2849
2775
  });
2850
- const VideoPreview = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-b982f870"]]);
2851
- const _hoisted_1$9 = { class: "video-modal-title" };
2776
+ const VideoPreview = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-b982f870"]]);
2777
+ const _hoisted_1$a = { class: "video-modal-title" };
2852
2778
  const _hoisted_2$7 = { class: "file-name" };
2853
2779
  const _hoisted_3$5 = { class: "video-modal-content" };
2854
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
2780
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2855
2781
  ...{
2856
2782
  name: "VideoPreviewModal"
2857
2783
  },
@@ -2901,7 +2827,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
2901
2827
  onCancel: handleClose
2902
2828
  }, {
2903
2829
  title: withCtx(() => [
2904
- createElementVNode("div", _hoisted_1$9, [
2830
+ createElementVNode("div", _hoisted_1$a, [
2905
2831
  createElementVNode("span", _hoisted_2$7, toDisplayString(__props.fileName || "视频预览"), 1)
2906
2832
  ])
2907
2833
  ]),
@@ -2922,8 +2848,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
2922
2848
  };
2923
2849
  }
2924
2850
  });
2925
- const VideoPreviewModal = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-cac8e63e"]]);
2926
- const _hoisted_1$8 = { class: "basic-upload" };
2851
+ const VideoPreviewModal = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-cac8e63e"]]);
2852
+ const _hoisted_1$9 = { class: "basic-upload" };
2927
2853
  const _hoisted_2$6 = {
2928
2854
  key: 0,
2929
2855
  class: "upload-empty-state"
@@ -2949,7 +2875,7 @@ const _hoisted_8 = {
2949
2875
  key: 5,
2950
2876
  class: "inline-video-preview"
2951
2877
  };
2952
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
2878
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
2953
2879
  ...{
2954
2880
  name: "BasicUpload",
2955
2881
  inheritAttrs: false
@@ -3518,7 +3444,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3518
3444
  });
3519
3445
  });
3520
3446
  return (_ctx, _cache) => {
3521
- return openBlock(), createElementBlock("div", _hoisted_1$8, [
3447
+ return openBlock(), createElementBlock("div", _hoisted_1$9, [
3522
3448
  shouldShowEmptyState.value ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
3523
3449
  renderSlot(_ctx.$slots, "empty", {}, () => [
3524
3450
  createTextVNode(toDisplayString(getProps.value.emptyText), 1)
@@ -3666,7 +3592,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3666
3592
  };
3667
3593
  }
3668
3594
  });
3669
- const BasicUpload = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-13e8439f"]]);
3595
+ const BasicUpload = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-13e8439f"]]);
3670
3596
  function useUpload(props) {
3671
3597
  const uploadRef = ref(null);
3672
3598
  const fileListRef = ref((props == null ? void 0 : props.defaultFileList) || []);
@@ -3912,7 +3838,7 @@ function clearApiCache(api, params) {
3912
3838
  const cacheKey = getCacheKey(api, params);
3913
3839
  cacheMap.delete(cacheKey);
3914
3840
  }
3915
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
3841
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3916
3842
  __name: "ApiSelect",
3917
3843
  props: {
3918
3844
  modelValue: {},
@@ -4022,7 +3948,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
4022
3948
  };
4023
3949
  }
4024
3950
  });
4025
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
3951
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
4026
3952
  __name: "ApiCascader",
4027
3953
  props: {
4028
3954
  modelValue: {},
@@ -4188,13 +4114,13 @@ const componentMap = {
4188
4114
  Textarea,
4189
4115
  AutoComplete,
4190
4116
  Select,
4191
- ApiSelect: _sfc_main$c,
4117
+ ApiSelect: _sfc_main$d,
4192
4118
  Radio,
4193
4119
  RadioGroup,
4194
4120
  Checkbox,
4195
4121
  CheckboxGroup,
4196
4122
  Cascader,
4197
- ApiCascader: _sfc_main$b,
4123
+ ApiCascader: _sfc_main$c,
4198
4124
  TreeSelect,
4199
4125
  DatePicker,
4200
4126
  TimePicker,
@@ -4800,7 +4726,7 @@ const rendererMap = {
4800
4726
  function getRenderer(component = "Input") {
4801
4727
  return rendererMap[component] || rendererMap.default;
4802
4728
  }
4803
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
4729
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
4804
4730
  ...{
4805
4731
  name: "BasicReadonlyField",
4806
4732
  inheritAttrs: false
@@ -4909,7 +4835,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
4909
4835
  };
4910
4836
  }
4911
4837
  });
4912
- const BasicReadonlyField = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-3d2d24e0"]]);
4838
+ const BasicReadonlyField = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-3d2d24e0"]]);
4913
4839
  function useReadonlyField(options) {
4914
4840
  const defaultEmptyText = (options == null ? void 0 : options.defaultEmptyText) || "-";
4915
4841
  const globalLabelMap = (options == null ? void 0 : options.globalLabelMap) || {};
@@ -5021,7 +4947,7 @@ function useReadonlyField(options) {
5021
4947
  clearCache
5022
4948
  };
5023
4949
  }
5024
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
4950
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
5025
4951
  ...{
5026
4952
  name: "BasicForm",
5027
4953
  inheritAttrs: false
@@ -5829,8 +5755,8 @@ function createFormSchema(schemas) {
5829
5755
  function mergeFormSchemas(...schemas) {
5830
5756
  return schemas.flat();
5831
5757
  }
5832
- const _hoisted_1$7 = { class: "basic-text-ellipsis" };
5833
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
5758
+ const _hoisted_1$8 = { class: "basic-text-ellipsis" };
5759
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
5834
5760
  __name: "BasicTextEllipsis",
5835
5761
  props: {
5836
5762
  text: { default: "" },
@@ -5917,7 +5843,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
5917
5843
  }
5918
5844
  );
5919
5845
  return (_ctx, _cache) => {
5920
- return openBlock(), createElementBlock("div", _hoisted_1$7, [
5846
+ return openBlock(), createElementBlock("div", _hoisted_1$8, [
5921
5847
  showTooltip.value ? (openBlock(), createBlock(unref(Tooltip), mergeProps({
5922
5848
  key: 0,
5923
5849
  content: __props.text,
@@ -5943,7 +5869,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
5943
5869
  };
5944
5870
  }
5945
5871
  });
5946
- const BasicTextEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-305f9842"]]);
5872
+ const BasicTextEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-305f9842"]]);
5947
5873
  function useLocalStorage(key, initialValue) {
5948
5874
  let initialStoredValue;
5949
5875
  try {
@@ -6353,12 +6279,12 @@ function useEditFormat(options) {
6353
6279
  wrapFormatListeners
6354
6280
  };
6355
6281
  }
6356
- const _hoisted_1$6 = { class: "edit-cell" };
6282
+ const _hoisted_1$7 = { class: "edit-cell" };
6357
6283
  const _hoisted_2$5 = {
6358
6284
  key: 2,
6359
6285
  class: "edit-cell-error"
6360
6286
  };
6361
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
6287
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
6362
6288
  ...{
6363
6289
  name: "EditCell"
6364
6290
  },
@@ -6445,7 +6371,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
6445
6371
  }
6446
6372
  });
6447
6373
  return (_ctx, _cache) => {
6448
- return openBlock(), createElementBlock("div", _hoisted_1$6, [
6374
+ return openBlock(), createElementBlock("div", _hoisted_1$7, [
6449
6375
  props.column.editRender ? (openBlock(), createBlock(resolveDynamicComponent(customRenderContent.value), { key: 0 })) : (openBlock(), createBlock(resolveDynamicComponent(editComponent.value), mergeProps({ key: 1 }, mergedProps.value, {
6450
6376
  "model-value": unref(currentValue),
6451
6377
  "onUpdate:modelValue": handleChange,
@@ -6456,7 +6382,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
6456
6382
  };
6457
6383
  }
6458
6384
  });
6459
- const EditCell = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-52761074"]]);
6385
+ const EditCell = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-52761074"]]);
6460
6386
  function useEditValidation() {
6461
6387
  const validateField = async (value, column, record) => {
6462
6388
  if (!column.editRule) {
@@ -6867,7 +6793,7 @@ function useTableEdit(props, dataSource, getRowKey) {
6867
6793
  getChangedValues
6868
6794
  };
6869
6795
  }
6870
- const _hoisted_1$5 = {
6796
+ const _hoisted_1$6 = {
6871
6797
  key: 0,
6872
6798
  class: "basic-table-search"
6873
6799
  };
@@ -6885,7 +6811,7 @@ const _hoisted_5$2 = {
6885
6811
  class: "toolbar-right"
6886
6812
  };
6887
6813
  const _hoisted_6$1 = { class: "column-setting" };
6888
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
6814
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
6889
6815
  ...{
6890
6816
  name: "BasicTable"
6891
6817
  },
@@ -8002,8 +7928,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
8002
7928
  ref: tableWrapperRef,
8003
7929
  class: normalizeClass(["basic-table-wrapper", { "is-fullscreen": isFullscreen.value }])
8004
7930
  }, [
8005
- getSearchConfig.value.show ? (openBlock(), createElementBlock("div", _hoisted_1$5, [
8006
- createVNode(unref(_sfc_main$9), mergeProps({
7931
+ getSearchConfig.value.show ? (openBlock(), createElementBlock("div", _hoisted_1$6, [
7932
+ createVNode(unref(_sfc_main$a), mergeProps({
8007
7933
  ref_key: "searchFormRef",
8008
7934
  ref: searchFormRef
8009
7935
  }, getSearchFormProps.value, {
@@ -8381,7 +8307,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
8381
8307
  };
8382
8308
  }
8383
8309
  });
8384
- const BasicTable = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-5f63dbb6"]]);
8310
+ const BasicTable = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-5f63dbb6"]]);
8385
8311
  function useTable(options = {}) {
8386
8312
  const tableRef = ref(null);
8387
8313
  const formRef = ref(null);
@@ -8740,9 +8666,9 @@ function createTableColumns(columns) {
8740
8666
  function mergeTableColumns(...columns) {
8741
8667
  return columns.flat();
8742
8668
  }
8743
- const _hoisted_1$4 = { style: { "position": "relative", "width": "100%" } };
8669
+ const _hoisted_1$5 = { style: { "position": "relative", "width": "100%" } };
8744
8670
  const _hoisted_2$3 = { key: 1 };
8745
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
8671
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
8746
8672
  ...{
8747
8673
  name: "BasicModal",
8748
8674
  inheritAttrs: false
@@ -9088,7 +9014,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
9088
9014
  } : getProps.value.title ? {
9089
9015
  name: "title",
9090
9016
  fn: withCtx(() => [
9091
- createElementVNode("div", _hoisted_1$4, [
9017
+ createElementVNode("div", _hoisted_1$5, [
9092
9018
  createElementVNode("span", {
9093
9019
  style: normalizeStyle({ display: "block", textAlign: getProps.value.titleAlign }),
9094
9020
  class: normalizeClass(["block"])
@@ -9189,7 +9115,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
9189
9115
  };
9190
9116
  }
9191
9117
  });
9192
- const BasicModal = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-e4400cf8"]]);
9118
+ const BasicModal = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-e4400cf8"]]);
9193
9119
  function useModal(props) {
9194
9120
  const modalRef = ref(null);
9195
9121
  const loadedRef = ref(false);
@@ -9347,6 +9273,530 @@ function useModalInner(callbackFn) {
9347
9273
  }
9348
9274
  ];
9349
9275
  }
9276
+ const _hoisted_1$4 = { style: { "position": "relative", "display": "flex", "align-items": "center", "gap": "0.5rem" } };
9277
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
9278
+ ...{
9279
+ name: "BasicDrawer",
9280
+ inheritAttrs: false
9281
+ },
9282
+ __name: "BasicDrawer",
9283
+ props: {
9284
+ visible: { type: Boolean, default: false },
9285
+ defaultVisible: { type: Boolean, default: false },
9286
+ placement: { default: "right" },
9287
+ title: {},
9288
+ mask: { type: Boolean, default: true },
9289
+ maskClosable: { type: Boolean, default: true },
9290
+ closable: { type: Boolean, default: true },
9291
+ okText: { default: "确定" },
9292
+ cancelText: { default: "取消" },
9293
+ okLoading: { type: Boolean },
9294
+ okButtonProps: {},
9295
+ cancelButtonProps: {},
9296
+ unmountOnClose: { type: Boolean },
9297
+ width: { default: 378 },
9298
+ height: {},
9299
+ popupContainer: {},
9300
+ drawerStyle: {},
9301
+ bodyClass: {},
9302
+ bodyStyle: { type: [Boolean, null, String, Object, Array] },
9303
+ onBeforeOk: {},
9304
+ onBeforeCancel: {},
9305
+ escToClose: { type: Boolean, default: true },
9306
+ renderToBody: { type: Boolean, default: true },
9307
+ header: { type: Boolean, default: true },
9308
+ footer: { type: Boolean, default: true },
9309
+ hideCancel: { type: Boolean, default: false },
9310
+ loading: { type: Boolean, default: false },
9311
+ loadingTip: {},
9312
+ showCancelBtn: { type: Boolean, default: true },
9313
+ showOkBtn: { type: Boolean, default: true },
9314
+ showFooter: { type: Boolean, default: true },
9315
+ helpMessage: {},
9316
+ closeFunc: {},
9317
+ clearDataOnClose: { type: Boolean },
9318
+ _data: {}
9319
+ },
9320
+ emits: ["register", "update:visible", "ok", "cancel", "open", "close", "before-open", "before-close", "visible-change"],
9321
+ setup(__props, { expose: __expose, emit: __emit }) {
9322
+ const props = __props;
9323
+ const emit = __emit;
9324
+ const visibleRef = ref(false);
9325
+ const confirmLoading = ref(false);
9326
+ const drawerLoading = ref(false);
9327
+ const propsRef = ref({});
9328
+ const getProps = computed(() => {
9329
+ return { ...props, ...unref(propsRef) };
9330
+ });
9331
+ const isValidClass = (value) => {
9332
+ if (value === void 0 || value === null) return false;
9333
+ return typeof value === "string" || Array.isArray(value);
9334
+ };
9335
+ const isValidStyle = (value) => {
9336
+ if (value === void 0 || value === null) return false;
9337
+ if (typeof value === "string") return true;
9338
+ if (Array.isArray(value)) return true;
9339
+ if (typeof value === "object" && !Array.isArray(value)) return true;
9340
+ return false;
9341
+ };
9342
+ const isValidButtonProps = (value) => {
9343
+ if (value === void 0 || value === null) return false;
9344
+ return typeof value === "object" && !Array.isArray(value);
9345
+ };
9346
+ const isValidPopupContainer = (value) => {
9347
+ if (value === void 0 || value === null) return false;
9348
+ return typeof value === "string" || value instanceof HTMLElement;
9349
+ };
9350
+ const getBindValue = computed(() => {
9351
+ const propsData = unref(getProps);
9352
+ return {
9353
+ defaultVisible: propsData.defaultVisible,
9354
+ placement: propsData.placement,
9355
+ title: propsData.title,
9356
+ width: propsData.width,
9357
+ height: propsData.height,
9358
+ mask: propsData.mask,
9359
+ maskClosable: propsData.maskClosable,
9360
+ closable: propsData.closable,
9361
+ okText: propsData.okText,
9362
+ cancelText: propsData.cancelText,
9363
+ okLoading: propsData.okLoading,
9364
+ okButtonProps: isValidButtonProps(propsData.okButtonProps) ? propsData.okButtonProps : void 0,
9365
+ cancelButtonProps: isValidButtonProps(propsData.cancelButtonProps) ? propsData.cancelButtonProps : void 0,
9366
+ unmountOnClose: propsData.unmountOnClose,
9367
+ popupContainer: isValidPopupContainer(propsData.popupContainer) ? propsData.popupContainer : void 0,
9368
+ drawerStyle: isValidStyle(propsData.drawerStyle) ? propsData.drawerStyle : void 0,
9369
+ bodyClass: isValidClass(propsData.bodyClass) ? propsData.bodyClass : void 0,
9370
+ bodyStyle: isValidStyle(propsData.bodyStyle) ? propsData.bodyStyle : void 0,
9371
+ escToClose: propsData.escToClose,
9372
+ renderToBody: propsData.renderToBody,
9373
+ header: propsData.header,
9374
+ footer: propsData.footer === false ? false : void 0,
9375
+ hideCancel: propsData.hideCancel
9376
+ };
9377
+ });
9378
+ const spinStyle = computed(() => {
9379
+ const propsData = unref(getProps);
9380
+ const style = {
9381
+ minHeight: "46px",
9382
+ width: "100%"
9383
+ };
9384
+ if (propsData.loading) {
9385
+ style.pointerEvents = "none";
9386
+ }
9387
+ return style;
9388
+ });
9389
+ const getCancelButtonProps = computed(() => {
9390
+ const propsData = unref(getProps);
9391
+ return {
9392
+ ...propsData.cancelButtonProps
9393
+ };
9394
+ });
9395
+ const getOkButtonProps = computed(() => {
9396
+ const propsData = unref(getProps);
9397
+ return {
9398
+ ...propsData.okButtonProps,
9399
+ loading: confirmLoading.value || propsData.okLoading
9400
+ };
9401
+ });
9402
+ const handleVisibleChange = (visible) => {
9403
+ visibleRef.value = visible;
9404
+ emit("update:visible", visible);
9405
+ emit("visible-change", visible);
9406
+ };
9407
+ const handleOk = async (ev) => {
9408
+ const propsData = unref(getProps);
9409
+ if (confirmLoading.value || propsData.loading) {
9410
+ return;
9411
+ }
9412
+ if (propsData.onBeforeOk) {
9413
+ confirmLoading.value = true;
9414
+ try {
9415
+ await new Promise((resolve, reject) => {
9416
+ propsData.onBeforeOk((closed) => {
9417
+ if (closed) {
9418
+ resolve(true);
9419
+ } else {
9420
+ reject(false);
9421
+ }
9422
+ });
9423
+ });
9424
+ emit("ok", ev);
9425
+ handleVisibleChange(false);
9426
+ } catch {
9427
+ } finally {
9428
+ confirmLoading.value = false;
9429
+ }
9430
+ return;
9431
+ }
9432
+ if (propsData.closeFunc) {
9433
+ confirmLoading.value = true;
9434
+ try {
9435
+ const canClose = await propsData.closeFunc();
9436
+ if (canClose) {
9437
+ emit("ok", ev);
9438
+ handleVisibleChange(false);
9439
+ }
9440
+ } finally {
9441
+ confirmLoading.value = false;
9442
+ }
9443
+ return;
9444
+ }
9445
+ emit("ok", ev);
9446
+ handleVisibleChange(false);
9447
+ };
9448
+ const handleCancel = async (ev) => {
9449
+ const propsData = unref(getProps);
9450
+ if (propsData.onBeforeCancel) {
9451
+ try {
9452
+ const result = propsData.onBeforeCancel();
9453
+ if (result === false) {
9454
+ return;
9455
+ }
9456
+ emit("cancel", ev);
9457
+ handleVisibleChange(false);
9458
+ } catch {
9459
+ }
9460
+ return;
9461
+ }
9462
+ emit("cancel", ev);
9463
+ handleVisibleChange(false);
9464
+ };
9465
+ const setDrawerProps = (drawerProps) => {
9466
+ propsRef.value = { ...unref(propsRef), ...drawerProps };
9467
+ };
9468
+ const openDrawer = () => {
9469
+ handleVisibleChange(true);
9470
+ };
9471
+ const closeDrawer = () => {
9472
+ handleVisibleChange(false);
9473
+ const propsData = unref(getProps);
9474
+ if (propsData.clearDataOnClose) {
9475
+ setTimeout(() => {
9476
+ clearData();
9477
+ }, 300);
9478
+ }
9479
+ };
9480
+ const changeOkLoading = (loading) => {
9481
+ confirmLoading.value = loading;
9482
+ };
9483
+ const changeLoading = (loading) => {
9484
+ drawerLoading.value = loading;
9485
+ setDrawerProps({ loading });
9486
+ };
9487
+ const getDrawerProps = () => {
9488
+ return { ...unref(getProps), visible: visibleRef.value };
9489
+ };
9490
+ const clearData = () => {
9491
+ propsRef.value = {};
9492
+ confirmLoading.value = false;
9493
+ drawerLoading.value = false;
9494
+ };
9495
+ const drawerMethods = {
9496
+ setDrawerProps,
9497
+ openDrawer,
9498
+ closeDrawer,
9499
+ changeOkLoading,
9500
+ changeLoading,
9501
+ getDrawerProps,
9502
+ clearData
9503
+ };
9504
+ __expose(drawerMethods);
9505
+ watch(
9506
+ () => getProps.value.visible,
9507
+ (val) => {
9508
+ visibleRef.value = val ?? false;
9509
+ },
9510
+ { immediate: true }
9511
+ );
9512
+ onMounted(() => {
9513
+ nextTick(() => {
9514
+ emit("register", drawerMethods);
9515
+ });
9516
+ });
9517
+ return (_ctx, _cache) => {
9518
+ return openBlock(), createBlock(unref(Drawer), mergeProps(getBindValue.value, {
9519
+ visible: visibleRef.value,
9520
+ "onUpdate:visible": handleVisibleChange,
9521
+ onOk: handleOk,
9522
+ onCancel: handleCancel,
9523
+ onOpen: _cache[0] || (_cache[0] = ($event) => emit("open")),
9524
+ onClose: _cache[1] || (_cache[1] = ($event) => emit("close")),
9525
+ onBeforeOpen: _cache[2] || (_cache[2] = ($event) => emit("before-open")),
9526
+ onBeforeClose: _cache[3] || (_cache[3] = ($event) => emit("before-close"))
9527
+ }), createSlots({
9528
+ default: withCtx(() => [
9529
+ createVNode(unref(Spin), {
9530
+ loading: getProps.value.loading,
9531
+ tip: getProps.value.loadingTip,
9532
+ style: normalizeStyle(spinStyle.value),
9533
+ class: "w-full"
9534
+ }, {
9535
+ default: withCtx(() => [
9536
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
9537
+ ]),
9538
+ _: 3
9539
+ }, 8, ["loading", "tip", "style"])
9540
+ ]),
9541
+ _: 2
9542
+ }, [
9543
+ _ctx.$slots.title ? {
9544
+ name: "title",
9545
+ fn: withCtx(() => [
9546
+ renderSlot(_ctx.$slots, "title", {}, void 0, true)
9547
+ ]),
9548
+ key: "0"
9549
+ } : getProps.value.title ? {
9550
+ name: "title",
9551
+ fn: withCtx(() => [
9552
+ createElementVNode("div", _hoisted_1$4, [
9553
+ createElementVNode("span", null, toDisplayString(getProps.value.title), 1),
9554
+ getProps.value.helpMessage ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
9555
+ Array.isArray(getProps.value.helpMessage) ? (openBlock(), createBlock(unref(Tooltip), {
9556
+ key: 0,
9557
+ position: "top"
9558
+ }, {
9559
+ content: withCtx(() => [
9560
+ (openBlock(true), createElementBlock(Fragment, null, renderList(getProps.value.helpMessage, (msg, index) => {
9561
+ return openBlock(), createElementBlock("div", { key: index }, toDisplayString(msg), 1);
9562
+ }), 128))
9563
+ ]),
9564
+ default: withCtx(() => [
9565
+ createVNode(unref(IconQuestionCircle), { class: "cursor-help text-gray-400" })
9566
+ ]),
9567
+ _: 1
9568
+ })) : (openBlock(), createBlock(unref(Tooltip), {
9569
+ key: 1,
9570
+ position: "top"
9571
+ }, {
9572
+ content: withCtx(() => [
9573
+ createTextVNode(toDisplayString(getProps.value.helpMessage), 1)
9574
+ ]),
9575
+ default: withCtx(() => [
9576
+ createVNode(unref(IconQuestionCircle), { class: "cursor-help text-gray-400" })
9577
+ ]),
9578
+ _: 1
9579
+ }))
9580
+ ], 64)) : createCommentVNode("", true)
9581
+ ])
9582
+ ]),
9583
+ key: "1"
9584
+ } : void 0,
9585
+ _ctx.$slots.header ? {
9586
+ name: "header",
9587
+ fn: withCtx(() => [
9588
+ renderSlot(_ctx.$slots, "header", {}, void 0, true)
9589
+ ]),
9590
+ key: "2"
9591
+ } : void 0,
9592
+ _ctx.$slots.footer ? {
9593
+ name: "footer",
9594
+ fn: withCtx(() => [
9595
+ renderSlot(_ctx.$slots, "footer", {}, void 0, true)
9596
+ ]),
9597
+ key: "3"
9598
+ } : getProps.value.showFooter !== false ? {
9599
+ name: "footer",
9600
+ fn: withCtx(() => [
9601
+ createElementVNode("div", {
9602
+ style: normalizeStyle({
9603
+ pointerEvents: getProps.value.loading ? "none" : "auto",
9604
+ opacity: getProps.value.loading ? 0.6 : 1
9605
+ })
9606
+ }, [
9607
+ createVNode(unref(Space), null, {
9608
+ default: withCtx(() => [
9609
+ renderSlot(_ctx.$slots, "insertFooter", {}, void 0, true),
9610
+ getProps.value.showCancelBtn ? (openBlock(), createBlock(unref(Button), mergeProps({ key: 0 }, getCancelButtonProps.value, { onClick: handleCancel }), {
9611
+ default: withCtx(() => [
9612
+ createTextVNode(toDisplayString(getProps.value.cancelText || "取消"), 1)
9613
+ ]),
9614
+ _: 1
9615
+ }, 16)) : createCommentVNode("", true),
9616
+ renderSlot(_ctx.$slots, "centerFooter", {}, void 0, true),
9617
+ getProps.value.showOkBtn ? (openBlock(), createBlock(unref(Button), mergeProps({ key: 1 }, getOkButtonProps.value, {
9618
+ type: "primary",
9619
+ onClick: handleOk
9620
+ }), {
9621
+ default: withCtx(() => [
9622
+ createTextVNode(toDisplayString(getProps.value.okText || "确定"), 1)
9623
+ ]),
9624
+ _: 1
9625
+ }, 16)) : createCommentVNode("", true),
9626
+ renderSlot(_ctx.$slots, "appendFooter", {}, void 0, true)
9627
+ ]),
9628
+ _: 3
9629
+ })
9630
+ ], 4)
9631
+ ]),
9632
+ key: "4"
9633
+ } : {
9634
+ name: "footer",
9635
+ fn: withCtx(() => []),
9636
+ key: "5"
9637
+ }
9638
+ ]), 1040, ["visible"]);
9639
+ };
9640
+ }
9641
+ });
9642
+ const BasicDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-83e4752e"]]);
9643
+ function useDrawer(props) {
9644
+ const drawerRef = ref(null);
9645
+ const loadedRef = ref(false);
9646
+ const register = (drawerInstance) => {
9647
+ drawerRef.value = drawerInstance;
9648
+ loadedRef.value = true;
9649
+ if (props && Object.keys(props).length > 0) {
9650
+ setDrawerProps(props);
9651
+ }
9652
+ };
9653
+ const getDrawer = () => {
9654
+ const drawer = unref(drawerRef);
9655
+ if (!drawer) {
9656
+ console.error("Drawer 实例尚未注册,请确保组件已挂载并正确使用 @register");
9657
+ return null;
9658
+ }
9659
+ return drawer;
9660
+ };
9661
+ const openDrawer = (visible = true, data) => {
9662
+ const drawer = getDrawer();
9663
+ if (!drawer) return;
9664
+ drawer.setDrawerProps({ _data: data });
9665
+ if (visible) {
9666
+ drawer.openDrawer();
9667
+ } else {
9668
+ drawer.closeDrawer();
9669
+ }
9670
+ };
9671
+ const closeDrawer = () => {
9672
+ const drawer = getDrawer();
9673
+ if (!drawer) return;
9674
+ drawer.closeDrawer();
9675
+ setTimeout(() => {
9676
+ drawer.setDrawerProps({ _data: void 0 });
9677
+ });
9678
+ };
9679
+ const setDrawerProps = (drawerProps) => {
9680
+ const drawer = getDrawer();
9681
+ if (!drawer) return;
9682
+ drawer.setDrawerProps(drawerProps);
9683
+ };
9684
+ const getVisible = () => {
9685
+ const drawer = getDrawer();
9686
+ if (!drawer) return false;
9687
+ return drawer.getDrawerProps().visible || false;
9688
+ };
9689
+ const changeOkLoading = (loading) => {
9690
+ const drawer = getDrawer();
9691
+ if (!drawer) return;
9692
+ drawer.changeOkLoading(loading);
9693
+ };
9694
+ const changeLoading = (loading) => {
9695
+ const drawer = getDrawer();
9696
+ if (!drawer) return;
9697
+ drawer.changeLoading(loading);
9698
+ };
9699
+ const getDrawerProps = () => {
9700
+ const drawer = getDrawer();
9701
+ if (!drawer) return {};
9702
+ return drawer.getDrawerProps();
9703
+ };
9704
+ const clearData = () => {
9705
+ const drawer = getDrawer();
9706
+ if (!drawer) return;
9707
+ drawer.clearData();
9708
+ };
9709
+ return [
9710
+ register,
9711
+ {
9712
+ openDrawer,
9713
+ closeDrawer,
9714
+ setDrawerProps,
9715
+ getVisible,
9716
+ changeOkLoading,
9717
+ changeLoading,
9718
+ getDrawerProps,
9719
+ clearData
9720
+ }
9721
+ ];
9722
+ }
9723
+ function useDrawerInner(callbackFn) {
9724
+ const drawerRef = ref(null);
9725
+ const loadedRef = ref(false);
9726
+ const instance = getCurrentInstance();
9727
+ if (!instance) {
9728
+ throw new Error("useDrawerInner 必须在 setup 函数中调用");
9729
+ }
9730
+ const register = (drawerInstance) => {
9731
+ var _a, _b;
9732
+ if (unref(loadedRef) && drawerInstance === unref(drawerRef)) return;
9733
+ drawerRef.value = drawerInstance;
9734
+ loadedRef.value = true;
9735
+ (_a = instance.proxy) == null ? void 0 : _a.$watch(
9736
+ () => getDrawerProps().visible,
9737
+ (visible) => {
9738
+ if (visible && callbackFn) {
9739
+ const currentProps = getDrawerProps();
9740
+ callbackFn(currentProps._data);
9741
+ }
9742
+ }
9743
+ );
9744
+ (_b = instance.emit) == null ? void 0 : _b.call(instance, "register", drawerInstance);
9745
+ };
9746
+ const getDrawer = () => {
9747
+ const drawer = unref(drawerRef);
9748
+ if (!drawer) {
9749
+ console.error("Drawer 实例尚未注册,请确保组件已挂载并正确使用 @register");
9750
+ return null;
9751
+ }
9752
+ return drawer;
9753
+ };
9754
+ const closeDrawer = () => {
9755
+ const drawer = getDrawer();
9756
+ if (!drawer) return;
9757
+ drawer.closeDrawer();
9758
+ };
9759
+ const changeOkLoading = (loading) => {
9760
+ const drawer = getDrawer();
9761
+ if (!drawer) return;
9762
+ drawer.changeOkLoading(loading);
9763
+ };
9764
+ const changeLoading = (loading) => {
9765
+ const drawer = getDrawer();
9766
+ if (!drawer) return;
9767
+ drawer.changeLoading(loading);
9768
+ };
9769
+ const setDrawerProps = (props) => {
9770
+ const drawer = getDrawer();
9771
+ if (!drawer) return;
9772
+ drawer.setDrawerProps(props);
9773
+ };
9774
+ const getDrawerProps = () => {
9775
+ const drawer = unref(drawerRef);
9776
+ if (!drawer) return {};
9777
+ return drawer.getDrawerProps();
9778
+ };
9779
+ const clearData = () => {
9780
+ const drawer = getDrawer();
9781
+ if (!drawer) return;
9782
+ drawer.clearData();
9783
+ };
9784
+ onUnmounted(() => {
9785
+ drawerRef.value = null;
9786
+ loadedRef.value = false;
9787
+ });
9788
+ return [
9789
+ register,
9790
+ {
9791
+ closeDrawer,
9792
+ changeOkLoading,
9793
+ changeLoading,
9794
+ setDrawerProps,
9795
+ getDrawerProps,
9796
+ clearData
9797
+ }
9798
+ ];
9799
+ }
9350
9800
  const _hoisted_1$3 = { class: "basic-description" };
9351
9801
  const _hoisted_2$2 = {
9352
9802
  key: 0,
@@ -10131,10 +10581,11 @@ const KntSharedPlugin = {
10131
10581
  }
10132
10582
  };
10133
10583
  export {
10134
- _sfc_main$b as ApiCascader,
10135
- _sfc_main$c as ApiSelect,
10584
+ _sfc_main$c as ApiCascader,
10585
+ _sfc_main$d as ApiSelect,
10136
10586
  BasicDescription,
10137
- _sfc_main$9 as BasicForm,
10587
+ BasicDrawer,
10588
+ _sfc_main$a as BasicForm,
10138
10589
  BasicImage,
10139
10590
  _sfc_main as BasicLoading,
10140
10591
  BasicModal,
@@ -10142,6 +10593,7 @@ export {
10142
10593
  BasicTable,
10143
10594
  BasicTextEllipsis,
10144
10595
  BasicUpload,
10596
+ EditCell,
10145
10597
  KntSharedPlugin,
10146
10598
  VideoPreview,
10147
10599
  VideoPreviewModal,
@@ -10227,6 +10679,8 @@ export {
10227
10679
  useApiRequest,
10228
10680
  useDebounce,
10229
10681
  useDescription,
10682
+ useDrawer,
10683
+ useDrawerInner,
10230
10684
  useForm,
10231
10685
  useImage,
10232
10686
  useLocalStorage,