knt-shared 1.9.1 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/CheckUpdate/index.d.ts +2 -0
- package/dist/components/CheckUpdate/index.d.ts.map +1 -0
- package/dist/components/CheckUpdate/index.vue.d.ts +60 -0
- package/dist/components/CheckUpdate/index.vue.d.ts.map +1 -0
- package/dist/components/Drawer/BasicDrawer.vue.d.ts +11 -11
- package/dist/components/Form/BasicForm.vue.d.ts +1 -1
- package/dist/components/Form/componentMap.d.ts +85 -55
- package/dist/components/Form/componentMap.d.ts.map +1 -1
- package/dist/components/Form/components/ApiCascader.vue.d.ts +2 -2
- package/dist/components/Form/components/ApiSelect.vue.d.ts +2 -2
- package/dist/components/Image/BasicImage.vue.d.ts +2 -2
- package/dist/components/Modal/BasicModal.vue.d.ts +12 -12
- package/dist/components/Table/BasicTable.vue.d.ts +5 -5
- package/dist/components/Table/components/componentMap.d.ts +85 -55
- package/dist/components/Table/components/componentMap.d.ts.map +1 -1
- package/dist/components/Upload/BasicUpload.vue.d.ts +10 -4
- package/dist/components/Upload/BasicUpload.vue.d.ts.map +1 -1
- package/dist/components/Upload/components/SortableFileItem.vue.d.ts +2 -2
- package/dist/components/Upload/components/VideoPreview.vue.d.ts +4 -4
- package/dist/components/Upload/components/VideoPreviewModal.vue.d.ts +3 -3
- package/dist/components/Upload/types.d.ts +4 -0
- package/dist/components/Upload/types.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useVersionCheck.d.ts +19 -0
- package/dist/hooks/useVersionCheck.d.ts.map +1 -0
- package/dist/index.cjs.js +236 -92
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +237 -93
- package/dist/index.esm.js.map +1 -1
- package/dist/style.css +32 -32
- package/dist/utils/chunkErrorHandler.d.ts +2 -0
- package/dist/utils/chunkErrorHandler.d.ts.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
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$A = vue.defineComponent({
|
|
28
28
|
name: "IconPlus",
|
|
29
29
|
props: {
|
|
30
30
|
size: {
|
|
@@ -94,7 +94,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
94
94
|
vue.createElementVNode("path", { d: "M5 24h38M24 5v38" }, null, -1)
|
|
95
95
|
]), 14, _hoisted_1$u);
|
|
96
96
|
}
|
|
97
|
-
var _IconPlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
97
|
+
var _IconPlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$A, [["render", _sfc_render$g]]);
|
|
98
98
|
const IconPlus = Object.assign(_IconPlus, {
|
|
99
99
|
install: (app, options) => {
|
|
100
100
|
var _a;
|
|
@@ -102,7 +102,7 @@ const IconPlus = Object.assign(_IconPlus, {
|
|
|
102
102
|
app.component(iconPrefix + _IconPlus.name, _IconPlus);
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
|
-
const _sfc_main$
|
|
105
|
+
const _sfc_main$z = vue.defineComponent({
|
|
106
106
|
name: "IconQuestionCircle",
|
|
107
107
|
props: {
|
|
108
108
|
size: {
|
|
@@ -173,7 +173,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
173
173
|
vue.createElementVNode("path", { d: "M24.006 31v4.008m0-6.008L24 28c0-3 3-4 4.78-6.402C30.558 19.195 28.288 15 23.987 15c-4.014 0-5.382 2.548-5.388 4.514v.465" }, null, -1)
|
|
174
174
|
]), 14, _hoisted_1$t);
|
|
175
175
|
}
|
|
176
|
-
var _IconQuestionCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
176
|
+
var _IconQuestionCircle = /* @__PURE__ */ _export_sfc$1(_sfc_main$z, [["render", _sfc_render$f]]);
|
|
177
177
|
const IconQuestionCircle = Object.assign(_IconQuestionCircle, {
|
|
178
178
|
install: (app, options) => {
|
|
179
179
|
var _a;
|
|
@@ -181,7 +181,7 @@ const IconQuestionCircle = Object.assign(_IconQuestionCircle, {
|
|
|
181
181
|
app.component(iconPrefix + _IconQuestionCircle.name, _IconQuestionCircle);
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
|
-
const _sfc_main$
|
|
184
|
+
const _sfc_main$y = vue.defineComponent({
|
|
185
185
|
name: "IconEye",
|
|
186
186
|
props: {
|
|
187
187
|
size: {
|
|
@@ -255,7 +255,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
255
255
|
vue.createElementVNode("path", { d: "M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z" }, null, -1)
|
|
256
256
|
]), 14, _hoisted_1$s);
|
|
257
257
|
}
|
|
258
|
-
var _IconEye = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
258
|
+
var _IconEye = /* @__PURE__ */ _export_sfc$1(_sfc_main$y, [["render", _sfc_render$e]]);
|
|
259
259
|
const IconEye = Object.assign(_IconEye, {
|
|
260
260
|
install: (app, options) => {
|
|
261
261
|
var _a;
|
|
@@ -263,7 +263,7 @@ const IconEye = Object.assign(_IconEye, {
|
|
|
263
263
|
app.component(iconPrefix + _IconEye.name, _IconEye);
|
|
264
264
|
}
|
|
265
265
|
});
|
|
266
|
-
const _sfc_main$
|
|
266
|
+
const _sfc_main$x = vue.defineComponent({
|
|
267
267
|
name: "IconMore",
|
|
268
268
|
props: {
|
|
269
269
|
size: {
|
|
@@ -338,7 +338,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
338
338
|
vue.createElementVNode("path", { d: "M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z" }, null, -1)
|
|
339
339
|
]), 14, _hoisted_1$r);
|
|
340
340
|
}
|
|
341
|
-
var _IconMore = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
341
|
+
var _IconMore = /* @__PURE__ */ _export_sfc$1(_sfc_main$x, [["render", _sfc_render$d]]);
|
|
342
342
|
const IconMore = Object.assign(_IconMore, {
|
|
343
343
|
install: (app, options) => {
|
|
344
344
|
var _a;
|
|
@@ -346,7 +346,7 @@ const IconMore = Object.assign(_IconMore, {
|
|
|
346
346
|
app.component(iconPrefix + _IconMore.name, _IconMore);
|
|
347
347
|
}
|
|
348
348
|
});
|
|
349
|
-
const _sfc_main$
|
|
349
|
+
const _sfc_main$w = vue.defineComponent({
|
|
350
350
|
name: "IconRefresh",
|
|
351
351
|
props: {
|
|
352
352
|
size: {
|
|
@@ -416,7 +416,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
416
416
|
vue.createElementVNode("path", { d: "M38.837 18C36.463 12.136 30.715 8 24 8 15.163 8 8 15.163 8 24s7.163 16 16 16c7.455 0 13.72-5.1 15.496-12M40 8v10H30" }, null, -1)
|
|
417
417
|
]), 14, _hoisted_1$q);
|
|
418
418
|
}
|
|
419
|
-
var _IconRefresh = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
419
|
+
var _IconRefresh = /* @__PURE__ */ _export_sfc$1(_sfc_main$w, [["render", _sfc_render$c]]);
|
|
420
420
|
const IconRefresh = Object.assign(_IconRefresh, {
|
|
421
421
|
install: (app, options) => {
|
|
422
422
|
var _a;
|
|
@@ -424,7 +424,7 @@ const IconRefresh = Object.assign(_IconRefresh, {
|
|
|
424
424
|
app.component(iconPrefix + _IconRefresh.name, _IconRefresh);
|
|
425
425
|
}
|
|
426
426
|
});
|
|
427
|
-
const _sfc_main$
|
|
427
|
+
const _sfc_main$v = vue.defineComponent({
|
|
428
428
|
name: "IconSearch",
|
|
429
429
|
props: {
|
|
430
430
|
size: {
|
|
@@ -494,7 +494,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
494
494
|
vue.createElementVNode("path", { d: "M33.072 33.071c6.248-6.248 6.248-16.379 0-22.627-6.249-6.249-16.38-6.249-22.628 0-6.248 6.248-6.248 16.379 0 22.627 6.248 6.248 16.38 6.248 22.628 0Zm0 0 8.485 8.485" }, null, -1)
|
|
495
495
|
]), 14, _hoisted_1$p);
|
|
496
496
|
}
|
|
497
|
-
var _IconSearch = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
497
|
+
var _IconSearch = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["render", _sfc_render$b]]);
|
|
498
498
|
const IconSearch = Object.assign(_IconSearch, {
|
|
499
499
|
install: (app, options) => {
|
|
500
500
|
var _a;
|
|
@@ -502,7 +502,7 @@ const IconSearch = Object.assign(_IconSearch, {
|
|
|
502
502
|
app.component(iconPrefix + _IconSearch.name, _IconSearch);
|
|
503
503
|
}
|
|
504
504
|
});
|
|
505
|
-
const _sfc_main$
|
|
505
|
+
const _sfc_main$u = vue.defineComponent({
|
|
506
506
|
name: "IconSettings",
|
|
507
507
|
props: {
|
|
508
508
|
size: {
|
|
@@ -573,7 +573,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
573
573
|
vue.createElementVNode("path", { d: "M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z" }, null, -1)
|
|
574
574
|
]), 14, _hoisted_1$o);
|
|
575
575
|
}
|
|
576
|
-
var _IconSettings = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
576
|
+
var _IconSettings = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["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$t = vue.defineComponent({
|
|
585
585
|
name: "IconUpload",
|
|
586
586
|
props: {
|
|
587
587
|
size: {
|
|
@@ -651,7 +651,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
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
652
|
]), 14, _hoisted_1$n);
|
|
653
653
|
}
|
|
654
|
-
var _IconUpload = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
654
|
+
var _IconUpload = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["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$s = vue.defineComponent({
|
|
663
663
|
name: "IconDelete",
|
|
664
664
|
props: {
|
|
665
665
|
size: {
|
|
@@ -729,7 +729,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
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
730
|
]), 14, _hoisted_1$m);
|
|
731
731
|
}
|
|
732
|
-
var _IconDelete = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
732
|
+
var _IconDelete = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["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$r = vue.defineComponent({
|
|
741
741
|
name: "IconLineHeight",
|
|
742
742
|
props: {
|
|
743
743
|
size: {
|
|
@@ -813,7 +813,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
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
814
|
]), 14, _hoisted_1$l);
|
|
815
815
|
}
|
|
816
|
-
var _IconLineHeight = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
816
|
+
var _IconLineHeight = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["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$q = vue.defineComponent({
|
|
825
825
|
name: "IconFullscreenExit",
|
|
826
826
|
props: {
|
|
827
827
|
size: {
|
|
@@ -891,7 +891,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
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
892
|
]), 14, _hoisted_1$k);
|
|
893
893
|
}
|
|
894
|
-
var _IconFullscreenExit = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
894
|
+
var _IconFullscreenExit = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["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$p = vue.defineComponent({
|
|
903
903
|
name: "IconFullscreen",
|
|
904
904
|
props: {
|
|
905
905
|
size: {
|
|
@@ -969,7 +969,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
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
970
|
]), 14, _hoisted_1$j);
|
|
971
971
|
}
|
|
972
|
-
var _IconFullscreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
972
|
+
var _IconFullscreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["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$o = vue.defineComponent({
|
|
981
981
|
name: "IconMute",
|
|
982
982
|
props: {
|
|
983
983
|
size: {
|
|
@@ -1047,7 +1047,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
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
1048
|
]), 14, _hoisted_1$i);
|
|
1049
1049
|
}
|
|
1050
|
-
var _IconMute = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1050
|
+
var _IconMute = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["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$n = vue.defineComponent({
|
|
1059
1059
|
name: "IconPause",
|
|
1060
1060
|
props: {
|
|
1061
1061
|
size: {
|
|
@@ -1130,7 +1130,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1130
1130
|
}, null, -1)
|
|
1131
1131
|
]), 14, _hoisted_1$h);
|
|
1132
1132
|
}
|
|
1133
|
-
var _IconPause = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1133
|
+
var _IconPause = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["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$m = vue.defineComponent({
|
|
1142
1142
|
name: "IconPlayArrow",
|
|
1143
1143
|
props: {
|
|
1144
1144
|
size: {
|
|
@@ -1208,7 +1208,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
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
1209
|
]), 14, _hoisted_1$g);
|
|
1210
1210
|
}
|
|
1211
|
-
var _IconPlayArrow = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1211
|
+
var _IconPlayArrow = /* @__PURE__ */ _export_sfc$1(_sfc_main$m, [["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$l = vue.defineComponent({
|
|
1220
1220
|
name: "IconSound",
|
|
1221
1221
|
props: {
|
|
1222
1222
|
size: {
|
|
@@ -1287,7 +1287,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
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
1288
|
]), 14, _hoisted_1$f);
|
|
1289
1289
|
}
|
|
1290
|
-
var _IconSound = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1290
|
+
var _IconSound = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["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$k = vue.defineComponent({
|
|
1299
1299
|
name: "IconLoading",
|
|
1300
1300
|
props: {
|
|
1301
1301
|
size: {
|
|
@@ -1365,7 +1365,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
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
1366
|
]), 14, _hoisted_1$e);
|
|
1367
1367
|
}
|
|
1368
|
-
var _IconLoading = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1368
|
+
var _IconLoading = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_render]]);
|
|
1369
1369
|
const IconLoading = Object.assign(_IconLoading, {
|
|
1370
1370
|
install: (app, options) => {
|
|
1371
1371
|
var _a;
|
|
@@ -2198,6 +2198,23 @@ function subtractLight(color, amount) {
|
|
|
2198
2198
|
const c = cc < 0 ? 0 : cc;
|
|
2199
2199
|
return c.toString(16).length > 1 ? c.toString(16) : `0${c.toString(16)}`;
|
|
2200
2200
|
}
|
|
2201
|
+
const RELOAD_KEY = "vite_chunk_reload_at";
|
|
2202
|
+
const COOLDOWN_MS = 1e4;
|
|
2203
|
+
function isChunkLoadError(error) {
|
|
2204
|
+
var _a, _b;
|
|
2205
|
+
return ((_a = error == null ? void 0 : error.message) == null ? void 0 : _a.includes("Failed to fetch dynamically imported module")) || ((_b = error == null ? void 0 : error.message) == null ? void 0 : _b.includes("Importing a module script failed")) || (error == null ? void 0 : error.name) === "ChunkLoadError";
|
|
2206
|
+
}
|
|
2207
|
+
function setupChunkErrorHandler() {
|
|
2208
|
+
window.addEventListener("unhandledrejection", (event) => {
|
|
2209
|
+
if (!isChunkLoadError(event.reason)) return;
|
|
2210
|
+
const lastReloadAt = Number(sessionStorage.getItem(RELOAD_KEY) || 0);
|
|
2211
|
+
const now = Date.now();
|
|
2212
|
+
if (now - lastReloadAt > COOLDOWN_MS) {
|
|
2213
|
+
sessionStorage.setItem(RELOAD_KEY, String(now));
|
|
2214
|
+
window.location.reload();
|
|
2215
|
+
}
|
|
2216
|
+
});
|
|
2217
|
+
}
|
|
2201
2218
|
const _hoisted_1$d = ["draggable"];
|
|
2202
2219
|
const _hoisted_2$9 = ["src", "alt"];
|
|
2203
2220
|
const _hoisted_3$7 = {
|
|
@@ -2213,7 +2230,7 @@ const _hoisted_6$4 = {
|
|
|
2213
2230
|
key: 3,
|
|
2214
2231
|
class: "error-tip"
|
|
2215
2232
|
};
|
|
2216
|
-
const _sfc_main$
|
|
2233
|
+
const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
2217
2234
|
...{
|
|
2218
2235
|
name: "SortableFileItem"
|
|
2219
2236
|
},
|
|
@@ -2324,9 +2341,9 @@ const _export_sfc = (sfc, props) => {
|
|
|
2324
2341
|
}
|
|
2325
2342
|
return target;
|
|
2326
2343
|
};
|
|
2327
|
-
const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2344
|
+
const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-07a9ff47"]]);
|
|
2328
2345
|
const _hoisted_1$c = { class: "sortable-file-list" };
|
|
2329
|
-
const _sfc_main$
|
|
2346
|
+
const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
2330
2347
|
...{
|
|
2331
2348
|
name: "SortableFileList"
|
|
2332
2349
|
},
|
|
@@ -2411,7 +2428,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
2411
2428
|
};
|
|
2412
2429
|
}
|
|
2413
2430
|
});
|
|
2414
|
-
const SortableFileList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2431
|
+
const SortableFileList = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-1ede8f45"]]);
|
|
2415
2432
|
const _hoisted_1$b = ["src", "autoplay", "loop", "muted", "preload"];
|
|
2416
2433
|
const _hoisted_2$8 = {
|
|
2417
2434
|
key: 0,
|
|
@@ -2429,7 +2446,7 @@ const _hoisted_8$1 = { class: "volume-slider-container" };
|
|
|
2429
2446
|
const _hoisted_9 = { class: "time-display" };
|
|
2430
2447
|
const _hoisted_10 = { class: "controls-right" };
|
|
2431
2448
|
const _hoisted_11 = { class: "control-button" };
|
|
2432
|
-
const _sfc_main$
|
|
2449
|
+
const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
2433
2450
|
...{
|
|
2434
2451
|
name: "VideoPreview"
|
|
2435
2452
|
},
|
|
@@ -2775,11 +2792,11 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
2775
2792
|
};
|
|
2776
2793
|
}
|
|
2777
2794
|
});
|
|
2778
|
-
const VideoPreview = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2795
|
+
const VideoPreview = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-b982f870"]]);
|
|
2779
2796
|
const _hoisted_1$a = { class: "video-modal-title" };
|
|
2780
2797
|
const _hoisted_2$7 = { class: "file-name" };
|
|
2781
2798
|
const _hoisted_3$5 = { class: "video-modal-content" };
|
|
2782
|
-
const _sfc_main$
|
|
2799
|
+
const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
2783
2800
|
...{
|
|
2784
2801
|
name: "VideoPreviewModal"
|
|
2785
2802
|
},
|
|
@@ -2850,7 +2867,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
2850
2867
|
};
|
|
2851
2868
|
}
|
|
2852
2869
|
});
|
|
2853
|
-
const VideoPreviewModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2870
|
+
const VideoPreviewModal = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-cac8e63e"]]);
|
|
2854
2871
|
const _hoisted_1$9 = { class: "basic-upload" };
|
|
2855
2872
|
const _hoisted_2$6 = {
|
|
2856
2873
|
key: 0,
|
|
@@ -2877,7 +2894,7 @@ const _hoisted_8 = {
|
|
|
2877
2894
|
key: 5,
|
|
2878
2895
|
class: "inline-video-preview"
|
|
2879
2896
|
};
|
|
2880
|
-
const _sfc_main$
|
|
2897
|
+
const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
2881
2898
|
...{
|
|
2882
2899
|
name: "BasicUpload",
|
|
2883
2900
|
inheritAttrs: false
|
|
@@ -2934,12 +2951,14 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
2934
2951
|
preload: "metadata"
|
|
2935
2952
|
}) },
|
|
2936
2953
|
emptyText: { default: "-" },
|
|
2937
|
-
showEmptyState: { type: Boolean, default: true }
|
|
2954
|
+
showEmptyState: { type: Boolean, default: true },
|
|
2955
|
+
showErrorMessage: { type: Boolean, default: true },
|
|
2956
|
+
showSuccessMessage: { type: Boolean, default: true }
|
|
2938
2957
|
},
|
|
2939
2958
|
emits: ["register", "update:modelValue", "change", "success", "handleSuccess", "error", "handlError", "progress", "remove", "preview", "exceed", "sortChange"],
|
|
2940
2959
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
2941
2960
|
vue.useCssVars((_ctx) => ({
|
|
2942
|
-
"
|
|
2961
|
+
"fa001152": cardSizeValue.value
|
|
2943
2962
|
}));
|
|
2944
2963
|
const MAX_SIZE_UNIT_BYTES = {
|
|
2945
2964
|
B: 1,
|
|
@@ -3173,7 +3192,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
3173
3192
|
if (code !== 200) {
|
|
3174
3193
|
const errorMsg = message ? `上传失败: ${message}` : "上传失败";
|
|
3175
3194
|
onError(new Error(errorMsg));
|
|
3176
|
-
ArcoVue.Message.error(errorMsg);
|
|
3195
|
+
if (propsData.showErrorMessage) ArcoVue.Message.error(errorMsg);
|
|
3177
3196
|
return;
|
|
3178
3197
|
}
|
|
3179
3198
|
const extractedUrl = extractUrlFromResponse(response);
|
|
@@ -3181,14 +3200,14 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
3181
3200
|
if (!extractedUrl) {
|
|
3182
3201
|
logger.warn("响应中未找到 URL 字段,可能导致上传状态异常");
|
|
3183
3202
|
}
|
|
3184
|
-
ArcoVue.Message.success(`${fileItem.name} 上传成功`);
|
|
3203
|
+
if (propsData.showSuccessMessage) ArcoVue.Message.success(`${fileItem.name} 上传成功`);
|
|
3185
3204
|
onSuccess(normalizedResponse);
|
|
3186
3205
|
} catch (error) {
|
|
3187
3206
|
onSuccess({ data: xhr.responseText });
|
|
3188
3207
|
}
|
|
3189
3208
|
} else {
|
|
3190
3209
|
const errorMsg = `上传失败: HTTP ${xhr.status}`;
|
|
3191
|
-
ArcoVue.Message.error(errorMsg);
|
|
3210
|
+
if (propsData.showErrorMessage) ArcoVue.Message.error(errorMsg);
|
|
3192
3211
|
onError(new Error(errorMsg));
|
|
3193
3212
|
}
|
|
3194
3213
|
});
|
|
@@ -3594,7 +3613,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
3594
3613
|
};
|
|
3595
3614
|
}
|
|
3596
3615
|
});
|
|
3597
|
-
const BasicUpload = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3616
|
+
const BasicUpload = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-47c7dc74"]]);
|
|
3598
3617
|
function useUpload(props) {
|
|
3599
3618
|
const uploadRef = vue.ref(null);
|
|
3600
3619
|
const fileListRef = vue.ref((props == null ? void 0 : props.defaultFileList) || []);
|
|
@@ -3740,7 +3759,7 @@ function useApiRequest(options) {
|
|
|
3740
3759
|
const data = vue.ref([]);
|
|
3741
3760
|
const isFirstLoad = vue.ref(true);
|
|
3742
3761
|
const error = vue.ref(null);
|
|
3743
|
-
async function
|
|
3762
|
+
async function fetch2(forceRefresh = false) {
|
|
3744
3763
|
if (!api || typeof api !== "function") {
|
|
3745
3764
|
console.warn("[useApiRequest] api 必须是一个函数");
|
|
3746
3765
|
return;
|
|
@@ -3792,7 +3811,7 @@ function useApiRequest(options) {
|
|
|
3792
3811
|
loading.value = false;
|
|
3793
3812
|
}
|
|
3794
3813
|
}
|
|
3795
|
-
const debouncedFetch = debounce(
|
|
3814
|
+
const debouncedFetch = debounce(fetch2, debounceTime);
|
|
3796
3815
|
let stopParamsWatch = null;
|
|
3797
3816
|
if (params) {
|
|
3798
3817
|
stopParamsWatch = vue.watch(
|
|
@@ -3806,7 +3825,7 @@ function useApiRequest(options) {
|
|
|
3806
3825
|
);
|
|
3807
3826
|
}
|
|
3808
3827
|
if (immediate) {
|
|
3809
|
-
|
|
3828
|
+
fetch2();
|
|
3810
3829
|
}
|
|
3811
3830
|
if (immediate) {
|
|
3812
3831
|
isFirstLoad.value = false;
|
|
@@ -3828,9 +3847,9 @@ function useApiRequest(options) {
|
|
|
3828
3847
|
/** 是否首次加载 */
|
|
3829
3848
|
isFirstLoad,
|
|
3830
3849
|
/** 执行请求 */
|
|
3831
|
-
fetch,
|
|
3850
|
+
fetch: fetch2,
|
|
3832
3851
|
/** 刷新数据(忽略缓存) */
|
|
3833
|
-
refresh: () =>
|
|
3852
|
+
refresh: () => fetch2(true)
|
|
3834
3853
|
};
|
|
3835
3854
|
}
|
|
3836
3855
|
function clearAllCache() {
|
|
@@ -3840,7 +3859,7 @@ function clearApiCache(api, params) {
|
|
|
3840
3859
|
const cacheKey = getCacheKey(api, params);
|
|
3841
3860
|
cacheMap.delete(cacheKey);
|
|
3842
3861
|
}
|
|
3843
|
-
const _sfc_main$
|
|
3862
|
+
const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
3844
3863
|
__name: "ApiSelect",
|
|
3845
3864
|
props: {
|
|
3846
3865
|
modelValue: {},
|
|
@@ -3864,7 +3883,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
3864
3883
|
const emit = __emit;
|
|
3865
3884
|
const state = vue.ref(props.modelValue);
|
|
3866
3885
|
const rawOptions = vue.ref([]);
|
|
3867
|
-
const { loading, data, isFirstLoad, fetch } = useApiRequest({
|
|
3886
|
+
const { loading, data, isFirstLoad, fetch: fetch2 } = useApiRequest({
|
|
3868
3887
|
api: props.api,
|
|
3869
3888
|
params: vue.toRef(props, "params"),
|
|
3870
3889
|
immediate: props.immediate,
|
|
@@ -3893,9 +3912,9 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
3893
3912
|
const handlePopupVisibleChange = async (visible) => {
|
|
3894
3913
|
if (!visible) return;
|
|
3895
3914
|
if (props.alwaysLoad) {
|
|
3896
|
-
await
|
|
3915
|
+
await fetch2(true);
|
|
3897
3916
|
} else if (!props.immediate && isFirstLoad.value) {
|
|
3898
|
-
await
|
|
3917
|
+
await fetch2();
|
|
3899
3918
|
isFirstLoad.value = false;
|
|
3900
3919
|
}
|
|
3901
3920
|
};
|
|
@@ -3917,7 +3936,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
3917
3936
|
});
|
|
3918
3937
|
__expose({
|
|
3919
3938
|
/** 刷新数据 */
|
|
3920
|
-
refresh: () =>
|
|
3939
|
+
refresh: () => fetch2(true),
|
|
3921
3940
|
/** 获取选项列表 */
|
|
3922
3941
|
getOptions: () => computedOptions.value
|
|
3923
3942
|
});
|
|
@@ -3950,7 +3969,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
3950
3969
|
};
|
|
3951
3970
|
}
|
|
3952
3971
|
});
|
|
3953
|
-
const _sfc_main$
|
|
3972
|
+
const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
3954
3973
|
__name: "ApiCascader",
|
|
3955
3974
|
props: {
|
|
3956
3975
|
modelValue: {},
|
|
@@ -3977,7 +3996,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
3977
3996
|
const emit = __emit;
|
|
3978
3997
|
const state = vue.ref(props.modelValue);
|
|
3979
3998
|
const rawOptions = vue.ref([]);
|
|
3980
|
-
const { loading, data, fetch } = useApiRequest({
|
|
3999
|
+
const { loading, data, fetch: fetch2 } = useApiRequest({
|
|
3981
4000
|
api: props.api,
|
|
3982
4001
|
params: vue.toRef(props, "initFetchParams"),
|
|
3983
4002
|
immediate: props.immediate && !props.enableLoadData,
|
|
@@ -4074,11 +4093,11 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
4074
4093
|
}
|
|
4075
4094
|
});
|
|
4076
4095
|
if (props.enableLoadData && props.immediate) {
|
|
4077
|
-
|
|
4096
|
+
fetch2();
|
|
4078
4097
|
}
|
|
4079
4098
|
__expose({
|
|
4080
4099
|
/** 刷新数据 */
|
|
4081
|
-
refresh: () =>
|
|
4100
|
+
refresh: () => fetch2(true),
|
|
4082
4101
|
/** 获取选项列表 */
|
|
4083
4102
|
getOptions: () => computedOptions.value
|
|
4084
4103
|
});
|
|
@@ -4116,13 +4135,13 @@ const componentMap = {
|
|
|
4116
4135
|
Textarea: ArcoVue.Textarea,
|
|
4117
4136
|
AutoComplete: ArcoVue.AutoComplete,
|
|
4118
4137
|
Select: ArcoVue.Select,
|
|
4119
|
-
ApiSelect: _sfc_main$
|
|
4138
|
+
ApiSelect: _sfc_main$e,
|
|
4120
4139
|
Radio: ArcoVue.Radio,
|
|
4121
4140
|
RadioGroup: ArcoVue.RadioGroup,
|
|
4122
4141
|
Checkbox: ArcoVue.Checkbox,
|
|
4123
4142
|
CheckboxGroup: ArcoVue.CheckboxGroup,
|
|
4124
4143
|
Cascader: ArcoVue.Cascader,
|
|
4125
|
-
ApiCascader: _sfc_main$
|
|
4144
|
+
ApiCascader: _sfc_main$d,
|
|
4126
4145
|
TreeSelect: ArcoVue.TreeSelect,
|
|
4127
4146
|
DatePicker: ArcoVue.DatePicker,
|
|
4128
4147
|
TimePicker: ArcoVue.TimePicker,
|
|
@@ -4728,7 +4747,7 @@ const rendererMap = {
|
|
|
4728
4747
|
function getRenderer(component = "Input") {
|
|
4729
4748
|
return rendererMap[component] || rendererMap.default;
|
|
4730
4749
|
}
|
|
4731
|
-
const _sfc_main$
|
|
4750
|
+
const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
4732
4751
|
...{
|
|
4733
4752
|
name: "BasicReadonlyField",
|
|
4734
4753
|
inheritAttrs: false
|
|
@@ -4837,7 +4856,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
4837
4856
|
};
|
|
4838
4857
|
}
|
|
4839
4858
|
});
|
|
4840
|
-
const BasicReadonlyField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4859
|
+
const BasicReadonlyField = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-3d2d24e0"]]);
|
|
4841
4860
|
function useReadonlyField(options) {
|
|
4842
4861
|
const defaultEmptyText = (options == null ? void 0 : options.defaultEmptyText) || "-";
|
|
4843
4862
|
const globalLabelMap = (options == null ? void 0 : options.globalLabelMap) || {};
|
|
@@ -4949,7 +4968,7 @@ function useReadonlyField(options) {
|
|
|
4949
4968
|
clearCache
|
|
4950
4969
|
};
|
|
4951
4970
|
}
|
|
4952
|
-
const _sfc_main$
|
|
4971
|
+
const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
4953
4972
|
...{
|
|
4954
4973
|
name: "BasicForm",
|
|
4955
4974
|
inheritAttrs: false
|
|
@@ -5758,7 +5777,7 @@ function mergeFormSchemas(...schemas) {
|
|
|
5758
5777
|
return schemas.flat();
|
|
5759
5778
|
}
|
|
5760
5779
|
const _hoisted_1$8 = { class: "basic-text-ellipsis" };
|
|
5761
|
-
const _sfc_main$
|
|
5780
|
+
const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
5762
5781
|
__name: "BasicTextEllipsis",
|
|
5763
5782
|
props: {
|
|
5764
5783
|
text: { default: "" },
|
|
@@ -5871,7 +5890,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5871
5890
|
};
|
|
5872
5891
|
}
|
|
5873
5892
|
});
|
|
5874
|
-
const BasicTextEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5893
|
+
const BasicTextEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-305f9842"]]);
|
|
5875
5894
|
function useLocalStorage(key, initialValue) {
|
|
5876
5895
|
let initialStoredValue;
|
|
5877
5896
|
try {
|
|
@@ -6286,7 +6305,7 @@ const _hoisted_2$5 = {
|
|
|
6286
6305
|
key: 2,
|
|
6287
6306
|
class: "edit-cell-error"
|
|
6288
6307
|
};
|
|
6289
|
-
const _sfc_main$
|
|
6308
|
+
const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
6290
6309
|
...{
|
|
6291
6310
|
name: "EditCell"
|
|
6292
6311
|
},
|
|
@@ -6384,7 +6403,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
6384
6403
|
};
|
|
6385
6404
|
}
|
|
6386
6405
|
});
|
|
6387
|
-
const EditCell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6406
|
+
const EditCell = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-52761074"]]);
|
|
6388
6407
|
function useEditValidation() {
|
|
6389
6408
|
const validateField = async (value, column, record) => {
|
|
6390
6409
|
if (!column.editRule) {
|
|
@@ -6813,7 +6832,7 @@ const _hoisted_5$2 = {
|
|
|
6813
6832
|
class: "toolbar-right"
|
|
6814
6833
|
};
|
|
6815
6834
|
const _hoisted_6$1 = { class: "column-setting" };
|
|
6816
|
-
const _sfc_main$
|
|
6835
|
+
const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
6817
6836
|
...{
|
|
6818
6837
|
name: "BasicTable"
|
|
6819
6838
|
},
|
|
@@ -7931,7 +7950,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7931
7950
|
class: vue.normalizeClass(["basic-table-wrapper", { "is-fullscreen": isFullscreen.value }])
|
|
7932
7951
|
}, [
|
|
7933
7952
|
getSearchConfig.value.show ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
|
|
7934
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
7953
|
+
vue.createVNode(vue.unref(_sfc_main$b), vue.mergeProps({
|
|
7935
7954
|
ref_key: "searchFormRef",
|
|
7936
7955
|
ref: searchFormRef
|
|
7937
7956
|
}, getSearchFormProps.value, {
|
|
@@ -8309,7 +8328,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8309
8328
|
};
|
|
8310
8329
|
}
|
|
8311
8330
|
});
|
|
8312
|
-
const BasicTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8331
|
+
const BasicTable = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-b3a2e402"]]);
|
|
8313
8332
|
function useTable(options = {}) {
|
|
8314
8333
|
const tableRef = vue.ref(null);
|
|
8315
8334
|
const formRef = vue.ref(null);
|
|
@@ -8670,7 +8689,7 @@ function mergeTableColumns(...columns) {
|
|
|
8670
8689
|
}
|
|
8671
8690
|
const _hoisted_1$5 = { style: { "position": "relative", "width": "100%" } };
|
|
8672
8691
|
const _hoisted_2$3 = { key: 1 };
|
|
8673
|
-
const _sfc_main$
|
|
8692
|
+
const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
8674
8693
|
...{
|
|
8675
8694
|
name: "BasicModal",
|
|
8676
8695
|
inheritAttrs: false
|
|
@@ -9117,7 +9136,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
9117
9136
|
};
|
|
9118
9137
|
}
|
|
9119
9138
|
});
|
|
9120
|
-
const BasicModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9139
|
+
const BasicModal = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-e4400cf8"]]);
|
|
9121
9140
|
function useModal(props) {
|
|
9122
9141
|
const modalRef = vue.ref(null);
|
|
9123
9142
|
const loadedRef = vue.ref(false);
|
|
@@ -9276,7 +9295,7 @@ function useModalInner(callbackFn) {
|
|
|
9276
9295
|
];
|
|
9277
9296
|
}
|
|
9278
9297
|
const _hoisted_1$4 = { style: { "position": "relative", "display": "flex", "align-items": "center", "gap": "0.5rem" } };
|
|
9279
|
-
const _sfc_main$
|
|
9298
|
+
const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
9280
9299
|
...{
|
|
9281
9300
|
name: "BasicDrawer",
|
|
9282
9301
|
inheritAttrs: false
|
|
@@ -9641,7 +9660,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
9641
9660
|
};
|
|
9642
9661
|
}
|
|
9643
9662
|
});
|
|
9644
|
-
const BasicDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9663
|
+
const BasicDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-83e4752e"]]);
|
|
9645
9664
|
function useDrawer(props) {
|
|
9646
9665
|
const drawerRef = vue.ref(null);
|
|
9647
9666
|
const loadedRef = vue.ref(false);
|
|
@@ -9810,7 +9829,7 @@ const _hoisted_4$1 = {
|
|
|
9810
9829
|
class: "description-extra"
|
|
9811
9830
|
};
|
|
9812
9831
|
const _hoisted_5$1 = { key: 1 };
|
|
9813
|
-
const _sfc_main$
|
|
9832
|
+
const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
9814
9833
|
...{
|
|
9815
9834
|
name: "BasicDescription",
|
|
9816
9835
|
inheritAttrs: false
|
|
@@ -10060,7 +10079,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
10060
10079
|
};
|
|
10061
10080
|
}
|
|
10062
10081
|
});
|
|
10063
|
-
const BasicDescription = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10082
|
+
const BasicDescription = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-93ccbd39"]]);
|
|
10064
10083
|
function useDescription(props) {
|
|
10065
10084
|
const descriptionRef = vue.ref(null);
|
|
10066
10085
|
const loadedRef = vue.ref(false);
|
|
@@ -10122,7 +10141,7 @@ const _hoisted_7 = {
|
|
|
10122
10141
|
key: 0,
|
|
10123
10142
|
style: { "display": "none" }
|
|
10124
10143
|
};
|
|
10125
|
-
const _sfc_main$
|
|
10144
|
+
const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
10126
10145
|
...{
|
|
10127
10146
|
name: "BasicImage"
|
|
10128
10147
|
},
|
|
@@ -10259,7 +10278,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
10259
10278
|
};
|
|
10260
10279
|
}
|
|
10261
10280
|
});
|
|
10262
|
-
const BasicImage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10281
|
+
const BasicImage = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-04c54d5a"]]);
|
|
10263
10282
|
function useImage(options) {
|
|
10264
10283
|
const imageRef = vue.ref(null);
|
|
10265
10284
|
const loadedRef = vue.ref(false);
|
|
@@ -10312,7 +10331,7 @@ const _hoisted_3 = {
|
|
|
10312
10331
|
key: 0,
|
|
10313
10332
|
class: "knt-spinner__tip"
|
|
10314
10333
|
};
|
|
10315
|
-
const _sfc_main$
|
|
10334
|
+
const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
10316
10335
|
...{ name: "LoadingSpinner" },
|
|
10317
10336
|
__name: "LoadingSpinner",
|
|
10318
10337
|
props: {
|
|
@@ -10331,9 +10350,9 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
10331
10350
|
};
|
|
10332
10351
|
}
|
|
10333
10352
|
});
|
|
10334
|
-
const LoadingSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10353
|
+
const LoadingSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-8cd97aae"]]);
|
|
10335
10354
|
const _hoisted_1 = { class: "knt-loading-overlay__content" };
|
|
10336
|
-
const _sfc_main$
|
|
10355
|
+
const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
10337
10356
|
...{
|
|
10338
10357
|
name: "LoadingOverlay",
|
|
10339
10358
|
inheritAttrs: false
|
|
@@ -10374,8 +10393,8 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
10374
10393
|
};
|
|
10375
10394
|
}
|
|
10376
10395
|
});
|
|
10377
|
-
const LoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10378
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
10396
|
+
const LoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-b25f4ff8"]]);
|
|
10397
|
+
const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
10379
10398
|
...{
|
|
10380
10399
|
name: "BasicLoading",
|
|
10381
10400
|
inheritAttrs: false
|
|
@@ -10539,6 +10558,128 @@ function createLoading(options = {}) {
|
|
|
10539
10558
|
setTip
|
|
10540
10559
|
};
|
|
10541
10560
|
}
|
|
10561
|
+
function useVersionCheck(options = {}) {
|
|
10562
|
+
const {
|
|
10563
|
+
enabled = true,
|
|
10564
|
+
versionUrl = "/version.json",
|
|
10565
|
+
checkInterval = 10 * 60 * 1e3,
|
|
10566
|
+
sessionKey = "app_current_version"
|
|
10567
|
+
} = options;
|
|
10568
|
+
const hasNewVersion = vue.ref(false);
|
|
10569
|
+
let currentVersion = "";
|
|
10570
|
+
let pendingRemoteVersion = "";
|
|
10571
|
+
let isFirstCheck = true;
|
|
10572
|
+
let modalShown = false;
|
|
10573
|
+
let timer = null;
|
|
10574
|
+
let onUpdateCallback = null;
|
|
10575
|
+
let visibilityHandler = null;
|
|
10576
|
+
async function fetchRemoteVersion() {
|
|
10577
|
+
try {
|
|
10578
|
+
const res = await fetch(`${versionUrl}?t=${Date.now()}`, { cache: "no-store" });
|
|
10579
|
+
if (!res.ok) return null;
|
|
10580
|
+
const data = await res.json();
|
|
10581
|
+
return data.version ?? null;
|
|
10582
|
+
} catch {
|
|
10583
|
+
return null;
|
|
10584
|
+
}
|
|
10585
|
+
}
|
|
10586
|
+
function syncLocalVersion(version) {
|
|
10587
|
+
currentVersion = version;
|
|
10588
|
+
sessionStorage.setItem(sessionKey, version);
|
|
10589
|
+
}
|
|
10590
|
+
async function checkVersion() {
|
|
10591
|
+
if (!enabled) return;
|
|
10592
|
+
const remoteVersion = await fetchRemoteVersion();
|
|
10593
|
+
if (!remoteVersion) return;
|
|
10594
|
+
if (isFirstCheck) {
|
|
10595
|
+
isFirstCheck = false;
|
|
10596
|
+
syncLocalVersion(remoteVersion);
|
|
10597
|
+
return;
|
|
10598
|
+
}
|
|
10599
|
+
if (remoteVersion !== currentVersion) {
|
|
10600
|
+
pendingRemoteVersion = remoteVersion;
|
|
10601
|
+
onUpdateCallback == null ? void 0 : onUpdateCallback();
|
|
10602
|
+
}
|
|
10603
|
+
}
|
|
10604
|
+
function start() {
|
|
10605
|
+
if (!enabled) return;
|
|
10606
|
+
currentVersion = sessionStorage.getItem(sessionKey) || "";
|
|
10607
|
+
checkVersion();
|
|
10608
|
+
if (!timer) {
|
|
10609
|
+
timer = setInterval(checkVersion, checkInterval);
|
|
10610
|
+
}
|
|
10611
|
+
if (!visibilityHandler) {
|
|
10612
|
+
visibilityHandler = () => {
|
|
10613
|
+
if (document.visibilityState === "visible") checkVersion();
|
|
10614
|
+
};
|
|
10615
|
+
document.addEventListener("visibilitychange", visibilityHandler);
|
|
10616
|
+
}
|
|
10617
|
+
onUpdateCallback = () => {
|
|
10618
|
+
if (modalShown) return;
|
|
10619
|
+
modalShown = true;
|
|
10620
|
+
hasNewVersion.value = true;
|
|
10621
|
+
};
|
|
10622
|
+
}
|
|
10623
|
+
function stop() {
|
|
10624
|
+
if (timer) {
|
|
10625
|
+
clearInterval(timer);
|
|
10626
|
+
timer = null;
|
|
10627
|
+
}
|
|
10628
|
+
if (visibilityHandler) {
|
|
10629
|
+
document.removeEventListener("visibilitychange", visibilityHandler);
|
|
10630
|
+
visibilityHandler = null;
|
|
10631
|
+
}
|
|
10632
|
+
modalShown = false;
|
|
10633
|
+
hasNewVersion.value = false;
|
|
10634
|
+
onUpdateCallback = null;
|
|
10635
|
+
}
|
|
10636
|
+
function applyUpdate() {
|
|
10637
|
+
const version = pendingRemoteVersion || currentVersion;
|
|
10638
|
+
if (version) syncLocalVersion(version);
|
|
10639
|
+
window.location.reload();
|
|
10640
|
+
}
|
|
10641
|
+
function dismissUpdate() {
|
|
10642
|
+
modalShown = false;
|
|
10643
|
+
hasNewVersion.value = false;
|
|
10644
|
+
}
|
|
10645
|
+
return { hasNewVersion, start, stop, checkVersion, applyUpdate, dismissUpdate };
|
|
10646
|
+
}
|
|
10647
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
10648
|
+
__name: "index",
|
|
10649
|
+
props: {
|
|
10650
|
+
enabled: { type: Boolean, default: true },
|
|
10651
|
+
title: { default: "页面超时" },
|
|
10652
|
+
content: { default: "页面已超时,请刷新后正常使用" },
|
|
10653
|
+
okText: { default: "立即刷新" },
|
|
10654
|
+
cancelText: { default: "稍后再说" }
|
|
10655
|
+
},
|
|
10656
|
+
setup(__props) {
|
|
10657
|
+
const props = __props;
|
|
10658
|
+
const { hasNewVersion, start, stop, applyUpdate, dismissUpdate } = useVersionCheck({
|
|
10659
|
+
enabled: props.enabled
|
|
10660
|
+
});
|
|
10661
|
+
vue.onMounted(() => start());
|
|
10662
|
+
vue.onUnmounted(() => stop());
|
|
10663
|
+
vue.watch(hasNewVersion, (val) => {
|
|
10664
|
+
if (!val) return;
|
|
10665
|
+
ArcoVue.Modal.confirm({
|
|
10666
|
+
title: props.title,
|
|
10667
|
+
content: () => vue.h(
|
|
10668
|
+
"div",
|
|
10669
|
+
{ style: "text-align: center; font-weight: bold; font-size: 16px" },
|
|
10670
|
+
props.content
|
|
10671
|
+
),
|
|
10672
|
+
okText: props.okText,
|
|
10673
|
+
cancelText: props.cancelText,
|
|
10674
|
+
onCancel: () => dismissUpdate(),
|
|
10675
|
+
onOk: () => applyUpdate()
|
|
10676
|
+
});
|
|
10677
|
+
});
|
|
10678
|
+
return (_ctx, _cache) => {
|
|
10679
|
+
return vue.openBlock(), vue.createElementBlock("div");
|
|
10680
|
+
};
|
|
10681
|
+
}
|
|
10682
|
+
});
|
|
10542
10683
|
function useDebounce(value, delay = 300) {
|
|
10543
10684
|
const debouncedValue = vue.ref(value.value);
|
|
10544
10685
|
let timer = null;
|
|
@@ -10582,18 +10723,19 @@ const KntSharedPlugin = {
|
|
|
10582
10723
|
app.use(ArcoVue);
|
|
10583
10724
|
}
|
|
10584
10725
|
};
|
|
10585
|
-
exports.ApiCascader = _sfc_main$
|
|
10586
|
-
exports.ApiSelect = _sfc_main$
|
|
10726
|
+
exports.ApiCascader = _sfc_main$d;
|
|
10727
|
+
exports.ApiSelect = _sfc_main$e;
|
|
10587
10728
|
exports.BasicDescription = BasicDescription;
|
|
10588
10729
|
exports.BasicDrawer = BasicDrawer;
|
|
10589
|
-
exports.BasicForm = _sfc_main$
|
|
10730
|
+
exports.BasicForm = _sfc_main$b;
|
|
10590
10731
|
exports.BasicImage = BasicImage;
|
|
10591
|
-
exports.BasicLoading = _sfc_main;
|
|
10732
|
+
exports.BasicLoading = _sfc_main$1;
|
|
10592
10733
|
exports.BasicModal = BasicModal;
|
|
10593
10734
|
exports.BasicReadonlyField = BasicReadonlyField;
|
|
10594
10735
|
exports.BasicTable = BasicTable;
|
|
10595
10736
|
exports.BasicTextEllipsis = BasicTextEllipsis;
|
|
10596
10737
|
exports.BasicUpload = BasicUpload;
|
|
10738
|
+
exports.CheckUpdate = _sfc_main;
|
|
10597
10739
|
exports.EditCell = EditCell;
|
|
10598
10740
|
exports.KntSharedPlugin = KntSharedPlugin;
|
|
10599
10741
|
exports.VideoPreview = VideoPreview;
|
|
@@ -10671,6 +10813,7 @@ exports.rendererMap = rendererMap;
|
|
|
10671
10813
|
exports.rgbToHex = rgbToHex;
|
|
10672
10814
|
exports.safeToString = safeToString;
|
|
10673
10815
|
exports.setObjToUrlParams = setObjToUrlParams;
|
|
10816
|
+
exports.setupChunkErrorHandler = setupChunkErrorHandler;
|
|
10674
10817
|
exports.throttle = throttle;
|
|
10675
10818
|
exports.transFormUrlPath = transFormUrlPath;
|
|
10676
10819
|
exports.transformBackUrl = transformBackUrl;
|
|
@@ -10691,4 +10834,5 @@ exports.useReadonlyField = useReadonlyField;
|
|
|
10691
10834
|
exports.useTable = useTable;
|
|
10692
10835
|
exports.useToggle = useToggle;
|
|
10693
10836
|
exports.useUpload = useUpload;
|
|
10837
|
+
exports.useVersionCheck = useVersionCheck;
|
|
10694
10838
|
//# sourceMappingURL=index.cjs.js.map
|