knt-shared 1.6.7 → 1.6.9
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/Form/BasicForm.vue.d.ts.map +1 -1
- package/dist/components/Form/componentMap.d.ts.map +1 -1
- package/dist/components/Loading/BasicLoading.vue.d.ts +49 -0
- package/dist/components/Loading/BasicLoading.vue.d.ts.map +1 -0
- package/dist/components/Loading/LoadingOverlay.vue.d.ts +57 -0
- package/dist/components/Loading/LoadingOverlay.vue.d.ts.map +1 -0
- package/dist/components/Loading/__tests__/BasicLoading.spec.d.ts +2 -0
- package/dist/components/Loading/__tests__/BasicLoading.spec.d.ts.map +1 -0
- package/dist/components/Loading/__tests__/createLoading.spec.d.ts +2 -0
- package/dist/components/Loading/__tests__/createLoading.spec.d.ts.map +1 -0
- package/dist/components/Loading/__tests__/setup.d.ts +2 -0
- package/dist/components/Loading/__tests__/setup.d.ts.map +1 -0
- package/dist/components/Loading/createLoading.d.ts +9 -0
- package/dist/components/Loading/createLoading.d.ts.map +1 -0
- package/dist/components/Loading/index.d.ts +6 -0
- package/dist/components/Loading/index.d.ts.map +1 -0
- package/dist/components/Loading/types.d.ts +55 -0
- package/dist/components/Loading/types.d.ts.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs.js +353 -143
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +354 -144
- package/dist/index.esm.js.map +1 -1
- package/dist/style.css +9 -0
- package/package.json +8 -2
package/dist/index.cjs.js
CHANGED
|
@@ -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$x = vue.defineComponent({
|
|
28
28
|
name: "IconExclamationCircle",
|
|
29
29
|
props: {
|
|
30
30
|
size: {
|
|
@@ -77,7 +77,7 @@ const _sfc_main$v = vue.defineComponent({
|
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
|
-
const _hoisted_1$
|
|
80
|
+
const _hoisted_1$s = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
81
81
|
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
82
82
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
83
83
|
viewBox: "0 0 48 48",
|
|
@@ -92,9 +92,9 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
92
92
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
93
93
|
}, _cache[1] || (_cache[1] = [
|
|
94
94
|
vue.createElementVNode("path", { d: "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$s);
|
|
96
96
|
}
|
|
97
|
-
var _IconExclamationCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
97
|
+
var _IconExclamationCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$x, [["render", _sfc_render$g]]);
|
|
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$w = vue.defineComponent({
|
|
106
106
|
name: "IconPlus",
|
|
107
107
|
props: {
|
|
108
108
|
size: {
|
|
@@ -155,7 +155,7 @@ const _sfc_main$u = vue.defineComponent({
|
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
157
|
});
|
|
158
|
-
const _hoisted_1$
|
|
158
|
+
const _hoisted_1$r = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
159
159
|
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
160
160
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
161
161
|
viewBox: "0 0 48 48",
|
|
@@ -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$r);
|
|
174
174
|
}
|
|
175
|
-
var _IconPlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
175
|
+
var _IconPlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$w, [["render", _sfc_render$f]]);
|
|
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$v = vue.defineComponent({
|
|
184
184
|
name: "IconQuestionCircle",
|
|
185
185
|
props: {
|
|
186
186
|
size: {
|
|
@@ -233,7 +233,7 @@ const _sfc_main$t = vue.defineComponent({
|
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
235
|
});
|
|
236
|
-
const _hoisted_1$
|
|
236
|
+
const _hoisted_1$q = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
237
237
|
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
238
238
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
239
239
|
viewBox: "0 0 48 48",
|
|
@@ -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$q);
|
|
253
253
|
}
|
|
254
|
-
var _IconQuestionCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
254
|
+
var _IconQuestionCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["render", _sfc_render$e]]);
|
|
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$u = vue.defineComponent({
|
|
263
263
|
name: "IconEye",
|
|
264
264
|
props: {
|
|
265
265
|
size: {
|
|
@@ -312,7 +312,7 @@ const _sfc_main$s = vue.defineComponent({
|
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
314
|
});
|
|
315
|
-
const _hoisted_1$
|
|
315
|
+
const _hoisted_1$p = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
316
316
|
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
317
317
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
318
318
|
viewBox: "0 0 48 48",
|
|
@@ -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$p);
|
|
335
335
|
}
|
|
336
|
-
var _IconEye = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
336
|
+
var _IconEye = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["render", _sfc_render$d]]);
|
|
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$t = vue.defineComponent({
|
|
345
345
|
name: "IconMore",
|
|
346
346
|
props: {
|
|
347
347
|
size: {
|
|
@@ -394,7 +394,7 @@ const _sfc_main$r = vue.defineComponent({
|
|
|
394
394
|
};
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
|
-
const _hoisted_1$
|
|
397
|
+
const _hoisted_1$o = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
398
398
|
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
399
399
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
400
400
|
viewBox: "0 0 48 48",
|
|
@@ -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$o);
|
|
418
418
|
}
|
|
419
|
-
var _IconMore = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
419
|
+
var _IconMore = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$c]]);
|
|
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$s = vue.defineComponent({
|
|
428
428
|
name: "IconRefresh",
|
|
429
429
|
props: {
|
|
430
430
|
size: {
|
|
@@ -477,7 +477,7 @@ const _sfc_main$q = vue.defineComponent({
|
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
479
|
});
|
|
480
|
-
const _hoisted_1$
|
|
480
|
+
const _hoisted_1$n = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
481
481
|
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
482
482
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
483
483
|
viewBox: "0 0 48 48",
|
|
@@ -492,9 +492,9 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
492
492
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
493
493
|
}, _cache[1] || (_cache[1] = [
|
|
494
494
|
vue.createElementVNode("path", { d: "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$n);
|
|
496
496
|
}
|
|
497
|
-
var _IconRefresh = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
497
|
+
var _IconRefresh = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_render$b]]);
|
|
498
498
|
const IconRefresh = Object.assign(_IconRefresh, {
|
|
499
499
|
install: (app, options) => {
|
|
500
500
|
var _a;
|
|
@@ -502,7 +502,7 @@ 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$r = vue.defineComponent({
|
|
506
506
|
name: "IconSettings",
|
|
507
507
|
props: {
|
|
508
508
|
size: {
|
|
@@ -555,7 +555,7 @@ const _sfc_main$p = vue.defineComponent({
|
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
557
|
});
|
|
558
|
-
const _hoisted_1$
|
|
558
|
+
const _hoisted_1$m = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
559
559
|
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
560
560
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
561
561
|
viewBox: "0 0 48 48",
|
|
@@ -571,9 +571,9 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
571
571
|
}, _cache[1] || (_cache[1] = [
|
|
572
572
|
vue.createElementVNode("path", { d: "M18.797 6.732A1 1 0 0 1 19.76 6h8.48a1 1 0 0 1 .964.732l1.285 4.628a1 1 0 0 0 1.213.7l4.651-1.2a1 1 0 0 1 1.116.468l4.24 7.344a1 1 0 0 1-.153 1.2L38.193 23.3a1 1 0 0 0 0 1.402l3.364 3.427a1 1 0 0 1 .153 1.2l-4.24 7.344a1 1 0 0 1-1.116.468l-4.65-1.2a1 1 0 0 0-1.214.7l-1.285 4.628a1 1 0 0 1-.964.732h-8.48a1 1 0 0 1-.963-.732L17.51 36.64a1 1 0 0 0-1.213-.7l-4.65 1.2a1 1 0 0 1-1.116-.468l-4.24-7.344a1 1 0 0 1 .153-1.2L9.809 24.7a1 1 0 0 0 0-1.402l-3.364-3.427a1 1 0 0 1-.153-1.2l4.24-7.344a1 1 0 0 1 1.116-.468l4.65 1.2a1 1 0 0 0 1.213-.7l1.286-4.628Z" }, null, -1),
|
|
573
573
|
vue.createElementVNode("path", { d: "M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z" }, null, -1)
|
|
574
|
-
]), 14, _hoisted_1$
|
|
574
|
+
]), 14, _hoisted_1$m);
|
|
575
575
|
}
|
|
576
|
-
var _IconSettings = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
576
|
+
var _IconSettings = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _sfc_render$a]]);
|
|
577
577
|
const IconSettings = Object.assign(_IconSettings, {
|
|
578
578
|
install: (app, options) => {
|
|
579
579
|
var _a;
|
|
@@ -581,7 +581,7 @@ const IconSettings = Object.assign(_IconSettings, {
|
|
|
581
581
|
app.component(iconPrefix + _IconSettings.name, _IconSettings);
|
|
582
582
|
}
|
|
583
583
|
});
|
|
584
|
-
const _sfc_main$
|
|
584
|
+
const _sfc_main$q = vue.defineComponent({
|
|
585
585
|
name: "IconUpload",
|
|
586
586
|
props: {
|
|
587
587
|
size: {
|
|
@@ -634,7 +634,7 @@ const _sfc_main$o = vue.defineComponent({
|
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
636
|
});
|
|
637
|
-
const _hoisted_1$
|
|
637
|
+
const _hoisted_1$l = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
638
638
|
function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
639
639
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
640
640
|
viewBox: "0 0 48 48",
|
|
@@ -649,9 +649,9 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
649
649
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
650
650
|
}, _cache[1] || (_cache[1] = [
|
|
651
651
|
vue.createElementVNode("path", { d: "M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6" }, null, -1)
|
|
652
|
-
]), 14, _hoisted_1$
|
|
652
|
+
]), 14, _hoisted_1$l);
|
|
653
653
|
}
|
|
654
|
-
var _IconUpload = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
654
|
+
var _IconUpload = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["render", _sfc_render$9]]);
|
|
655
655
|
const IconUpload = Object.assign(_IconUpload, {
|
|
656
656
|
install: (app, options) => {
|
|
657
657
|
var _a;
|
|
@@ -659,7 +659,7 @@ const IconUpload = Object.assign(_IconUpload, {
|
|
|
659
659
|
app.component(iconPrefix + _IconUpload.name, _IconUpload);
|
|
660
660
|
}
|
|
661
661
|
});
|
|
662
|
-
const _sfc_main$
|
|
662
|
+
const _sfc_main$p = vue.defineComponent({
|
|
663
663
|
name: "IconDelete",
|
|
664
664
|
props: {
|
|
665
665
|
size: {
|
|
@@ -712,7 +712,7 @@ const _sfc_main$n = vue.defineComponent({
|
|
|
712
712
|
};
|
|
713
713
|
}
|
|
714
714
|
});
|
|
715
|
-
const _hoisted_1$
|
|
715
|
+
const _hoisted_1$k = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
716
716
|
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
717
717
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
718
718
|
viewBox: "0 0 48 48",
|
|
@@ -727,9 +727,9 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
727
727
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
728
728
|
}, _cache[1] || (_cache[1] = [
|
|
729
729
|
vue.createElementVNode("path", { d: "M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15" }, null, -1)
|
|
730
|
-
]), 14, _hoisted_1$
|
|
730
|
+
]), 14, _hoisted_1$k);
|
|
731
731
|
}
|
|
732
|
-
var _IconDelete = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
732
|
+
var _IconDelete = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["render", _sfc_render$8]]);
|
|
733
733
|
const IconDelete = Object.assign(_IconDelete, {
|
|
734
734
|
install: (app, options) => {
|
|
735
735
|
var _a;
|
|
@@ -737,7 +737,7 @@ const IconDelete = Object.assign(_IconDelete, {
|
|
|
737
737
|
app.component(iconPrefix + _IconDelete.name, _IconDelete);
|
|
738
738
|
}
|
|
739
739
|
});
|
|
740
|
-
const _sfc_main$
|
|
740
|
+
const _sfc_main$o = vue.defineComponent({
|
|
741
741
|
name: "IconLineHeight",
|
|
742
742
|
props: {
|
|
743
743
|
size: {
|
|
@@ -790,7 +790,7 @@ const _sfc_main$m = vue.defineComponent({
|
|
|
790
790
|
};
|
|
791
791
|
}
|
|
792
792
|
});
|
|
793
|
-
const _hoisted_1$
|
|
793
|
+
const _hoisted_1$j = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
794
794
|
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
795
795
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
796
796
|
viewBox: "0 0 48 48",
|
|
@@ -811,9 +811,9 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
811
811
|
stroke: "none"
|
|
812
812
|
}, null, -1),
|
|
813
813
|
vue.createElementVNode("path", { d: "M39 13h2l-2-3.5-2 3.5h2Zm0 0v22m0 0h2l-2 3.5-2-3.5h2Z" }, null, -1)
|
|
814
|
-
]), 14, _hoisted_1$
|
|
814
|
+
]), 14, _hoisted_1$j);
|
|
815
815
|
}
|
|
816
|
-
var _IconLineHeight = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
816
|
+
var _IconLineHeight = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_render$7]]);
|
|
817
817
|
const IconLineHeight = Object.assign(_IconLineHeight, {
|
|
818
818
|
install: (app, options) => {
|
|
819
819
|
var _a;
|
|
@@ -821,7 +821,7 @@ const IconLineHeight = Object.assign(_IconLineHeight, {
|
|
|
821
821
|
app.component(iconPrefix + _IconLineHeight.name, _IconLineHeight);
|
|
822
822
|
}
|
|
823
823
|
});
|
|
824
|
-
const _sfc_main$
|
|
824
|
+
const _sfc_main$n = vue.defineComponent({
|
|
825
825
|
name: "IconFullscreenExit",
|
|
826
826
|
props: {
|
|
827
827
|
size: {
|
|
@@ -874,7 +874,7 @@ const _sfc_main$l = vue.defineComponent({
|
|
|
874
874
|
};
|
|
875
875
|
}
|
|
876
876
|
});
|
|
877
|
-
const _hoisted_1$
|
|
877
|
+
const _hoisted_1$i = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
878
878
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
879
879
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
880
880
|
viewBox: "0 0 48 48",
|
|
@@ -889,9 +889,9 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
889
889
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
890
890
|
}, _cache[1] || (_cache[1] = [
|
|
891
891
|
vue.createElementVNode("path", { d: "M35 6v8a1 1 0 0 0 1 1h8M13 6v8a1 1 0 0 1-1 1H4m31 27v-8a1 1 0 0 1 1-1h8m-31 9v-8a1 1 0 0 0-1-1H4" }, null, -1)
|
|
892
|
-
]), 14, _hoisted_1$
|
|
892
|
+
]), 14, _hoisted_1$i);
|
|
893
893
|
}
|
|
894
|
-
var _IconFullscreenExit = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
894
|
+
var _IconFullscreenExit = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$6]]);
|
|
895
895
|
const IconFullscreenExit = Object.assign(_IconFullscreenExit, {
|
|
896
896
|
install: (app, options) => {
|
|
897
897
|
var _a;
|
|
@@ -899,7 +899,7 @@ const IconFullscreenExit = Object.assign(_IconFullscreenExit, {
|
|
|
899
899
|
app.component(iconPrefix + _IconFullscreenExit.name, _IconFullscreenExit);
|
|
900
900
|
}
|
|
901
901
|
});
|
|
902
|
-
const _sfc_main$
|
|
902
|
+
const _sfc_main$m = vue.defineComponent({
|
|
903
903
|
name: "IconFullscreen",
|
|
904
904
|
props: {
|
|
905
905
|
size: {
|
|
@@ -952,7 +952,7 @@ const _sfc_main$k = vue.defineComponent({
|
|
|
952
952
|
};
|
|
953
953
|
}
|
|
954
954
|
});
|
|
955
|
-
const _hoisted_1$
|
|
955
|
+
const _hoisted_1$h = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
956
956
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
957
957
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
958
958
|
viewBox: "0 0 48 48",
|
|
@@ -967,9 +967,9 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
967
967
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
968
968
|
}, _cache[1] || (_cache[1] = [
|
|
969
969
|
vue.createElementVNode("path", { d: "M42 17V9a1 1 0 0 0-1-1h-8M6 17V9a1 1 0 0 1 1-1h8m27 23v8a1 1 0 0 1-1 1h-8M6 31v8a1 1 0 0 0 1 1h8" }, null, -1)
|
|
970
|
-
]), 14, _hoisted_1$
|
|
970
|
+
]), 14, _hoisted_1$h);
|
|
971
971
|
}
|
|
972
|
-
var _IconFullscreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
972
|
+
var _IconFullscreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$m, [["render", _sfc_render$5]]);
|
|
973
973
|
const IconFullscreen = Object.assign(_IconFullscreen, {
|
|
974
974
|
install: (app, options) => {
|
|
975
975
|
var _a;
|
|
@@ -977,7 +977,7 @@ const IconFullscreen = Object.assign(_IconFullscreen, {
|
|
|
977
977
|
app.component(iconPrefix + _IconFullscreen.name, _IconFullscreen);
|
|
978
978
|
}
|
|
979
979
|
});
|
|
980
|
-
const _sfc_main$
|
|
980
|
+
const _sfc_main$l = vue.defineComponent({
|
|
981
981
|
name: "IconMute",
|
|
982
982
|
props: {
|
|
983
983
|
size: {
|
|
@@ -1030,7 +1030,7 @@ const _sfc_main$j = vue.defineComponent({
|
|
|
1030
1030
|
};
|
|
1031
1031
|
}
|
|
1032
1032
|
});
|
|
1033
|
-
const _hoisted_1$
|
|
1033
|
+
const _hoisted_1$g = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1034
1034
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1035
1035
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
1036
1036
|
viewBox: "0 0 48 48",
|
|
@@ -1045,9 +1045,9 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1045
1045
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
1046
1046
|
}, _cache[1] || (_cache[1] = [
|
|
1047
1047
|
vue.createElementVNode("path", { d: "m19 11.5 4.833-4.35a.1.1 0 0 1 .167.075V17m-14-1H7.1a.1.1 0 0 0-.1.1v15.8a.1.1 0 0 0 .1.1H14l9.833 8.85a.1.1 0 0 0 .167-.075V31m6.071-14.071C32.535 19.393 34 23 32.799 26m2.929-14.728C41.508 17.052 42.5 25 39.123 32M6.5 6.5l35 35" }, null, -1)
|
|
1048
|
-
]), 14, _hoisted_1$
|
|
1048
|
+
]), 14, _hoisted_1$g);
|
|
1049
1049
|
}
|
|
1050
|
-
var _IconMute = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1050
|
+
var _IconMute = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["render", _sfc_render$4]]);
|
|
1051
1051
|
const IconMute = Object.assign(_IconMute, {
|
|
1052
1052
|
install: (app, options) => {
|
|
1053
1053
|
var _a;
|
|
@@ -1055,7 +1055,7 @@ const IconMute = Object.assign(_IconMute, {
|
|
|
1055
1055
|
app.component(iconPrefix + _IconMute.name, _IconMute);
|
|
1056
1056
|
}
|
|
1057
1057
|
});
|
|
1058
|
-
const _sfc_main$
|
|
1058
|
+
const _sfc_main$k = vue.defineComponent({
|
|
1059
1059
|
name: "IconPause",
|
|
1060
1060
|
props: {
|
|
1061
1061
|
size: {
|
|
@@ -1108,7 +1108,7 @@ const _sfc_main$i = vue.defineComponent({
|
|
|
1108
1108
|
};
|
|
1109
1109
|
}
|
|
1110
1110
|
});
|
|
1111
|
-
const _hoisted_1$
|
|
1111
|
+
const _hoisted_1$f = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1112
1112
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1113
1113
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
1114
1114
|
viewBox: "0 0 48 48",
|
|
@@ -1128,9 +1128,9 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1128
1128
|
stroke: "none",
|
|
1129
1129
|
d: "M14 12h4v24h-4zM30 12h4v24h-4z"
|
|
1130
1130
|
}, null, -1)
|
|
1131
|
-
]), 14, _hoisted_1$
|
|
1131
|
+
]), 14, _hoisted_1$f);
|
|
1132
1132
|
}
|
|
1133
|
-
var _IconPause = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1133
|
+
var _IconPause = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_render$3]]);
|
|
1134
1134
|
const IconPause = Object.assign(_IconPause, {
|
|
1135
1135
|
install: (app, options) => {
|
|
1136
1136
|
var _a;
|
|
@@ -1138,7 +1138,7 @@ const IconPause = Object.assign(_IconPause, {
|
|
|
1138
1138
|
app.component(iconPrefix + _IconPause.name, _IconPause);
|
|
1139
1139
|
}
|
|
1140
1140
|
});
|
|
1141
|
-
const _sfc_main$
|
|
1141
|
+
const _sfc_main$j = vue.defineComponent({
|
|
1142
1142
|
name: "IconPlayArrow",
|
|
1143
1143
|
props: {
|
|
1144
1144
|
size: {
|
|
@@ -1191,7 +1191,7 @@ const _sfc_main$h = vue.defineComponent({
|
|
|
1191
1191
|
};
|
|
1192
1192
|
}
|
|
1193
1193
|
});
|
|
1194
|
-
const _hoisted_1$
|
|
1194
|
+
const _hoisted_1$e = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1195
1195
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1196
1196
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
1197
1197
|
viewBox: "0 0 48 48",
|
|
@@ -1206,9 +1206,9 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1206
1206
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
1207
1207
|
}, _cache[1] || (_cache[1] = [
|
|
1208
1208
|
vue.createElementVNode("path", { d: "M12.533 7.965A1 1 0 0 0 11 8.81v30.377a1 1 0 0 0 1.533.846L36.656 24.84a1 1 0 0 0 0-1.692L12.533 7.965Z" }, null, -1)
|
|
1209
|
-
]), 14, _hoisted_1$
|
|
1209
|
+
]), 14, _hoisted_1$e);
|
|
1210
1210
|
}
|
|
1211
|
-
var _IconPlayArrow = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1211
|
+
var _IconPlayArrow = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_render$2]]);
|
|
1212
1212
|
const IconPlayArrow = Object.assign(_IconPlayArrow, {
|
|
1213
1213
|
install: (app, options) => {
|
|
1214
1214
|
var _a;
|
|
@@ -1216,7 +1216,7 @@ const IconPlayArrow = Object.assign(_IconPlayArrow, {
|
|
|
1216
1216
|
app.component(iconPrefix + _IconPlayArrow.name, _IconPlayArrow);
|
|
1217
1217
|
}
|
|
1218
1218
|
});
|
|
1219
|
-
const _sfc_main$
|
|
1219
|
+
const _sfc_main$i = vue.defineComponent({
|
|
1220
1220
|
name: "IconSound",
|
|
1221
1221
|
props: {
|
|
1222
1222
|
size: {
|
|
@@ -1269,7 +1269,7 @@ const _sfc_main$g = vue.defineComponent({
|
|
|
1269
1269
|
};
|
|
1270
1270
|
}
|
|
1271
1271
|
});
|
|
1272
|
-
const _hoisted_1$
|
|
1272
|
+
const _hoisted_1$d = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1273
1273
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1274
1274
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
1275
1275
|
viewBox: "0 0 48 48",
|
|
@@ -1285,9 +1285,9 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1285
1285
|
}, _cache[1] || (_cache[1] = [
|
|
1286
1286
|
vue.createElementVNode("path", { d: "m14 16 10-9v34l-10-9H6V16h8Z" }, null, -1),
|
|
1287
1287
|
vue.createElementVNode("path", { d: "M31.071 16.929c3.905 3.905 3.905 10.237 0 14.142M36.727 11.272c7.03 7.03 7.03 18.426 0 25.456" }, null, -1)
|
|
1288
|
-
]), 14, _hoisted_1$
|
|
1288
|
+
]), 14, _hoisted_1$d);
|
|
1289
1289
|
}
|
|
1290
|
-
var _IconSound = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1290
|
+
var _IconSound = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["render", _sfc_render$1]]);
|
|
1291
1291
|
const IconSound = Object.assign(_IconSound, {
|
|
1292
1292
|
install: (app, options) => {
|
|
1293
1293
|
var _a;
|
|
@@ -1295,7 +1295,7 @@ const IconSound = Object.assign(_IconSound, {
|
|
|
1295
1295
|
app.component(iconPrefix + _IconSound.name, _IconSound);
|
|
1296
1296
|
}
|
|
1297
1297
|
});
|
|
1298
|
-
const _sfc_main$
|
|
1298
|
+
const _sfc_main$h = vue.defineComponent({
|
|
1299
1299
|
name: "IconLoading",
|
|
1300
1300
|
props: {
|
|
1301
1301
|
size: {
|
|
@@ -1348,7 +1348,7 @@ const _sfc_main$f = vue.defineComponent({
|
|
|
1348
1348
|
};
|
|
1349
1349
|
}
|
|
1350
1350
|
});
|
|
1351
|
-
const _hoisted_1$
|
|
1351
|
+
const _hoisted_1$c = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
1352
1352
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1353
1353
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
1354
1354
|
viewBox: "0 0 48 48",
|
|
@@ -1363,9 +1363,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1363
1363
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
1364
1364
|
}, _cache[1] || (_cache[1] = [
|
|
1365
1365
|
vue.createElementVNode("path", { d: "M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6" }, null, -1)
|
|
1366
|
-
]), 14, _hoisted_1$
|
|
1366
|
+
]), 14, _hoisted_1$c);
|
|
1367
1367
|
}
|
|
1368
|
-
var _IconLoading = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1368
|
+
var _IconLoading = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["render", _sfc_render]]);
|
|
1369
1369
|
const IconLoading = Object.assign(_IconLoading, {
|
|
1370
1370
|
install: (app, options) => {
|
|
1371
1371
|
var _a;
|
|
@@ -1373,7 +1373,7 @@ const IconLoading = Object.assign(_IconLoading, {
|
|
|
1373
1373
|
app.component(iconPrefix + _IconLoading.name, _IconLoading);
|
|
1374
1374
|
}
|
|
1375
1375
|
});
|
|
1376
|
-
const _hoisted_1$
|
|
1376
|
+
const _hoisted_1$b = ["draggable"];
|
|
1377
1377
|
const _hoisted_2$8 = ["src", "alt"];
|
|
1378
1378
|
const _hoisted_3$6 = {
|
|
1379
1379
|
key: 1,
|
|
@@ -1388,7 +1388,7 @@ const _hoisted_6$4 = {
|
|
|
1388
1388
|
key: 3,
|
|
1389
1389
|
class: "error-tip"
|
|
1390
1390
|
};
|
|
1391
|
-
const _sfc_main$
|
|
1391
|
+
const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
1392
1392
|
...{
|
|
1393
1393
|
name: "SortableFileItem"
|
|
1394
1394
|
},
|
|
@@ -1475,7 +1475,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
1475
1475
|
__props.file.status === "error" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$4, [
|
|
1476
1476
|
vue.createVNode(vue.unref(IconExclamationCircle))
|
|
1477
1477
|
])) : vue.createCommentVNode("", true)
|
|
1478
|
-
], 46, _hoisted_1$
|
|
1478
|
+
], 46, _hoisted_1$b);
|
|
1479
1479
|
};
|
|
1480
1480
|
}
|
|
1481
1481
|
});
|
|
@@ -1486,9 +1486,9 @@ const _export_sfc = (sfc, props) => {
|
|
|
1486
1486
|
}
|
|
1487
1487
|
return target;
|
|
1488
1488
|
};
|
|
1489
|
-
const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1490
|
-
const _hoisted_1$
|
|
1491
|
-
const _sfc_main$
|
|
1489
|
+
const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-f3ec7e11"]]);
|
|
1490
|
+
const _hoisted_1$a = { class: "sortable-file-list" };
|
|
1491
|
+
const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
1492
1492
|
...{
|
|
1493
1493
|
name: "SortableFileList"
|
|
1494
1494
|
},
|
|
@@ -1552,7 +1552,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
1552
1552
|
emit("remove", file);
|
|
1553
1553
|
};
|
|
1554
1554
|
return (_ctx, _cache) => {
|
|
1555
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
1555
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [
|
|
1556
1556
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.fileList, (file, index) => {
|
|
1557
1557
|
return vue.openBlock(), vue.createBlock(SortableFileItem, {
|
|
1558
1558
|
key: file.uid,
|
|
@@ -1573,8 +1573,8 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
1573
1573
|
};
|
|
1574
1574
|
}
|
|
1575
1575
|
});
|
|
1576
|
-
const SortableFileList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1577
|
-
const _hoisted_1$
|
|
1576
|
+
const SortableFileList = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-1ede8f45"]]);
|
|
1577
|
+
const _hoisted_1$9 = ["src", "autoplay", "loop", "muted", "preload"];
|
|
1578
1578
|
const _hoisted_2$7 = {
|
|
1579
1579
|
key: 0,
|
|
1580
1580
|
class: "play-overlay"
|
|
@@ -1591,7 +1591,7 @@ const _hoisted_8$1 = { class: "volume-slider-container" };
|
|
|
1591
1591
|
const _hoisted_9 = { class: "time-display" };
|
|
1592
1592
|
const _hoisted_10 = { class: "controls-right" };
|
|
1593
1593
|
const _hoisted_11 = { class: "control-button" };
|
|
1594
|
-
const _sfc_main$
|
|
1594
|
+
const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
1595
1595
|
...{
|
|
1596
1596
|
name: "VideoPreview"
|
|
1597
1597
|
},
|
|
@@ -1811,7 +1811,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
1811
1811
|
onPause: _cache[1] || (_cache[1] = ($event) => isPlaying.value = false),
|
|
1812
1812
|
onEnded: handleEnded,
|
|
1813
1813
|
onVolumechange: handleVolumeChange
|
|
1814
|
-
}, null, 40, _hoisted_1$
|
|
1814
|
+
}, null, 40, _hoisted_1$9),
|
|
1815
1815
|
!isPlaying.value && !isLoading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$7, [
|
|
1816
1816
|
vue.createElementVNode("div", _hoisted_3$5, [
|
|
1817
1817
|
vue.createVNode(vue.unref(IconPlayArrow), { size: 48 })
|
|
@@ -1940,11 +1940,11 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
1940
1940
|
};
|
|
1941
1941
|
}
|
|
1942
1942
|
});
|
|
1943
|
-
const VideoPreview = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1944
|
-
const _hoisted_1$
|
|
1943
|
+
const VideoPreview = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-e8cbf700"]]);
|
|
1944
|
+
const _hoisted_1$8 = { class: "video-modal-title" };
|
|
1945
1945
|
const _hoisted_2$6 = { class: "file-name" };
|
|
1946
1946
|
const _hoisted_3$4 = { class: "video-modal-content" };
|
|
1947
|
-
const _sfc_main$
|
|
1947
|
+
const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
1948
1948
|
...{
|
|
1949
1949
|
name: "VideoPreviewModal"
|
|
1950
1950
|
},
|
|
@@ -1995,7 +1995,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
1995
1995
|
onCancel: handleClose
|
|
1996
1996
|
}, {
|
|
1997
1997
|
title: vue.withCtx(() => [
|
|
1998
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
1998
|
+
vue.createElementVNode("div", _hoisted_1$8, [
|
|
1999
1999
|
vue.createElementVNode("span", _hoisted_2$6, vue.toDisplayString(__props.fileName || "视频预览"), 1)
|
|
2000
2000
|
])
|
|
2001
2001
|
]),
|
|
@@ -2016,8 +2016,8 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
2016
2016
|
};
|
|
2017
2017
|
}
|
|
2018
2018
|
});
|
|
2019
|
-
const VideoPreviewModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2020
|
-
const _hoisted_1$
|
|
2019
|
+
const VideoPreviewModal = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-0ae4ec5c"]]);
|
|
2020
|
+
const _hoisted_1$7 = { class: "basic-upload" };
|
|
2021
2021
|
const _hoisted_2$5 = {
|
|
2022
2022
|
key: 0,
|
|
2023
2023
|
class: "upload-empty-state"
|
|
@@ -2043,7 +2043,7 @@ const _hoisted_8 = {
|
|
|
2043
2043
|
key: 5,
|
|
2044
2044
|
class: "inline-video-preview"
|
|
2045
2045
|
};
|
|
2046
|
-
const _sfc_main$
|
|
2046
|
+
const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
2047
2047
|
...{
|
|
2048
2048
|
name: "BasicUpload",
|
|
2049
2049
|
inheritAttrs: false
|
|
@@ -2576,7 +2576,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
2576
2576
|
const _component_a_button = vue.resolveComponent("a-button");
|
|
2577
2577
|
const _component_a_upload = vue.resolveComponent("a-upload");
|
|
2578
2578
|
const _component_a_image = vue.resolveComponent("a-image");
|
|
2579
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
2579
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
|
|
2580
2580
|
shouldShowEmptyState.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$5, [
|
|
2581
2581
|
vue.renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
2582
2582
|
vue.createTextVNode(vue.toDisplayString(getProps.value.emptyText), 1)
|
|
@@ -2724,7 +2724,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
2724
2724
|
};
|
|
2725
2725
|
}
|
|
2726
2726
|
});
|
|
2727
|
-
const BasicUpload = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2727
|
+
const BasicUpload = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-507c779d"]]);
|
|
2728
2728
|
function useUpload(props) {
|
|
2729
2729
|
const uploadRef = vue.ref(null);
|
|
2730
2730
|
const fileListRef = vue.ref((props == null ? void 0 : props.defaultFileList) || []);
|
|
@@ -3020,7 +3020,7 @@ function clearApiCache(api, params) {
|
|
|
3020
3020
|
const cacheKey = getCacheKey(api, params);
|
|
3021
3021
|
cacheMap.delete(cacheKey);
|
|
3022
3022
|
}
|
|
3023
|
-
const _sfc_main$
|
|
3023
|
+
const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
3024
3024
|
__name: "ApiSelect",
|
|
3025
3025
|
props: {
|
|
3026
3026
|
modelValue: {},
|
|
@@ -3131,7 +3131,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3131
3131
|
};
|
|
3132
3132
|
}
|
|
3133
3133
|
});
|
|
3134
|
-
const _sfc_main$
|
|
3134
|
+
const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
3135
3135
|
__name: "ApiCascader",
|
|
3136
3136
|
props: {
|
|
3137
3137
|
modelValue: {},
|
|
@@ -3298,13 +3298,13 @@ const componentMap = {
|
|
|
3298
3298
|
Textarea: webVue.Textarea,
|
|
3299
3299
|
AutoComplete: webVue.AutoComplete,
|
|
3300
3300
|
Select: webVue.Select,
|
|
3301
|
-
ApiSelect: _sfc_main$
|
|
3301
|
+
ApiSelect: _sfc_main$b,
|
|
3302
3302
|
Radio: webVue.Radio,
|
|
3303
3303
|
RadioGroup: webVue.RadioGroup,
|
|
3304
3304
|
Checkbox: webVue.Checkbox,
|
|
3305
3305
|
CheckboxGroup: webVue.CheckboxGroup,
|
|
3306
3306
|
Cascader: webVue.Cascader,
|
|
3307
|
-
ApiCascader: _sfc_main$
|
|
3307
|
+
ApiCascader: _sfc_main$a,
|
|
3308
3308
|
TreeSelect: webVue.TreeSelect,
|
|
3309
3309
|
DatePicker: webVue.DatePicker,
|
|
3310
3310
|
TimePicker: webVue.TimePicker,
|
|
@@ -3332,6 +3332,7 @@ function getComponent(name) {
|
|
|
3332
3332
|
}
|
|
3333
3333
|
const componentsNeedPlaceholder = /* @__PURE__ */ new Set([
|
|
3334
3334
|
"Input",
|
|
3335
|
+
"InputNumber",
|
|
3335
3336
|
"InputPassword",
|
|
3336
3337
|
"Textarea",
|
|
3337
3338
|
"AutoComplete"
|
|
@@ -3901,7 +3902,7 @@ const rendererMap = {
|
|
|
3901
3902
|
function getRenderer(component = "Input") {
|
|
3902
3903
|
return rendererMap[component] || rendererMap.default;
|
|
3903
3904
|
}
|
|
3904
|
-
const _sfc_main$
|
|
3905
|
+
const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
3905
3906
|
...{
|
|
3906
3907
|
name: "BasicReadonlyField",
|
|
3907
3908
|
inheritAttrs: false
|
|
@@ -4010,7 +4011,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4010
4011
|
};
|
|
4011
4012
|
}
|
|
4012
4013
|
});
|
|
4013
|
-
const BasicReadonlyField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4014
|
+
const BasicReadonlyField = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-3d2d24e0"]]);
|
|
4014
4015
|
function useReadonlyField(options) {
|
|
4015
4016
|
const defaultEmptyText = (options == null ? void 0 : options.defaultEmptyText) || "-";
|
|
4016
4017
|
const globalLabelMap = (options == null ? void 0 : options.globalLabelMap) || {};
|
|
@@ -4122,7 +4123,7 @@ function useReadonlyField(options) {
|
|
|
4122
4123
|
clearCache
|
|
4123
4124
|
};
|
|
4124
4125
|
}
|
|
4125
|
-
const _sfc_main$
|
|
4126
|
+
const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
4126
4127
|
...{
|
|
4127
4128
|
name: "BasicForm",
|
|
4128
4129
|
inheritAttrs: false
|
|
@@ -4311,21 +4312,18 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4311
4312
|
}
|
|
4312
4313
|
return (component == null ? void 0 : component.name) || "Input";
|
|
4313
4314
|
};
|
|
4314
|
-
const
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
if (
|
|
4319
|
-
return
|
|
4315
|
+
const renderSlotContent = (slotConfig, slotData) => {
|
|
4316
|
+
if (vue.isVNode(slotConfig)) {
|
|
4317
|
+
return slotConfig;
|
|
4318
|
+
}
|
|
4319
|
+
if (typeof slotConfig === "string" || typeof slotConfig === "number") {
|
|
4320
|
+
return vue.h("span", String(slotConfig));
|
|
4320
4321
|
}
|
|
4321
|
-
if (typeof
|
|
4322
|
-
return
|
|
4322
|
+
if (typeof slotConfig === "function") {
|
|
4323
|
+
return slotConfig(slotData, formModel);
|
|
4323
4324
|
}
|
|
4324
4325
|
return null;
|
|
4325
4326
|
};
|
|
4326
|
-
const hasComponentSlots = (schema) => {
|
|
4327
|
-
return !!(schema.componentSlots && Object.keys(schema.componentSlots).length > 0);
|
|
4328
|
-
};
|
|
4329
4327
|
const handleSubmit = async (data) => {
|
|
4330
4328
|
try {
|
|
4331
4329
|
submitLoading.value = true;
|
|
@@ -4553,13 +4551,14 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4553
4551
|
"onUpdate:modelValue": ($event) => formModel[schema.field] = $event,
|
|
4554
4552
|
placeholder: getPlaceholderText(schema)
|
|
4555
4553
|
}, { ref_for: true }, getComponentProps(schema)), vue.createSlots({ _: 2 }, [
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4554
|
+
vue.renderList(schema.componentSlots, (slotConfig, slotName) => {
|
|
4555
|
+
return {
|
|
4556
|
+
name: slotName,
|
|
4557
|
+
fn: vue.withCtx((slotData) => [
|
|
4558
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(renderSlotContent(slotConfig, slotData))))
|
|
4559
|
+
])
|
|
4560
|
+
};
|
|
4561
|
+
})
|
|
4563
4562
|
]), 1040, ["modelValue", "onUpdate:modelValue", "placeholder"]))
|
|
4564
4563
|
];
|
|
4565
4564
|
}),
|
|
@@ -4890,8 +4889,8 @@ function createFormSchema(schemas) {
|
|
|
4890
4889
|
function mergeFormSchemas(...schemas) {
|
|
4891
4890
|
return schemas.flat();
|
|
4892
4891
|
}
|
|
4893
|
-
const _hoisted_1$
|
|
4894
|
-
const _sfc_main$
|
|
4892
|
+
const _hoisted_1$6 = { class: "basic-text-ellipsis" };
|
|
4893
|
+
const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
4895
4894
|
__name: "BasicTextEllipsis",
|
|
4896
4895
|
props: {
|
|
4897
4896
|
text: { default: "" },
|
|
@@ -4979,7 +4978,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4979
4978
|
);
|
|
4980
4979
|
return (_ctx, _cache) => {
|
|
4981
4980
|
const _component_a_tooltip = vue.resolveComponent("a-tooltip");
|
|
4982
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
4981
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
|
|
4983
4982
|
showTooltip.value ? (vue.openBlock(), vue.createBlock(_component_a_tooltip, vue.mergeProps({
|
|
4984
4983
|
key: 0,
|
|
4985
4984
|
content: __props.text,
|
|
@@ -5005,7 +5004,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5005
5004
|
};
|
|
5006
5005
|
}
|
|
5007
5006
|
});
|
|
5008
|
-
const BasicTextEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5007
|
+
const BasicTextEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-05b93f77"]]);
|
|
5009
5008
|
function useLocalStorage(key, initialValue) {
|
|
5010
5009
|
let initialStoredValue;
|
|
5011
5010
|
try {
|
|
@@ -5415,12 +5414,12 @@ function useEditFormat(options) {
|
|
|
5415
5414
|
wrapFormatListeners
|
|
5416
5415
|
};
|
|
5417
5416
|
}
|
|
5418
|
-
const _hoisted_1$
|
|
5417
|
+
const _hoisted_1$5 = { class: "edit-cell" };
|
|
5419
5418
|
const _hoisted_2$4 = {
|
|
5420
5419
|
key: 2,
|
|
5421
5420
|
class: "edit-cell-error"
|
|
5422
5421
|
};
|
|
5423
|
-
const _sfc_main$
|
|
5422
|
+
const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
5424
5423
|
...{
|
|
5425
5424
|
name: "EditCell"
|
|
5426
5425
|
},
|
|
@@ -5507,7 +5506,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5507
5506
|
}
|
|
5508
5507
|
});
|
|
5509
5508
|
return (_ctx, _cache) => {
|
|
5510
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5509
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
|
|
5511
5510
|
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, {
|
|
5512
5511
|
"model-value": vue.unref(currentValue),
|
|
5513
5512
|
"onUpdate:modelValue": handleChange,
|
|
@@ -5518,7 +5517,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5518
5517
|
};
|
|
5519
5518
|
}
|
|
5520
5519
|
});
|
|
5521
|
-
const EditCell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5520
|
+
const EditCell = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-52761074"]]);
|
|
5522
5521
|
function useEditValidation() {
|
|
5523
5522
|
const validateField = async (value, column, record) => {
|
|
5524
5523
|
if (!column.editRule) {
|
|
@@ -5929,7 +5928,7 @@ function useTableEdit(props, dataSource, getRowKey) {
|
|
|
5929
5928
|
getChangedValues
|
|
5930
5929
|
};
|
|
5931
5930
|
}
|
|
5932
|
-
const _hoisted_1$
|
|
5931
|
+
const _hoisted_1$4 = { class: "basic-table-wrapper" };
|
|
5933
5932
|
const _hoisted_2$3 = {
|
|
5934
5933
|
key: 0,
|
|
5935
5934
|
class: "basic-table-search"
|
|
@@ -5948,7 +5947,7 @@ const _hoisted_6$1 = {
|
|
|
5948
5947
|
class: "toolbar-right"
|
|
5949
5948
|
};
|
|
5950
5949
|
const _hoisted_7$1 = { class: "column-setting" };
|
|
5951
|
-
const _sfc_main$
|
|
5950
|
+
const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
5952
5951
|
...{
|
|
5953
5952
|
name: "BasicTable"
|
|
5954
5953
|
},
|
|
@@ -6018,8 +6017,8 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
6018
6017
|
});
|
|
6019
6018
|
return result;
|
|
6020
6019
|
});
|
|
6021
|
-
const getFormSlotName = (
|
|
6022
|
-
const name =
|
|
6020
|
+
const getFormSlotName = (slotName) => {
|
|
6021
|
+
const name = slotName.toString();
|
|
6023
6022
|
return name.startsWith("form-") ? name.slice(5) : name;
|
|
6024
6023
|
};
|
|
6025
6024
|
const tableRef = vue.ref();
|
|
@@ -6900,9 +6899,9 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
6900
6899
|
const _component_a_link = vue.resolveComponent("a-link");
|
|
6901
6900
|
const _component_a_popconfirm = vue.resolveComponent("a-popconfirm");
|
|
6902
6901
|
const _component_a_table = vue.resolveComponent("a-table");
|
|
6903
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
6902
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [
|
|
6904
6903
|
getSearchConfig.value.show ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$3, [
|
|
6905
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
6904
|
+
vue.createVNode(vue.unref(_sfc_main$8), vue.mergeProps({
|
|
6906
6905
|
ref_key: "searchFormRef",
|
|
6907
6906
|
ref: searchFormRef
|
|
6908
6907
|
}, getSearchFormProps.value, {
|
|
@@ -7264,7 +7263,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7264
7263
|
};
|
|
7265
7264
|
}
|
|
7266
7265
|
});
|
|
7267
|
-
const BasicTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7266
|
+
const BasicTable = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-e0254887"]]);
|
|
7268
7267
|
function useTable(options = {}) {
|
|
7269
7268
|
const tableRef = vue.ref(null);
|
|
7270
7269
|
const formRef = vue.ref(null);
|
|
@@ -7615,9 +7614,9 @@ function createTableColumns(columns) {
|
|
|
7615
7614
|
function mergeTableColumns(...columns) {
|
|
7616
7615
|
return columns.flat();
|
|
7617
7616
|
}
|
|
7618
|
-
const _hoisted_1$
|
|
7617
|
+
const _hoisted_1$3 = { style: { "position": "relative", "width": "100%" } };
|
|
7619
7618
|
const _hoisted_2$2 = { key: 1 };
|
|
7620
|
-
const _sfc_main$
|
|
7619
|
+
const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
7621
7620
|
...{
|
|
7622
7621
|
name: "BasicModal",
|
|
7623
7622
|
inheritAttrs: false
|
|
@@ -7968,7 +7967,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7968
7967
|
} : getProps.value.title ? {
|
|
7969
7968
|
name: "title",
|
|
7970
7969
|
fn: vue.withCtx(() => [
|
|
7971
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
7970
|
+
vue.createElementVNode("div", _hoisted_1$3, [
|
|
7972
7971
|
vue.createElementVNode("span", {
|
|
7973
7972
|
style: vue.normalizeStyle({ display: "block", textAlign: getProps.value.titleAlign }),
|
|
7974
7973
|
class: vue.normalizeClass(["block"])
|
|
@@ -8069,7 +8068,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8069
8068
|
};
|
|
8070
8069
|
}
|
|
8071
8070
|
});
|
|
8072
|
-
const BasicModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8071
|
+
const BasicModal = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-ce432825"]]);
|
|
8073
8072
|
function useModal(props) {
|
|
8074
8073
|
const modalRef = vue.ref(null);
|
|
8075
8074
|
const loadedRef = vue.ref(false);
|
|
@@ -8227,7 +8226,7 @@ function useModalInner(callbackFn) {
|
|
|
8227
8226
|
}
|
|
8228
8227
|
];
|
|
8229
8228
|
}
|
|
8230
|
-
const _hoisted_1$
|
|
8229
|
+
const _hoisted_1$2 = { class: "basic-description" };
|
|
8231
8230
|
const _hoisted_2$1 = {
|
|
8232
8231
|
key: 0,
|
|
8233
8232
|
class: "description-header"
|
|
@@ -8238,7 +8237,7 @@ const _hoisted_4$1 = {
|
|
|
8238
8237
|
class: "description-extra"
|
|
8239
8238
|
};
|
|
8240
8239
|
const _hoisted_5$1 = { key: 1 };
|
|
8241
|
-
const _sfc_main$
|
|
8240
|
+
const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
8242
8241
|
...{
|
|
8243
8242
|
name: "BasicDescription",
|
|
8244
8243
|
inheritAttrs: false
|
|
@@ -8369,7 +8368,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8369
8368
|
const _component_a_tooltip = vue.resolveComponent("a-tooltip");
|
|
8370
8369
|
const _component_a_descriptions_item = vue.resolveComponent("a-descriptions-item");
|
|
8371
8370
|
const _component_a_descriptions = vue.resolveComponent("a-descriptions");
|
|
8372
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
8371
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
|
|
8373
8372
|
getProps.value.title || _ctx.$slots.title || _ctx.$slots.extra ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$1, [
|
|
8374
8373
|
vue.createElementVNode("div", _hoisted_3$1, [
|
|
8375
8374
|
_ctx.$slots.title ? vue.renderSlot(_ctx.$slots, "title", { key: 0 }, void 0, true) : getProps.value.title ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
@@ -8444,7 +8443,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8444
8443
|
};
|
|
8445
8444
|
}
|
|
8446
8445
|
});
|
|
8447
|
-
const BasicDescription = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8446
|
+
const BasicDescription = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-f100005c"]]);
|
|
8448
8447
|
function useDescription(props) {
|
|
8449
8448
|
const descriptionRef = vue.ref(null);
|
|
8450
8449
|
const loadedRef = vue.ref(false);
|
|
@@ -8487,7 +8486,7 @@ function useDescription(props) {
|
|
|
8487
8486
|
}
|
|
8488
8487
|
];
|
|
8489
8488
|
}
|
|
8490
|
-
const _hoisted_1 = { class: "basic-image" };
|
|
8489
|
+
const _hoisted_1$1 = { class: "basic-image" };
|
|
8491
8490
|
const _hoisted_2 = {
|
|
8492
8491
|
key: 0,
|
|
8493
8492
|
class: "basic-image-empty"
|
|
@@ -8506,7 +8505,7 @@ const _hoisted_7 = {
|
|
|
8506
8505
|
key: 0,
|
|
8507
8506
|
style: { "display": "none" }
|
|
8508
8507
|
};
|
|
8509
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
8508
|
+
const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
8510
8509
|
...{
|
|
8511
8510
|
name: "BasicImage"
|
|
8512
8511
|
},
|
|
@@ -8586,7 +8585,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
8586
8585
|
__expose(methods);
|
|
8587
8586
|
return (_ctx, _cache) => {
|
|
8588
8587
|
const _component_a_image = vue.resolveComponent("a-image");
|
|
8589
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
8588
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
|
|
8590
8589
|
normalizedImages.value.length === 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
8591
8590
|
vue.renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
8592
8591
|
vue.createElementVNode("span", _hoisted_3, vue.toDisplayString(getProps.value.emptyText), 1)
|
|
@@ -8644,7 +8643,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
8644
8643
|
};
|
|
8645
8644
|
}
|
|
8646
8645
|
});
|
|
8647
|
-
const BasicImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8435954c"]]);
|
|
8646
|
+
const BasicImage = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-8435954c"]]);
|
|
8648
8647
|
function useImage(options) {
|
|
8649
8648
|
const imageRef = vue.ref(null);
|
|
8650
8649
|
const loadedRef = vue.ref(false);
|
|
@@ -8691,6 +8690,215 @@ function useImage(options) {
|
|
|
8691
8690
|
});
|
|
8692
8691
|
return [register, methods];
|
|
8693
8692
|
}
|
|
8693
|
+
const _hoisted_1 = { class: "knt-loading-overlay__content" };
|
|
8694
|
+
const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
8695
|
+
...{
|
|
8696
|
+
name: "LoadingOverlay",
|
|
8697
|
+
inheritAttrs: false
|
|
8698
|
+
},
|
|
8699
|
+
__name: "LoadingOverlay",
|
|
8700
|
+
props: {
|
|
8701
|
+
tip: { default: "" },
|
|
8702
|
+
zIndex: { default: 1e3 },
|
|
8703
|
+
maskStyle: {},
|
|
8704
|
+
maskClass: {},
|
|
8705
|
+
viewport: { type: Boolean, default: true }
|
|
8706
|
+
},
|
|
8707
|
+
setup(__props) {
|
|
8708
|
+
const props = __props;
|
|
8709
|
+
const overlayStyle = vue.computed(() => {
|
|
8710
|
+
const base = {
|
|
8711
|
+
position: props.viewport ? "fixed" : "absolute",
|
|
8712
|
+
inset: 0,
|
|
8713
|
+
zIndex: props.zIndex,
|
|
8714
|
+
display: "flex",
|
|
8715
|
+
alignItems: "center",
|
|
8716
|
+
justifyContent: "center",
|
|
8717
|
+
backgroundColor: "rgba(255, 255, 255, 0.6)"
|
|
8718
|
+
};
|
|
8719
|
+
return base;
|
|
8720
|
+
});
|
|
8721
|
+
return (_ctx, _cache) => {
|
|
8722
|
+
const _component_a_spin = vue.resolveComponent("a-spin");
|
|
8723
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
8724
|
+
class: vue.normalizeClass(["knt-loading-overlay", __props.maskClass]),
|
|
8725
|
+
style: vue.normalizeStyle([overlayStyle.value, __props.maskStyle])
|
|
8726
|
+
}, [
|
|
8727
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
8728
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
8729
|
+
vue.createVNode(_component_a_spin, { tip: __props.tip }, null, 8, ["tip"])
|
|
8730
|
+
], true)
|
|
8731
|
+
])
|
|
8732
|
+
], 6);
|
|
8733
|
+
};
|
|
8734
|
+
}
|
|
8735
|
+
});
|
|
8736
|
+
const LoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-b8f1311d"]]);
|
|
8737
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
8738
|
+
...{
|
|
8739
|
+
name: "BasicLoading",
|
|
8740
|
+
inheritAttrs: false
|
|
8741
|
+
},
|
|
8742
|
+
__name: "BasicLoading",
|
|
8743
|
+
props: {
|
|
8744
|
+
loading: { type: Boolean, default: false },
|
|
8745
|
+
mode: { default: "viewport" },
|
|
8746
|
+
target: {},
|
|
8747
|
+
scrollLock: { type: Boolean, default: void 0 },
|
|
8748
|
+
tip: { default: "" },
|
|
8749
|
+
zIndex: { default: 1e3 },
|
|
8750
|
+
maskStyle: {},
|
|
8751
|
+
maskClass: {}
|
|
8752
|
+
},
|
|
8753
|
+
setup(__props) {
|
|
8754
|
+
const props = __props;
|
|
8755
|
+
const effectiveScrollLock = vue.computed(() => {
|
|
8756
|
+
if (props.scrollLock !== void 0) return props.scrollLock;
|
|
8757
|
+
return props.mode === "viewport";
|
|
8758
|
+
});
|
|
8759
|
+
let bodyOverflowRestore = "";
|
|
8760
|
+
const applyScrollLock = (lock) => {
|
|
8761
|
+
if (lock) {
|
|
8762
|
+
bodyOverflowRestore = document.body.style.overflow;
|
|
8763
|
+
document.body.style.overflow = "hidden";
|
|
8764
|
+
} else {
|
|
8765
|
+
document.body.style.overflow = bodyOverflowRestore || "";
|
|
8766
|
+
}
|
|
8767
|
+
};
|
|
8768
|
+
vue.watch(
|
|
8769
|
+
() => props.loading && effectiveScrollLock.value,
|
|
8770
|
+
(shouldLock) => {
|
|
8771
|
+
applyScrollLock(!!shouldLock);
|
|
8772
|
+
},
|
|
8773
|
+
{ immediate: true }
|
|
8774
|
+
);
|
|
8775
|
+
vue.onUnmounted(() => {
|
|
8776
|
+
if (props.loading && effectiveScrollLock.value) {
|
|
8777
|
+
document.body.style.overflow = bodyOverflowRestore || "";
|
|
8778
|
+
}
|
|
8779
|
+
});
|
|
8780
|
+
const teleportTo = vue.ref(null);
|
|
8781
|
+
const resolveTeleportTarget = () => {
|
|
8782
|
+
if (!props.loading) {
|
|
8783
|
+
teleportTo.value = null;
|
|
8784
|
+
return;
|
|
8785
|
+
}
|
|
8786
|
+
if (props.mode === "viewport") {
|
|
8787
|
+
teleportTo.value = "body";
|
|
8788
|
+
return;
|
|
8789
|
+
}
|
|
8790
|
+
if (props.mode === "inside" && props.target) {
|
|
8791
|
+
const el = typeof props.target === "string" ? document.querySelector(props.target) : props.target;
|
|
8792
|
+
teleportTo.value = el;
|
|
8793
|
+
return;
|
|
8794
|
+
}
|
|
8795
|
+
teleportTo.value = null;
|
|
8796
|
+
};
|
|
8797
|
+
vue.watch(
|
|
8798
|
+
() => [props.loading, props.mode, props.target],
|
|
8799
|
+
resolveTeleportTarget,
|
|
8800
|
+
{ immediate: true }
|
|
8801
|
+
);
|
|
8802
|
+
return (_ctx, _cache) => {
|
|
8803
|
+
const _component_a_spin = vue.resolveComponent("a-spin");
|
|
8804
|
+
return __props.loading ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
8805
|
+
teleportTo.value ? (vue.openBlock(), vue.createBlock(vue.Teleport, {
|
|
8806
|
+
key: 0,
|
|
8807
|
+
to: teleportTo.value
|
|
8808
|
+
}, [
|
|
8809
|
+
vue.createVNode(LoadingOverlay, {
|
|
8810
|
+
tip: __props.tip,
|
|
8811
|
+
"z-index": __props.zIndex,
|
|
8812
|
+
viewport: __props.mode === "viewport",
|
|
8813
|
+
"mask-style": __props.maskStyle,
|
|
8814
|
+
"mask-class": __props.maskClass
|
|
8815
|
+
}, {
|
|
8816
|
+
default: vue.withCtx(() => [
|
|
8817
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
8818
|
+
vue.createVNode(_component_a_spin, { tip: __props.tip }, null, 8, ["tip"])
|
|
8819
|
+
])
|
|
8820
|
+
]),
|
|
8821
|
+
_: 3
|
|
8822
|
+
}, 8, ["tip", "z-index", "viewport", "mask-style", "mask-class"])
|
|
8823
|
+
], 8, ["to"])) : vue.createCommentVNode("", true)
|
|
8824
|
+
], 64)) : vue.createCommentVNode("", true);
|
|
8825
|
+
};
|
|
8826
|
+
}
|
|
8827
|
+
});
|
|
8828
|
+
function resolveTarget(options) {
|
|
8829
|
+
const { mode, target } = options;
|
|
8830
|
+
if (mode !== "inside" || !target) return null;
|
|
8831
|
+
return typeof target === "string" ? document.querySelector(target) : target;
|
|
8832
|
+
}
|
|
8833
|
+
function getEffectiveScrollLock(options) {
|
|
8834
|
+
if (options.scrollLock !== void 0) return options.scrollLock;
|
|
8835
|
+
return options.mode !== "inside";
|
|
8836
|
+
}
|
|
8837
|
+
function createLoading(options = {}) {
|
|
8838
|
+
const mode = options.mode ?? "viewport";
|
|
8839
|
+
const scrollLock = getEffectiveScrollLock(options);
|
|
8840
|
+
let containerEl = null;
|
|
8841
|
+
let app = null;
|
|
8842
|
+
let bodyOverflowRestore = "";
|
|
8843
|
+
const state = vue.reactive({
|
|
8844
|
+
tip: options.tip ?? "",
|
|
8845
|
+
zIndex: options.zIndex ?? 1e3,
|
|
8846
|
+
maskStyle: options.maskStyle,
|
|
8847
|
+
maskClass: options.maskClass,
|
|
8848
|
+
viewport: mode === "viewport"
|
|
8849
|
+
});
|
|
8850
|
+
const applyScrollLock = (lock) => {
|
|
8851
|
+
if (lock) {
|
|
8852
|
+
bodyOverflowRestore = document.body.style.overflow;
|
|
8853
|
+
document.body.style.overflow = "hidden";
|
|
8854
|
+
} else {
|
|
8855
|
+
document.body.style.overflow = bodyOverflowRestore || "";
|
|
8856
|
+
}
|
|
8857
|
+
};
|
|
8858
|
+
const close = () => {
|
|
8859
|
+
if (!app || !containerEl) return;
|
|
8860
|
+
app.unmount();
|
|
8861
|
+
app = null;
|
|
8862
|
+
if (containerEl.parentNode) {
|
|
8863
|
+
containerEl.parentNode.removeChild(containerEl);
|
|
8864
|
+
}
|
|
8865
|
+
containerEl = null;
|
|
8866
|
+
if (scrollLock) applyScrollLock(false);
|
|
8867
|
+
};
|
|
8868
|
+
const open = (openOptions) => {
|
|
8869
|
+
if (containerEl && app) {
|
|
8870
|
+
if ((openOptions == null ? void 0 : openOptions.tip) !== void 0) state.tip = openOptions.tip;
|
|
8871
|
+
return;
|
|
8872
|
+
}
|
|
8873
|
+
if (mode === "inside") {
|
|
8874
|
+
const target = resolveTarget(options);
|
|
8875
|
+
if (!target) {
|
|
8876
|
+
console.warn("[createLoading] inside 模式需要有效的 target");
|
|
8877
|
+
return;
|
|
8878
|
+
}
|
|
8879
|
+
}
|
|
8880
|
+
state.tip = (openOptions == null ? void 0 : openOptions.tip) ?? options.tip ?? "";
|
|
8881
|
+
containerEl = document.createElement("div");
|
|
8882
|
+
if (mode === "inside") {
|
|
8883
|
+
containerEl.style.cssText = "position:absolute;inset:0;overflow:hidden;pointer-events:auto;";
|
|
8884
|
+
const target = resolveTarget(options);
|
|
8885
|
+
target.appendChild(containerEl);
|
|
8886
|
+
} else {
|
|
8887
|
+
document.body.appendChild(containerEl);
|
|
8888
|
+
}
|
|
8889
|
+
app = vue.createApp(LoadingOverlay, state);
|
|
8890
|
+
app.mount(containerEl);
|
|
8891
|
+
if (scrollLock) applyScrollLock(true);
|
|
8892
|
+
};
|
|
8893
|
+
const setTip = (tip) => {
|
|
8894
|
+
state.tip = tip;
|
|
8895
|
+
};
|
|
8896
|
+
return {
|
|
8897
|
+
open,
|
|
8898
|
+
close,
|
|
8899
|
+
setTip
|
|
8900
|
+
};
|
|
8901
|
+
}
|
|
8694
8902
|
function formatDate(date, format = "YYYY-MM-DD HH:mm:ss") {
|
|
8695
8903
|
const d = typeof date === "number" ? new Date(date) : date;
|
|
8696
8904
|
const year = d.getFullYear();
|
|
@@ -9225,11 +9433,12 @@ function useToggle(initialValue = false) {
|
|
|
9225
9433
|
};
|
|
9226
9434
|
return [value, toggle, setTrue, setFalse];
|
|
9227
9435
|
}
|
|
9228
|
-
exports.ApiCascader = _sfc_main$
|
|
9229
|
-
exports.ApiSelect = _sfc_main$
|
|
9436
|
+
exports.ApiCascader = _sfc_main$a;
|
|
9437
|
+
exports.ApiSelect = _sfc_main$b;
|
|
9230
9438
|
exports.BasicDescription = BasicDescription;
|
|
9231
|
-
exports.BasicForm = _sfc_main$
|
|
9439
|
+
exports.BasicForm = _sfc_main$8;
|
|
9232
9440
|
exports.BasicImage = BasicImage;
|
|
9441
|
+
exports.BasicLoading = _sfc_main;
|
|
9233
9442
|
exports.BasicModal = BasicModal;
|
|
9234
9443
|
exports.BasicReadonlyField = BasicReadonlyField;
|
|
9235
9444
|
exports.BasicTable = BasicTable;
|
|
@@ -9245,6 +9454,7 @@ exports.compareObjects = compareObjects;
|
|
|
9245
9454
|
exports.componentMap = componentMap;
|
|
9246
9455
|
exports.copyToClipboard = copyToClipboard;
|
|
9247
9456
|
exports.createFormSchema = createFormSchema;
|
|
9457
|
+
exports.createLoading = createLoading;
|
|
9248
9458
|
exports.createTableColumns = createTableColumns;
|
|
9249
9459
|
exports.debounce = debounce;
|
|
9250
9460
|
exports.diffArrays = diffArrays;
|