knt-shared 1.6.9 → 1.7.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/Description/BasicDescription.vue.d.ts.map +1 -1
- package/dist/components/Form/BasicForm.vue.d.ts.map +1 -1
- package/dist/components/Form/components/ApiCascader.vue.d.ts.map +1 -1
- package/dist/components/Form/components/ApiSelect.vue.d.ts.map +1 -1
- package/dist/components/Image/BasicImage.vue.d.ts.map +1 -1
- package/dist/components/Loading/BasicLoading.vue.d.ts.map +1 -1
- package/dist/components/Loading/LoadingOverlay.vue.d.ts.map +1 -1
- package/dist/components/Loading/LoadingSpinner.vue.d.ts +16 -0
- package/dist/components/Loading/LoadingSpinner.vue.d.ts.map +1 -0
- package/dist/components/Modal/BasicModal.vue.d.ts +2 -2
- package/dist/components/Modal/BasicModal.vue.d.ts.map +1 -1
- package/dist/components/Table/BasicTable.vue.d.ts.map +1 -1
- package/dist/components/TextEllipsis/BasicTextEllipsis.vue.d.ts.map +1 -1
- package/dist/components/Upload/BasicUpload.vue.d.ts +2 -1
- package/dist/components/Upload/BasicUpload.vue.d.ts.map +1 -1
- package/dist/components/Upload/components/SortableFileItem.vue.d.ts.map +1 -1
- package/dist/components/Upload/components/VideoPreview.vue.d.ts.map +1 -1
- package/dist/components/Upload/components/VideoPreviewModal.vue.d.ts.map +1 -1
- package/dist/index.cjs.js +380 -313
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +345 -278
- package/dist/index.esm.js.map +1 -1
- package/dist/plugin.d.ts +21 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/style.css +156 -114
- package/package.json +1 -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
3
|
const vue = require("vue");
|
|
4
|
-
const
|
|
4
|
+
const ArcoVue = require("@arco-design/web-vue");
|
|
5
5
|
const configProviderInjectionKey = Symbol("ArcoConfigProvider");
|
|
6
6
|
const CLASS_PREFIX = "arco";
|
|
7
7
|
const GLOBAL_CONFIG_NAME = "$arco";
|
|
@@ -24,7 +24,7 @@ var _export_sfc$1 = (sfc, props) => {
|
|
|
24
24
|
}
|
|
25
25
|
return sfc;
|
|
26
26
|
};
|
|
27
|
-
const _sfc_main$
|
|
27
|
+
const _sfc_main$z = vue.defineComponent({
|
|
28
28
|
name: "IconExclamationCircle",
|
|
29
29
|
props: {
|
|
30
30
|
size: {
|
|
@@ -77,8 +77,8 @@ const _sfc_main$x = vue.defineComponent({
|
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
|
-
const _hoisted_1$
|
|
81
|
-
function _sfc_render$
|
|
80
|
+
const _hoisted_1$u = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
81
|
+
function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
82
82
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
83
83
|
viewBox: "0 0 48 48",
|
|
84
84
|
fill: "none",
|
|
@@ -92,9 +92,9 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
92
92
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
93
93
|
}, _cache[1] || (_cache[1] = [
|
|
94
94
|
vue.createElementVNode("path", { d: "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$
|
|
95
|
+
]), 14, _hoisted_1$u);
|
|
96
96
|
}
|
|
97
|
-
var _IconExclamationCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
97
|
+
var _IconExclamationCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$z, [["render", _sfc_render$h]]);
|
|
98
98
|
const IconExclamationCircle = Object.assign(_IconExclamationCircle, {
|
|
99
99
|
install: (app, options) => {
|
|
100
100
|
var _a;
|
|
@@ -102,7 +102,7 @@ const IconExclamationCircle = Object.assign(_IconExclamationCircle, {
|
|
|
102
102
|
app.component(iconPrefix + _IconExclamationCircle.name, _IconExclamationCircle);
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
|
-
const _sfc_main$
|
|
105
|
+
const _sfc_main$y = vue.defineComponent({
|
|
106
106
|
name: "IconPlus",
|
|
107
107
|
props: {
|
|
108
108
|
size: {
|
|
@@ -155,8 +155,8 @@ const _sfc_main$w = vue.defineComponent({
|
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
157
|
});
|
|
158
|
-
const _hoisted_1$
|
|
159
|
-
function _sfc_render$
|
|
158
|
+
const _hoisted_1$t = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
159
|
+
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
160
160
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
161
161
|
viewBox: "0 0 48 48",
|
|
162
162
|
fill: "none",
|
|
@@ -170,9 +170,9 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
170
170
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
171
171
|
}, _cache[1] || (_cache[1] = [
|
|
172
172
|
vue.createElementVNode("path", { d: "M5 24h38M24 5v38" }, null, -1)
|
|
173
|
-
]), 14, _hoisted_1$
|
|
173
|
+
]), 14, _hoisted_1$t);
|
|
174
174
|
}
|
|
175
|
-
var _IconPlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
175
|
+
var _IconPlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$y, [["render", _sfc_render$g]]);
|
|
176
176
|
const IconPlus = Object.assign(_IconPlus, {
|
|
177
177
|
install: (app, options) => {
|
|
178
178
|
var _a;
|
|
@@ -180,7 +180,7 @@ const IconPlus = Object.assign(_IconPlus, {
|
|
|
180
180
|
app.component(iconPrefix + _IconPlus.name, _IconPlus);
|
|
181
181
|
}
|
|
182
182
|
});
|
|
183
|
-
const _sfc_main$
|
|
183
|
+
const _sfc_main$x = vue.defineComponent({
|
|
184
184
|
name: "IconQuestionCircle",
|
|
185
185
|
props: {
|
|
186
186
|
size: {
|
|
@@ -233,8 +233,8 @@ const _sfc_main$v = vue.defineComponent({
|
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
235
|
});
|
|
236
|
-
const _hoisted_1$
|
|
237
|
-
function _sfc_render$
|
|
236
|
+
const _hoisted_1$s = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
237
|
+
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
238
238
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
239
239
|
viewBox: "0 0 48 48",
|
|
240
240
|
fill: "none",
|
|
@@ -249,9 +249,9 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
249
249
|
}, _cache[1] || (_cache[1] = [
|
|
250
250
|
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
251
|
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$
|
|
252
|
+
]), 14, _hoisted_1$s);
|
|
253
253
|
}
|
|
254
|
-
var _IconQuestionCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
254
|
+
var _IconQuestionCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$x, [["render", _sfc_render$f]]);
|
|
255
255
|
const IconQuestionCircle = Object.assign(_IconQuestionCircle, {
|
|
256
256
|
install: (app, options) => {
|
|
257
257
|
var _a;
|
|
@@ -259,7 +259,7 @@ const IconQuestionCircle = Object.assign(_IconQuestionCircle, {
|
|
|
259
259
|
app.component(iconPrefix + _IconQuestionCircle.name, _IconQuestionCircle);
|
|
260
260
|
}
|
|
261
261
|
});
|
|
262
|
-
const _sfc_main$
|
|
262
|
+
const _sfc_main$w = vue.defineComponent({
|
|
263
263
|
name: "IconEye",
|
|
264
264
|
props: {
|
|
265
265
|
size: {
|
|
@@ -312,8 +312,8 @@ const _sfc_main$u = vue.defineComponent({
|
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
314
|
});
|
|
315
|
-
const _hoisted_1$
|
|
316
|
-
function _sfc_render$
|
|
315
|
+
const _hoisted_1$r = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
316
|
+
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
317
317
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
318
318
|
viewBox: "0 0 48 48",
|
|
319
319
|
fill: "none",
|
|
@@ -331,9 +331,9 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
331
331
|
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
332
|
}, null, -1),
|
|
333
333
|
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$
|
|
334
|
+
]), 14, _hoisted_1$r);
|
|
335
335
|
}
|
|
336
|
-
var _IconEye = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
336
|
+
var _IconEye = /* @__PURE__ */ _export_sfc$1(_sfc_main$w, [["render", _sfc_render$e]]);
|
|
337
337
|
const IconEye = Object.assign(_IconEye, {
|
|
338
338
|
install: (app, options) => {
|
|
339
339
|
var _a;
|
|
@@ -341,7 +341,7 @@ const IconEye = Object.assign(_IconEye, {
|
|
|
341
341
|
app.component(iconPrefix + _IconEye.name, _IconEye);
|
|
342
342
|
}
|
|
343
343
|
});
|
|
344
|
-
const _sfc_main$
|
|
344
|
+
const _sfc_main$v = vue.defineComponent({
|
|
345
345
|
name: "IconMore",
|
|
346
346
|
props: {
|
|
347
347
|
size: {
|
|
@@ -394,8 +394,8 @@ const _sfc_main$t = vue.defineComponent({
|
|
|
394
394
|
};
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
|
-
const _hoisted_1$
|
|
398
|
-
function _sfc_render$
|
|
397
|
+
const _hoisted_1$q = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
398
|
+
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
399
399
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
400
400
|
viewBox: "0 0 48 48",
|
|
401
401
|
fill: "none",
|
|
@@ -414,9 +414,9 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
414
414
|
stroke: "none"
|
|
415
415
|
}, null, -1),
|
|
416
416
|
vue.createElementVNode("path", { d: "M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z" }, null, -1)
|
|
417
|
-
]), 14, _hoisted_1$
|
|
417
|
+
]), 14, _hoisted_1$q);
|
|
418
418
|
}
|
|
419
|
-
var _IconMore = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
419
|
+
var _IconMore = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["render", _sfc_render$d]]);
|
|
420
420
|
const IconMore = Object.assign(_IconMore, {
|
|
421
421
|
install: (app, options) => {
|
|
422
422
|
var _a;
|
|
@@ -424,7 +424,7 @@ const IconMore = Object.assign(_IconMore, {
|
|
|
424
424
|
app.component(iconPrefix + _IconMore.name, _IconMore);
|
|
425
425
|
}
|
|
426
426
|
});
|
|
427
|
-
const _sfc_main$
|
|
427
|
+
const _sfc_main$u = vue.defineComponent({
|
|
428
428
|
name: "IconRefresh",
|
|
429
429
|
props: {
|
|
430
430
|
size: {
|
|
@@ -477,8 +477,8 @@ const _sfc_main$s = vue.defineComponent({
|
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
479
|
});
|
|
480
|
-
const _hoisted_1$
|
|
481
|
-
function _sfc_render$
|
|
480
|
+
const _hoisted_1$p = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
481
|
+
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
482
482
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
483
483
|
viewBox: "0 0 48 48",
|
|
484
484
|
fill: "none",
|
|
@@ -492,9 +492,9 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
492
492
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
493
493
|
}, _cache[1] || (_cache[1] = [
|
|
494
494
|
vue.createElementVNode("path", { d: "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$
|
|
495
|
+
]), 14, _hoisted_1$p);
|
|
496
496
|
}
|
|
497
|
-
var _IconRefresh = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
497
|
+
var _IconRefresh = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["render", _sfc_render$c]]);
|
|
498
498
|
const IconRefresh = Object.assign(_IconRefresh, {
|
|
499
499
|
install: (app, options) => {
|
|
500
500
|
var _a;
|
|
@@ -502,7 +502,85 @@ const IconRefresh = Object.assign(_IconRefresh, {
|
|
|
502
502
|
app.component(iconPrefix + _IconRefresh.name, _IconRefresh);
|
|
503
503
|
}
|
|
504
504
|
});
|
|
505
|
-
const _sfc_main$
|
|
505
|
+
const _sfc_main$t = vue.defineComponent({
|
|
506
|
+
name: "IconSearch",
|
|
507
|
+
props: {
|
|
508
|
+
size: {
|
|
509
|
+
type: [Number, String]
|
|
510
|
+
},
|
|
511
|
+
strokeWidth: {
|
|
512
|
+
type: Number,
|
|
513
|
+
default: 4
|
|
514
|
+
},
|
|
515
|
+
strokeLinecap: {
|
|
516
|
+
type: String,
|
|
517
|
+
default: "butt",
|
|
518
|
+
validator: (value) => {
|
|
519
|
+
return ["butt", "round", "square"].includes(value);
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
strokeLinejoin: {
|
|
523
|
+
type: String,
|
|
524
|
+
default: "miter",
|
|
525
|
+
validator: (value) => {
|
|
526
|
+
return ["arcs", "bevel", "miter", "miter-clip", "round"].includes(value);
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
rotate: Number,
|
|
530
|
+
spin: Boolean
|
|
531
|
+
},
|
|
532
|
+
emits: {
|
|
533
|
+
click: (ev) => true
|
|
534
|
+
},
|
|
535
|
+
setup(props, { emit }) {
|
|
536
|
+
const prefixCls = getPrefixCls("icon");
|
|
537
|
+
const cls = vue.computed(() => [prefixCls, `${prefixCls}-search`, { [`${prefixCls}-spin`]: props.spin }]);
|
|
538
|
+
const innerStyle = vue.computed(() => {
|
|
539
|
+
const styles = {};
|
|
540
|
+
if (props.size) {
|
|
541
|
+
styles.fontSize = isNumber$1(props.size) ? `${props.size}px` : props.size;
|
|
542
|
+
}
|
|
543
|
+
if (props.rotate) {
|
|
544
|
+
styles.transform = `rotate(${props.rotate}deg)`;
|
|
545
|
+
}
|
|
546
|
+
return styles;
|
|
547
|
+
});
|
|
548
|
+
const onClick = (ev) => {
|
|
549
|
+
emit("click", ev);
|
|
550
|
+
};
|
|
551
|
+
return {
|
|
552
|
+
cls,
|
|
553
|
+
innerStyle,
|
|
554
|
+
onClick
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
});
|
|
558
|
+
const _hoisted_1$o = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
559
|
+
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
560
|
+
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
561
|
+
viewBox: "0 0 48 48",
|
|
562
|
+
fill: "none",
|
|
563
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
564
|
+
stroke: "currentColor",
|
|
565
|
+
class: vue.normalizeClass(_ctx.cls),
|
|
566
|
+
style: vue.normalizeStyle(_ctx.innerStyle),
|
|
567
|
+
"stroke-width": _ctx.strokeWidth,
|
|
568
|
+
"stroke-linecap": _ctx.strokeLinecap,
|
|
569
|
+
"stroke-linejoin": _ctx.strokeLinejoin,
|
|
570
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
571
|
+
}, _cache[1] || (_cache[1] = [
|
|
572
|
+
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$o);
|
|
574
|
+
}
|
|
575
|
+
var _IconSearch = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$b]]);
|
|
576
|
+
const IconSearch = Object.assign(_IconSearch, {
|
|
577
|
+
install: (app, options) => {
|
|
578
|
+
var _a;
|
|
579
|
+
const iconPrefix = (_a = options == null ? void 0 : options.iconPrefix) != null ? _a : "";
|
|
580
|
+
app.component(iconPrefix + _IconSearch.name, _IconSearch);
|
|
581
|
+
}
|
|
582
|
+
});
|
|
583
|
+
const _sfc_main$s = vue.defineComponent({
|
|
506
584
|
name: "IconSettings",
|
|
507
585
|
props: {
|
|
508
586
|
size: {
|
|
@@ -555,7 +633,7 @@ const _sfc_main$r = vue.defineComponent({
|
|
|
555
633
|
};
|
|
556
634
|
}
|
|
557
635
|
});
|
|
558
|
-
const _hoisted_1$
|
|
636
|
+
const _hoisted_1$n = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
559
637
|
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
560
638
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
561
639
|
viewBox: "0 0 48 48",
|
|
@@ -571,9 +649,9 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
571
649
|
}, _cache[1] || (_cache[1] = [
|
|
572
650
|
vue.createElementVNode("path", { d: "M18.797 6.732A1 1 0 0 1 19.76 6h8.48a1 1 0 0 1 .964.732l1.285 4.628a1 1 0 0 0 1.213.7l4.651-1.2a1 1 0 0 1 1.116.468l4.24 7.344a1 1 0 0 1-.153 1.2L38.193 23.3a1 1 0 0 0 0 1.402l3.364 3.427a1 1 0 0 1 .153 1.2l-4.24 7.344a1 1 0 0 1-1.116.468l-4.65-1.2a1 1 0 0 0-1.214.7l-1.285 4.628a1 1 0 0 1-.964.732h-8.48a1 1 0 0 1-.963-.732L17.51 36.64a1 1 0 0 0-1.213-.7l-4.65 1.2a1 1 0 0 1-1.116-.468l-4.24-7.344a1 1 0 0 1 .153-1.2L9.809 24.7a1 1 0 0 0 0-1.402l-3.364-3.427a1 1 0 0 1-.153-1.2l4.24-7.344a1 1 0 0 1 1.116-.468l4.65 1.2a1 1 0 0 0 1.213-.7l1.286-4.628Z" }, null, -1),
|
|
573
651
|
vue.createElementVNode("path", { d: "M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z" }, null, -1)
|
|
574
|
-
]), 14, _hoisted_1$
|
|
652
|
+
]), 14, _hoisted_1$n);
|
|
575
653
|
}
|
|
576
|
-
var _IconSettings = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
654
|
+
var _IconSettings = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_render$a]]);
|
|
577
655
|
const IconSettings = Object.assign(_IconSettings, {
|
|
578
656
|
install: (app, options) => {
|
|
579
657
|
var _a;
|
|
@@ -581,7 +659,7 @@ const IconSettings = Object.assign(_IconSettings, {
|
|
|
581
659
|
app.component(iconPrefix + _IconSettings.name, _IconSettings);
|
|
582
660
|
}
|
|
583
661
|
});
|
|
584
|
-
const _sfc_main$
|
|
662
|
+
const _sfc_main$r = vue.defineComponent({
|
|
585
663
|
name: "IconUpload",
|
|
586
664
|
props: {
|
|
587
665
|
size: {
|
|
@@ -634,7 +712,7 @@ const _sfc_main$q = vue.defineComponent({
|
|
|
634
712
|
};
|
|
635
713
|
}
|
|
636
714
|
});
|
|
637
|
-
const _hoisted_1$
|
|
715
|
+
const _hoisted_1$m = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
638
716
|
function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
639
717
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
640
718
|
viewBox: "0 0 48 48",
|
|
@@ -649,9 +727,9 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
649
727
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
650
728
|
}, _cache[1] || (_cache[1] = [
|
|
651
729
|
vue.createElementVNode("path", { d: "M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6" }, null, -1)
|
|
652
|
-
]), 14, _hoisted_1$
|
|
730
|
+
]), 14, _hoisted_1$m);
|
|
653
731
|
}
|
|
654
|
-
var _IconUpload = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
732
|
+
var _IconUpload = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _sfc_render$9]]);
|
|
655
733
|
const IconUpload = Object.assign(_IconUpload, {
|
|
656
734
|
install: (app, options) => {
|
|
657
735
|
var _a;
|
|
@@ -659,7 +737,7 @@ const IconUpload = Object.assign(_IconUpload, {
|
|
|
659
737
|
app.component(iconPrefix + _IconUpload.name, _IconUpload);
|
|
660
738
|
}
|
|
661
739
|
});
|
|
662
|
-
const _sfc_main$
|
|
740
|
+
const _sfc_main$q = vue.defineComponent({
|
|
663
741
|
name: "IconDelete",
|
|
664
742
|
props: {
|
|
665
743
|
size: {
|
|
@@ -712,7 +790,7 @@ const _sfc_main$p = vue.defineComponent({
|
|
|
712
790
|
};
|
|
713
791
|
}
|
|
714
792
|
});
|
|
715
|
-
const _hoisted_1$
|
|
793
|
+
const _hoisted_1$l = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
716
794
|
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
717
795
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
718
796
|
viewBox: "0 0 48 48",
|
|
@@ -727,9 +805,9 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
727
805
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
728
806
|
}, _cache[1] || (_cache[1] = [
|
|
729
807
|
vue.createElementVNode("path", { d: "M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15" }, null, -1)
|
|
730
|
-
]), 14, _hoisted_1$
|
|
808
|
+
]), 14, _hoisted_1$l);
|
|
731
809
|
}
|
|
732
|
-
var _IconDelete = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
810
|
+
var _IconDelete = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["render", _sfc_render$8]]);
|
|
733
811
|
const IconDelete = Object.assign(_IconDelete, {
|
|
734
812
|
install: (app, options) => {
|
|
735
813
|
var _a;
|
|
@@ -737,7 +815,7 @@ const IconDelete = Object.assign(_IconDelete, {
|
|
|
737
815
|
app.component(iconPrefix + _IconDelete.name, _IconDelete);
|
|
738
816
|
}
|
|
739
817
|
});
|
|
740
|
-
const _sfc_main$
|
|
818
|
+
const _sfc_main$p = vue.defineComponent({
|
|
741
819
|
name: "IconLineHeight",
|
|
742
820
|
props: {
|
|
743
821
|
size: {
|
|
@@ -790,7 +868,7 @@ const _sfc_main$o = vue.defineComponent({
|
|
|
790
868
|
};
|
|
791
869
|
}
|
|
792
870
|
});
|
|
793
|
-
const _hoisted_1$
|
|
871
|
+
const _hoisted_1$k = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
794
872
|
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
795
873
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
796
874
|
viewBox: "0 0 48 48",
|
|
@@ -811,9 +889,9 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
811
889
|
stroke: "none"
|
|
812
890
|
}, null, -1),
|
|
813
891
|
vue.createElementVNode("path", { d: "M39 13h2l-2-3.5-2 3.5h2Zm0 0v22m0 0h2l-2 3.5-2-3.5h2Z" }, null, -1)
|
|
814
|
-
]), 14, _hoisted_1$
|
|
892
|
+
]), 14, _hoisted_1$k);
|
|
815
893
|
}
|
|
816
|
-
var _IconLineHeight = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
894
|
+
var _IconLineHeight = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["render", _sfc_render$7]]);
|
|
817
895
|
const IconLineHeight = Object.assign(_IconLineHeight, {
|
|
818
896
|
install: (app, options) => {
|
|
819
897
|
var _a;
|
|
@@ -821,7 +899,7 @@ const IconLineHeight = Object.assign(_IconLineHeight, {
|
|
|
821
899
|
app.component(iconPrefix + _IconLineHeight.name, _IconLineHeight);
|
|
822
900
|
}
|
|
823
901
|
});
|
|
824
|
-
const _sfc_main$
|
|
902
|
+
const _sfc_main$o = vue.defineComponent({
|
|
825
903
|
name: "IconFullscreenExit",
|
|
826
904
|
props: {
|
|
827
905
|
size: {
|
|
@@ -874,7 +952,7 @@ const _sfc_main$n = vue.defineComponent({
|
|
|
874
952
|
};
|
|
875
953
|
}
|
|
876
954
|
});
|
|
877
|
-
const _hoisted_1$
|
|
955
|
+
const _hoisted_1$j = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
878
956
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
879
957
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
880
958
|
viewBox: "0 0 48 48",
|
|
@@ -889,9 +967,9 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
889
967
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
890
968
|
}, _cache[1] || (_cache[1] = [
|
|
891
969
|
vue.createElementVNode("path", { d: "M35 6v8a1 1 0 0 0 1 1h8M13 6v8a1 1 0 0 1-1 1H4m31 27v-8a1 1 0 0 1 1-1h8m-31 9v-8a1 1 0 0 0-1-1H4" }, null, -1)
|
|
892
|
-
]), 14, _hoisted_1$
|
|
970
|
+
]), 14, _hoisted_1$j);
|
|
893
971
|
}
|
|
894
|
-
var _IconFullscreenExit = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
972
|
+
var _IconFullscreenExit = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_render$6]]);
|
|
895
973
|
const IconFullscreenExit = Object.assign(_IconFullscreenExit, {
|
|
896
974
|
install: (app, options) => {
|
|
897
975
|
var _a;
|
|
@@ -899,7 +977,7 @@ const IconFullscreenExit = Object.assign(_IconFullscreenExit, {
|
|
|
899
977
|
app.component(iconPrefix + _IconFullscreenExit.name, _IconFullscreenExit);
|
|
900
978
|
}
|
|
901
979
|
});
|
|
902
|
-
const _sfc_main$
|
|
980
|
+
const _sfc_main$n = vue.defineComponent({
|
|
903
981
|
name: "IconFullscreen",
|
|
904
982
|
props: {
|
|
905
983
|
size: {
|
|
@@ -952,7 +1030,7 @@ const _sfc_main$m = vue.defineComponent({
|
|
|
952
1030
|
};
|
|
953
1031
|
}
|
|
954
1032
|
});
|
|
955
|
-
const _hoisted_1$
|
|
1033
|
+
const _hoisted_1$i = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
956
1034
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
957
1035
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
958
1036
|
viewBox: "0 0 48 48",
|
|
@@ -967,9 +1045,9 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
967
1045
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
968
1046
|
}, _cache[1] || (_cache[1] = [
|
|
969
1047
|
vue.createElementVNode("path", { d: "M42 17V9a1 1 0 0 0-1-1h-8M6 17V9a1 1 0 0 1 1-1h8m27 23v8a1 1 0 0 1-1 1h-8M6 31v8a1 1 0 0 0 1 1h8" }, null, -1)
|
|
970
|
-
]), 14, _hoisted_1$
|
|
1048
|
+
]), 14, _hoisted_1$i);
|
|
971
1049
|
}
|
|
972
|
-
var _IconFullscreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1050
|
+
var _IconFullscreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$5]]);
|
|
973
1051
|
const IconFullscreen = Object.assign(_IconFullscreen, {
|
|
974
1052
|
install: (app, options) => {
|
|
975
1053
|
var _a;
|
|
@@ -977,7 +1055,7 @@ const IconFullscreen = Object.assign(_IconFullscreen, {
|
|
|
977
1055
|
app.component(iconPrefix + _IconFullscreen.name, _IconFullscreen);
|
|
978
1056
|
}
|
|
979
1057
|
});
|
|
980
|
-
const _sfc_main$
|
|
1058
|
+
const _sfc_main$m = vue.defineComponent({
|
|
981
1059
|
name: "IconMute",
|
|
982
1060
|
props: {
|
|
983
1061
|
size: {
|
|
@@ -1030,7 +1108,7 @@ const _sfc_main$l = vue.defineComponent({
|
|
|
1030
1108
|
};
|
|
1031
1109
|
}
|
|
1032
1110
|
});
|
|
1033
|
-
const _hoisted_1$
|
|
1111
|
+
const _hoisted_1$h = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1034
1112
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1035
1113
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
1036
1114
|
viewBox: "0 0 48 48",
|
|
@@ -1045,9 +1123,9 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1045
1123
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
1046
1124
|
}, _cache[1] || (_cache[1] = [
|
|
1047
1125
|
vue.createElementVNode("path", { d: "m19 11.5 4.833-4.35a.1.1 0 0 1 .167.075V17m-14-1H7.1a.1.1 0 0 0-.1.1v15.8a.1.1 0 0 0 .1.1H14l9.833 8.85a.1.1 0 0 0 .167-.075V31m6.071-14.071C32.535 19.393 34 23 32.799 26m2.929-14.728C41.508 17.052 42.5 25 39.123 32M6.5 6.5l35 35" }, null, -1)
|
|
1048
|
-
]), 14, _hoisted_1$
|
|
1126
|
+
]), 14, _hoisted_1$h);
|
|
1049
1127
|
}
|
|
1050
|
-
var _IconMute = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1128
|
+
var _IconMute = /* @__PURE__ */ _export_sfc$1(_sfc_main$m, [["render", _sfc_render$4]]);
|
|
1051
1129
|
const IconMute = Object.assign(_IconMute, {
|
|
1052
1130
|
install: (app, options) => {
|
|
1053
1131
|
var _a;
|
|
@@ -1055,7 +1133,7 @@ const IconMute = Object.assign(_IconMute, {
|
|
|
1055
1133
|
app.component(iconPrefix + _IconMute.name, _IconMute);
|
|
1056
1134
|
}
|
|
1057
1135
|
});
|
|
1058
|
-
const _sfc_main$
|
|
1136
|
+
const _sfc_main$l = vue.defineComponent({
|
|
1059
1137
|
name: "IconPause",
|
|
1060
1138
|
props: {
|
|
1061
1139
|
size: {
|
|
@@ -1108,7 +1186,7 @@ const _sfc_main$k = vue.defineComponent({
|
|
|
1108
1186
|
};
|
|
1109
1187
|
}
|
|
1110
1188
|
});
|
|
1111
|
-
const _hoisted_1$
|
|
1189
|
+
const _hoisted_1$g = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1112
1190
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1113
1191
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
1114
1192
|
viewBox: "0 0 48 48",
|
|
@@ -1128,9 +1206,9 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1128
1206
|
stroke: "none",
|
|
1129
1207
|
d: "M14 12h4v24h-4zM30 12h4v24h-4z"
|
|
1130
1208
|
}, null, -1)
|
|
1131
|
-
]), 14, _hoisted_1$
|
|
1209
|
+
]), 14, _hoisted_1$g);
|
|
1132
1210
|
}
|
|
1133
|
-
var _IconPause = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1211
|
+
var _IconPause = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["render", _sfc_render$3]]);
|
|
1134
1212
|
const IconPause = Object.assign(_IconPause, {
|
|
1135
1213
|
install: (app, options) => {
|
|
1136
1214
|
var _a;
|
|
@@ -1138,7 +1216,7 @@ const IconPause = Object.assign(_IconPause, {
|
|
|
1138
1216
|
app.component(iconPrefix + _IconPause.name, _IconPause);
|
|
1139
1217
|
}
|
|
1140
1218
|
});
|
|
1141
|
-
const _sfc_main$
|
|
1219
|
+
const _sfc_main$k = vue.defineComponent({
|
|
1142
1220
|
name: "IconPlayArrow",
|
|
1143
1221
|
props: {
|
|
1144
1222
|
size: {
|
|
@@ -1191,7 +1269,7 @@ const _sfc_main$j = vue.defineComponent({
|
|
|
1191
1269
|
};
|
|
1192
1270
|
}
|
|
1193
1271
|
});
|
|
1194
|
-
const _hoisted_1$
|
|
1272
|
+
const _hoisted_1$f = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1195
1273
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1196
1274
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
1197
1275
|
viewBox: "0 0 48 48",
|
|
@@ -1206,9 +1284,9 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1206
1284
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
1207
1285
|
}, _cache[1] || (_cache[1] = [
|
|
1208
1286
|
vue.createElementVNode("path", { d: "M12.533 7.965A1 1 0 0 0 11 8.81v30.377a1 1 0 0 0 1.533.846L36.656 24.84a1 1 0 0 0 0-1.692L12.533 7.965Z" }, null, -1)
|
|
1209
|
-
]), 14, _hoisted_1$
|
|
1287
|
+
]), 14, _hoisted_1$f);
|
|
1210
1288
|
}
|
|
1211
|
-
var _IconPlayArrow = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1289
|
+
var _IconPlayArrow = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_render$2]]);
|
|
1212
1290
|
const IconPlayArrow = Object.assign(_IconPlayArrow, {
|
|
1213
1291
|
install: (app, options) => {
|
|
1214
1292
|
var _a;
|
|
@@ -1216,7 +1294,7 @@ const IconPlayArrow = Object.assign(_IconPlayArrow, {
|
|
|
1216
1294
|
app.component(iconPrefix + _IconPlayArrow.name, _IconPlayArrow);
|
|
1217
1295
|
}
|
|
1218
1296
|
});
|
|
1219
|
-
const _sfc_main$
|
|
1297
|
+
const _sfc_main$j = vue.defineComponent({
|
|
1220
1298
|
name: "IconSound",
|
|
1221
1299
|
props: {
|
|
1222
1300
|
size: {
|
|
@@ -1269,7 +1347,7 @@ const _sfc_main$i = vue.defineComponent({
|
|
|
1269
1347
|
};
|
|
1270
1348
|
}
|
|
1271
1349
|
});
|
|
1272
|
-
const _hoisted_1$
|
|
1350
|
+
const _hoisted_1$e = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1273
1351
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1274
1352
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
1275
1353
|
viewBox: "0 0 48 48",
|
|
@@ -1285,9 +1363,9 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1285
1363
|
}, _cache[1] || (_cache[1] = [
|
|
1286
1364
|
vue.createElementVNode("path", { d: "m14 16 10-9v34l-10-9H6V16h8Z" }, null, -1),
|
|
1287
1365
|
vue.createElementVNode("path", { d: "M31.071 16.929c3.905 3.905 3.905 10.237 0 14.142M36.727 11.272c7.03 7.03 7.03 18.426 0 25.456" }, null, -1)
|
|
1288
|
-
]), 14, _hoisted_1$
|
|
1366
|
+
]), 14, _hoisted_1$e);
|
|
1289
1367
|
}
|
|
1290
|
-
var _IconSound = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1368
|
+
var _IconSound = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_render$1]]);
|
|
1291
1369
|
const IconSound = Object.assign(_IconSound, {
|
|
1292
1370
|
install: (app, options) => {
|
|
1293
1371
|
var _a;
|
|
@@ -1295,7 +1373,7 @@ const IconSound = Object.assign(_IconSound, {
|
|
|
1295
1373
|
app.component(iconPrefix + _IconSound.name, _IconSound);
|
|
1296
1374
|
}
|
|
1297
1375
|
});
|
|
1298
|
-
const _sfc_main$
|
|
1376
|
+
const _sfc_main$i = vue.defineComponent({
|
|
1299
1377
|
name: "IconLoading",
|
|
1300
1378
|
props: {
|
|
1301
1379
|
size: {
|
|
@@ -1348,7 +1426,7 @@ const _sfc_main$h = vue.defineComponent({
|
|
|
1348
1426
|
};
|
|
1349
1427
|
}
|
|
1350
1428
|
});
|
|
1351
|
-
const _hoisted_1$
|
|
1429
|
+
const _hoisted_1$d = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1352
1430
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1353
1431
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
1354
1432
|
viewBox: "0 0 48 48",
|
|
@@ -1363,9 +1441,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1363
1441
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
1364
1442
|
}, _cache[1] || (_cache[1] = [
|
|
1365
1443
|
vue.createElementVNode("path", { d: "M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6" }, null, -1)
|
|
1366
|
-
]), 14, _hoisted_1$
|
|
1444
|
+
]), 14, _hoisted_1$d);
|
|
1367
1445
|
}
|
|
1368
|
-
var _IconLoading = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1446
|
+
var _IconLoading = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["render", _sfc_render]]);
|
|
1369
1447
|
const IconLoading = Object.assign(_IconLoading, {
|
|
1370
1448
|
install: (app, options) => {
|
|
1371
1449
|
var _a;
|
|
@@ -1373,9 +1451,9 @@ const IconLoading = Object.assign(_IconLoading, {
|
|
|
1373
1451
|
app.component(iconPrefix + _IconLoading.name, _IconLoading);
|
|
1374
1452
|
}
|
|
1375
1453
|
});
|
|
1376
|
-
const _hoisted_1$
|
|
1377
|
-
const _hoisted_2$
|
|
1378
|
-
const _hoisted_3$
|
|
1454
|
+
const _hoisted_1$c = ["draggable"];
|
|
1455
|
+
const _hoisted_2$9 = ["src", "alt"];
|
|
1456
|
+
const _hoisted_3$7 = {
|
|
1379
1457
|
key: 1,
|
|
1380
1458
|
class: "upload-progress"
|
|
1381
1459
|
};
|
|
@@ -1388,7 +1466,7 @@ const _hoisted_6$4 = {
|
|
|
1388
1466
|
key: 3,
|
|
1389
1467
|
class: "error-tip"
|
|
1390
1468
|
};
|
|
1391
|
-
const _sfc_main$
|
|
1469
|
+
const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
1392
1470
|
...{
|
|
1393
1471
|
name: "SortableFileItem"
|
|
1394
1472
|
},
|
|
@@ -1429,7 +1507,6 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
1429
1507
|
}
|
|
1430
1508
|
};
|
|
1431
1509
|
return (_ctx, _cache) => {
|
|
1432
|
-
const _component_a_progress = vue.resolveComponent("a-progress");
|
|
1433
1510
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
1434
1511
|
class: vue.normalizeClass(["sortable-file-item", {
|
|
1435
1512
|
"is-dragging": __props.isDragging,
|
|
@@ -1452,9 +1529,9 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
1452
1529
|
src: __props.file.url,
|
|
1453
1530
|
alt: __props.file.name,
|
|
1454
1531
|
class: "file-image"
|
|
1455
|
-
}, null, 8, _hoisted_2$
|
|
1456
|
-
__props.file.status === "uploading" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
1457
|
-
vue.createVNode(
|
|
1532
|
+
}, null, 8, _hoisted_2$9)) : vue.createCommentVNode("", true),
|
|
1533
|
+
__props.file.status === "uploading" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$7, [
|
|
1534
|
+
vue.createVNode(vue.unref(ArcoVue.Progress), {
|
|
1458
1535
|
percent: __props.file.percent || 0,
|
|
1459
1536
|
size: "mini"
|
|
1460
1537
|
}, null, 8, ["percent"])
|
|
@@ -1475,7 +1552,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
1475
1552
|
__props.file.status === "error" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$4, [
|
|
1476
1553
|
vue.createVNode(vue.unref(IconExclamationCircle))
|
|
1477
1554
|
])) : vue.createCommentVNode("", true)
|
|
1478
|
-
], 46, _hoisted_1$
|
|
1555
|
+
], 46, _hoisted_1$c);
|
|
1479
1556
|
};
|
|
1480
1557
|
}
|
|
1481
1558
|
});
|
|
@@ -1486,9 +1563,9 @@ const _export_sfc = (sfc, props) => {
|
|
|
1486
1563
|
}
|
|
1487
1564
|
return target;
|
|
1488
1565
|
};
|
|
1489
|
-
const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1490
|
-
const _hoisted_1$
|
|
1491
|
-
const _sfc_main$
|
|
1566
|
+
const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-17fb6dd9"]]);
|
|
1567
|
+
const _hoisted_1$b = { class: "sortable-file-list" };
|
|
1568
|
+
const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
1492
1569
|
...{
|
|
1493
1570
|
name: "SortableFileList"
|
|
1494
1571
|
},
|
|
@@ -1552,7 +1629,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
1552
1629
|
emit("remove", file);
|
|
1553
1630
|
};
|
|
1554
1631
|
return (_ctx, _cache) => {
|
|
1555
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
1632
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [
|
|
1556
1633
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.fileList, (file, index) => {
|
|
1557
1634
|
return vue.openBlock(), vue.createBlock(SortableFileItem, {
|
|
1558
1635
|
key: file.uid,
|
|
@@ -1573,13 +1650,13 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
1573
1650
|
};
|
|
1574
1651
|
}
|
|
1575
1652
|
});
|
|
1576
|
-
const SortableFileList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1577
|
-
const _hoisted_1$
|
|
1578
|
-
const _hoisted_2$
|
|
1653
|
+
const SortableFileList = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-1ede8f45"]]);
|
|
1654
|
+
const _hoisted_1$a = ["src", "autoplay", "loop", "muted", "preload"];
|
|
1655
|
+
const _hoisted_2$8 = {
|
|
1579
1656
|
key: 0,
|
|
1580
1657
|
class: "play-overlay"
|
|
1581
1658
|
};
|
|
1582
|
-
const _hoisted_3$
|
|
1659
|
+
const _hoisted_3$6 = { class: "play-button" };
|
|
1583
1660
|
const _hoisted_4$4 = {
|
|
1584
1661
|
key: 1,
|
|
1585
1662
|
class: "loading-overlay"
|
|
@@ -1591,7 +1668,7 @@ const _hoisted_8$1 = { class: "volume-slider-container" };
|
|
|
1591
1668
|
const _hoisted_9 = { class: "time-display" };
|
|
1592
1669
|
const _hoisted_10 = { class: "controls-right" };
|
|
1593
1670
|
const _hoisted_11 = { class: "control-button" };
|
|
1594
|
-
const _sfc_main$
|
|
1671
|
+
const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
1595
1672
|
...{
|
|
1596
1673
|
name: "VideoPreview"
|
|
1597
1674
|
},
|
|
@@ -1787,9 +1864,6 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
1787
1864
|
});
|
|
1788
1865
|
return (_ctx, _cache) => {
|
|
1789
1866
|
var _a2, _b, _c, _d;
|
|
1790
|
-
const _component_a_spin = vue.resolveComponent("a-spin");
|
|
1791
|
-
const _component_a_doption = vue.resolveComponent("a-doption");
|
|
1792
|
-
const _component_a_dropdown = vue.resolveComponent("a-dropdown");
|
|
1793
1867
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
1794
1868
|
class: vue.normalizeClass(["video-preview", { fullscreen: isFullscreen.value }])
|
|
1795
1869
|
}, [
|
|
@@ -1811,14 +1885,14 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
1811
1885
|
onPause: _cache[1] || (_cache[1] = ($event) => isPlaying.value = false),
|
|
1812
1886
|
onEnded: handleEnded,
|
|
1813
1887
|
onVolumechange: handleVolumeChange
|
|
1814
|
-
}, null, 40, _hoisted_1$
|
|
1815
|
-
!isPlaying.value && !isLoading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
1816
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
1888
|
+
}, null, 40, _hoisted_1$a),
|
|
1889
|
+
!isPlaying.value && !isLoading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$8, [
|
|
1890
|
+
vue.createElementVNode("div", _hoisted_3$6, [
|
|
1817
1891
|
vue.createVNode(vue.unref(IconPlayArrow), { size: 48 })
|
|
1818
1892
|
])
|
|
1819
1893
|
])) : vue.createCommentVNode("", true),
|
|
1820
1894
|
isLoading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$4, [
|
|
1821
|
-
vue.createVNode(
|
|
1895
|
+
vue.createVNode(vue.unref(ArcoVue.Spin), { size: 48 })
|
|
1822
1896
|
])) : vue.createCommentVNode("", true)
|
|
1823
1897
|
]),
|
|
1824
1898
|
((_d = __props.playerOptions) == null ? void 0 : _d.controls) !== false ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -1901,10 +1975,10 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
1901
1975
|
vue.createElementVNode("span", _hoisted_9, vue.toDisplayString(formatTime(currentTime.value)) + " / " + vue.toDisplayString(formatTime(duration.value)), 1)
|
|
1902
1976
|
]),
|
|
1903
1977
|
vue.createElementVNode("div", _hoisted_10, [
|
|
1904
|
-
vue.createVNode(
|
|
1978
|
+
vue.createVNode(vue.unref(ArcoVue.Dropdown), { "popup-max-height": false }, {
|
|
1905
1979
|
content: vue.withCtx(() => [
|
|
1906
1980
|
(vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(playbackRates, (rate) => {
|
|
1907
|
-
return vue.createVNode(
|
|
1981
|
+
return vue.createVNode(vue.unref(ArcoVue.Doption), {
|
|
1908
1982
|
key: rate,
|
|
1909
1983
|
value: rate,
|
|
1910
1984
|
onClick: ($event) => setPlaybackRate(rate)
|
|
@@ -1940,11 +2014,11 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
1940
2014
|
};
|
|
1941
2015
|
}
|
|
1942
2016
|
});
|
|
1943
|
-
const VideoPreview = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1944
|
-
const _hoisted_1$
|
|
1945
|
-
const _hoisted_2$
|
|
1946
|
-
const _hoisted_3$
|
|
1947
|
-
const _sfc_main$
|
|
2017
|
+
const VideoPreview = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-b982f870"]]);
|
|
2018
|
+
const _hoisted_1$9 = { class: "video-modal-title" };
|
|
2019
|
+
const _hoisted_2$7 = { class: "file-name" };
|
|
2020
|
+
const _hoisted_3$5 = { class: "video-modal-content" };
|
|
2021
|
+
const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
1948
2022
|
...{
|
|
1949
2023
|
name: "VideoPreviewModal"
|
|
1950
2024
|
},
|
|
@@ -1983,8 +2057,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
1983
2057
|
}
|
|
1984
2058
|
);
|
|
1985
2059
|
return (_ctx, _cache) => {
|
|
1986
|
-
|
|
1987
|
-
return vue.openBlock(), vue.createBlock(_component_a_modal, {
|
|
2060
|
+
return vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Modal), {
|
|
1988
2061
|
visible: __props.visible,
|
|
1989
2062
|
footer: false,
|
|
1990
2063
|
simple: true,
|
|
@@ -1995,12 +2068,12 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
1995
2068
|
onCancel: handleClose
|
|
1996
2069
|
}, {
|
|
1997
2070
|
title: vue.withCtx(() => [
|
|
1998
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
1999
|
-
vue.createElementVNode("span", _hoisted_2$
|
|
2071
|
+
vue.createElementVNode("div", _hoisted_1$9, [
|
|
2072
|
+
vue.createElementVNode("span", _hoisted_2$7, vue.toDisplayString(__props.fileName || "视频预览"), 1)
|
|
2000
2073
|
])
|
|
2001
2074
|
]),
|
|
2002
2075
|
default: vue.withCtx(() => [
|
|
2003
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
2076
|
+
vue.createElementVNode("div", _hoisted_3$5, [
|
|
2004
2077
|
__props.videoUrl ? (vue.openBlock(), vue.createBlock(VideoPreview, {
|
|
2005
2078
|
key: 0,
|
|
2006
2079
|
"video-url": __props.videoUrl,
|
|
@@ -2016,13 +2089,13 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
2016
2089
|
};
|
|
2017
2090
|
}
|
|
2018
2091
|
});
|
|
2019
|
-
const VideoPreviewModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2020
|
-
const _hoisted_1$
|
|
2021
|
-
const _hoisted_2$
|
|
2092
|
+
const VideoPreviewModal = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-cac8e63e"]]);
|
|
2093
|
+
const _hoisted_1$8 = { class: "basic-upload" };
|
|
2094
|
+
const _hoisted_2$6 = {
|
|
2022
2095
|
key: 0,
|
|
2023
2096
|
class: "upload-empty-state"
|
|
2024
2097
|
};
|
|
2025
|
-
const _hoisted_3$
|
|
2098
|
+
const _hoisted_3$4 = {
|
|
2026
2099
|
key: 0,
|
|
2027
2100
|
class: "upload-text"
|
|
2028
2101
|
};
|
|
@@ -2043,7 +2116,7 @@ const _hoisted_8 = {
|
|
|
2043
2116
|
key: 5,
|
|
2044
2117
|
class: "inline-video-preview"
|
|
2045
2118
|
};
|
|
2046
|
-
const _sfc_main$
|
|
2119
|
+
const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
2047
2120
|
...{
|
|
2048
2121
|
name: "BasicUpload",
|
|
2049
2122
|
inheritAttrs: false
|
|
@@ -2104,7 +2177,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
2104
2177
|
emits: ["register", "update:modelValue", "change", "success", "handleSuccess", "error", "handlError", "progress", "remove", "preview", "exceed", "sortChange"],
|
|
2105
2178
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
2106
2179
|
vue.useCssVars((_ctx) => ({
|
|
2107
|
-
"
|
|
2180
|
+
"v8d4c92d8": cardSizeValue.value
|
|
2108
2181
|
}));
|
|
2109
2182
|
const props = __props;
|
|
2110
2183
|
const emit = __emit;
|
|
@@ -2179,7 +2252,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
2179
2252
|
if (!propsData.maxSize) return true;
|
|
2180
2253
|
const maxSizeInBytes = propsData.maxSize * 1024 * 1024;
|
|
2181
2254
|
if (file.size > maxSizeInBytes) {
|
|
2182
|
-
|
|
2255
|
+
ArcoVue.Message.error(`文件大小不能超过 ${propsData.maxSize}MB`);
|
|
2183
2256
|
return false;
|
|
2184
2257
|
}
|
|
2185
2258
|
return true;
|
|
@@ -2202,7 +2275,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
2202
2275
|
return fileMimeType === type;
|
|
2203
2276
|
});
|
|
2204
2277
|
if (!isValid) {
|
|
2205
|
-
|
|
2278
|
+
ArcoVue.Message.error(`不支持的文件类型: ${file.name}`);
|
|
2206
2279
|
return false;
|
|
2207
2280
|
}
|
|
2208
2281
|
return true;
|
|
@@ -2216,7 +2289,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
2216
2289
|
return false;
|
|
2217
2290
|
}
|
|
2218
2291
|
if (propsData.maxCount && fileListRef.value.length >= propsData.maxCount) {
|
|
2219
|
-
|
|
2292
|
+
ArcoVue.Message.error(`最多只能上传 ${propsData.maxCount} 个文件`);
|
|
2220
2293
|
emit("exceed", [file], fileListRef.value);
|
|
2221
2294
|
return false;
|
|
2222
2295
|
}
|
|
@@ -2280,7 +2353,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
2280
2353
|
const { fileItem, onProgress, onSuccess, onError } = options;
|
|
2281
2354
|
if (!propsData.action) {
|
|
2282
2355
|
if (!hasShownActionError.value) {
|
|
2283
|
-
|
|
2356
|
+
ArcoVue.Message.error("请配置上传地址 action");
|
|
2284
2357
|
hasShownActionError.value = true;
|
|
2285
2358
|
setTimeout(() => {
|
|
2286
2359
|
hasShownActionError.value = false;
|
|
@@ -2315,7 +2388,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
2315
2388
|
if (code !== 200) {
|
|
2316
2389
|
const errorMsg = message ? `上传失败: ${message}` : "上传失败";
|
|
2317
2390
|
onError(new Error(errorMsg));
|
|
2318
|
-
|
|
2391
|
+
ArcoVue.Message.error(errorMsg);
|
|
2319
2392
|
return;
|
|
2320
2393
|
}
|
|
2321
2394
|
const extractedUrl = extractUrlFromResponse(response);
|
|
@@ -2323,14 +2396,14 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
2323
2396
|
if (!extractedUrl) {
|
|
2324
2397
|
logger.warn("响应中未找到 URL 字段,可能导致上传状态异常");
|
|
2325
2398
|
}
|
|
2326
|
-
|
|
2399
|
+
ArcoVue.Message.success(`${fileItem.name} 上传成功`);
|
|
2327
2400
|
onSuccess(normalizedResponse);
|
|
2328
2401
|
} catch (error) {
|
|
2329
2402
|
onSuccess({ data: xhr.responseText });
|
|
2330
2403
|
}
|
|
2331
2404
|
} else {
|
|
2332
2405
|
const errorMsg = `上传失败: HTTP ${xhr.status}`;
|
|
2333
|
-
|
|
2406
|
+
ArcoVue.Message.error(errorMsg);
|
|
2334
2407
|
onError(new Error(errorMsg));
|
|
2335
2408
|
}
|
|
2336
2409
|
});
|
|
@@ -2573,15 +2646,12 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
2573
2646
|
});
|
|
2574
2647
|
});
|
|
2575
2648
|
return (_ctx, _cache) => {
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
const _component_a_image = vue.resolveComponent("a-image");
|
|
2579
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
|
|
2580
|
-
shouldShowEmptyState.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$5, [
|
|
2649
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [
|
|
2650
|
+
shouldShowEmptyState.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$6, [
|
|
2581
2651
|
vue.renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
2582
2652
|
vue.createTextVNode(vue.toDisplayString(getProps.value.emptyText), 1)
|
|
2583
2653
|
], true)
|
|
2584
|
-
])) : !shouldUseSortable.value ? (vue.openBlock(), vue.createBlock(
|
|
2654
|
+
])) : !shouldUseSortable.value ? (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Upload), vue.mergeProps({
|
|
2585
2655
|
key: 1,
|
|
2586
2656
|
ref_key: "uploadRef",
|
|
2587
2657
|
ref: uploadRef
|
|
@@ -2606,8 +2676,8 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
2606
2676
|
})
|
|
2607
2677
|
}, [
|
|
2608
2678
|
vue.createVNode(vue.unref(IconPlus), { size: 16 }),
|
|
2609
|
-
getProps.value.uploadButtonText ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
2610
|
-
], 4)) : (vue.openBlock(), vue.createBlock(
|
|
2679
|
+
getProps.value.uploadButtonText ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$4, vue.toDisplayString(getProps.value.uploadButtonText), 1)) : vue.createCommentVNode("", true)
|
|
2680
|
+
], 4)) : (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Button), {
|
|
2611
2681
|
key: 1,
|
|
2612
2682
|
type: getProps.value.uploadButtonType || "primary"
|
|
2613
2683
|
}, {
|
|
@@ -2657,7 +2727,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
2657
2727
|
onPreview: handlePreview,
|
|
2658
2728
|
onRemove: handleRemoveFile
|
|
2659
2729
|
}, null, 8, ["file-list", "card-size", "disabled"])) : vue.createCommentVNode("", true),
|
|
2660
|
-
vue.createVNode(
|
|
2730
|
+
vue.createVNode(vue.unref(ArcoVue.Upload), vue.mergeProps({
|
|
2661
2731
|
ref_key: "uploadRef",
|
|
2662
2732
|
ref: uploadRef
|
|
2663
2733
|
}, getBindValue.value, {
|
|
@@ -2689,7 +2759,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
2689
2759
|
]), 1040, ["file-list"]),
|
|
2690
2760
|
getProps.value.tip ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$2, vue.toDisplayString(getProps.value.tip), 1)) : vue.createCommentVNode("", true)
|
|
2691
2761
|
])),
|
|
2692
|
-
previewImageUrl.value ? (vue.openBlock(), vue.createBlock(
|
|
2762
|
+
previewImageUrl.value ? (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Image), {
|
|
2693
2763
|
key: 3,
|
|
2694
2764
|
src: previewImageUrl.value,
|
|
2695
2765
|
"preview-visible": previewVisible.value,
|
|
@@ -2710,7 +2780,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
2710
2780
|
"video-url": previewVideoUrl.value,
|
|
2711
2781
|
"player-options": getProps.value.videoPlayerOptions
|
|
2712
2782
|
}, null, 8, ["video-url", "player-options"]),
|
|
2713
|
-
vue.createVNode(
|
|
2783
|
+
vue.createVNode(vue.unref(ArcoVue.Button), {
|
|
2714
2784
|
class: "close-inline-preview",
|
|
2715
2785
|
onClick: _cache[2] || (_cache[2] = ($event) => previewVideoVisible.value = false)
|
|
2716
2786
|
}, {
|
|
@@ -2724,7 +2794,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
2724
2794
|
};
|
|
2725
2795
|
}
|
|
2726
2796
|
});
|
|
2727
|
-
const BasicUpload = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2797
|
+
const BasicUpload = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-2be9e535"]]);
|
|
2728
2798
|
function useUpload(props) {
|
|
2729
2799
|
const uploadRef = vue.ref(null);
|
|
2730
2800
|
const fileListRef = vue.ref((props == null ? void 0 : props.defaultFileList) || []);
|
|
@@ -3020,7 +3090,7 @@ function clearApiCache(api, params) {
|
|
|
3020
3090
|
const cacheKey = getCacheKey(api, params);
|
|
3021
3091
|
cacheMap.delete(cacheKey);
|
|
3022
3092
|
}
|
|
3023
|
-
const _sfc_main$
|
|
3093
|
+
const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
3024
3094
|
__name: "ApiSelect",
|
|
3025
3095
|
props: {
|
|
3026
3096
|
modelValue: {},
|
|
@@ -3102,8 +3172,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
3102
3172
|
getOptions: () => computedOptions.value
|
|
3103
3173
|
});
|
|
3104
3174
|
return (_ctx, _cache) => {
|
|
3105
|
-
|
|
3106
|
-
return vue.openBlock(), vue.createBlock(_component_a_select, vue.mergeProps({
|
|
3175
|
+
return vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Select), vue.mergeProps({
|
|
3107
3176
|
modelValue: state.value,
|
|
3108
3177
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.value = $event),
|
|
3109
3178
|
options: computedOptions.value,
|
|
@@ -3131,7 +3200,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
3131
3200
|
};
|
|
3132
3201
|
}
|
|
3133
3202
|
});
|
|
3134
|
-
const _sfc_main$
|
|
3203
|
+
const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
3135
3204
|
__name: "ApiCascader",
|
|
3136
3205
|
props: {
|
|
3137
3206
|
modelValue: {},
|
|
@@ -3264,8 +3333,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
3264
3333
|
getOptions: () => computedOptions.value
|
|
3265
3334
|
});
|
|
3266
3335
|
return (_ctx, _cache) => {
|
|
3267
|
-
|
|
3268
|
-
return vue.openBlock(), vue.createBlock(_component_a_cascader, vue.mergeProps({
|
|
3336
|
+
return vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Cascader), vue.mergeProps({
|
|
3269
3337
|
modelValue: state.value,
|
|
3270
3338
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.value = $event),
|
|
3271
3339
|
options: computedOptions.value,
|
|
@@ -3292,30 +3360,30 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
3292
3360
|
}
|
|
3293
3361
|
});
|
|
3294
3362
|
const componentMap = {
|
|
3295
|
-
Input:
|
|
3296
|
-
InputNumber:
|
|
3297
|
-
InputPassword:
|
|
3298
|
-
Textarea:
|
|
3299
|
-
AutoComplete:
|
|
3300
|
-
Select:
|
|
3301
|
-
ApiSelect: _sfc_main$
|
|
3302
|
-
Radio:
|
|
3303
|
-
RadioGroup:
|
|
3304
|
-
Checkbox:
|
|
3305
|
-
CheckboxGroup:
|
|
3306
|
-
Cascader:
|
|
3307
|
-
ApiCascader: _sfc_main$
|
|
3308
|
-
TreeSelect:
|
|
3309
|
-
DatePicker:
|
|
3310
|
-
TimePicker:
|
|
3311
|
-
RangePicker:
|
|
3312
|
-
Switch:
|
|
3313
|
-
Slider:
|
|
3314
|
-
Rate:
|
|
3315
|
-
Upload:
|
|
3363
|
+
Input: ArcoVue.Input,
|
|
3364
|
+
InputNumber: ArcoVue.InputNumber,
|
|
3365
|
+
InputPassword: ArcoVue.InputPassword,
|
|
3366
|
+
Textarea: ArcoVue.Textarea,
|
|
3367
|
+
AutoComplete: ArcoVue.AutoComplete,
|
|
3368
|
+
Select: ArcoVue.Select,
|
|
3369
|
+
ApiSelect: _sfc_main$c,
|
|
3370
|
+
Radio: ArcoVue.Radio,
|
|
3371
|
+
RadioGroup: ArcoVue.RadioGroup,
|
|
3372
|
+
Checkbox: ArcoVue.Checkbox,
|
|
3373
|
+
CheckboxGroup: ArcoVue.CheckboxGroup,
|
|
3374
|
+
Cascader: ArcoVue.Cascader,
|
|
3375
|
+
ApiCascader: _sfc_main$b,
|
|
3376
|
+
TreeSelect: ArcoVue.TreeSelect,
|
|
3377
|
+
DatePicker: ArcoVue.DatePicker,
|
|
3378
|
+
TimePicker: ArcoVue.TimePicker,
|
|
3379
|
+
RangePicker: ArcoVue.RangePicker,
|
|
3380
|
+
Switch: ArcoVue.Switch,
|
|
3381
|
+
Slider: ArcoVue.Slider,
|
|
3382
|
+
Rate: ArcoVue.Rate,
|
|
3383
|
+
Upload: ArcoVue.Upload,
|
|
3316
3384
|
BasicUpload,
|
|
3317
|
-
Mention:
|
|
3318
|
-
Transfer:
|
|
3385
|
+
Mention: ArcoVue.Mention,
|
|
3386
|
+
Transfer: ArcoVue.Transfer
|
|
3319
3387
|
};
|
|
3320
3388
|
const customComponentMap = /* @__PURE__ */ new Map();
|
|
3321
3389
|
function registerComponent(name, component) {
|
|
@@ -3813,14 +3881,14 @@ function renderUpload(value, config) {
|
|
|
3813
3881
|
if (imageFiles.length > 0) {
|
|
3814
3882
|
children.push(
|
|
3815
3883
|
vue.h(
|
|
3816
|
-
|
|
3884
|
+
ArcoVue.ImagePreviewGroup,
|
|
3817
3885
|
{ infinite: true },
|
|
3818
3886
|
{
|
|
3819
3887
|
default: () => vue.h(
|
|
3820
3888
|
"div",
|
|
3821
3889
|
{ class: "readonly-image-list" },
|
|
3822
3890
|
imageFiles.map(
|
|
3823
|
-
(file) => vue.h(
|
|
3891
|
+
(file) => vue.h(ArcoVue.Image, {
|
|
3824
3892
|
src: getFileUrl(file),
|
|
3825
3893
|
width: 100,
|
|
3826
3894
|
height: 100,
|
|
@@ -3902,7 +3970,7 @@ const rendererMap = {
|
|
|
3902
3970
|
function getRenderer(component = "Input") {
|
|
3903
3971
|
return rendererMap[component] || rendererMap.default;
|
|
3904
3972
|
}
|
|
3905
|
-
const _sfc_main$
|
|
3973
|
+
const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
3906
3974
|
...{
|
|
3907
3975
|
name: "BasicReadonlyField",
|
|
3908
3976
|
inheritAttrs: false
|
|
@@ -4011,7 +4079,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4011
4079
|
};
|
|
4012
4080
|
}
|
|
4013
4081
|
});
|
|
4014
|
-
const BasicReadonlyField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4082
|
+
const BasicReadonlyField = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-3d2d24e0"]]);
|
|
4015
4083
|
function useReadonlyField(options) {
|
|
4016
4084
|
const defaultEmptyText = (options == null ? void 0 : options.defaultEmptyText) || "-";
|
|
4017
4085
|
const globalLabelMap = (options == null ? void 0 : options.globalLabelMap) || {};
|
|
@@ -4123,7 +4191,7 @@ function useReadonlyField(options) {
|
|
|
4123
4191
|
clearCache
|
|
4124
4192
|
};
|
|
4125
4193
|
}
|
|
4126
|
-
const _sfc_main$
|
|
4194
|
+
const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
4127
4195
|
...{
|
|
4128
4196
|
name: "BasicForm",
|
|
4129
4197
|
inheritAttrs: false
|
|
@@ -4494,16 +4562,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4494
4562
|
dynamicProps.value = {};
|
|
4495
4563
|
});
|
|
4496
4564
|
return (_ctx, _cache) => {
|
|
4497
|
-
|
|
4498
|
-
const _component_a_form_item = vue.resolveComponent("a-form-item");
|
|
4499
|
-
const _component_a_col = vue.resolveComponent("a-col");
|
|
4500
|
-
const _component_icon_search = vue.resolveComponent("icon-search");
|
|
4501
|
-
const _component_a_button = vue.resolveComponent("a-button");
|
|
4502
|
-
const _component_icon_refresh = vue.resolveComponent("icon-refresh");
|
|
4503
|
-
const _component_a_space = vue.resolveComponent("a-space");
|
|
4504
|
-
const _component_a_row = vue.resolveComponent("a-row");
|
|
4505
|
-
const _component_a_form = vue.resolveComponent("a-form");
|
|
4506
|
-
return vue.openBlock(), vue.createBlock(_component_a_form, vue.mergeProps({
|
|
4565
|
+
return vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Form), vue.mergeProps({
|
|
4507
4566
|
ref_key: "formRef",
|
|
4508
4567
|
ref: formRef
|
|
4509
4568
|
}, getBindValue.value, {
|
|
@@ -4511,17 +4570,17 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4511
4570
|
onSubmit: handleSubmit
|
|
4512
4571
|
}), {
|
|
4513
4572
|
default: vue.withCtx(() => [
|
|
4514
|
-
vue.createVNode(
|
|
4573
|
+
vue.createVNode(vue.unref(ArcoVue.Row), vue.normalizeProps(vue.guardReactiveProps(getRow.value)), {
|
|
4515
4574
|
default: vue.withCtx(() => [
|
|
4516
4575
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(getVisibleSchemas.value, (schema) => {
|
|
4517
|
-
return vue.openBlock(), vue.createBlock(
|
|
4576
|
+
return vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Col), vue.mergeProps({
|
|
4518
4577
|
key: schema.key || schema.field,
|
|
4519
4578
|
ref_for: true
|
|
4520
4579
|
}, getColProps(schema), {
|
|
4521
4580
|
"data-field": schema.field
|
|
4522
4581
|
}), {
|
|
4523
4582
|
default: vue.withCtx(() => [
|
|
4524
|
-
schema.render ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(schema.render(schema, formModel)), { key: 0 })) : (vue.openBlock(), vue.createBlock(
|
|
4583
|
+
schema.render ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(schema.render(schema, formModel)), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.FormItem), vue.mergeProps({
|
|
4525
4584
|
key: 1,
|
|
4526
4585
|
ref_for: true
|
|
4527
4586
|
}, getFormItemBindValue(schema)), vue.createSlots({
|
|
@@ -4567,7 +4626,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4567
4626
|
shouldRenderCustomLabel(schema) ? {
|
|
4568
4627
|
name: "label",
|
|
4569
4628
|
fn: vue.withCtx(() => [
|
|
4570
|
-
schema.labelTooltip ? (vue.openBlock(), vue.createBlock(
|
|
4629
|
+
schema.labelTooltip ? (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Tooltip), {
|
|
4571
4630
|
key: 0,
|
|
4572
4631
|
content: getLabelTooltipContent(schema)
|
|
4573
4632
|
}, {
|
|
@@ -4589,32 +4648,32 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4589
4648
|
_: 2
|
|
4590
4649
|
}, 1040, ["data-field"]);
|
|
4591
4650
|
}), 128)),
|
|
4592
|
-
getActionProps.value.showActionButtons ? (vue.openBlock(), vue.createBlock(
|
|
4651
|
+
getActionProps.value.showActionButtons ? (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Col), vue.normalizeProps(vue.mergeProps({ key: 0 }, getActionProps.value.actionColOptions)), {
|
|
4593
4652
|
default: vue.withCtx(() => [
|
|
4594
|
-
vue.createVNode(
|
|
4653
|
+
vue.createVNode(vue.unref(ArcoVue.FormItem), vue.normalizeProps(vue.guardReactiveProps(getActionProps.value.actionFormItemProps)), {
|
|
4595
4654
|
default: vue.withCtx(() => [
|
|
4596
|
-
vue.createVNode(
|
|
4655
|
+
vue.createVNode(vue.unref(ArcoVue.Space), null, {
|
|
4597
4656
|
default: vue.withCtx(() => [
|
|
4598
|
-
getActionProps.value.showSubmitButton ? (vue.openBlock(), vue.createBlock(
|
|
4657
|
+
getActionProps.value.showSubmitButton ? (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Button), {
|
|
4599
4658
|
key: 0,
|
|
4600
4659
|
type: "primary",
|
|
4601
4660
|
"html-type": "submit",
|
|
4602
4661
|
loading: submitLoading.value
|
|
4603
4662
|
}, {
|
|
4604
4663
|
icon: vue.withCtx(() => [
|
|
4605
|
-
vue.createVNode(
|
|
4664
|
+
vue.createVNode(vue.unref(IconSearch))
|
|
4606
4665
|
]),
|
|
4607
4666
|
default: vue.withCtx(() => [
|
|
4608
4667
|
vue.createTextVNode(" " + vue.toDisplayString(getActionProps.value.submitButtonText), 1)
|
|
4609
4668
|
]),
|
|
4610
4669
|
_: 1
|
|
4611
4670
|
}, 8, ["loading"])) : vue.createCommentVNode("", true),
|
|
4612
|
-
getActionProps.value.showResetButton ? (vue.openBlock(), vue.createBlock(
|
|
4671
|
+
getActionProps.value.showResetButton ? (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Button), {
|
|
4613
4672
|
key: 1,
|
|
4614
4673
|
onClick: handleReset
|
|
4615
4674
|
}, {
|
|
4616
4675
|
icon: vue.withCtx(() => [
|
|
4617
|
-
vue.createVNode(
|
|
4676
|
+
vue.createVNode(vue.unref(IconRefresh))
|
|
4618
4677
|
]),
|
|
4619
4678
|
default: vue.withCtx(() => [
|
|
4620
4679
|
vue.createTextVNode(" " + vue.toDisplayString(getActionProps.value.resetButtonText), 1)
|
|
@@ -4889,8 +4948,8 @@ function createFormSchema(schemas) {
|
|
|
4889
4948
|
function mergeFormSchemas(...schemas) {
|
|
4890
4949
|
return schemas.flat();
|
|
4891
4950
|
}
|
|
4892
|
-
const _hoisted_1$
|
|
4893
|
-
const _sfc_main$
|
|
4951
|
+
const _hoisted_1$7 = { class: "basic-text-ellipsis" };
|
|
4952
|
+
const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
4894
4953
|
__name: "BasicTextEllipsis",
|
|
4895
4954
|
props: {
|
|
4896
4955
|
text: { default: "" },
|
|
@@ -4977,9 +5036,8 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4977
5036
|
}
|
|
4978
5037
|
);
|
|
4979
5038
|
return (_ctx, _cache) => {
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
showTooltip.value ? (vue.openBlock(), vue.createBlock(_component_a_tooltip, vue.mergeProps({
|
|
5039
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
|
|
5040
|
+
showTooltip.value ? (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Tooltip), vue.mergeProps({
|
|
4983
5041
|
key: 0,
|
|
4984
5042
|
content: __props.text,
|
|
4985
5043
|
trigger: __props.tooltipTrigger
|
|
@@ -5004,7 +5062,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5004
5062
|
};
|
|
5005
5063
|
}
|
|
5006
5064
|
});
|
|
5007
|
-
const BasicTextEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5065
|
+
const BasicTextEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-305f9842"]]);
|
|
5008
5066
|
function useLocalStorage(key, initialValue) {
|
|
5009
5067
|
let initialStoredValue;
|
|
5010
5068
|
try {
|
|
@@ -5414,12 +5472,12 @@ function useEditFormat(options) {
|
|
|
5414
5472
|
wrapFormatListeners
|
|
5415
5473
|
};
|
|
5416
5474
|
}
|
|
5417
|
-
const _hoisted_1$
|
|
5418
|
-
const _hoisted_2$
|
|
5475
|
+
const _hoisted_1$6 = { class: "edit-cell" };
|
|
5476
|
+
const _hoisted_2$5 = {
|
|
5419
5477
|
key: 2,
|
|
5420
5478
|
class: "edit-cell-error"
|
|
5421
5479
|
};
|
|
5422
|
-
const _sfc_main$
|
|
5480
|
+
const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
5423
5481
|
...{
|
|
5424
5482
|
name: "EditCell"
|
|
5425
5483
|
},
|
|
@@ -5506,18 +5564,18 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5506
5564
|
}
|
|
5507
5565
|
});
|
|
5508
5566
|
return (_ctx, _cache) => {
|
|
5509
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5567
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
|
|
5510
5568
|
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, {
|
|
5511
5569
|
"model-value": vue.unref(currentValue),
|
|
5512
5570
|
"onUpdate:modelValue": handleChange,
|
|
5513
5571
|
class: "edit-cell-input"
|
|
5514
5572
|
}), null, 16, ["model-value"])),
|
|
5515
|
-
__props.error ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
5573
|
+
__props.error ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$5, vue.toDisplayString(__props.error), 1)) : vue.createCommentVNode("", true)
|
|
5516
5574
|
]);
|
|
5517
5575
|
};
|
|
5518
5576
|
}
|
|
5519
5577
|
});
|
|
5520
|
-
const EditCell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5578
|
+
const EditCell = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-52761074"]]);
|
|
5521
5579
|
function useEditValidation() {
|
|
5522
5580
|
const validateField = async (value, column, record) => {
|
|
5523
5581
|
if (!column.editRule) {
|
|
@@ -5783,7 +5841,7 @@ function useTableEdit(props, dataSource, getRowKey) {
|
|
|
5783
5841
|
validationErrorMap[recordKey] = validationResult.errors;
|
|
5784
5842
|
const firstError = Object.values(validationResult.errors)[0];
|
|
5785
5843
|
if (firstError) {
|
|
5786
|
-
|
|
5844
|
+
ArcoVue.Message.error(firstError);
|
|
5787
5845
|
}
|
|
5788
5846
|
return false;
|
|
5789
5847
|
}
|
|
@@ -5796,7 +5854,7 @@ function useTableEdit(props, dataSource, getRowKey) {
|
|
|
5796
5854
|
}
|
|
5797
5855
|
} catch (error) {
|
|
5798
5856
|
console.error("[useTableEdit] beforeSave error:", error);
|
|
5799
|
-
|
|
5857
|
+
ArcoVue.Message.error("保存前验证失败");
|
|
5800
5858
|
return false;
|
|
5801
5859
|
}
|
|
5802
5860
|
}
|
|
@@ -5848,7 +5906,7 @@ function useTableEdit(props, dataSource, getRowKey) {
|
|
|
5848
5906
|
await editConfig.value.onDelete(record);
|
|
5849
5907
|
} catch (error) {
|
|
5850
5908
|
console.error("[useTableEdit] onDelete error:", error);
|
|
5851
|
-
|
|
5909
|
+
ArcoVue.Message.error("删除失败");
|
|
5852
5910
|
return;
|
|
5853
5911
|
}
|
|
5854
5912
|
}
|
|
@@ -5868,7 +5926,7 @@ function useTableEdit(props, dataSource, getRowKey) {
|
|
|
5868
5926
|
newRecord = await editConfig.value.onAdd();
|
|
5869
5927
|
} catch (error) {
|
|
5870
5928
|
console.error("[useTableEdit] onAdd error:", error);
|
|
5871
|
-
|
|
5929
|
+
ArcoVue.Message.error("添加失败");
|
|
5872
5930
|
return;
|
|
5873
5931
|
}
|
|
5874
5932
|
}
|
|
@@ -5928,12 +5986,12 @@ function useTableEdit(props, dataSource, getRowKey) {
|
|
|
5928
5986
|
getChangedValues
|
|
5929
5987
|
};
|
|
5930
5988
|
}
|
|
5931
|
-
const _hoisted_1$
|
|
5932
|
-
const _hoisted_2$
|
|
5989
|
+
const _hoisted_1$5 = { class: "basic-table-wrapper" };
|
|
5990
|
+
const _hoisted_2$4 = {
|
|
5933
5991
|
key: 0,
|
|
5934
5992
|
class: "basic-table-search"
|
|
5935
5993
|
};
|
|
5936
|
-
const _hoisted_3$
|
|
5994
|
+
const _hoisted_3$3 = {
|
|
5937
5995
|
key: 1,
|
|
5938
5996
|
class: "basic-table-toolbar"
|
|
5939
5997
|
};
|
|
@@ -5947,7 +6005,7 @@ const _hoisted_6$1 = {
|
|
|
5947
6005
|
class: "toolbar-right"
|
|
5948
6006
|
};
|
|
5949
6007
|
const _hoisted_7$1 = { class: "column-setting" };
|
|
5950
|
-
const _sfc_main$
|
|
6008
|
+
const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
5951
6009
|
...{
|
|
5952
6010
|
name: "BasicTable"
|
|
5953
6011
|
},
|
|
@@ -6341,7 +6399,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
6341
6399
|
return (pagination.current - 1) * pagination.pageSize + rowIndex + 1;
|
|
6342
6400
|
};
|
|
6343
6401
|
const showConfirmModal = (action, record) => {
|
|
6344
|
-
|
|
6402
|
+
ArcoVue.Modal.confirm({
|
|
6345
6403
|
title: action.popConfirm.title,
|
|
6346
6404
|
content: action.popConfirm.content,
|
|
6347
6405
|
okText: action.popConfirm.okText,
|
|
@@ -6497,7 +6555,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
6497
6555
|
}
|
|
6498
6556
|
} catch (error) {
|
|
6499
6557
|
console.error("全屏操作失败:", error);
|
|
6500
|
-
|
|
6558
|
+
ArcoVue.Message.error("全屏操作失败");
|
|
6501
6559
|
}
|
|
6502
6560
|
};
|
|
6503
6561
|
const handleSelect = (rowKeys, rowKey, record) => {
|
|
@@ -6887,21 +6945,9 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
6887
6945
|
searchFormRef.value = null;
|
|
6888
6946
|
});
|
|
6889
6947
|
return (_ctx, _cache) => {
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
const _component_a_doption = vue.resolveComponent("a-doption");
|
|
6894
|
-
const _component_a_dropdown = vue.resolveComponent("a-dropdown");
|
|
6895
|
-
const _component_a_checkbox = vue.resolveComponent("a-checkbox");
|
|
6896
|
-
const _component_a_checkbox_group = vue.resolveComponent("a-checkbox-group");
|
|
6897
|
-
const _component_a_popover = vue.resolveComponent("a-popover");
|
|
6898
|
-
const _component_a_space = vue.resolveComponent("a-space");
|
|
6899
|
-
const _component_a_link = vue.resolveComponent("a-link");
|
|
6900
|
-
const _component_a_popconfirm = vue.resolveComponent("a-popconfirm");
|
|
6901
|
-
const _component_a_table = vue.resolveComponent("a-table");
|
|
6902
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [
|
|
6903
|
-
getSearchConfig.value.show ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$3, [
|
|
6904
|
-
vue.createVNode(vue.unref(_sfc_main$8), vue.mergeProps({
|
|
6948
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
|
|
6949
|
+
getSearchConfig.value.show ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$4, [
|
|
6950
|
+
vue.createVNode(vue.unref(_sfc_main$9), vue.mergeProps({
|
|
6905
6951
|
ref_key: "searchFormRef",
|
|
6906
6952
|
ref: searchFormRef
|
|
6907
6953
|
}, getSearchFormProps.value, {
|
|
@@ -6917,19 +6963,19 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
6917
6963
|
};
|
|
6918
6964
|
})
|
|
6919
6965
|
]), 1040),
|
|
6920
|
-
vue.createVNode(
|
|
6966
|
+
vue.createVNode(vue.unref(ArcoVue.Divider), { class: "!mt-0" })
|
|
6921
6967
|
])) : vue.createCommentVNode("", true),
|
|
6922
|
-
getToolbarConfig.value.show || getToolbarConfig.value.title || _ctx.$slots.tableTitle ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
6968
|
+
getToolbarConfig.value.show || getToolbarConfig.value.title || _ctx.$slots.tableTitle ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$3, [
|
|
6923
6969
|
vue.createElementVNode("div", _hoisted_4$2, [
|
|
6924
6970
|
vue.renderSlot(_ctx.$slots, "tableTitle", {}, () => [
|
|
6925
6971
|
getToolbarConfig.value.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$2, vue.toDisplayString(getToolbarConfig.value.title), 1)) : vue.createCommentVNode("", true)
|
|
6926
6972
|
], true)
|
|
6927
6973
|
]),
|
|
6928
6974
|
getToolbarConfig.value.show ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$1, [
|
|
6929
|
-
vue.createVNode(
|
|
6975
|
+
vue.createVNode(vue.unref(ArcoVue.Space), null, {
|
|
6930
6976
|
default: vue.withCtx(() => [
|
|
6931
6977
|
getToolbarConfig.value.actions && getToolbarConfig.value.actions.length > 0 ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(getToolbarConfig.value.actions, (action, index) => {
|
|
6932
|
-
return vue.withDirectives((vue.openBlock(), vue.createBlock(
|
|
6978
|
+
return vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Button), vue.mergeProps({
|
|
6933
6979
|
key: index,
|
|
6934
6980
|
onClick: action.onClick
|
|
6935
6981
|
}, { ref_for: true }, action), vue.createSlots({
|
|
@@ -6949,12 +6995,12 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
6949
6995
|
[vue.vShow, action.show !== false]
|
|
6950
6996
|
]);
|
|
6951
6997
|
}), 128)) : vue.createCommentVNode("", true),
|
|
6952
|
-
getToolbarConfig.value.showRefresh ? (vue.openBlock(), vue.createBlock(
|
|
6998
|
+
getToolbarConfig.value.showRefresh ? (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Tooltip), {
|
|
6953
6999
|
key: 1,
|
|
6954
7000
|
content: "刷新"
|
|
6955
7001
|
}, {
|
|
6956
7002
|
default: vue.withCtx(() => [
|
|
6957
|
-
vue.createVNode(
|
|
7003
|
+
vue.createVNode(vue.unref(ArcoVue.Button), {
|
|
6958
7004
|
onClick: vue.unref(handleRefresh),
|
|
6959
7005
|
"aria-label": "刷新表格"
|
|
6960
7006
|
}, {
|
|
@@ -6966,12 +7012,12 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
6966
7012
|
]),
|
|
6967
7013
|
_: 1
|
|
6968
7014
|
})) : vue.createCommentVNode("", true),
|
|
6969
|
-
getToolbarConfig.value.showFullscreen ? (vue.openBlock(), vue.createBlock(
|
|
7015
|
+
getToolbarConfig.value.showFullscreen ? (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Tooltip), {
|
|
6970
7016
|
key: 2,
|
|
6971
7017
|
content: isFullscreen.value ? "退出全屏" : "全屏"
|
|
6972
7018
|
}, {
|
|
6973
7019
|
default: vue.withCtx(() => [
|
|
6974
|
-
vue.createVNode(
|
|
7020
|
+
vue.createVNode(vue.unref(ArcoVue.Button), {
|
|
6975
7021
|
onClick: handleFullscreen,
|
|
6976
7022
|
"aria-label": isFullscreen.value ? "退出全屏" : "全屏显示"
|
|
6977
7023
|
}, {
|
|
@@ -6983,30 +7029,30 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
6983
7029
|
]),
|
|
6984
7030
|
_: 1
|
|
6985
7031
|
}, 8, ["content"])) : vue.createCommentVNode("", true),
|
|
6986
|
-
getToolbarConfig.value.showDensity ? (vue.openBlock(), vue.createBlock(
|
|
7032
|
+
getToolbarConfig.value.showDensity ? (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Dropdown), {
|
|
6987
7033
|
key: 3,
|
|
6988
7034
|
onSelect: handleDensityChange
|
|
6989
7035
|
}, {
|
|
6990
7036
|
content: vue.withCtx(() => [
|
|
6991
|
-
vue.createVNode(
|
|
7037
|
+
vue.createVNode(vue.unref(ArcoVue.Doption), { value: "mini" }, {
|
|
6992
7038
|
default: vue.withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
6993
7039
|
vue.createTextVNode("紧凑", -1)
|
|
6994
7040
|
])]),
|
|
6995
7041
|
_: 1
|
|
6996
7042
|
}),
|
|
6997
|
-
vue.createVNode(
|
|
7043
|
+
vue.createVNode(vue.unref(ArcoVue.Doption), { value: "small" }, {
|
|
6998
7044
|
default: vue.withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
6999
7045
|
vue.createTextVNode("偏小", -1)
|
|
7000
7046
|
])]),
|
|
7001
7047
|
_: 1
|
|
7002
7048
|
}),
|
|
7003
|
-
vue.createVNode(
|
|
7049
|
+
vue.createVNode(vue.unref(ArcoVue.Doption), { value: "medium" }, {
|
|
7004
7050
|
default: vue.withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
7005
7051
|
vue.createTextVNode("默认", -1)
|
|
7006
7052
|
])]),
|
|
7007
7053
|
_: 1
|
|
7008
7054
|
}),
|
|
7009
|
-
vue.createVNode(
|
|
7055
|
+
vue.createVNode(vue.unref(ArcoVue.Doption), { value: "large" }, {
|
|
7010
7056
|
default: vue.withCtx(() => [..._cache[5] || (_cache[5] = [
|
|
7011
7057
|
vue.createTextVNode("宽松", -1)
|
|
7012
7058
|
])]),
|
|
@@ -7014,9 +7060,9 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7014
7060
|
})
|
|
7015
7061
|
]),
|
|
7016
7062
|
default: vue.withCtx(() => [
|
|
7017
|
-
vue.createVNode(
|
|
7063
|
+
vue.createVNode(vue.unref(ArcoVue.Tooltip), { content: "密度" }, {
|
|
7018
7064
|
default: vue.withCtx(() => [
|
|
7019
|
-
vue.createVNode(
|
|
7065
|
+
vue.createVNode(vue.unref(ArcoVue.Button), { "aria-label": "设置表格密度" }, {
|
|
7020
7066
|
icon: vue.withCtx(() => [
|
|
7021
7067
|
vue.createVNode(vue.unref(IconLineHeight))
|
|
7022
7068
|
]),
|
|
@@ -7028,14 +7074,14 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7028
7074
|
]),
|
|
7029
7075
|
_: 1
|
|
7030
7076
|
})) : vue.createCommentVNode("", true),
|
|
7031
|
-
getToolbarConfig.value.showColumnSetting ? (vue.openBlock(), vue.createBlock(
|
|
7077
|
+
getToolbarConfig.value.showColumnSetting ? (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Popover), {
|
|
7032
7078
|
key: 4,
|
|
7033
7079
|
trigger: "click",
|
|
7034
7080
|
position: "br"
|
|
7035
7081
|
}, {
|
|
7036
7082
|
content: vue.withCtx(() => [
|
|
7037
7083
|
vue.createElementVNode("div", _hoisted_7$1, [
|
|
7038
|
-
vue.createVNode(
|
|
7084
|
+
vue.createVNode(vue.unref(ArcoVue.CheckboxGroup), {
|
|
7039
7085
|
modelValue: checkedColumns.value,
|
|
7040
7086
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => checkedColumns.value = $event),
|
|
7041
7087
|
onChange: handleColumnChange
|
|
@@ -7046,7 +7092,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7046
7092
|
key: col.dataIndex,
|
|
7047
7093
|
class: "column-setting-item"
|
|
7048
7094
|
}, [
|
|
7049
|
-
vue.createVNode(
|
|
7095
|
+
vue.createVNode(vue.unref(ArcoVue.Checkbox), {
|
|
7050
7096
|
value: col.dataIndex
|
|
7051
7097
|
}, {
|
|
7052
7098
|
default: vue.withCtx(() => [
|
|
@@ -7062,9 +7108,9 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7062
7108
|
])
|
|
7063
7109
|
]),
|
|
7064
7110
|
default: vue.withCtx(() => [
|
|
7065
|
-
vue.createVNode(
|
|
7111
|
+
vue.createVNode(vue.unref(ArcoVue.Tooltip), { content: "列设置" }, {
|
|
7066
7112
|
default: vue.withCtx(() => [
|
|
7067
|
-
vue.createVNode(
|
|
7113
|
+
vue.createVNode(vue.unref(ArcoVue.Button), { "aria-label": "设置显示列" }, {
|
|
7068
7114
|
icon: vue.withCtx(() => [
|
|
7069
7115
|
vue.createVNode(vue.unref(IconSettings))
|
|
7070
7116
|
]),
|
|
@@ -7081,7 +7127,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7081
7127
|
})
|
|
7082
7128
|
])) : vue.createCommentVNode("", true)
|
|
7083
7129
|
])) : vue.createCommentVNode("", true),
|
|
7084
|
-
vue.createVNode(
|
|
7130
|
+
vue.createVNode(vue.unref(ArcoVue.Table), vue.mergeProps({
|
|
7085
7131
|
ref_key: "tableRef",
|
|
7086
7132
|
ref: tableRef
|
|
7087
7133
|
}, getBindValues.value, {
|
|
@@ -7120,13 +7166,13 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7120
7166
|
key: 1,
|
|
7121
7167
|
record: slotProps.record
|
|
7122
7168
|
}, () => [
|
|
7123
|
-
vue.createVNode(
|
|
7169
|
+
vue.createVNode(vue.unref(ArcoVue.Space), null, {
|
|
7124
7170
|
default: vue.withCtx(() => [
|
|
7125
7171
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(getVisibleActions(slotProps.record).visible, (action) => {
|
|
7126
7172
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
7127
7173
|
key: action.label
|
|
7128
7174
|
}, [
|
|
7129
|
-
action.popConfirm ? (vue.openBlock(), vue.createBlock(
|
|
7175
|
+
action.popConfirm ? (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Popconfirm), {
|
|
7130
7176
|
key: 0,
|
|
7131
7177
|
content: action.popConfirm.title,
|
|
7132
7178
|
"ok-text": action.popConfirm.okText,
|
|
@@ -7138,7 +7184,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7138
7184
|
onCancel: action.popConfirm.onCancel
|
|
7139
7185
|
}, {
|
|
7140
7186
|
default: vue.withCtx(() => [
|
|
7141
|
-
vue.createVNode(
|
|
7187
|
+
vue.createVNode(vue.unref(ArcoVue.Link), {
|
|
7142
7188
|
status: action.color,
|
|
7143
7189
|
disabled: getActionDisabled(action, slotProps.record),
|
|
7144
7190
|
onClick: _cache[1] || (_cache[1] = vue.withModifiers(() => {
|
|
@@ -7159,7 +7205,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7159
7205
|
]), 1032, ["status", "disabled"])
|
|
7160
7206
|
]),
|
|
7161
7207
|
_: 2
|
|
7162
|
-
}, 1032, ["content", "ok-text", "cancel-text", "onOk", "onCancel"])) : (vue.openBlock(), vue.createBlock(
|
|
7208
|
+
}, 1032, ["content", "ok-text", "cancel-text", "onOk", "onCancel"])) : (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Link), {
|
|
7163
7209
|
key: 1,
|
|
7164
7210
|
status: action.color,
|
|
7165
7211
|
disabled: getActionDisabled(action, slotProps.record),
|
|
@@ -7180,13 +7226,13 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7180
7226
|
]), 1032, ["status", "disabled", "onClick"]))
|
|
7181
7227
|
], 64);
|
|
7182
7228
|
}), 128)),
|
|
7183
|
-
getVisibleActions(slotProps.record).more.length > 0 ? (vue.openBlock(), vue.createBlock(
|
|
7229
|
+
getVisibleActions(slotProps.record).more.length > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Dropdown), { key: 0 }, {
|
|
7184
7230
|
content: vue.withCtx(() => [
|
|
7185
7231
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(getVisibleActions(slotProps.record).more, (action) => {
|
|
7186
7232
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
7187
7233
|
key: action.label
|
|
7188
7234
|
}, [
|
|
7189
|
-
action.popConfirm ? (vue.openBlock(), vue.createBlock(
|
|
7235
|
+
action.popConfirm ? (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Doption), {
|
|
7190
7236
|
key: 0,
|
|
7191
7237
|
disabled: getActionDisabled(action, slotProps.record),
|
|
7192
7238
|
onClick: () => showConfirmModal(action, slotProps.record)
|
|
@@ -7195,7 +7241,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7195
7241
|
vue.createTextVNode(vue.toDisplayString(action.label), 1)
|
|
7196
7242
|
]),
|
|
7197
7243
|
_: 2
|
|
7198
|
-
}, 1032, ["disabled", "onClick"])) : (vue.openBlock(), vue.createBlock(
|
|
7244
|
+
}, 1032, ["disabled", "onClick"])) : (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Doption), {
|
|
7199
7245
|
key: 1,
|
|
7200
7246
|
disabled: getActionDisabled(action, slotProps.record),
|
|
7201
7247
|
onClick: ($event) => handleActionClick(action, slotProps.record)
|
|
@@ -7217,7 +7263,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7217
7263
|
}), 128))
|
|
7218
7264
|
]),
|
|
7219
7265
|
default: vue.withCtx(() => [
|
|
7220
|
-
vue.createVNode(
|
|
7266
|
+
vue.createVNode(vue.unref(ArcoVue.Link), null, {
|
|
7221
7267
|
icon: vue.withCtx(() => [
|
|
7222
7268
|
vue.createVNode(vue.unref(IconMore))
|
|
7223
7269
|
]),
|
|
@@ -7263,7 +7309,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7263
7309
|
};
|
|
7264
7310
|
}
|
|
7265
7311
|
});
|
|
7266
|
-
const BasicTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7312
|
+
const BasicTable = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-db561fa7"]]);
|
|
7267
7313
|
function useTable(options = {}) {
|
|
7268
7314
|
const tableRef = vue.ref(null);
|
|
7269
7315
|
const formRef = vue.ref(null);
|
|
@@ -7614,9 +7660,9 @@ function createTableColumns(columns) {
|
|
|
7614
7660
|
function mergeTableColumns(...columns) {
|
|
7615
7661
|
return columns.flat();
|
|
7616
7662
|
}
|
|
7617
|
-
const _hoisted_1$
|
|
7618
|
-
const _hoisted_2$
|
|
7619
|
-
const _sfc_main$
|
|
7663
|
+
const _hoisted_1$4 = { style: { "position": "relative", "width": "100%" } };
|
|
7664
|
+
const _hoisted_2$3 = { key: 1 };
|
|
7665
|
+
const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
7620
7666
|
...{
|
|
7621
7667
|
name: "BasicModal",
|
|
7622
7668
|
inheritAttrs: false
|
|
@@ -7922,12 +7968,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7922
7968
|
});
|
|
7923
7969
|
});
|
|
7924
7970
|
return (_ctx, _cache) => {
|
|
7925
|
-
|
|
7926
|
-
const _component_a_spin = vue.resolveComponent("a-spin");
|
|
7927
|
-
const _component_a_button = vue.resolveComponent("a-button");
|
|
7928
|
-
const _component_a_space = vue.resolveComponent("a-space");
|
|
7929
|
-
const _component_a_modal = vue.resolveComponent("a-modal");
|
|
7930
|
-
return vue.openBlock(), vue.createBlock(_component_a_modal, vue.mergeProps(getBindValue.value, {
|
|
7971
|
+
return vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Modal), vue.mergeProps(getBindValue.value, {
|
|
7931
7972
|
visible: visibleRef.value,
|
|
7932
7973
|
"onUpdate:visible": handleVisibleChange,
|
|
7933
7974
|
onOk: vue.unref(handleOk),
|
|
@@ -7938,7 +7979,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7938
7979
|
onBeforeClose: _cache[3] || (_cache[3] = ($event) => emit("before-close"))
|
|
7939
7980
|
}), vue.createSlots({
|
|
7940
7981
|
default: vue.withCtx(() => [
|
|
7941
|
-
vue.createVNode(
|
|
7982
|
+
vue.createVNode(vue.unref(ArcoVue.Spin), {
|
|
7942
7983
|
loading: getProps.value.loading,
|
|
7943
7984
|
tip: getProps.value.loadingTip,
|
|
7944
7985
|
style: vue.normalizeStyle(spinStyle.value),
|
|
@@ -7967,7 +8008,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7967
8008
|
} : getProps.value.title ? {
|
|
7968
8009
|
name: "title",
|
|
7969
8010
|
fn: vue.withCtx(() => [
|
|
7970
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
8011
|
+
vue.createElementVNode("div", _hoisted_1$4, [
|
|
7971
8012
|
vue.createElementVNode("span", {
|
|
7972
8013
|
style: vue.normalizeStyle({ display: "block", textAlign: getProps.value.titleAlign }),
|
|
7973
8014
|
class: vue.normalizeClass(["block"])
|
|
@@ -7976,7 +8017,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7976
8017
|
class: vue.normalizeClass(["modal-title-actions", getProps.value.closable ? "has-close" : ""])
|
|
7977
8018
|
}, [
|
|
7978
8019
|
getProps.value.helpMessage ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
7979
|
-
Array.isArray(getProps.value.helpMessage) ? (vue.openBlock(), vue.createBlock(
|
|
8020
|
+
Array.isArray(getProps.value.helpMessage) ? (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Tooltip), {
|
|
7980
8021
|
key: 0,
|
|
7981
8022
|
position: "top"
|
|
7982
8023
|
}, {
|
|
@@ -7989,7 +8030,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7989
8030
|
vue.createVNode(vue.unref(IconQuestionCircle), { class: "cursor-help text-gray-400" })
|
|
7990
8031
|
]),
|
|
7991
8032
|
_: 1
|
|
7992
|
-
})) : (vue.openBlock(), vue.createBlock(
|
|
8033
|
+
})) : (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Tooltip), {
|
|
7993
8034
|
key: 1,
|
|
7994
8035
|
position: "top"
|
|
7995
8036
|
}, {
|
|
@@ -8002,7 +8043,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8002
8043
|
_: 1
|
|
8003
8044
|
}))
|
|
8004
8045
|
], 64)) : vue.createCommentVNode("", true),
|
|
8005
|
-
getProps.value.canFullscreen ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
8046
|
+
getProps.value.canFullscreen ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$3, [
|
|
8006
8047
|
!fullscreenRef.value ? (vue.openBlock(), vue.createBlock(vue.unref(IconFullscreen), {
|
|
8007
8048
|
key: 0,
|
|
8008
8049
|
class: "cursor-pointer",
|
|
@@ -8033,17 +8074,17 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8033
8074
|
opacity: getProps.value.loading ? 0.6 : 1
|
|
8034
8075
|
})
|
|
8035
8076
|
}, [
|
|
8036
|
-
vue.createVNode(
|
|
8077
|
+
vue.createVNode(vue.unref(ArcoVue.Space), null, {
|
|
8037
8078
|
default: vue.withCtx(() => [
|
|
8038
8079
|
vue.renderSlot(_ctx.$slots, "insertFooter", {}, void 0, true),
|
|
8039
|
-
getProps.value.showCancelBtn ? (vue.openBlock(), vue.createBlock(
|
|
8080
|
+
getProps.value.showCancelBtn ? (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Button), vue.mergeProps({ key: 0 }, getCancelButtonProps.value, { onClick: handleCancel }), {
|
|
8040
8081
|
default: vue.withCtx(() => [
|
|
8041
8082
|
vue.createTextVNode(vue.toDisplayString(getProps.value.cancelText || "取消"), 1)
|
|
8042
8083
|
]),
|
|
8043
8084
|
_: 1
|
|
8044
8085
|
}, 16)) : vue.createCommentVNode("", true),
|
|
8045
8086
|
vue.renderSlot(_ctx.$slots, "centerFooter", {}, void 0, true),
|
|
8046
|
-
getProps.value.showOkBtn ? (vue.openBlock(), vue.createBlock(
|
|
8087
|
+
getProps.value.showOkBtn ? (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Button), vue.mergeProps({ key: 1 }, getOkButtonProps.value, {
|
|
8047
8088
|
type: "primary",
|
|
8048
8089
|
onClick: vue.unref(handleOk)
|
|
8049
8090
|
}), {
|
|
@@ -8068,7 +8109,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8068
8109
|
};
|
|
8069
8110
|
}
|
|
8070
8111
|
});
|
|
8071
|
-
const BasicModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8112
|
+
const BasicModal = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-e4400cf8"]]);
|
|
8072
8113
|
function useModal(props) {
|
|
8073
8114
|
const modalRef = vue.ref(null);
|
|
8074
8115
|
const loadedRef = vue.ref(false);
|
|
@@ -8226,18 +8267,18 @@ function useModalInner(callbackFn) {
|
|
|
8226
8267
|
}
|
|
8227
8268
|
];
|
|
8228
8269
|
}
|
|
8229
|
-
const _hoisted_1$
|
|
8230
|
-
const _hoisted_2$
|
|
8270
|
+
const _hoisted_1$3 = { class: "basic-description" };
|
|
8271
|
+
const _hoisted_2$2 = {
|
|
8231
8272
|
key: 0,
|
|
8232
8273
|
class: "description-header"
|
|
8233
8274
|
};
|
|
8234
|
-
const _hoisted_3$
|
|
8275
|
+
const _hoisted_3$2 = { class: "description-title" };
|
|
8235
8276
|
const _hoisted_4$1 = {
|
|
8236
8277
|
key: 0,
|
|
8237
8278
|
class: "description-extra"
|
|
8238
8279
|
};
|
|
8239
8280
|
const _hoisted_5$1 = { key: 1 };
|
|
8240
|
-
const _sfc_main$
|
|
8281
|
+
const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
8241
8282
|
...{
|
|
8242
8283
|
name: "BasicDescription",
|
|
8243
8284
|
inheritAttrs: false
|
|
@@ -8365,16 +8406,13 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8365
8406
|
});
|
|
8366
8407
|
return (_ctx, _cache) => {
|
|
8367
8408
|
var _a;
|
|
8368
|
-
|
|
8369
|
-
|
|
8370
|
-
|
|
8371
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
|
|
8372
|
-
getProps.value.title || _ctx.$slots.title || _ctx.$slots.extra ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$1, [
|
|
8373
|
-
vue.createElementVNode("div", _hoisted_3$1, [
|
|
8409
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$3, [
|
|
8410
|
+
getProps.value.title || _ctx.$slots.title || _ctx.$slots.extra ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$2, [
|
|
8411
|
+
vue.createElementVNode("div", _hoisted_3$2, [
|
|
8374
8412
|
_ctx.$slots.title ? vue.renderSlot(_ctx.$slots, "title", { key: 0 }, void 0, true) : getProps.value.title ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
8375
8413
|
vue.createElementVNode("span", null, vue.toDisplayString(getProps.value.title), 1),
|
|
8376
8414
|
((_a = getProps.value.helpMessageOptions) == null ? void 0 : _a.helpMessage) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
8377
|
-
Array.isArray(getProps.value.helpMessageOptions.helpMessage) ? (vue.openBlock(), vue.createBlock(
|
|
8415
|
+
Array.isArray(getProps.value.helpMessageOptions.helpMessage) ? (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Tooltip), {
|
|
8378
8416
|
key: 0,
|
|
8379
8417
|
position: "top"
|
|
8380
8418
|
}, {
|
|
@@ -8387,7 +8425,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8387
8425
|
vue.createVNode(vue.unref(IconQuestionCircle), { class: "ml-2 cursor-help text-gray-400" })
|
|
8388
8426
|
]),
|
|
8389
8427
|
_: 1
|
|
8390
|
-
})) : (vue.openBlock(), vue.createBlock(
|
|
8428
|
+
})) : (vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Tooltip), {
|
|
8391
8429
|
key: 1,
|
|
8392
8430
|
position: "top"
|
|
8393
8431
|
}, {
|
|
@@ -8406,10 +8444,10 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8406
8444
|
_ctx.$slots.extra ? vue.renderSlot(_ctx.$slots, "extra", { key: 0 }, void 0, true) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$1, vue.toDisplayString(getProps.value.extra), 1))
|
|
8407
8445
|
])) : vue.createCommentVNode("", true)
|
|
8408
8446
|
])) : vue.createCommentVNode("", true),
|
|
8409
|
-
vue.createVNode(
|
|
8447
|
+
vue.createVNode(vue.unref(ArcoVue.Descriptions), vue.normalizeProps(vue.guardReactiveProps(getBindValue.value)), {
|
|
8410
8448
|
default: vue.withCtx(() => [
|
|
8411
8449
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(getSchema.value, (item) => {
|
|
8412
|
-
return vue.openBlock(), vue.createBlock(
|
|
8450
|
+
return vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.DescriptionsItem), {
|
|
8413
8451
|
key: item.field,
|
|
8414
8452
|
label: item.label,
|
|
8415
8453
|
span: item.span
|
|
@@ -8443,7 +8481,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8443
8481
|
};
|
|
8444
8482
|
}
|
|
8445
8483
|
});
|
|
8446
|
-
const BasicDescription = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8484
|
+
const BasicDescription = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-f93aecf8"]]);
|
|
8447
8485
|
function useDescription(props) {
|
|
8448
8486
|
const descriptionRef = vue.ref(null);
|
|
8449
8487
|
const loadedRef = vue.ref(false);
|
|
@@ -8486,12 +8524,12 @@ function useDescription(props) {
|
|
|
8486
8524
|
}
|
|
8487
8525
|
];
|
|
8488
8526
|
}
|
|
8489
|
-
const _hoisted_1$
|
|
8490
|
-
const _hoisted_2 = {
|
|
8527
|
+
const _hoisted_1$2 = { class: "basic-image" };
|
|
8528
|
+
const _hoisted_2$1 = {
|
|
8491
8529
|
key: 0,
|
|
8492
8530
|
class: "basic-image-empty"
|
|
8493
8531
|
};
|
|
8494
|
-
const _hoisted_3 = { class: "empty-text" };
|
|
8532
|
+
const _hoisted_3$1 = { class: "empty-text" };
|
|
8495
8533
|
const _hoisted_4 = {
|
|
8496
8534
|
key: 0,
|
|
8497
8535
|
class: "basic-image-simple"
|
|
@@ -8505,7 +8543,7 @@ const _hoisted_7 = {
|
|
|
8505
8543
|
key: 0,
|
|
8506
8544
|
style: { "display": "none" }
|
|
8507
8545
|
};
|
|
8508
|
-
const _sfc_main$
|
|
8546
|
+
const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
8509
8547
|
...{
|
|
8510
8548
|
name: "BasicImage"
|
|
8511
8549
|
},
|
|
@@ -8584,17 +8622,16 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8584
8622
|
});
|
|
8585
8623
|
__expose(methods);
|
|
8586
8624
|
return (_ctx, _cache) => {
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
normalizedImages.value.length === 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
8625
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
|
|
8626
|
+
normalizedImages.value.length === 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$1, [
|
|
8590
8627
|
vue.renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
8591
|
-
vue.createElementVNode("span", _hoisted_3, vue.toDisplayString(getProps.value.emptyText), 1)
|
|
8628
|
+
vue.createElementVNode("span", _hoisted_3$1, vue.toDisplayString(getProps.value.emptyText), 1)
|
|
8592
8629
|
], true)
|
|
8593
|
-
])) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(getProps.value.preview ?
|
|
8630
|
+
])) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(getProps.value.preview ? vue.unref(ArcoVue.ImagePreviewGroup) : "div"), { key: 1 }, {
|
|
8594
8631
|
default: vue.withCtx(() => [
|
|
8595
8632
|
!getProps.value.showAll ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
|
|
8596
8633
|
vue.createElementVNode("div", _hoisted_5, [
|
|
8597
|
-
vue.createVNode(
|
|
8634
|
+
vue.createVNode(vue.unref(ArcoVue.Image), {
|
|
8598
8635
|
src: normalizedImages.value[0].url,
|
|
8599
8636
|
width: getProps.value.width,
|
|
8600
8637
|
height: getProps.value.height,
|
|
@@ -8607,7 +8644,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8607
8644
|
]),
|
|
8608
8645
|
getProps.value.preview && normalizedImages.value.length > 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
|
|
8609
8646
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(normalizedImages.value.slice(1), (item, index) => {
|
|
8610
|
-
return vue.openBlock(), vue.createBlock(
|
|
8647
|
+
return vue.openBlock(), vue.createBlock(vue.unref(ArcoVue.Image), {
|
|
8611
8648
|
key: index,
|
|
8612
8649
|
src: item.url,
|
|
8613
8650
|
alt: item.name || "图片"
|
|
@@ -8624,7 +8661,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8624
8661
|
key: index,
|
|
8625
8662
|
class: "image-item"
|
|
8626
8663
|
}, [
|
|
8627
|
-
vue.createVNode(
|
|
8664
|
+
vue.createVNode(vue.unref(ArcoVue.Image), {
|
|
8628
8665
|
src: item.url,
|
|
8629
8666
|
width: getProps.value.width,
|
|
8630
8667
|
height: getProps.value.height,
|
|
@@ -8643,7 +8680,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8643
8680
|
};
|
|
8644
8681
|
}
|
|
8645
8682
|
});
|
|
8646
|
-
const BasicImage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8683
|
+
const BasicImage = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-04c54d5a"]]);
|
|
8647
8684
|
function useImage(options) {
|
|
8648
8685
|
const imageRef = vue.ref(null);
|
|
8649
8686
|
const loadedRef = vue.ref(false);
|
|
@@ -8690,6 +8727,32 @@ function useImage(options) {
|
|
|
8690
8727
|
});
|
|
8691
8728
|
return [register, methods];
|
|
8692
8729
|
}
|
|
8730
|
+
const _hoisted_1$1 = { class: "knt-spinner" };
|
|
8731
|
+
const _hoisted_2 = { class: "knt-spinner__ring" };
|
|
8732
|
+
const _hoisted_3 = {
|
|
8733
|
+
key: 0,
|
|
8734
|
+
class: "knt-spinner__tip"
|
|
8735
|
+
};
|
|
8736
|
+
const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
8737
|
+
...{ name: "LoadingSpinner" },
|
|
8738
|
+
__name: "LoadingSpinner",
|
|
8739
|
+
props: {
|
|
8740
|
+
tip: {}
|
|
8741
|
+
},
|
|
8742
|
+
setup(__props) {
|
|
8743
|
+
return (_ctx, _cache) => {
|
|
8744
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
|
|
8745
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
8746
|
+
(vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(4, (i) => {
|
|
8747
|
+
return vue.createElementVNode("span", { key: i });
|
|
8748
|
+
}), 64))
|
|
8749
|
+
]),
|
|
8750
|
+
__props.tip ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_3, vue.toDisplayString(__props.tip), 1)) : vue.createCommentVNode("", true)
|
|
8751
|
+
]);
|
|
8752
|
+
};
|
|
8753
|
+
}
|
|
8754
|
+
});
|
|
8755
|
+
const LoadingSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-8cd97aae"]]);
|
|
8693
8756
|
const _hoisted_1 = { class: "knt-loading-overlay__content" };
|
|
8694
8757
|
const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
8695
8758
|
...{
|
|
@@ -8719,21 +8782,20 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8719
8782
|
return base;
|
|
8720
8783
|
});
|
|
8721
8784
|
return (_ctx, _cache) => {
|
|
8722
|
-
const _component_a_spin = vue.resolveComponent("a-spin");
|
|
8723
8785
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
8724
8786
|
class: vue.normalizeClass(["knt-loading-overlay", __props.maskClass]),
|
|
8725
8787
|
style: vue.normalizeStyle([overlayStyle.value, __props.maskStyle])
|
|
8726
8788
|
}, [
|
|
8727
8789
|
vue.createElementVNode("div", _hoisted_1, [
|
|
8728
8790
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
8729
|
-
vue.createVNode(
|
|
8791
|
+
vue.createVNode(LoadingSpinner, { tip: __props.tip }, null, 8, ["tip"])
|
|
8730
8792
|
], true)
|
|
8731
8793
|
])
|
|
8732
8794
|
], 6);
|
|
8733
8795
|
};
|
|
8734
8796
|
}
|
|
8735
8797
|
});
|
|
8736
|
-
const LoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
8798
|
+
const LoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-b25f4ff8"]]);
|
|
8737
8799
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
8738
8800
|
...{
|
|
8739
8801
|
name: "BasicLoading",
|
|
@@ -8800,7 +8862,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
8800
8862
|
{ immediate: true }
|
|
8801
8863
|
);
|
|
8802
8864
|
return (_ctx, _cache) => {
|
|
8803
|
-
const _component_a_spin = vue.resolveComponent("a-spin");
|
|
8804
8865
|
return __props.loading ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
8805
8866
|
teleportTo.value ? (vue.openBlock(), vue.createBlock(vue.Teleport, {
|
|
8806
8867
|
key: 0,
|
|
@@ -8815,7 +8876,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
8815
8876
|
}, {
|
|
8816
8877
|
default: vue.withCtx(() => [
|
|
8817
8878
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
8818
|
-
vue.createVNode(
|
|
8879
|
+
vue.createVNode(LoadingSpinner, { tip: __props.tip }, null, 8, ["tip"])
|
|
8819
8880
|
])
|
|
8820
8881
|
]),
|
|
8821
8882
|
_: 3
|
|
@@ -9433,10 +9494,15 @@ function useToggle(initialValue = false) {
|
|
|
9433
9494
|
};
|
|
9434
9495
|
return [value, toggle, setTrue, setFalse];
|
|
9435
9496
|
}
|
|
9436
|
-
|
|
9437
|
-
|
|
9497
|
+
const KntSharedPlugin = {
|
|
9498
|
+
install(app) {
|
|
9499
|
+
app.use(ArcoVue);
|
|
9500
|
+
}
|
|
9501
|
+
};
|
|
9502
|
+
exports.ApiCascader = _sfc_main$b;
|
|
9503
|
+
exports.ApiSelect = _sfc_main$c;
|
|
9438
9504
|
exports.BasicDescription = BasicDescription;
|
|
9439
|
-
exports.BasicForm = _sfc_main$
|
|
9505
|
+
exports.BasicForm = _sfc_main$9;
|
|
9440
9506
|
exports.BasicImage = BasicImage;
|
|
9441
9507
|
exports.BasicLoading = _sfc_main;
|
|
9442
9508
|
exports.BasicModal = BasicModal;
|
|
@@ -9444,6 +9510,7 @@ exports.BasicReadonlyField = BasicReadonlyField;
|
|
|
9444
9510
|
exports.BasicTable = BasicTable;
|
|
9445
9511
|
exports.BasicTextEllipsis = BasicTextEllipsis;
|
|
9446
9512
|
exports.BasicUpload = BasicUpload;
|
|
9513
|
+
exports.KntSharedPlugin = KntSharedPlugin;
|
|
9447
9514
|
exports.VideoPreview = VideoPreview;
|
|
9448
9515
|
exports.VideoPreviewModal = VideoPreviewModal;
|
|
9449
9516
|
exports.arrayToMap = arrayToMap;
|