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.
- package/dist/components/Drawer/BasicDrawer.vue.d.ts +122 -0
- package/dist/components/Drawer/BasicDrawer.vue.d.ts.map +1 -0
- package/dist/components/Drawer/index.d.ts +5 -0
- package/dist/components/Drawer/index.d.ts.map +1 -0
- package/dist/components/Drawer/types.d.ts +177 -0
- package/dist/components/Drawer/types.d.ts.map +1 -0
- package/dist/components/Drawer/useDrawer.d.ts +10 -0
- package/dist/components/Drawer/useDrawer.d.ts.map +1 -0
- package/dist/components/Drawer/useDrawerInner.d.ts +10 -0
- package/dist/components/Drawer/useDrawerInner.d.ts.map +1 -0
- package/dist/components/Form/componentMap.d.ts +33 -33
- package/dist/components/Form/components/ApiCascader.vue.d.ts +1 -1
- package/dist/components/Form/components/ApiCascader.vue.d.ts.map +1 -1
- package/dist/components/Form/components/ApiSelect.vue.d.ts +1 -1
- package/dist/components/Form/components/ApiSelect.vue.d.ts.map +1 -1
- package/dist/components/Image/BasicImage.vue.d.ts +1 -1
- package/dist/components/Loading/BasicLoading.vue.d.ts +1 -1
- package/dist/components/Modal/BasicModal.vue.d.ts +9 -9
- package/dist/components/Table/components/componentMap.d.ts +33 -33
- package/dist/components/Table/index.d.ts +2 -1
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Upload/BasicUpload.vue.d.ts +1 -1
- package/dist/components/Upload/components/SortableFileItem.vue.d.ts.map +1 -1
- package/dist/components/Upload/components/VideoPreviewModal.vue.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs.js +648 -194
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +648 -194
- package/dist/index.esm.js.map +1 -1
- package/dist/style.css +28 -18
- 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";
|
|
@@ -25,84 +25,6 @@ var _export_sfc$1 = (sfc, props) => {
|
|
|
25
25
|
return sfc;
|
|
26
26
|
};
|
|
27
27
|
const _sfc_main$z = vue.defineComponent({
|
|
28
|
-
name: "IconExclamationCircle",
|
|
29
|
-
props: {
|
|
30
|
-
size: {
|
|
31
|
-
type: [Number, String]
|
|
32
|
-
},
|
|
33
|
-
strokeWidth: {
|
|
34
|
-
type: Number,
|
|
35
|
-
default: 4
|
|
36
|
-
},
|
|
37
|
-
strokeLinecap: {
|
|
38
|
-
type: String,
|
|
39
|
-
default: "butt",
|
|
40
|
-
validator: (value) => {
|
|
41
|
-
return ["butt", "round", "square"].includes(value);
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
strokeLinejoin: {
|
|
45
|
-
type: String,
|
|
46
|
-
default: "miter",
|
|
47
|
-
validator: (value) => {
|
|
48
|
-
return ["arcs", "bevel", "miter", "miter-clip", "round"].includes(value);
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
rotate: Number,
|
|
52
|
-
spin: Boolean
|
|
53
|
-
},
|
|
54
|
-
emits: {
|
|
55
|
-
click: (ev) => true
|
|
56
|
-
},
|
|
57
|
-
setup(props, { emit }) {
|
|
58
|
-
const prefixCls = getPrefixCls("icon");
|
|
59
|
-
const cls = vue.computed(() => [prefixCls, `${prefixCls}-exclamation-circle`, { [`${prefixCls}-spin`]: props.spin }]);
|
|
60
|
-
const innerStyle = vue.computed(() => {
|
|
61
|
-
const styles = {};
|
|
62
|
-
if (props.size) {
|
|
63
|
-
styles.fontSize = isNumber$1(props.size) ? `${props.size}px` : props.size;
|
|
64
|
-
}
|
|
65
|
-
if (props.rotate) {
|
|
66
|
-
styles.transform = `rotate(${props.rotate}deg)`;
|
|
67
|
-
}
|
|
68
|
-
return styles;
|
|
69
|
-
});
|
|
70
|
-
const onClick = (ev) => {
|
|
71
|
-
emit("click", ev);
|
|
72
|
-
};
|
|
73
|
-
return {
|
|
74
|
-
cls,
|
|
75
|
-
innerStyle,
|
|
76
|
-
onClick
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
const _hoisted_1$u = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
81
|
-
function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
82
|
-
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
83
|
-
viewBox: "0 0 48 48",
|
|
84
|
-
fill: "none",
|
|
85
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
86
|
-
stroke: "currentColor",
|
|
87
|
-
class: vue.normalizeClass(_ctx.cls),
|
|
88
|
-
style: vue.normalizeStyle(_ctx.innerStyle),
|
|
89
|
-
"stroke-width": _ctx.strokeWidth,
|
|
90
|
-
"stroke-linecap": _ctx.strokeLinecap,
|
|
91
|
-
"stroke-linejoin": _ctx.strokeLinejoin,
|
|
92
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
93
|
-
}, _cache[1] || (_cache[1] = [
|
|
94
|
-
vue.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)
|
|
95
|
-
]), 14, _hoisted_1$u);
|
|
96
|
-
}
|
|
97
|
-
var _IconExclamationCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$z, [["render", _sfc_render$h]]);
|
|
98
|
-
const IconExclamationCircle = Object.assign(_IconExclamationCircle, {
|
|
99
|
-
install: (app, options) => {
|
|
100
|
-
var _a;
|
|
101
|
-
const iconPrefix = (_a = options == null ? void 0 : options.iconPrefix) != null ? _a : "";
|
|
102
|
-
app.component(iconPrefix + _IconExclamationCircle.name, _IconExclamationCircle);
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
const _sfc_main$y = vue.defineComponent({
|
|
106
28
|
name: "IconPlus",
|
|
107
29
|
props: {
|
|
108
30
|
size: {
|
|
@@ -155,7 +77,7 @@ const _sfc_main$y = vue.defineComponent({
|
|
|
155
77
|
};
|
|
156
78
|
}
|
|
157
79
|
});
|
|
158
|
-
const _hoisted_1$
|
|
80
|
+
const _hoisted_1$u = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
159
81
|
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
160
82
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
161
83
|
viewBox: "0 0 48 48",
|
|
@@ -170,9 +92,9 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
170
92
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
171
93
|
}, _cache[1] || (_cache[1] = [
|
|
172
94
|
vue.createElementVNode("path", { d: "M5 24h38M24 5v38" }, null, -1)
|
|
173
|
-
]), 14, _hoisted_1$
|
|
95
|
+
]), 14, _hoisted_1$u);
|
|
174
96
|
}
|
|
175
|
-
var _IconPlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
97
|
+
var _IconPlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$z, [["render", _sfc_render$g]]);
|
|
176
98
|
const IconPlus = Object.assign(_IconPlus, {
|
|
177
99
|
install: (app, options) => {
|
|
178
100
|
var _a;
|
|
@@ -180,7 +102,7 @@ const IconPlus = Object.assign(_IconPlus, {
|
|
|
180
102
|
app.component(iconPrefix + _IconPlus.name, _IconPlus);
|
|
181
103
|
}
|
|
182
104
|
});
|
|
183
|
-
const _sfc_main$
|
|
105
|
+
const _sfc_main$y = vue.defineComponent({
|
|
184
106
|
name: "IconQuestionCircle",
|
|
185
107
|
props: {
|
|
186
108
|
size: {
|
|
@@ -233,7 +155,7 @@ const _sfc_main$x = vue.defineComponent({
|
|
|
233
155
|
};
|
|
234
156
|
}
|
|
235
157
|
});
|
|
236
|
-
const _hoisted_1$
|
|
158
|
+
const _hoisted_1$t = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
237
159
|
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
238
160
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
239
161
|
viewBox: "0 0 48 48",
|
|
@@ -249,9 +171,9 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
249
171
|
}, _cache[1] || (_cache[1] = [
|
|
250
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),
|
|
251
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)
|
|
252
|
-
]), 14, _hoisted_1$
|
|
174
|
+
]), 14, _hoisted_1$t);
|
|
253
175
|
}
|
|
254
|
-
var _IconQuestionCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
176
|
+
var _IconQuestionCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$y, [["render", _sfc_render$f]]);
|
|
255
177
|
const IconQuestionCircle = Object.assign(_IconQuestionCircle, {
|
|
256
178
|
install: (app, options) => {
|
|
257
179
|
var _a;
|
|
@@ -259,7 +181,7 @@ const IconQuestionCircle = Object.assign(_IconQuestionCircle, {
|
|
|
259
181
|
app.component(iconPrefix + _IconQuestionCircle.name, _IconQuestionCircle);
|
|
260
182
|
}
|
|
261
183
|
});
|
|
262
|
-
const _sfc_main$
|
|
184
|
+
const _sfc_main$x = vue.defineComponent({
|
|
263
185
|
name: "IconEye",
|
|
264
186
|
props: {
|
|
265
187
|
size: {
|
|
@@ -312,7 +234,7 @@ const _sfc_main$w = vue.defineComponent({
|
|
|
312
234
|
};
|
|
313
235
|
}
|
|
314
236
|
});
|
|
315
|
-
const _hoisted_1$
|
|
237
|
+
const _hoisted_1$s = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
316
238
|
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
317
239
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
318
240
|
viewBox: "0 0 48 48",
|
|
@@ -331,9 +253,9 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
331
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"
|
|
332
254
|
}, null, -1),
|
|
333
255
|
vue.createElementVNode("path", { d: "M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z" }, null, -1)
|
|
334
|
-
]), 14, _hoisted_1$
|
|
256
|
+
]), 14, _hoisted_1$s);
|
|
335
257
|
}
|
|
336
|
-
var _IconEye = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
258
|
+
var _IconEye = /* @__PURE__ */ _export_sfc$1(_sfc_main$x, [["render", _sfc_render$e]]);
|
|
337
259
|
const IconEye = Object.assign(_IconEye, {
|
|
338
260
|
install: (app, options) => {
|
|
339
261
|
var _a;
|
|
@@ -341,7 +263,7 @@ const IconEye = Object.assign(_IconEye, {
|
|
|
341
263
|
app.component(iconPrefix + _IconEye.name, _IconEye);
|
|
342
264
|
}
|
|
343
265
|
});
|
|
344
|
-
const _sfc_main$
|
|
266
|
+
const _sfc_main$w = vue.defineComponent({
|
|
345
267
|
name: "IconMore",
|
|
346
268
|
props: {
|
|
347
269
|
size: {
|
|
@@ -394,7 +316,7 @@ const _sfc_main$v = vue.defineComponent({
|
|
|
394
316
|
};
|
|
395
317
|
}
|
|
396
318
|
});
|
|
397
|
-
const _hoisted_1$
|
|
319
|
+
const _hoisted_1$r = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
398
320
|
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
399
321
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
400
322
|
viewBox: "0 0 48 48",
|
|
@@ -414,9 +336,9 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
414
336
|
stroke: "none"
|
|
415
337
|
}, null, -1),
|
|
416
338
|
vue.createElementVNode("path", { d: "M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z" }, null, -1)
|
|
417
|
-
]), 14, _hoisted_1$
|
|
339
|
+
]), 14, _hoisted_1$r);
|
|
418
340
|
}
|
|
419
|
-
var _IconMore = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
341
|
+
var _IconMore = /* @__PURE__ */ _export_sfc$1(_sfc_main$w, [["render", _sfc_render$d]]);
|
|
420
342
|
const IconMore = Object.assign(_IconMore, {
|
|
421
343
|
install: (app, options) => {
|
|
422
344
|
var _a;
|
|
@@ -424,7 +346,7 @@ const IconMore = Object.assign(_IconMore, {
|
|
|
424
346
|
app.component(iconPrefix + _IconMore.name, _IconMore);
|
|
425
347
|
}
|
|
426
348
|
});
|
|
427
|
-
const _sfc_main$
|
|
349
|
+
const _sfc_main$v = vue.defineComponent({
|
|
428
350
|
name: "IconRefresh",
|
|
429
351
|
props: {
|
|
430
352
|
size: {
|
|
@@ -477,7 +399,7 @@ const _sfc_main$u = vue.defineComponent({
|
|
|
477
399
|
};
|
|
478
400
|
}
|
|
479
401
|
});
|
|
480
|
-
const _hoisted_1$
|
|
402
|
+
const _hoisted_1$q = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
481
403
|
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
482
404
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
483
405
|
viewBox: "0 0 48 48",
|
|
@@ -492,9 +414,9 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
492
414
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
493
415
|
}, _cache[1] || (_cache[1] = [
|
|
494
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)
|
|
495
|
-
]), 14, _hoisted_1$
|
|
417
|
+
]), 14, _hoisted_1$q);
|
|
496
418
|
}
|
|
497
|
-
var _IconRefresh = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
419
|
+
var _IconRefresh = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["render", _sfc_render$c]]);
|
|
498
420
|
const IconRefresh = Object.assign(_IconRefresh, {
|
|
499
421
|
install: (app, options) => {
|
|
500
422
|
var _a;
|
|
@@ -502,7 +424,7 @@ const IconRefresh = Object.assign(_IconRefresh, {
|
|
|
502
424
|
app.component(iconPrefix + _IconRefresh.name, _IconRefresh);
|
|
503
425
|
}
|
|
504
426
|
});
|
|
505
|
-
const _sfc_main$
|
|
427
|
+
const _sfc_main$u = vue.defineComponent({
|
|
506
428
|
name: "IconSearch",
|
|
507
429
|
props: {
|
|
508
430
|
size: {
|
|
@@ -555,7 +477,7 @@ const _sfc_main$t = vue.defineComponent({
|
|
|
555
477
|
};
|
|
556
478
|
}
|
|
557
479
|
});
|
|
558
|
-
const _hoisted_1$
|
|
480
|
+
const _hoisted_1$p = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
559
481
|
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
560
482
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
561
483
|
viewBox: "0 0 48 48",
|
|
@@ -570,9 +492,9 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
570
492
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
571
493
|
}, _cache[1] || (_cache[1] = [
|
|
572
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)
|
|
573
|
-
]), 14, _hoisted_1$
|
|
495
|
+
]), 14, _hoisted_1$p);
|
|
574
496
|
}
|
|
575
|
-
var _IconSearch = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
497
|
+
var _IconSearch = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["render", _sfc_render$b]]);
|
|
576
498
|
const IconSearch = Object.assign(_IconSearch, {
|
|
577
499
|
install: (app, options) => {
|
|
578
500
|
var _a;
|
|
@@ -580,7 +502,7 @@ const IconSearch = Object.assign(_IconSearch, {
|
|
|
580
502
|
app.component(iconPrefix + _IconSearch.name, _IconSearch);
|
|
581
503
|
}
|
|
582
504
|
});
|
|
583
|
-
const _sfc_main$
|
|
505
|
+
const _sfc_main$t = vue.defineComponent({
|
|
584
506
|
name: "IconSettings",
|
|
585
507
|
props: {
|
|
586
508
|
size: {
|
|
@@ -633,7 +555,7 @@ const _sfc_main$s = vue.defineComponent({
|
|
|
633
555
|
};
|
|
634
556
|
}
|
|
635
557
|
});
|
|
636
|
-
const _hoisted_1$
|
|
558
|
+
const _hoisted_1$o = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
637
559
|
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
638
560
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
639
561
|
viewBox: "0 0 48 48",
|
|
@@ -649,9 +571,9 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
649
571
|
}, _cache[1] || (_cache[1] = [
|
|
650
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),
|
|
651
573
|
vue.createElementVNode("path", { d: "M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z" }, null, -1)
|
|
652
|
-
]), 14, _hoisted_1$
|
|
574
|
+
]), 14, _hoisted_1$o);
|
|
653
575
|
}
|
|
654
|
-
var _IconSettings = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
576
|
+
var _IconSettings = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$a]]);
|
|
655
577
|
const IconSettings = Object.assign(_IconSettings, {
|
|
656
578
|
install: (app, options) => {
|
|
657
579
|
var _a;
|
|
@@ -659,7 +581,7 @@ const IconSettings = Object.assign(_IconSettings, {
|
|
|
659
581
|
app.component(iconPrefix + _IconSettings.name, _IconSettings);
|
|
660
582
|
}
|
|
661
583
|
});
|
|
662
|
-
const _sfc_main$
|
|
584
|
+
const _sfc_main$s = vue.defineComponent({
|
|
663
585
|
name: "IconUpload",
|
|
664
586
|
props: {
|
|
665
587
|
size: {
|
|
@@ -712,7 +634,7 @@ const _sfc_main$r = vue.defineComponent({
|
|
|
712
634
|
};
|
|
713
635
|
}
|
|
714
636
|
});
|
|
715
|
-
const _hoisted_1$
|
|
637
|
+
const _hoisted_1$n = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
716
638
|
function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
717
639
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
718
640
|
viewBox: "0 0 48 48",
|
|
@@ -727,9 +649,9 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
727
649
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
728
650
|
}, _cache[1] || (_cache[1] = [
|
|
729
651
|
vue.createElementVNode("path", { d: "M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6" }, null, -1)
|
|
730
|
-
]), 14, _hoisted_1$
|
|
652
|
+
]), 14, _hoisted_1$n);
|
|
731
653
|
}
|
|
732
|
-
var _IconUpload = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
654
|
+
var _IconUpload = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_render$9]]);
|
|
733
655
|
const IconUpload = Object.assign(_IconUpload, {
|
|
734
656
|
install: (app, options) => {
|
|
735
657
|
var _a;
|
|
@@ -737,7 +659,7 @@ const IconUpload = Object.assign(_IconUpload, {
|
|
|
737
659
|
app.component(iconPrefix + _IconUpload.name, _IconUpload);
|
|
738
660
|
}
|
|
739
661
|
});
|
|
740
|
-
const _sfc_main$
|
|
662
|
+
const _sfc_main$r = vue.defineComponent({
|
|
741
663
|
name: "IconDelete",
|
|
742
664
|
props: {
|
|
743
665
|
size: {
|
|
@@ -790,7 +712,7 @@ const _sfc_main$q = vue.defineComponent({
|
|
|
790
712
|
};
|
|
791
713
|
}
|
|
792
714
|
});
|
|
793
|
-
const _hoisted_1$
|
|
715
|
+
const _hoisted_1$m = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
794
716
|
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
795
717
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
796
718
|
viewBox: "0 0 48 48",
|
|
@@ -805,9 +727,9 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
805
727
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
806
728
|
}, _cache[1] || (_cache[1] = [
|
|
807
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)
|
|
808
|
-
]), 14, _hoisted_1$
|
|
730
|
+
]), 14, _hoisted_1$m);
|
|
809
731
|
}
|
|
810
|
-
var _IconDelete = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
732
|
+
var _IconDelete = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _sfc_render$8]]);
|
|
811
733
|
const IconDelete = Object.assign(_IconDelete, {
|
|
812
734
|
install: (app, options) => {
|
|
813
735
|
var _a;
|
|
@@ -815,7 +737,7 @@ const IconDelete = Object.assign(_IconDelete, {
|
|
|
815
737
|
app.component(iconPrefix + _IconDelete.name, _IconDelete);
|
|
816
738
|
}
|
|
817
739
|
});
|
|
818
|
-
const _sfc_main$
|
|
740
|
+
const _sfc_main$q = vue.defineComponent({
|
|
819
741
|
name: "IconLineHeight",
|
|
820
742
|
props: {
|
|
821
743
|
size: {
|
|
@@ -868,7 +790,7 @@ const _sfc_main$p = vue.defineComponent({
|
|
|
868
790
|
};
|
|
869
791
|
}
|
|
870
792
|
});
|
|
871
|
-
const _hoisted_1$
|
|
793
|
+
const _hoisted_1$l = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
872
794
|
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
873
795
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
874
796
|
viewBox: "0 0 48 48",
|
|
@@ -889,9 +811,9 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
889
811
|
stroke: "none"
|
|
890
812
|
}, null, -1),
|
|
891
813
|
vue.createElementVNode("path", { d: "M39 13h2l-2-3.5-2 3.5h2Zm0 0v22m0 0h2l-2 3.5-2-3.5h2Z" }, null, -1)
|
|
892
|
-
]), 14, _hoisted_1$
|
|
814
|
+
]), 14, _hoisted_1$l);
|
|
893
815
|
}
|
|
894
|
-
var _IconLineHeight = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
816
|
+
var _IconLineHeight = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["render", _sfc_render$7]]);
|
|
895
817
|
const IconLineHeight = Object.assign(_IconLineHeight, {
|
|
896
818
|
install: (app, options) => {
|
|
897
819
|
var _a;
|
|
@@ -899,7 +821,7 @@ const IconLineHeight = Object.assign(_IconLineHeight, {
|
|
|
899
821
|
app.component(iconPrefix + _IconLineHeight.name, _IconLineHeight);
|
|
900
822
|
}
|
|
901
823
|
});
|
|
902
|
-
const _sfc_main$
|
|
824
|
+
const _sfc_main$p = vue.defineComponent({
|
|
903
825
|
name: "IconFullscreenExit",
|
|
904
826
|
props: {
|
|
905
827
|
size: {
|
|
@@ -952,7 +874,7 @@ const _sfc_main$o = vue.defineComponent({
|
|
|
952
874
|
};
|
|
953
875
|
}
|
|
954
876
|
});
|
|
955
|
-
const _hoisted_1$
|
|
877
|
+
const _hoisted_1$k = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
956
878
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
957
879
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
958
880
|
viewBox: "0 0 48 48",
|
|
@@ -967,9 +889,9 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
967
889
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
968
890
|
}, _cache[1] || (_cache[1] = [
|
|
969
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)
|
|
970
|
-
]), 14, _hoisted_1$
|
|
892
|
+
]), 14, _hoisted_1$k);
|
|
971
893
|
}
|
|
972
|
-
var _IconFullscreenExit = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
894
|
+
var _IconFullscreenExit = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["render", _sfc_render$6]]);
|
|
973
895
|
const IconFullscreenExit = Object.assign(_IconFullscreenExit, {
|
|
974
896
|
install: (app, options) => {
|
|
975
897
|
var _a;
|
|
@@ -977,7 +899,7 @@ const IconFullscreenExit = Object.assign(_IconFullscreenExit, {
|
|
|
977
899
|
app.component(iconPrefix + _IconFullscreenExit.name, _IconFullscreenExit);
|
|
978
900
|
}
|
|
979
901
|
});
|
|
980
|
-
const _sfc_main$
|
|
902
|
+
const _sfc_main$o = vue.defineComponent({
|
|
981
903
|
name: "IconFullscreen",
|
|
982
904
|
props: {
|
|
983
905
|
size: {
|
|
@@ -1030,7 +952,7 @@ const _sfc_main$n = vue.defineComponent({
|
|
|
1030
952
|
};
|
|
1031
953
|
}
|
|
1032
954
|
});
|
|
1033
|
-
const _hoisted_1$
|
|
955
|
+
const _hoisted_1$j = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1034
956
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1035
957
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
1036
958
|
viewBox: "0 0 48 48",
|
|
@@ -1045,9 +967,9 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1045
967
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
1046
968
|
}, _cache[1] || (_cache[1] = [
|
|
1047
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)
|
|
1048
|
-
]), 14, _hoisted_1$
|
|
970
|
+
]), 14, _hoisted_1$j);
|
|
1049
971
|
}
|
|
1050
|
-
var _IconFullscreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
972
|
+
var _IconFullscreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_render$5]]);
|
|
1051
973
|
const IconFullscreen = Object.assign(_IconFullscreen, {
|
|
1052
974
|
install: (app, options) => {
|
|
1053
975
|
var _a;
|
|
@@ -1055,7 +977,7 @@ const IconFullscreen = Object.assign(_IconFullscreen, {
|
|
|
1055
977
|
app.component(iconPrefix + _IconFullscreen.name, _IconFullscreen);
|
|
1056
978
|
}
|
|
1057
979
|
});
|
|
1058
|
-
const _sfc_main$
|
|
980
|
+
const _sfc_main$n = vue.defineComponent({
|
|
1059
981
|
name: "IconMute",
|
|
1060
982
|
props: {
|
|
1061
983
|
size: {
|
|
@@ -1108,7 +1030,7 @@ const _sfc_main$m = vue.defineComponent({
|
|
|
1108
1030
|
};
|
|
1109
1031
|
}
|
|
1110
1032
|
});
|
|
1111
|
-
const _hoisted_1$
|
|
1033
|
+
const _hoisted_1$i = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1112
1034
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1113
1035
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
1114
1036
|
viewBox: "0 0 48 48",
|
|
@@ -1123,9 +1045,9 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1123
1045
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
1124
1046
|
}, _cache[1] || (_cache[1] = [
|
|
1125
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)
|
|
1126
|
-
]), 14, _hoisted_1$
|
|
1048
|
+
]), 14, _hoisted_1$i);
|
|
1127
1049
|
}
|
|
1128
|
-
var _IconMute = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1050
|
+
var _IconMute = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$4]]);
|
|
1129
1051
|
const IconMute = Object.assign(_IconMute, {
|
|
1130
1052
|
install: (app, options) => {
|
|
1131
1053
|
var _a;
|
|
@@ -1133,7 +1055,7 @@ const IconMute = Object.assign(_IconMute, {
|
|
|
1133
1055
|
app.component(iconPrefix + _IconMute.name, _IconMute);
|
|
1134
1056
|
}
|
|
1135
1057
|
});
|
|
1136
|
-
const _sfc_main$
|
|
1058
|
+
const _sfc_main$m = vue.defineComponent({
|
|
1137
1059
|
name: "IconPause",
|
|
1138
1060
|
props: {
|
|
1139
1061
|
size: {
|
|
@@ -1186,7 +1108,7 @@ const _sfc_main$l = vue.defineComponent({
|
|
|
1186
1108
|
};
|
|
1187
1109
|
}
|
|
1188
1110
|
});
|
|
1189
|
-
const _hoisted_1$
|
|
1111
|
+
const _hoisted_1$h = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1190
1112
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1191
1113
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
1192
1114
|
viewBox: "0 0 48 48",
|
|
@@ -1206,9 +1128,9 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1206
1128
|
stroke: "none",
|
|
1207
1129
|
d: "M14 12h4v24h-4zM30 12h4v24h-4z"
|
|
1208
1130
|
}, null, -1)
|
|
1209
|
-
]), 14, _hoisted_1$
|
|
1131
|
+
]), 14, _hoisted_1$h);
|
|
1210
1132
|
}
|
|
1211
|
-
var _IconPause = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1133
|
+
var _IconPause = /* @__PURE__ */ _export_sfc$1(_sfc_main$m, [["render", _sfc_render$3]]);
|
|
1212
1134
|
const IconPause = Object.assign(_IconPause, {
|
|
1213
1135
|
install: (app, options) => {
|
|
1214
1136
|
var _a;
|
|
@@ -1216,7 +1138,7 @@ const IconPause = Object.assign(_IconPause, {
|
|
|
1216
1138
|
app.component(iconPrefix + _IconPause.name, _IconPause);
|
|
1217
1139
|
}
|
|
1218
1140
|
});
|
|
1219
|
-
const _sfc_main$
|
|
1141
|
+
const _sfc_main$l = vue.defineComponent({
|
|
1220
1142
|
name: "IconPlayArrow",
|
|
1221
1143
|
props: {
|
|
1222
1144
|
size: {
|
|
@@ -1269,7 +1191,7 @@ const _sfc_main$k = vue.defineComponent({
|
|
|
1269
1191
|
};
|
|
1270
1192
|
}
|
|
1271
1193
|
});
|
|
1272
|
-
const _hoisted_1$
|
|
1194
|
+
const _hoisted_1$g = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1273
1195
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1274
1196
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
1275
1197
|
viewBox: "0 0 48 48",
|
|
@@ -1284,9 +1206,9 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1284
1206
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
1285
1207
|
}, _cache[1] || (_cache[1] = [
|
|
1286
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)
|
|
1287
|
-
]), 14, _hoisted_1$
|
|
1209
|
+
]), 14, _hoisted_1$g);
|
|
1288
1210
|
}
|
|
1289
|
-
var _IconPlayArrow = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1211
|
+
var _IconPlayArrow = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["render", _sfc_render$2]]);
|
|
1290
1212
|
const IconPlayArrow = Object.assign(_IconPlayArrow, {
|
|
1291
1213
|
install: (app, options) => {
|
|
1292
1214
|
var _a;
|
|
@@ -1294,7 +1216,7 @@ const IconPlayArrow = Object.assign(_IconPlayArrow, {
|
|
|
1294
1216
|
app.component(iconPrefix + _IconPlayArrow.name, _IconPlayArrow);
|
|
1295
1217
|
}
|
|
1296
1218
|
});
|
|
1297
|
-
const _sfc_main$
|
|
1219
|
+
const _sfc_main$k = vue.defineComponent({
|
|
1298
1220
|
name: "IconSound",
|
|
1299
1221
|
props: {
|
|
1300
1222
|
size: {
|
|
@@ -1347,7 +1269,7 @@ const _sfc_main$j = vue.defineComponent({
|
|
|
1347
1269
|
};
|
|
1348
1270
|
}
|
|
1349
1271
|
});
|
|
1350
|
-
const _hoisted_1$
|
|
1272
|
+
const _hoisted_1$f = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1351
1273
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1352
1274
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
1353
1275
|
viewBox: "0 0 48 48",
|
|
@@ -1363,9 +1285,9 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1363
1285
|
}, _cache[1] || (_cache[1] = [
|
|
1364
1286
|
vue.createElementVNode("path", { d: "m14 16 10-9v34l-10-9H6V16h8Z" }, null, -1),
|
|
1365
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)
|
|
1366
|
-
]), 14, _hoisted_1$
|
|
1288
|
+
]), 14, _hoisted_1$f);
|
|
1367
1289
|
}
|
|
1368
|
-
var _IconSound = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1290
|
+
var _IconSound = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_render$1]]);
|
|
1369
1291
|
const IconSound = Object.assign(_IconSound, {
|
|
1370
1292
|
install: (app, options) => {
|
|
1371
1293
|
var _a;
|
|
@@ -1373,7 +1295,7 @@ const IconSound = Object.assign(_IconSound, {
|
|
|
1373
1295
|
app.component(iconPrefix + _IconSound.name, _IconSound);
|
|
1374
1296
|
}
|
|
1375
1297
|
});
|
|
1376
|
-
const _sfc_main$
|
|
1298
|
+
const _sfc_main$j = vue.defineComponent({
|
|
1377
1299
|
name: "IconLoading",
|
|
1378
1300
|
props: {
|
|
1379
1301
|
size: {
|
|
@@ -1426,7 +1348,7 @@ const _sfc_main$i = vue.defineComponent({
|
|
|
1426
1348
|
};
|
|
1427
1349
|
}
|
|
1428
1350
|
});
|
|
1429
|
-
const _hoisted_1$
|
|
1351
|
+
const _hoisted_1$e = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1430
1352
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1431
1353
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
1432
1354
|
viewBox: "0 0 48 48",
|
|
@@ -1441,9 +1363,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1441
1363
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
1442
1364
|
}, _cache[1] || (_cache[1] = [
|
|
1443
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)
|
|
1444
|
-
]), 14, _hoisted_1$
|
|
1366
|
+
]), 14, _hoisted_1$e);
|
|
1445
1367
|
}
|
|
1446
|
-
var _IconLoading = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1368
|
+
var _IconLoading = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_render]]);
|
|
1447
1369
|
const IconLoading = Object.assign(_IconLoading, {
|
|
1448
1370
|
install: (app, options) => {
|
|
1449
1371
|
var _a;
|
|
@@ -2276,7 +2198,7 @@ function subtractLight(color, amount) {
|
|
|
2276
2198
|
const c = cc < 0 ? 0 : cc;
|
|
2277
2199
|
return c.toString(16).length > 1 ? c.toString(16) : `0${c.toString(16)}`;
|
|
2278
2200
|
}
|
|
2279
|
-
const _hoisted_1$
|
|
2201
|
+
const _hoisted_1$d = ["draggable"];
|
|
2280
2202
|
const _hoisted_2$9 = ["src", "alt"];
|
|
2281
2203
|
const _hoisted_3$7 = {
|
|
2282
2204
|
key: 1,
|
|
@@ -2291,7 +2213,7 @@ const _hoisted_6$4 = {
|
|
|
2291
2213
|
key: 3,
|
|
2292
2214
|
class: "error-tip"
|
|
2293
2215
|
};
|
|
2294
|
-
const _sfc_main$
|
|
2216
|
+
const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
2295
2217
|
...{
|
|
2296
2218
|
name: "SortableFileItem"
|
|
2297
2219
|
},
|
|
@@ -2385,9 +2307,13 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
2385
2307
|
])
|
|
2386
2308
|
])) : vue.createCommentVNode("", true),
|
|
2387
2309
|
__props.file.status === "error" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$4, [
|
|
2388
|
-
vue.
|
|
2310
|
+
!__props.disabled ? (vue.openBlock(), vue.createBlock(vue.unref(IconDelete), {
|
|
2311
|
+
key: 0,
|
|
2312
|
+
class: "action-icon",
|
|
2313
|
+
onClick: handleRemove
|
|
2314
|
+
})) : vue.createCommentVNode("", true)
|
|
2389
2315
|
])) : vue.createCommentVNode("", true)
|
|
2390
|
-
], 46, _hoisted_1$
|
|
2316
|
+
], 46, _hoisted_1$d);
|
|
2391
2317
|
};
|
|
2392
2318
|
}
|
|
2393
2319
|
});
|
|
@@ -2398,9 +2324,9 @@ const _export_sfc = (sfc, props) => {
|
|
|
2398
2324
|
}
|
|
2399
2325
|
return target;
|
|
2400
2326
|
};
|
|
2401
|
-
const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2402
|
-
const _hoisted_1$
|
|
2403
|
-
const _sfc_main$
|
|
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({
|
|
2404
2330
|
...{
|
|
2405
2331
|
name: "SortableFileList"
|
|
2406
2332
|
},
|
|
@@ -2464,7 +2390,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
2464
2390
|
emit("remove", file);
|
|
2465
2391
|
};
|
|
2466
2392
|
return (_ctx, _cache) => {
|
|
2467
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
2393
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [
|
|
2468
2394
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.fileList, (file, index) => {
|
|
2469
2395
|
return vue.openBlock(), vue.createBlock(SortableFileItem, {
|
|
2470
2396
|
key: file.uid,
|
|
@@ -2485,8 +2411,8 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
2485
2411
|
};
|
|
2486
2412
|
}
|
|
2487
2413
|
});
|
|
2488
|
-
const SortableFileList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2489
|
-
const _hoisted_1$
|
|
2414
|
+
const SortableFileList = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-1ede8f45"]]);
|
|
2415
|
+
const _hoisted_1$b = ["src", "autoplay", "loop", "muted", "preload"];
|
|
2490
2416
|
const _hoisted_2$8 = {
|
|
2491
2417
|
key: 0,
|
|
2492
2418
|
class: "play-overlay"
|
|
@@ -2503,7 +2429,7 @@ const _hoisted_8$1 = { class: "volume-slider-container" };
|
|
|
2503
2429
|
const _hoisted_9 = { class: "time-display" };
|
|
2504
2430
|
const _hoisted_10 = { class: "controls-right" };
|
|
2505
2431
|
const _hoisted_11 = { class: "control-button" };
|
|
2506
|
-
const _sfc_main$
|
|
2432
|
+
const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
2507
2433
|
...{
|
|
2508
2434
|
name: "VideoPreview"
|
|
2509
2435
|
},
|
|
@@ -2720,7 +2646,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
2720
2646
|
onPause: _cache[1] || (_cache[1] = ($event) => isPlaying.value = false),
|
|
2721
2647
|
onEnded: handleEnded,
|
|
2722
2648
|
onVolumechange: handleVolumeChange
|
|
2723
|
-
}, null, 40, _hoisted_1$
|
|
2649
|
+
}, null, 40, _hoisted_1$b),
|
|
2724
2650
|
!isPlaying.value && !isLoading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$8, [
|
|
2725
2651
|
vue.createElementVNode("div", _hoisted_3$6, [
|
|
2726
2652
|
vue.createVNode(vue.unref(IconPlayArrow), { size: 48 })
|
|
@@ -2849,11 +2775,11 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
2849
2775
|
};
|
|
2850
2776
|
}
|
|
2851
2777
|
});
|
|
2852
|
-
const VideoPreview = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2853
|
-
const _hoisted_1$
|
|
2778
|
+
const VideoPreview = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-b982f870"]]);
|
|
2779
|
+
const _hoisted_1$a = { class: "video-modal-title" };
|
|
2854
2780
|
const _hoisted_2$7 = { class: "file-name" };
|
|
2855
2781
|
const _hoisted_3$5 = { class: "video-modal-content" };
|
|
2856
|
-
const _sfc_main$
|
|
2782
|
+
const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
2857
2783
|
...{
|
|
2858
2784
|
name: "VideoPreviewModal"
|
|
2859
2785
|
},
|
|
@@ -2903,7 +2829,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
2903
2829
|
onCancel: handleClose
|
|
2904
2830
|
}, {
|
|
2905
2831
|
title: vue.withCtx(() => [
|
|
2906
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
2832
|
+
vue.createElementVNode("div", _hoisted_1$a, [
|
|
2907
2833
|
vue.createElementVNode("span", _hoisted_2$7, vue.toDisplayString(__props.fileName || "视频预览"), 1)
|
|
2908
2834
|
])
|
|
2909
2835
|
]),
|
|
@@ -2924,8 +2850,8 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
2924
2850
|
};
|
|
2925
2851
|
}
|
|
2926
2852
|
});
|
|
2927
|
-
const VideoPreviewModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2928
|
-
const _hoisted_1$
|
|
2853
|
+
const VideoPreviewModal = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-cac8e63e"]]);
|
|
2854
|
+
const _hoisted_1$9 = { class: "basic-upload" };
|
|
2929
2855
|
const _hoisted_2$6 = {
|
|
2930
2856
|
key: 0,
|
|
2931
2857
|
class: "upload-empty-state"
|
|
@@ -2951,7 +2877,7 @@ const _hoisted_8 = {
|
|
|
2951
2877
|
key: 5,
|
|
2952
2878
|
class: "inline-video-preview"
|
|
2953
2879
|
};
|
|
2954
|
-
const _sfc_main$
|
|
2880
|
+
const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
2955
2881
|
...{
|
|
2956
2882
|
name: "BasicUpload",
|
|
2957
2883
|
inheritAttrs: false
|
|
@@ -3520,7 +3446,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
3520
3446
|
});
|
|
3521
3447
|
});
|
|
3522
3448
|
return (_ctx, _cache) => {
|
|
3523
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
3449
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$9, [
|
|
3524
3450
|
shouldShowEmptyState.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$6, [
|
|
3525
3451
|
vue.renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
3526
3452
|
vue.createTextVNode(vue.toDisplayString(getProps.value.emptyText), 1)
|
|
@@ -3668,7 +3594,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
3668
3594
|
};
|
|
3669
3595
|
}
|
|
3670
3596
|
});
|
|
3671
|
-
const BasicUpload = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3597
|
+
const BasicUpload = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-13e8439f"]]);
|
|
3672
3598
|
function useUpload(props) {
|
|
3673
3599
|
const uploadRef = vue.ref(null);
|
|
3674
3600
|
const fileListRef = vue.ref((props == null ? void 0 : props.defaultFileList) || []);
|
|
@@ -3914,7 +3840,7 @@ function clearApiCache(api, params) {
|
|
|
3914
3840
|
const cacheKey = getCacheKey(api, params);
|
|
3915
3841
|
cacheMap.delete(cacheKey);
|
|
3916
3842
|
}
|
|
3917
|
-
const _sfc_main$
|
|
3843
|
+
const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
3918
3844
|
__name: "ApiSelect",
|
|
3919
3845
|
props: {
|
|
3920
3846
|
modelValue: {},
|
|
@@ -4024,7 +3950,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
4024
3950
|
};
|
|
4025
3951
|
}
|
|
4026
3952
|
});
|
|
4027
|
-
const _sfc_main$
|
|
3953
|
+
const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
4028
3954
|
__name: "ApiCascader",
|
|
4029
3955
|
props: {
|
|
4030
3956
|
modelValue: {},
|
|
@@ -4190,13 +4116,13 @@ const componentMap = {
|
|
|
4190
4116
|
Textarea: ArcoVue.Textarea,
|
|
4191
4117
|
AutoComplete: ArcoVue.AutoComplete,
|
|
4192
4118
|
Select: ArcoVue.Select,
|
|
4193
|
-
ApiSelect: _sfc_main$
|
|
4119
|
+
ApiSelect: _sfc_main$d,
|
|
4194
4120
|
Radio: ArcoVue.Radio,
|
|
4195
4121
|
RadioGroup: ArcoVue.RadioGroup,
|
|
4196
4122
|
Checkbox: ArcoVue.Checkbox,
|
|
4197
4123
|
CheckboxGroup: ArcoVue.CheckboxGroup,
|
|
4198
4124
|
Cascader: ArcoVue.Cascader,
|
|
4199
|
-
ApiCascader: _sfc_main$
|
|
4125
|
+
ApiCascader: _sfc_main$c,
|
|
4200
4126
|
TreeSelect: ArcoVue.TreeSelect,
|
|
4201
4127
|
DatePicker: ArcoVue.DatePicker,
|
|
4202
4128
|
TimePicker: ArcoVue.TimePicker,
|
|
@@ -4802,7 +4728,7 @@ const rendererMap = {
|
|
|
4802
4728
|
function getRenderer(component = "Input") {
|
|
4803
4729
|
return rendererMap[component] || rendererMap.default;
|
|
4804
4730
|
}
|
|
4805
|
-
const _sfc_main$
|
|
4731
|
+
const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
4806
4732
|
...{
|
|
4807
4733
|
name: "BasicReadonlyField",
|
|
4808
4734
|
inheritAttrs: false
|
|
@@ -4911,7 +4837,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
4911
4837
|
};
|
|
4912
4838
|
}
|
|
4913
4839
|
});
|
|
4914
|
-
const BasicReadonlyField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4840
|
+
const BasicReadonlyField = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-3d2d24e0"]]);
|
|
4915
4841
|
function useReadonlyField(options) {
|
|
4916
4842
|
const defaultEmptyText = (options == null ? void 0 : options.defaultEmptyText) || "-";
|
|
4917
4843
|
const globalLabelMap = (options == null ? void 0 : options.globalLabelMap) || {};
|
|
@@ -5023,7 +4949,7 @@ function useReadonlyField(options) {
|
|
|
5023
4949
|
clearCache
|
|
5024
4950
|
};
|
|
5025
4951
|
}
|
|
5026
|
-
const _sfc_main$
|
|
4952
|
+
const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
5027
4953
|
...{
|
|
5028
4954
|
name: "BasicForm",
|
|
5029
4955
|
inheritAttrs: false
|
|
@@ -5831,8 +5757,8 @@ function createFormSchema(schemas) {
|
|
|
5831
5757
|
function mergeFormSchemas(...schemas) {
|
|
5832
5758
|
return schemas.flat();
|
|
5833
5759
|
}
|
|
5834
|
-
const _hoisted_1$
|
|
5835
|
-
const _sfc_main$
|
|
5760
|
+
const _hoisted_1$8 = { class: "basic-text-ellipsis" };
|
|
5761
|
+
const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
5836
5762
|
__name: "BasicTextEllipsis",
|
|
5837
5763
|
props: {
|
|
5838
5764
|
text: { default: "" },
|
|
@@ -5919,7 +5845,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5919
5845
|
}
|
|
5920
5846
|
);
|
|
5921
5847
|
return (_ctx, _cache) => {
|
|
5922
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5848
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [
|
|
5923
5849
|
showTooltip.value ? (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Tooltip), vue.mergeProps({
|
|
5924
5850
|
key: 0,
|
|
5925
5851
|
content: __props.text,
|
|
@@ -5945,7 +5871,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5945
5871
|
};
|
|
5946
5872
|
}
|
|
5947
5873
|
});
|
|
5948
|
-
const BasicTextEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5874
|
+
const BasicTextEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-305f9842"]]);
|
|
5949
5875
|
function useLocalStorage(key, initialValue) {
|
|
5950
5876
|
let initialStoredValue;
|
|
5951
5877
|
try {
|
|
@@ -6355,12 +6281,12 @@ function useEditFormat(options) {
|
|
|
6355
6281
|
wrapFormatListeners
|
|
6356
6282
|
};
|
|
6357
6283
|
}
|
|
6358
|
-
const _hoisted_1$
|
|
6284
|
+
const _hoisted_1$7 = { class: "edit-cell" };
|
|
6359
6285
|
const _hoisted_2$5 = {
|
|
6360
6286
|
key: 2,
|
|
6361
6287
|
class: "edit-cell-error"
|
|
6362
6288
|
};
|
|
6363
|
-
const _sfc_main$
|
|
6289
|
+
const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
6364
6290
|
...{
|
|
6365
6291
|
name: "EditCell"
|
|
6366
6292
|
},
|
|
@@ -6447,7 +6373,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
6447
6373
|
}
|
|
6448
6374
|
});
|
|
6449
6375
|
return (_ctx, _cache) => {
|
|
6450
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
6376
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
|
|
6451
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, {
|
|
6452
6378
|
"model-value": vue.unref(currentValue),
|
|
6453
6379
|
"onUpdate:modelValue": handleChange,
|
|
@@ -6458,7 +6384,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
6458
6384
|
};
|
|
6459
6385
|
}
|
|
6460
6386
|
});
|
|
6461
|
-
const EditCell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6387
|
+
const EditCell = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-52761074"]]);
|
|
6462
6388
|
function useEditValidation() {
|
|
6463
6389
|
const validateField = async (value, column, record) => {
|
|
6464
6390
|
if (!column.editRule) {
|
|
@@ -6869,7 +6795,7 @@ function useTableEdit(props, dataSource, getRowKey) {
|
|
|
6869
6795
|
getChangedValues
|
|
6870
6796
|
};
|
|
6871
6797
|
}
|
|
6872
|
-
const _hoisted_1$
|
|
6798
|
+
const _hoisted_1$6 = {
|
|
6873
6799
|
key: 0,
|
|
6874
6800
|
class: "basic-table-search"
|
|
6875
6801
|
};
|
|
@@ -6887,7 +6813,7 @@ const _hoisted_5$2 = {
|
|
|
6887
6813
|
class: "toolbar-right"
|
|
6888
6814
|
};
|
|
6889
6815
|
const _hoisted_6$1 = { class: "column-setting" };
|
|
6890
|
-
const _sfc_main$
|
|
6816
|
+
const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
6891
6817
|
...{
|
|
6892
6818
|
name: "BasicTable"
|
|
6893
6819
|
},
|
|
@@ -8004,8 +7930,8 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8004
7930
|
ref: tableWrapperRef,
|
|
8005
7931
|
class: vue.normalizeClass(["basic-table-wrapper", { "is-fullscreen": isFullscreen.value }])
|
|
8006
7932
|
}, [
|
|
8007
|
-
getSearchConfig.value.show ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
8008
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
7933
|
+
getSearchConfig.value.show ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
|
|
7934
|
+
vue.createVNode(vue.unref(_sfc_main$a), vue.mergeProps({
|
|
8009
7935
|
ref_key: "searchFormRef",
|
|
8010
7936
|
ref: searchFormRef
|
|
8011
7937
|
}, getSearchFormProps.value, {
|
|
@@ -8383,7 +8309,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8383
8309
|
};
|
|
8384
8310
|
}
|
|
8385
8311
|
});
|
|
8386
|
-
const BasicTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8312
|
+
const BasicTable = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-5f63dbb6"]]);
|
|
8387
8313
|
function useTable(options = {}) {
|
|
8388
8314
|
const tableRef = vue.ref(null);
|
|
8389
8315
|
const formRef = vue.ref(null);
|
|
@@ -8742,9 +8668,9 @@ function createTableColumns(columns) {
|
|
|
8742
8668
|
function mergeTableColumns(...columns) {
|
|
8743
8669
|
return columns.flat();
|
|
8744
8670
|
}
|
|
8745
|
-
const _hoisted_1$
|
|
8671
|
+
const _hoisted_1$5 = { style: { "position": "relative", "width": "100%" } };
|
|
8746
8672
|
const _hoisted_2$3 = { key: 1 };
|
|
8747
|
-
const _sfc_main$
|
|
8673
|
+
const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
8748
8674
|
...{
|
|
8749
8675
|
name: "BasicModal",
|
|
8750
8676
|
inheritAttrs: false
|
|
@@ -9090,7 +9016,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
9090
9016
|
} : getProps.value.title ? {
|
|
9091
9017
|
name: "title",
|
|
9092
9018
|
fn: vue.withCtx(() => [
|
|
9093
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
9019
|
+
vue.createElementVNode("div", _hoisted_1$5, [
|
|
9094
9020
|
vue.createElementVNode("span", {
|
|
9095
9021
|
style: vue.normalizeStyle({ display: "block", textAlign: getProps.value.titleAlign }),
|
|
9096
9022
|
class: vue.normalizeClass(["block"])
|
|
@@ -9191,7 +9117,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
9191
9117
|
};
|
|
9192
9118
|
}
|
|
9193
9119
|
});
|
|
9194
|
-
const BasicModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9120
|
+
const BasicModal = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-e4400cf8"]]);
|
|
9195
9121
|
function useModal(props) {
|
|
9196
9122
|
const modalRef = vue.ref(null);
|
|
9197
9123
|
const loadedRef = vue.ref(false);
|
|
@@ -9349,6 +9275,530 @@ function useModalInner(callbackFn) {
|
|
|
9349
9275
|
}
|
|
9350
9276
|
];
|
|
9351
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
|
+
}
|
|
9352
9802
|
const _hoisted_1$3 = { class: "basic-description" };
|
|
9353
9803
|
const _hoisted_2$2 = {
|
|
9354
9804
|
key: 0,
|
|
@@ -10132,10 +10582,11 @@ const KntSharedPlugin = {
|
|
|
10132
10582
|
app.use(ArcoVue);
|
|
10133
10583
|
}
|
|
10134
10584
|
};
|
|
10135
|
-
exports.ApiCascader = _sfc_main$
|
|
10136
|
-
exports.ApiSelect = _sfc_main$
|
|
10585
|
+
exports.ApiCascader = _sfc_main$c;
|
|
10586
|
+
exports.ApiSelect = _sfc_main$d;
|
|
10137
10587
|
exports.BasicDescription = BasicDescription;
|
|
10138
|
-
exports.
|
|
10588
|
+
exports.BasicDrawer = BasicDrawer;
|
|
10589
|
+
exports.BasicForm = _sfc_main$a;
|
|
10139
10590
|
exports.BasicImage = BasicImage;
|
|
10140
10591
|
exports.BasicLoading = _sfc_main;
|
|
10141
10592
|
exports.BasicModal = BasicModal;
|
|
@@ -10143,6 +10594,7 @@ exports.BasicReadonlyField = BasicReadonlyField;
|
|
|
10143
10594
|
exports.BasicTable = BasicTable;
|
|
10144
10595
|
exports.BasicTextEllipsis = BasicTextEllipsis;
|
|
10145
10596
|
exports.BasicUpload = BasicUpload;
|
|
10597
|
+
exports.EditCell = EditCell;
|
|
10146
10598
|
exports.KntSharedPlugin = KntSharedPlugin;
|
|
10147
10599
|
exports.VideoPreview = VideoPreview;
|
|
10148
10600
|
exports.VideoPreviewModal = VideoPreviewModal;
|
|
@@ -10228,6 +10680,8 @@ exports.urlToBase64 = urlToBase64;
|
|
|
10228
10680
|
exports.useApiRequest = useApiRequest;
|
|
10229
10681
|
exports.useDebounce = useDebounce;
|
|
10230
10682
|
exports.useDescription = useDescription;
|
|
10683
|
+
exports.useDrawer = useDrawer;
|
|
10684
|
+
exports.useDrawerInner = useDrawerInner;
|
|
10231
10685
|
exports.useForm = useForm;
|
|
10232
10686
|
exports.useImage = useImage;
|
|
10233
10687
|
exports.useLocalStorage = useLocalStorage;
|