knt-shared 1.6.10 → 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/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 +229 -186
- 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 +194 -151
- 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 +112 -112
- 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$y = 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$x = 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$w = 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$v = 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$u = 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$t = 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,6 +502,84 @@ const IconRefresh = Object.assign(_IconRefresh, {
|
|
|
502
502
|
app.component(iconPrefix + _IconRefresh.name, _IconRefresh);
|
|
503
503
|
}
|
|
504
504
|
});
|
|
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
|
+
});
|
|
505
583
|
const _sfc_main$s = vue.defineComponent({
|
|
506
584
|
name: "IconSettings",
|
|
507
585
|
props: {
|
|
@@ -1429,7 +1507,6 @@ const _sfc_main$h = /* @__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,
|
|
@@ -1454,7 +1531,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
1454
1531
|
class: "file-image"
|
|
1455
1532
|
}, null, 8, _hoisted_2$9)) : vue.createCommentVNode("", true),
|
|
1456
1533
|
__props.file.status === "uploading" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$7, [
|
|
1457
|
-
vue.createVNode(
|
|
1534
|
+
vue.createVNode(vue.unref(ArcoVue.Progress), {
|
|
1458
1535
|
percent: __props.file.percent || 0,
|
|
1459
1536
|
size: "mini"
|
|
1460
1537
|
}, null, 8, ["percent"])
|
|
@@ -1486,7 +1563,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
1486
1563
|
}
|
|
1487
1564
|
return target;
|
|
1488
1565
|
};
|
|
1489
|
-
const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
1566
|
+
const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-17fb6dd9"]]);
|
|
1490
1567
|
const _hoisted_1$b = { class: "sortable-file-list" };
|
|
1491
1568
|
const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
1492
1569
|
...{
|
|
@@ -1787,9 +1864,6 @@ const _sfc_main$f = /* @__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
|
}, [
|
|
@@ -1818,7 +1892,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
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$f = /* @__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,7 +2014,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
1940
2014
|
};
|
|
1941
2015
|
}
|
|
1942
2016
|
});
|
|
1943
|
-
const VideoPreview = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
2017
|
+
const VideoPreview = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-b982f870"]]);
|
|
1944
2018
|
const _hoisted_1$9 = { class: "video-modal-title" };
|
|
1945
2019
|
const _hoisted_2$7 = { class: "file-name" };
|
|
1946
2020
|
const _hoisted_3$5 = { class: "video-modal-content" };
|
|
@@ -1983,8 +2057,7 @@ const _sfc_main$e = /* @__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,
|
|
@@ -2016,7 +2089,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
2016
2089
|
};
|
|
2017
2090
|
}
|
|
2018
2091
|
});
|
|
2019
|
-
const VideoPreviewModal = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
2092
|
+
const VideoPreviewModal = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-cac8e63e"]]);
|
|
2020
2093
|
const _hoisted_1$8 = { class: "basic-upload" };
|
|
2021
2094
|
const _hoisted_2$6 = {
|
|
2022
2095
|
key: 0,
|
|
@@ -2104,7 +2177,7 @@ const _sfc_main$d = /* @__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$d = /* @__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$d = /* @__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$d = /* @__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$d = /* @__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$d = /* @__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$d = /* @__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$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
2573
2646
|
});
|
|
2574
2647
|
});
|
|
2575
2648
|
return (_ctx, _cache) => {
|
|
2576
|
-
const _component_a_button = vue.resolveComponent("a-button");
|
|
2577
|
-
const _component_a_upload = vue.resolveComponent("a-upload");
|
|
2578
|
-
const _component_a_image = vue.resolveComponent("a-image");
|
|
2579
2649
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [
|
|
2580
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
|
|
@@ -2607,7 +2677,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
2607
2677
|
}, [
|
|
2608
2678
|
vue.createVNode(vue.unref(IconPlus), { size: 16 }),
|
|
2609
2679
|
getProps.value.uploadButtonText ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$4, vue.toDisplayString(getProps.value.uploadButtonText), 1)) : vue.createCommentVNode("", true)
|
|
2610
|
-
], 4)) : (vue.openBlock(), vue.createBlock(
|
|
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$d = /* @__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$d = /* @__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$d = /* @__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$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
2724
2794
|
};
|
|
2725
2795
|
}
|
|
2726
2796
|
});
|
|
2727
|
-
const BasicUpload = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
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) || []);
|
|
@@ -3102,8 +3172,7 @@ const _sfc_main$c = /* @__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,
|
|
@@ -3264,8 +3333,7 @@ const _sfc_main$b = /* @__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$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
3292
3360
|
}
|
|
3293
3361
|
});
|
|
3294
3362
|
const componentMap = {
|
|
3295
|
-
Input:
|
|
3296
|
-
InputNumber:
|
|
3297
|
-
InputPassword:
|
|
3298
|
-
Textarea:
|
|
3299
|
-
AutoComplete:
|
|
3300
|
-
Select:
|
|
3363
|
+
Input: ArcoVue.Input,
|
|
3364
|
+
InputNumber: ArcoVue.InputNumber,
|
|
3365
|
+
InputPassword: ArcoVue.InputPassword,
|
|
3366
|
+
Textarea: ArcoVue.Textarea,
|
|
3367
|
+
AutoComplete: ArcoVue.AutoComplete,
|
|
3368
|
+
Select: ArcoVue.Select,
|
|
3301
3369
|
ApiSelect: _sfc_main$c,
|
|
3302
|
-
Radio:
|
|
3303
|
-
RadioGroup:
|
|
3304
|
-
Checkbox:
|
|
3305
|
-
CheckboxGroup:
|
|
3306
|
-
Cascader:
|
|
3370
|
+
Radio: ArcoVue.Radio,
|
|
3371
|
+
RadioGroup: ArcoVue.RadioGroup,
|
|
3372
|
+
Checkbox: ArcoVue.Checkbox,
|
|
3373
|
+
CheckboxGroup: ArcoVue.CheckboxGroup,
|
|
3374
|
+
Cascader: ArcoVue.Cascader,
|
|
3307
3375
|
ApiCascader: _sfc_main$b,
|
|
3308
|
-
TreeSelect:
|
|
3309
|
-
DatePicker:
|
|
3310
|
-
TimePicker:
|
|
3311
|
-
RangePicker:
|
|
3312
|
-
Switch:
|
|
3313
|
-
Slider:
|
|
3314
|
-
Rate:
|
|
3315
|
-
Upload:
|
|
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,
|
|
@@ -4494,16 +4562,7 @@ const _sfc_main$9 = /* @__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$9 = /* @__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$9 = /* @__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$9 = /* @__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)
|
|
@@ -4977,9 +5036,8 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4977
5036
|
}
|
|
4978
5037
|
);
|
|
4979
5038
|
return (_ctx, _cache) => {
|
|
4980
|
-
const _component_a_tooltip = vue.resolveComponent("a-tooltip");
|
|
4981
5039
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
|
|
4982
|
-
showTooltip.value ? (vue.openBlock(), vue.createBlock(
|
|
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$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5004
5062
|
};
|
|
5005
5063
|
}
|
|
5006
5064
|
});
|
|
5007
|
-
const BasicTextEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
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 {
|
|
@@ -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
|
}
|
|
@@ -6341,7 +6399,7 @@ const _sfc_main$6 = /* @__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$6 = /* @__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,18 +6945,6 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
6887
6945
|
searchFormRef.value = null;
|
|
6888
6946
|
});
|
|
6889
6947
|
return (_ctx, _cache) => {
|
|
6890
|
-
const _component_a_divider = vue.resolveComponent("a-divider");
|
|
6891
|
-
const _component_a_button = vue.resolveComponent("a-button");
|
|
6892
|
-
const _component_a_tooltip = vue.resolveComponent("a-tooltip");
|
|
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
6948
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
|
|
6903
6949
|
getSearchConfig.value.show ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$4, [
|
|
6904
6950
|
vue.createVNode(vue.unref(_sfc_main$9), vue.mergeProps({
|
|
@@ -6917,7 +6963,7 @@ const _sfc_main$6 = /* @__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
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, [
|
|
@@ -6926,10 +6972,10 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
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$6 = /* @__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$6 = /* @__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$6 = /* @__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$6 = /* @__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$6 = /* @__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$6 = /* @__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$6 = /* @__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$6 = /* @__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$6 = /* @__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$6 = /* @__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$6 = /* @__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$6 = /* @__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$6 = /* @__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$6 = /* @__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$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7263
7309
|
};
|
|
7264
7310
|
}
|
|
7265
7311
|
});
|
|
7266
|
-
const BasicTable = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
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);
|
|
@@ -7922,12 +7968,7 @@ const _sfc_main$5 = /* @__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$5 = /* @__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),
|
|
@@ -7976,7 +8017,7 @@ const _sfc_main$5 = /* @__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$5 = /* @__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
|
}, {
|
|
@@ -8033,17 +8074,17 @@ const _sfc_main$5 = /* @__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$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8068
8109
|
};
|
|
8069
8110
|
}
|
|
8070
8111
|
});
|
|
8071
|
-
const BasicModal = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
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);
|
|
@@ -8365,16 +8406,13 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8365
8406
|
});
|
|
8366
8407
|
return (_ctx, _cache) => {
|
|
8367
8408
|
var _a;
|
|
8368
|
-
const _component_a_tooltip = vue.resolveComponent("a-tooltip");
|
|
8369
|
-
const _component_a_descriptions_item = vue.resolveComponent("a-descriptions-item");
|
|
8370
|
-
const _component_a_descriptions = vue.resolveComponent("a-descriptions");
|
|
8371
8409
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$3, [
|
|
8372
8410
|
getProps.value.title || _ctx.$slots.title || _ctx.$slots.extra ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$2, [
|
|
8373
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$4 = /* @__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$4 = /* @__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$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8443
8481
|
};
|
|
8444
8482
|
}
|
|
8445
8483
|
});
|
|
8446
|
-
const BasicDescription = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
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);
|
|
@@ -8584,17 +8622,16 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8584
8622
|
});
|
|
8585
8623
|
__expose(methods);
|
|
8586
8624
|
return (_ctx, _cache) => {
|
|
8587
|
-
const _component_a_image = vue.resolveComponent("a-image");
|
|
8588
8625
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
|
|
8589
8626
|
normalizedImages.value.length === 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$1, [
|
|
8590
8627
|
vue.renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
8591
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$3 = /* @__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$3 = /* @__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$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8643
8680
|
};
|
|
8644
8681
|
}
|
|
8645
8682
|
});
|
|
8646
|
-
const BasicImage = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
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);
|
|
@@ -9457,6 +9494,11 @@ function useToggle(initialValue = false) {
|
|
|
9457
9494
|
};
|
|
9458
9495
|
return [value, toggle, setTrue, setFalse];
|
|
9459
9496
|
}
|
|
9497
|
+
const KntSharedPlugin = {
|
|
9498
|
+
install(app) {
|
|
9499
|
+
app.use(ArcoVue);
|
|
9500
|
+
}
|
|
9501
|
+
};
|
|
9460
9502
|
exports.ApiCascader = _sfc_main$b;
|
|
9461
9503
|
exports.ApiSelect = _sfc_main$c;
|
|
9462
9504
|
exports.BasicDescription = BasicDescription;
|
|
@@ -9468,6 +9510,7 @@ exports.BasicReadonlyField = BasicReadonlyField;
|
|
|
9468
9510
|
exports.BasicTable = BasicTable;
|
|
9469
9511
|
exports.BasicTextEllipsis = BasicTextEllipsis;
|
|
9470
9512
|
exports.BasicUpload = BasicUpload;
|
|
9513
|
+
exports.KntSharedPlugin = KntSharedPlugin;
|
|
9471
9514
|
exports.VideoPreview = VideoPreview;
|
|
9472
9515
|
exports.VideoPreviewModal = VideoPreviewModal;
|
|
9473
9516
|
exports.arrayToMap = arrayToMap;
|