knt-shared 1.6.8 → 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/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 +335 -123
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +336 -124
- 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
|
|
@@ -4888,8 +4889,8 @@ function createFormSchema(schemas) {
|
|
|
4888
4889
|
function mergeFormSchemas(...schemas) {
|
|
4889
4890
|
return schemas.flat();
|
|
4890
4891
|
}
|
|
4891
|
-
const _hoisted_1$
|
|
4892
|
-
const _sfc_main$
|
|
4892
|
+
const _hoisted_1$6 = { class: "basic-text-ellipsis" };
|
|
4893
|
+
const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
4893
4894
|
__name: "BasicTextEllipsis",
|
|
4894
4895
|
props: {
|
|
4895
4896
|
text: { default: "" },
|
|
@@ -4977,7 +4978,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4977
4978
|
);
|
|
4978
4979
|
return (_ctx, _cache) => {
|
|
4979
4980
|
const _component_a_tooltip = vue.resolveComponent("a-tooltip");
|
|
4980
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
4981
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
|
|
4981
4982
|
showTooltip.value ? (vue.openBlock(), vue.createBlock(_component_a_tooltip, vue.mergeProps({
|
|
4982
4983
|
key: 0,
|
|
4983
4984
|
content: __props.text,
|
|
@@ -5003,7 +5004,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5003
5004
|
};
|
|
5004
5005
|
}
|
|
5005
5006
|
});
|
|
5006
|
-
const BasicTextEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5007
|
+
const BasicTextEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-05b93f77"]]);
|
|
5007
5008
|
function useLocalStorage(key, initialValue) {
|
|
5008
5009
|
let initialStoredValue;
|
|
5009
5010
|
try {
|
|
@@ -5413,12 +5414,12 @@ function useEditFormat(options) {
|
|
|
5413
5414
|
wrapFormatListeners
|
|
5414
5415
|
};
|
|
5415
5416
|
}
|
|
5416
|
-
const _hoisted_1$
|
|
5417
|
+
const _hoisted_1$5 = { class: "edit-cell" };
|
|
5417
5418
|
const _hoisted_2$4 = {
|
|
5418
5419
|
key: 2,
|
|
5419
5420
|
class: "edit-cell-error"
|
|
5420
5421
|
};
|
|
5421
|
-
const _sfc_main$
|
|
5422
|
+
const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
5422
5423
|
...{
|
|
5423
5424
|
name: "EditCell"
|
|
5424
5425
|
},
|
|
@@ -5505,7 +5506,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5505
5506
|
}
|
|
5506
5507
|
});
|
|
5507
5508
|
return (_ctx, _cache) => {
|
|
5508
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5509
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
|
|
5509
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, {
|
|
5510
5511
|
"model-value": vue.unref(currentValue),
|
|
5511
5512
|
"onUpdate:modelValue": handleChange,
|
|
@@ -5516,7 +5517,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5516
5517
|
};
|
|
5517
5518
|
}
|
|
5518
5519
|
});
|
|
5519
|
-
const EditCell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5520
|
+
const EditCell = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-52761074"]]);
|
|
5520
5521
|
function useEditValidation() {
|
|
5521
5522
|
const validateField = async (value, column, record) => {
|
|
5522
5523
|
if (!column.editRule) {
|
|
@@ -5927,7 +5928,7 @@ function useTableEdit(props, dataSource, getRowKey) {
|
|
|
5927
5928
|
getChangedValues
|
|
5928
5929
|
};
|
|
5929
5930
|
}
|
|
5930
|
-
const _hoisted_1$
|
|
5931
|
+
const _hoisted_1$4 = { class: "basic-table-wrapper" };
|
|
5931
5932
|
const _hoisted_2$3 = {
|
|
5932
5933
|
key: 0,
|
|
5933
5934
|
class: "basic-table-search"
|
|
@@ -5946,7 +5947,7 @@ const _hoisted_6$1 = {
|
|
|
5946
5947
|
class: "toolbar-right"
|
|
5947
5948
|
};
|
|
5948
5949
|
const _hoisted_7$1 = { class: "column-setting" };
|
|
5949
|
-
const _sfc_main$
|
|
5950
|
+
const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
5950
5951
|
...{
|
|
5951
5952
|
name: "BasicTable"
|
|
5952
5953
|
},
|
|
@@ -6898,9 +6899,9 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
6898
6899
|
const _component_a_link = vue.resolveComponent("a-link");
|
|
6899
6900
|
const _component_a_popconfirm = vue.resolveComponent("a-popconfirm");
|
|
6900
6901
|
const _component_a_table = vue.resolveComponent("a-table");
|
|
6901
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
6902
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [
|
|
6902
6903
|
getSearchConfig.value.show ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$3, [
|
|
6903
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
6904
|
+
vue.createVNode(vue.unref(_sfc_main$8), vue.mergeProps({
|
|
6904
6905
|
ref_key: "searchFormRef",
|
|
6905
6906
|
ref: searchFormRef
|
|
6906
6907
|
}, getSearchFormProps.value, {
|
|
@@ -7262,7 +7263,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7262
7263
|
};
|
|
7263
7264
|
}
|
|
7264
7265
|
});
|
|
7265
|
-
const BasicTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7266
|
+
const BasicTable = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-e0254887"]]);
|
|
7266
7267
|
function useTable(options = {}) {
|
|
7267
7268
|
const tableRef = vue.ref(null);
|
|
7268
7269
|
const formRef = vue.ref(null);
|
|
@@ -7613,9 +7614,9 @@ function createTableColumns(columns) {
|
|
|
7613
7614
|
function mergeTableColumns(...columns) {
|
|
7614
7615
|
return columns.flat();
|
|
7615
7616
|
}
|
|
7616
|
-
const _hoisted_1$
|
|
7617
|
+
const _hoisted_1$3 = { style: { "position": "relative", "width": "100%" } };
|
|
7617
7618
|
const _hoisted_2$2 = { key: 1 };
|
|
7618
|
-
const _sfc_main$
|
|
7619
|
+
const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
7619
7620
|
...{
|
|
7620
7621
|
name: "BasicModal",
|
|
7621
7622
|
inheritAttrs: false
|
|
@@ -7966,7 +7967,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7966
7967
|
} : getProps.value.title ? {
|
|
7967
7968
|
name: "title",
|
|
7968
7969
|
fn: vue.withCtx(() => [
|
|
7969
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
7970
|
+
vue.createElementVNode("div", _hoisted_1$3, [
|
|
7970
7971
|
vue.createElementVNode("span", {
|
|
7971
7972
|
style: vue.normalizeStyle({ display: "block", textAlign: getProps.value.titleAlign }),
|
|
7972
7973
|
class: vue.normalizeClass(["block"])
|
|
@@ -8067,7 +8068,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8067
8068
|
};
|
|
8068
8069
|
}
|
|
8069
8070
|
});
|
|
8070
|
-
const BasicModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8071
|
+
const BasicModal = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-ce432825"]]);
|
|
8071
8072
|
function useModal(props) {
|
|
8072
8073
|
const modalRef = vue.ref(null);
|
|
8073
8074
|
const loadedRef = vue.ref(false);
|
|
@@ -8225,7 +8226,7 @@ function useModalInner(callbackFn) {
|
|
|
8225
8226
|
}
|
|
8226
8227
|
];
|
|
8227
8228
|
}
|
|
8228
|
-
const _hoisted_1$
|
|
8229
|
+
const _hoisted_1$2 = { class: "basic-description" };
|
|
8229
8230
|
const _hoisted_2$1 = {
|
|
8230
8231
|
key: 0,
|
|
8231
8232
|
class: "description-header"
|
|
@@ -8236,7 +8237,7 @@ const _hoisted_4$1 = {
|
|
|
8236
8237
|
class: "description-extra"
|
|
8237
8238
|
};
|
|
8238
8239
|
const _hoisted_5$1 = { key: 1 };
|
|
8239
|
-
const _sfc_main$
|
|
8240
|
+
const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
8240
8241
|
...{
|
|
8241
8242
|
name: "BasicDescription",
|
|
8242
8243
|
inheritAttrs: false
|
|
@@ -8367,7 +8368,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8367
8368
|
const _component_a_tooltip = vue.resolveComponent("a-tooltip");
|
|
8368
8369
|
const _component_a_descriptions_item = vue.resolveComponent("a-descriptions-item");
|
|
8369
8370
|
const _component_a_descriptions = vue.resolveComponent("a-descriptions");
|
|
8370
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
8371
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
|
|
8371
8372
|
getProps.value.title || _ctx.$slots.title || _ctx.$slots.extra ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$1, [
|
|
8372
8373
|
vue.createElementVNode("div", _hoisted_3$1, [
|
|
8373
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 }, [
|
|
@@ -8442,7 +8443,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8442
8443
|
};
|
|
8443
8444
|
}
|
|
8444
8445
|
});
|
|
8445
|
-
const BasicDescription = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8446
|
+
const BasicDescription = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-f100005c"]]);
|
|
8446
8447
|
function useDescription(props) {
|
|
8447
8448
|
const descriptionRef = vue.ref(null);
|
|
8448
8449
|
const loadedRef = vue.ref(false);
|
|
@@ -8485,7 +8486,7 @@ function useDescription(props) {
|
|
|
8485
8486
|
}
|
|
8486
8487
|
];
|
|
8487
8488
|
}
|
|
8488
|
-
const _hoisted_1 = { class: "basic-image" };
|
|
8489
|
+
const _hoisted_1$1 = { class: "basic-image" };
|
|
8489
8490
|
const _hoisted_2 = {
|
|
8490
8491
|
key: 0,
|
|
8491
8492
|
class: "basic-image-empty"
|
|
@@ -8504,7 +8505,7 @@ const _hoisted_7 = {
|
|
|
8504
8505
|
key: 0,
|
|
8505
8506
|
style: { "display": "none" }
|
|
8506
8507
|
};
|
|
8507
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
8508
|
+
const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
8508
8509
|
...{
|
|
8509
8510
|
name: "BasicImage"
|
|
8510
8511
|
},
|
|
@@ -8584,7 +8585,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
8584
8585
|
__expose(methods);
|
|
8585
8586
|
return (_ctx, _cache) => {
|
|
8586
8587
|
const _component_a_image = vue.resolveComponent("a-image");
|
|
8587
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
8588
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
|
|
8588
8589
|
normalizedImages.value.length === 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
8589
8590
|
vue.renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
8590
8591
|
vue.createElementVNode("span", _hoisted_3, vue.toDisplayString(getProps.value.emptyText), 1)
|
|
@@ -8642,7 +8643,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
8642
8643
|
};
|
|
8643
8644
|
}
|
|
8644
8645
|
});
|
|
8645
|
-
const BasicImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8435954c"]]);
|
|
8646
|
+
const BasicImage = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-8435954c"]]);
|
|
8646
8647
|
function useImage(options) {
|
|
8647
8648
|
const imageRef = vue.ref(null);
|
|
8648
8649
|
const loadedRef = vue.ref(false);
|
|
@@ -8689,6 +8690,215 @@ function useImage(options) {
|
|
|
8689
8690
|
});
|
|
8690
8691
|
return [register, methods];
|
|
8691
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
|
+
}
|
|
8692
8902
|
function formatDate(date, format = "YYYY-MM-DD HH:mm:ss") {
|
|
8693
8903
|
const d = typeof date === "number" ? new Date(date) : date;
|
|
8694
8904
|
const year = d.getFullYear();
|
|
@@ -9223,11 +9433,12 @@ function useToggle(initialValue = false) {
|
|
|
9223
9433
|
};
|
|
9224
9434
|
return [value, toggle, setTrue, setFalse];
|
|
9225
9435
|
}
|
|
9226
|
-
exports.ApiCascader = _sfc_main$
|
|
9227
|
-
exports.ApiSelect = _sfc_main$
|
|
9436
|
+
exports.ApiCascader = _sfc_main$a;
|
|
9437
|
+
exports.ApiSelect = _sfc_main$b;
|
|
9228
9438
|
exports.BasicDescription = BasicDescription;
|
|
9229
|
-
exports.BasicForm = _sfc_main$
|
|
9439
|
+
exports.BasicForm = _sfc_main$8;
|
|
9230
9440
|
exports.BasicImage = BasicImage;
|
|
9441
|
+
exports.BasicLoading = _sfc_main;
|
|
9231
9442
|
exports.BasicModal = BasicModal;
|
|
9232
9443
|
exports.BasicReadonlyField = BasicReadonlyField;
|
|
9233
9444
|
exports.BasicTable = BasicTable;
|
|
@@ -9243,6 +9454,7 @@ exports.compareObjects = compareObjects;
|
|
|
9243
9454
|
exports.componentMap = componentMap;
|
|
9244
9455
|
exports.copyToClipboard = copyToClipboard;
|
|
9245
9456
|
exports.createFormSchema = createFormSchema;
|
|
9457
|
+
exports.createLoading = createLoading;
|
|
9246
9458
|
exports.createTableColumns = createTableColumns;
|
|
9247
9459
|
exports.debounce = debounce;
|
|
9248
9460
|
exports.diffArrays = diffArrays;
|