@gonsin/gview 2.0.142 → 2.0.143
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/index.mjs +416 -401
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -11,8 +11,8 @@ import ro from "axios";
|
|
|
11
11
|
import { customAlphabet as Ta } from "nanoid";
|
|
12
12
|
import da from "nprogress";
|
|
13
13
|
import { default as pc } from "nprogress";
|
|
14
|
-
import { get as ie, set as Ke, cloneDeep as Be, isPlainObject as
|
|
15
|
-
import { MessagePlugin as ja, Button as Ia, Progress as cn, Tooltip as Ct, Link as ya, Tree as Aa, Card as
|
|
14
|
+
import { get as ie, set as Ke, cloneDeep as Be, isPlainObject as fo, isArray as Eo, isEqual as zo } from "lodash-es";
|
|
15
|
+
import { MessagePlugin as ja, Button as Ia, Progress as cn, Tooltip as Ct, Link as ya, Tree as Aa, Card as ma, DialogPlugin as vu, ConfigProvider as fa } from "tdesign-vue-next";
|
|
16
16
|
import { RefreshIcon as Iu, CloseIcon as Lt, ArrowLeftIcon as Lo, ArrowRightIcon as po, CloseCircleIcon as xo, MoreIcon as Ea, DeleteIcon as za, ViewListIcon as La, PoweroffIcon as pa, ChevronDownIcon as xa, Icon as Oo, AppIcon as Oa, UploadIcon as ho, CheckCircleFilledIcon as ha, PlayCircleFilledIcon as ka, PauseCircleFilledIcon as Ca, LinkIcon as Sa, ErrorCircleFilledIcon as wa, FileImageIcon as Xt, FilePdfIcon as Nn, VideoIcon as Ju, FileIconIcon as Xu, FolderOpenIcon as va, FolderIcon as Ua, FilterIcon as Qa, SearchIcon as ba, EllipsisIcon as Ya, UserIcon as Uu, BrowseIcon as _a } from "tdesign-icons-vue-next";
|
|
17
17
|
import { useElementSize as gn, onClickOutside as ko, useEventListener as Co, useDebounceFn as Qu } from "@vueuse/core";
|
|
18
18
|
import yu from "number-precision";
|
|
@@ -70,7 +70,7 @@ function ic(u) {
|
|
|
70
70
|
function Fe(u) {
|
|
71
71
|
return dn(u) || tt(u);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function mu(u) {
|
|
74
74
|
return Fe(u) || (u + "").trim() == "";
|
|
75
75
|
}
|
|
76
76
|
function to(u, e, t) {
|
|
@@ -158,7 +158,7 @@ class yn {
|
|
|
158
158
|
this.storage.clear();
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
const
|
|
161
|
+
const mt = new yn("session"), De = new yn("local");
|
|
162
162
|
function eu(u) {
|
|
163
163
|
return Ta(
|
|
164
164
|
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
|
|
@@ -390,7 +390,7 @@ const pe = new lM({ duration: 2e3, maxCount: 3 }), oo = {
|
|
|
390
390
|
// withCredentials: true,
|
|
391
391
|
// crossDomain: true,
|
|
392
392
|
};
|
|
393
|
-
class
|
|
393
|
+
class mn {
|
|
394
394
|
constructor(e = {
|
|
395
395
|
config: oo,
|
|
396
396
|
enableLog: !0,
|
|
@@ -511,13 +511,13 @@ class fn {
|
|
|
511
511
|
});
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
|
-
const sM = (u) => new
|
|
514
|
+
const sM = (u) => new mn({
|
|
515
515
|
config: u.config ?? oo,
|
|
516
516
|
enableLog: u.enableLog ?? !0,
|
|
517
517
|
enableAuth: u.enableAuth ?? !0,
|
|
518
518
|
enableToken: u.enableToken ?? !0,
|
|
519
519
|
checkToken: u.checkToken ?? !0
|
|
520
|
-
}), Xe = new
|
|
520
|
+
}), Xe = new mn(), { T: Zt } = je();
|
|
521
521
|
function rM(u) {
|
|
522
522
|
var a;
|
|
523
523
|
const e = /filename\*=(UTF-8|ISO-8859-1)''([\w%\-\.]+)/gi, t = [];
|
|
@@ -601,7 +601,7 @@ function tu(u, e, t = !1) {
|
|
|
601
601
|
if (!Fe(e) && e.length) {
|
|
602
602
|
if (Object.keys(u).length)
|
|
603
603
|
return e.forEach((o) => {
|
|
604
|
-
o.keyName &&
|
|
604
|
+
o.keyName && mu(ie(u, o.keyName)) && (o.itemType === "check_box" || o.itemType === "switch") && Ke(
|
|
605
605
|
u,
|
|
606
606
|
o.keyName,
|
|
607
607
|
Ve(o.itemType, t)
|
|
@@ -619,7 +619,7 @@ function tu(u, e, t = !1) {
|
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function fn(u) {
|
|
623
623
|
const { list: e, keyName: t, valueName: o, titleName: n, parentKey: a, parentKeyName: M } = u, l = (s, N) => {
|
|
624
624
|
const i = [];
|
|
625
625
|
return N.forEach((r) => {
|
|
@@ -665,7 +665,7 @@ function En(u, e, t = []) {
|
|
|
665
665
|
if (!t.includes(n))
|
|
666
666
|
if (!(n in e))
|
|
667
667
|
Ke(o, n, u[n]);
|
|
668
|
-
else if (
|
|
668
|
+
else if (fo(u[n]) && fo(e[n])) {
|
|
669
669
|
const a = En(u[n], e[n]);
|
|
670
670
|
Object.keys(a).length > 0 && Ke(o, n, a);
|
|
671
671
|
} else
|
|
@@ -723,7 +723,7 @@ const No = Ut("column", {
|
|
|
723
723
|
}), nu = Ut("cache", {
|
|
724
724
|
state: () => ({
|
|
725
725
|
formDataMap: new Map(
|
|
726
|
-
|
|
726
|
+
mt.getItem(lu) || []
|
|
727
727
|
)
|
|
728
728
|
}),
|
|
729
729
|
getters: {
|
|
@@ -734,13 +734,13 @@ const No = Ut("column", {
|
|
|
734
734
|
},
|
|
735
735
|
actions: {
|
|
736
736
|
setFormData(u, e) {
|
|
737
|
-
this.formDataMap.set(u, { path: u, data: e }),
|
|
737
|
+
this.formDataMap.set(u, { path: u, data: e }), mt.setItem(
|
|
738
738
|
lu,
|
|
739
739
|
Array.from(this.formDataMap.entries())
|
|
740
740
|
);
|
|
741
741
|
},
|
|
742
742
|
removeFormData(u) {
|
|
743
|
-
this.formDataMap.delete(u),
|
|
743
|
+
this.formDataMap.delete(u), mt.setItem(
|
|
744
744
|
lu,
|
|
745
745
|
Array.from(this.formDataMap.entries())
|
|
746
746
|
);
|
|
@@ -750,7 +750,7 @@ const No = Ut("column", {
|
|
|
750
750
|
* @param {string} path
|
|
751
751
|
*/
|
|
752
752
|
clearFormData() {
|
|
753
|
-
this.formDataMap.clear(),
|
|
753
|
+
this.formDataMap.clear(), mt.removeItem(lu);
|
|
754
754
|
}
|
|
755
755
|
}
|
|
756
756
|
}), ve = Ut("setting", {
|
|
@@ -958,7 +958,7 @@ const No = Ut("column", {
|
|
|
958
958
|
* @description 用户退出登录清除存储值
|
|
959
959
|
*/
|
|
960
960
|
async userLogout() {
|
|
961
|
-
|
|
961
|
+
mt.clear(), await this.resetInitValue(), await this.setUserLoginStatus(!1), nu().clearFormData();
|
|
962
962
|
}
|
|
963
963
|
}
|
|
964
964
|
}), Qt = Ut("tabMenu", {
|
|
@@ -966,7 +966,7 @@ const No = Ut("column", {
|
|
|
966
966
|
// 初始化tab菜单列表
|
|
967
967
|
initTabMenuList: De.getItem(Bu) || [],
|
|
968
968
|
// tab菜单列表
|
|
969
|
-
tabMenuList:
|
|
969
|
+
tabMenuList: mt.getItem(Fu) || []
|
|
970
970
|
}),
|
|
971
971
|
getters: {
|
|
972
972
|
returnTabMenuItemActiveTab: (u) => (e) => {
|
|
@@ -978,13 +978,13 @@ const No = Ut("column", {
|
|
|
978
978
|
async clearTabMenu() {
|
|
979
979
|
this.tabMenuList.length && this.tabMenuList.forEach((u) => {
|
|
980
980
|
this.afterRemoveTab(u.path);
|
|
981
|
-
}), De.removeItem(Bu),
|
|
981
|
+
}), De.removeItem(Bu), mt.removeItem(Fu), this.tabMenuList = [], this.initTabMenuList = [];
|
|
982
982
|
},
|
|
983
983
|
setInitTabMenuList(u) {
|
|
984
984
|
De.setItem(Bu, u), this.initTabMenuList = u;
|
|
985
985
|
},
|
|
986
986
|
setTabMenuList(u) {
|
|
987
|
-
|
|
987
|
+
mt.setItem(Fu, u), this.tabMenuList = u;
|
|
988
988
|
},
|
|
989
989
|
/**
|
|
990
990
|
* @description 初始化tab菜单列表
|
|
@@ -1245,24 +1245,24 @@ const No = Ut("column", {
|
|
|
1245
1245
|
this.edificeLogoUrl = u;
|
|
1246
1246
|
}
|
|
1247
1247
|
}
|
|
1248
|
-
}), Ru = "g-dialog-plugin", jM = "g-common-dialog", su = "g-common-form", ru = "g-common-header", IM = "g-common-table", yM = "g-board", lc = "g-dialog", AM = "g-form", Po = "g-form-item", sc = "g-header",
|
|
1248
|
+
}), Ru = "g-dialog-plugin", jM = "g-common-dialog", su = "g-common-form", ru = "g-common-header", IM = "g-common-table", yM = "g-board", lc = "g-dialog", AM = "g-form", Po = "g-form-item", sc = "g-header", mM = "g-tab", Pt = "g-table", ut = "g-layout", cu = "g-uploader", Ot = "g-login", fM = ["title"], EM = ["title"], zM = ["title"], LM = ["onClick"], pM = ["title"], xM = ["title"], OM = ["onClick"], hM = ["title"], kM = ["title"], CM = ["title"], SM = ["title"], wM = ["title"], vM = ["title"], UM = /* @__PURE__ */ ne({
|
|
1249
1249
|
__name: "GLayoutHeaderTab",
|
|
1250
1250
|
setup(u) {
|
|
1251
1251
|
const { T: e } = je(), t = `${ut}__layoutHeaderTab`, o = ot(), n = jt(), a = _(""), M = Qt(), l = ve(), s = S(() => M.tabMenuList), N = S(() => l.homeUrl), i = S(() => l.displayMode);
|
|
1252
|
-
function r(
|
|
1253
|
-
Q.trigger === "document" && (a.value = null),
|
|
1252
|
+
function r(m, Q, k) {
|
|
1253
|
+
Q.trigger === "document" && (a.value = null), m && (a.value = k);
|
|
1254
1254
|
}
|
|
1255
|
-
function g(
|
|
1256
|
-
|
|
1255
|
+
function g(m) {
|
|
1256
|
+
m === "/HomePage" ? o.push({ path: N.value, query: zt(N.value) }) : o.push({ path: m, query: zt(m) });
|
|
1257
1257
|
}
|
|
1258
|
-
function y({ value:
|
|
1258
|
+
function y({ value: m, index: Q }) {
|
|
1259
1259
|
const { tabMenuList: k } = M;
|
|
1260
1260
|
if (k.length > 0) {
|
|
1261
|
-
M.subtractCurrentTabMenuItem({ path:
|
|
1261
|
+
M.subtractCurrentTabMenuItem({ path: m, itemIdx: Q });
|
|
1262
1262
|
const U = k.find((W, J) => J == Q + 1) ?? k.find((W, J) => J == Q - 1);
|
|
1263
1263
|
if (U) {
|
|
1264
1264
|
const W = decodeURIComponent(n.fullPath);
|
|
1265
|
-
|
|
1265
|
+
m === W && o.push({
|
|
1266
1266
|
path: U.path,
|
|
1267
1267
|
query: U.query
|
|
1268
1268
|
});
|
|
@@ -1270,44 +1270,44 @@ const No = Ut("column", {
|
|
|
1270
1270
|
o.push({ path: N.value, query: zt(N.value) });
|
|
1271
1271
|
}
|
|
1272
1272
|
}
|
|
1273
|
-
function j(
|
|
1274
|
-
const { path: k } =
|
|
1273
|
+
function j(m, Q) {
|
|
1274
|
+
const { path: k } = m;
|
|
1275
1275
|
nn(() => {
|
|
1276
1276
|
k === "/HomePage" ? o.push({ path: N.value, query: zt(N.value) }) : o.push({ path: k, query: zt(k) });
|
|
1277
1277
|
}), l.toggleGlobalReload(), a.value = null;
|
|
1278
1278
|
}
|
|
1279
|
-
function E(
|
|
1280
|
-
M.subtractTabMenuItemAhead({ path:
|
|
1279
|
+
function E(m, Q) {
|
|
1280
|
+
M.subtractTabMenuItemAhead({ path: m, itemIdx: Q }), p("ahead", Q);
|
|
1281
1281
|
}
|
|
1282
|
-
function F(
|
|
1283
|
-
M.subtractTabMenuItemBehind({ path:
|
|
1282
|
+
function F(m, Q) {
|
|
1283
|
+
M.subtractTabMenuItemBehind({ path: m, itemIdx: Q }), p("behind", Q);
|
|
1284
1284
|
}
|
|
1285
|
-
function C(
|
|
1286
|
-
s.value.length > 1 && (M.subtractTabMenuItemOther({ path:
|
|
1285
|
+
function C(m, Q) {
|
|
1286
|
+
s.value.length > 1 && (M.subtractTabMenuItemOther({ path: m, itemIdx: Q }), p("other", Q));
|
|
1287
1287
|
}
|
|
1288
1288
|
function I() {
|
|
1289
1289
|
M.clearTabMenu(), o.push({ path: N.value, query: zt(N.value) });
|
|
1290
1290
|
}
|
|
1291
|
-
function p(
|
|
1291
|
+
function p(m, Q) {
|
|
1292
1292
|
const k = n.fullPath, { tabMenuList: U } = M, W = U.findIndex((ae) => ae.path === k);
|
|
1293
|
-
if (
|
|
1294
|
-
const ae =
|
|
1293
|
+
if (m === "other" && W !== Q || m === "ahead" && W < Q || m === "behind" && W === -1 || m == "all") {
|
|
1294
|
+
const ae = m !== "all" && m === "behind" ? U.length - 1 : 0, me = U[ae];
|
|
1295
1295
|
o.push({
|
|
1296
|
-
path:
|
|
1297
|
-
query:
|
|
1296
|
+
path: me.path,
|
|
1297
|
+
query: me.query
|
|
1298
1298
|
});
|
|
1299
1299
|
}
|
|
1300
1300
|
a.value = null;
|
|
1301
1301
|
}
|
|
1302
|
-
const A = S(() => decodeURIComponent(n.fullPath)),
|
|
1303
|
-
if (
|
|
1304
|
-
const
|
|
1305
|
-
if (Array.from(
|
|
1302
|
+
const A = S(() => decodeURIComponent(n.fullPath)), f = _(null), { width: L } = gn(f, { width: 2e3, height: 64 }), z = S(() => {
|
|
1303
|
+
if (f.value) {
|
|
1304
|
+
const m = f.value.$el.querySelectorAll(".t-menu__item");
|
|
1305
|
+
if (Array.from(m).reduce((k, U) => {
|
|
1306
1306
|
const W = parseInt(getComputedStyle(U).paddingLeft) + parseInt(getComputedStyle(U).paddingRight);
|
|
1307
1307
|
return k + (U.clientWidth ?? 0) + W;
|
|
1308
1308
|
}, 0) > L.value - 100) {
|
|
1309
1309
|
let k = 0, U = 0;
|
|
1310
|
-
for (const W of
|
|
1310
|
+
for (const W of m) {
|
|
1311
1311
|
const J = parseInt(getComputedStyle(W).paddingLeft) + parseInt(getComputedStyle(W).paddingRight), ae = (W.clientWidth ?? 0) + J;
|
|
1312
1312
|
if (k += ae, k <= L.value - 100)
|
|
1313
1313
|
U++;
|
|
@@ -1320,25 +1320,25 @@ const No = Ut("column", {
|
|
|
1320
1320
|
return s.value.length;
|
|
1321
1321
|
}), c = S(() => z.value > 0 ? s.value.slice(0, z.value) : []), h = S(
|
|
1322
1322
|
() => z.value > 0 ? s.value.slice(z.value) : s.value
|
|
1323
|
-
), V = S(() => h.value.map((
|
|
1323
|
+
), V = S(() => h.value.map((m) => m.path)), D = _(null), v = _(150), x = _(0), P = _(!1);
|
|
1324
1324
|
function B() {
|
|
1325
1325
|
if (D.value) {
|
|
1326
|
-
const
|
|
1327
|
-
x.value =
|
|
1328
|
-
const Q = Math.max(...
|
|
1326
|
+
const m = Array.from(D.value).map((k) => k.querySelector(".t-menu__content").offsetWidth);
|
|
1327
|
+
x.value = m.reduce((k, U) => k + U, 0);
|
|
1328
|
+
const Q = Math.max(...m);
|
|
1329
1329
|
v.value = Q + 50 > 150 ? Q + 50 : 150;
|
|
1330
1330
|
}
|
|
1331
1331
|
}
|
|
1332
|
-
function te(
|
|
1332
|
+
function te(m) {
|
|
1333
1333
|
setTimeout(() => {
|
|
1334
1334
|
B(), P.value = !0;
|
|
1335
1335
|
});
|
|
1336
1336
|
}
|
|
1337
|
-
return (
|
|
1338
|
-
const k = Z("t-menu-item"), U = Z("t-dropdown-item"), W = Z("t-dropdown-menu"), J = Z("t-dropdown"), ae = Z("t-divider"),
|
|
1337
|
+
return (m, Q) => {
|
|
1338
|
+
const k = Z("t-menu-item"), U = Z("t-dropdown-item"), W = Z("t-dropdown-menu"), J = Z("t-dropdown"), ae = Z("t-divider"), me = Z("t-button"), we = Z("t-submenu"), Ue = Z("t-head-menu");
|
|
1339
1339
|
return T(), w(Ue, {
|
|
1340
1340
|
ref_key: "GLayoutHeaderRef",
|
|
1341
|
-
ref:
|
|
1341
|
+
ref: f,
|
|
1342
1342
|
class: H(`${t}`),
|
|
1343
1343
|
theme: i.value,
|
|
1344
1344
|
value: A.value,
|
|
@@ -1367,7 +1367,7 @@ const No = Ut("column", {
|
|
|
1367
1367
|
}, [
|
|
1368
1368
|
b(d(Iu)),
|
|
1369
1369
|
ce(" " + oe(d(e).t("刷新")), 1)
|
|
1370
|
-
], 8,
|
|
1370
|
+
], 8, fM)
|
|
1371
1371
|
]),
|
|
1372
1372
|
_: 1
|
|
1373
1373
|
}),
|
|
@@ -1650,7 +1650,7 @@ const No = Ut("column", {
|
|
|
1650
1650
|
}, 1032, ["popup-props"])
|
|
1651
1651
|
]))), 128)),
|
|
1652
1652
|
b(ae, { style: { margin: "4px 0" } }),
|
|
1653
|
-
b(
|
|
1653
|
+
b(me, {
|
|
1654
1654
|
variant: "text",
|
|
1655
1655
|
theme: "danger",
|
|
1656
1656
|
block: "",
|
|
@@ -1744,7 +1744,7 @@ const Ln = { render: WM }, GM = { class: "username" }, ZM = /* @__PURE__ */ ne({
|
|
|
1744
1744
|
o.push({ name: "login" }), n.userLogout(), I.clearTabMenu();
|
|
1745
1745
|
}
|
|
1746
1746
|
const A = S(() => n.sideHoverMenuTimer);
|
|
1747
|
-
function
|
|
1747
|
+
function f() {
|
|
1748
1748
|
s != null && s.value.enableHoverMenu && !n.isSideMenuCollapse && (clearTimeout(A.value), n.isSideHoverMenuShow = !0);
|
|
1749
1749
|
}
|
|
1750
1750
|
function L() {
|
|
@@ -1753,8 +1753,8 @@ const Ln = { render: WM }, GM = { class: "username" }, ZM = /* @__PURE__ */ ne({
|
|
|
1753
1753
|
}, 500);
|
|
1754
1754
|
}
|
|
1755
1755
|
return (z, c) => {
|
|
1756
|
-
const h = Z("t-button"), V = Z("t-icon"), D = Z("t-badge"), v = Z("t-popup"), x = Z("t-dropdown-item"), P = Z("t-dropdown-menu"), B = Z("t-dropdown"), te = Z("t-head-menu"),
|
|
1757
|
-
return T(), w(
|
|
1756
|
+
const h = Z("t-button"), V = Z("t-icon"), D = Z("t-badge"), v = Z("t-popup"), x = Z("t-dropdown-item"), P = Z("t-dropdown-menu"), B = Z("t-dropdown"), te = Z("t-head-menu"), m = Z("t-header");
|
|
1757
|
+
return T(), w(m, {
|
|
1758
1758
|
class: H(t),
|
|
1759
1759
|
onMouseleave: L
|
|
1760
1760
|
}, {
|
|
@@ -1765,7 +1765,7 @@ const Ln = { render: WM }, GM = { class: "username" }, ZM = /* @__PURE__ */ ne({
|
|
|
1765
1765
|
return [
|
|
1766
1766
|
ee("div", {
|
|
1767
1767
|
class: H(`${t}--logo`),
|
|
1768
|
-
onMouseenter:
|
|
1768
|
+
onMouseenter: f
|
|
1769
1769
|
}, [
|
|
1770
1770
|
ee("div", {
|
|
1771
1771
|
class: H(`${t}--logo-image`),
|
|
@@ -2145,8 +2145,8 @@ const nt = (u, e) => {
|
|
|
2145
2145
|
var V, D;
|
|
2146
2146
|
const z = parseInt(getComputedStyle(L.parentElement).paddingLeft), c = ((V = L == null ? void 0 : L.parentElement.querySelector(".t-icon")) == null ? void 0 : V.clientWidth) || 0, h = ((D = L == null ? void 0 : L.parentElement.querySelector(".t-fake-arrow")) == null ? void 0 : D.clientWidth) || 0;
|
|
2147
2147
|
return L.clientWidth + z + c + h;
|
|
2148
|
-
}).filter((L) => L > 0),
|
|
2149
|
-
o.setSideMenuWidth(
|
|
2148
|
+
}).filter((L) => L > 0), f = Math.max(...A);
|
|
2149
|
+
o.setSideMenuWidth(f + 50), o.sideMenuMaxWidth = l.value + 100;
|
|
2150
2150
|
}
|
|
2151
2151
|
}
|
|
2152
2152
|
de(
|
|
@@ -2167,8 +2167,8 @@ const nt = (u, e) => {
|
|
|
2167
2167
|
}
|
|
2168
2168
|
const C = S(() => l.value <= 80);
|
|
2169
2169
|
return (I, p) => {
|
|
2170
|
-
const A = Z("t-menu"),
|
|
2171
|
-
return T(), w(
|
|
2170
|
+
const A = Z("t-menu"), f = Z("t-drawer");
|
|
2171
|
+
return T(), w(f, {
|
|
2172
2172
|
class: H(`${e}`),
|
|
2173
2173
|
size: `${l.value}px`,
|
|
2174
2174
|
placement: "left",
|
|
@@ -2490,7 +2490,7 @@ const oi = /* @__PURE__ */ nt(ti, [["render", ui]]), ni = /* @__PURE__ */ ne({
|
|
|
2490
2490
|
K && K.children && (C.value = !0, I.value = [...K.children], p.value = K.name);
|
|
2491
2491
|
}, 100);
|
|
2492
2492
|
}
|
|
2493
|
-
function
|
|
2493
|
+
function f() {
|
|
2494
2494
|
I.value = [], C.value = !1, p.value = "";
|
|
2495
2495
|
}
|
|
2496
2496
|
de(
|
|
@@ -2547,16 +2547,16 @@ const oi = /* @__PURE__ */ nt(ti, [["render", ui]]), ni = /* @__PURE__ */ ne({
|
|
|
2547
2547
|
}
|
|
2548
2548
|
const te = _(null);
|
|
2549
2549
|
Co(te, "mouseleave", P), Co(te, "mouseenter", B);
|
|
2550
|
-
const
|
|
2550
|
+
const m = _(232);
|
|
2551
2551
|
function Q() {
|
|
2552
2552
|
var K;
|
|
2553
2553
|
if (L.value) {
|
|
2554
2554
|
const le = (K = L.value.$el) == null ? void 0 : K.querySelectorAll(".t-menu__content"), Ie = Array.from(le).map((R) => {
|
|
2555
|
-
var Le,
|
|
2556
|
-
const ue = parseInt(getComputedStyle(R.parentElement).paddingLeft), G = ((Le = R == null ? void 0 : R.parentElement.querySelector(".t-icon")) == null ? void 0 : Le.clientWidth) || 0, se = ((
|
|
2555
|
+
var Le, fe;
|
|
2556
|
+
const ue = parseInt(getComputedStyle(R.parentElement).paddingLeft), G = ((Le = R == null ? void 0 : R.parentElement.querySelector(".t-icon")) == null ? void 0 : Le.clientWidth) || 0, se = ((fe = R == null ? void 0 : R.parentElement.querySelector(".t-fake-arrow")) == null ? void 0 : fe.clientWidth) || 0;
|
|
2557
2557
|
return R.clientWidth + ue + G + se;
|
|
2558
2558
|
}).filter((R) => R > 0), Te = Math.max(...Ie);
|
|
2559
|
-
|
|
2559
|
+
m.value = Te > 232 ? Te + 50 : 232;
|
|
2560
2560
|
}
|
|
2561
2561
|
}
|
|
2562
2562
|
const k = Qu(Q, 150), U = _(150);
|
|
@@ -2579,8 +2579,8 @@ const oi = /* @__PURE__ */ nt(ti, [["render", ui]]), ni = /* @__PURE__ */ ne({
|
|
|
2579
2579
|
}
|
|
2580
2580
|
);
|
|
2581
2581
|
const ae = S(
|
|
2582
|
-
() =>
|
|
2583
|
-
),
|
|
2582
|
+
() => m.value + U.value
|
|
2583
|
+
), me = _(150);
|
|
2584
2584
|
function we() {
|
|
2585
2585
|
var K;
|
|
2586
2586
|
if (c.value) {
|
|
@@ -2588,7 +2588,7 @@ const oi = /* @__PURE__ */ nt(ti, [["render", ui]]), ni = /* @__PURE__ */ ne({
|
|
|
2588
2588
|
const ue = parseInt(getComputedStyle(R.parentElement).paddingLeft);
|
|
2589
2589
|
return R.clientWidth + ue + 30;
|
|
2590
2590
|
}).filter((R) => R > 0), Te = Math.max(...Ie);
|
|
2591
|
-
|
|
2591
|
+
me.value = Te > 150 ? Te : 150;
|
|
2592
2592
|
}
|
|
2593
2593
|
}
|
|
2594
2594
|
de(
|
|
@@ -2606,7 +2606,7 @@ const oi = /* @__PURE__ */ nt(ti, [["render", ui]]), ni = /* @__PURE__ */ ne({
|
|
|
2606
2606
|
}, [
|
|
2607
2607
|
b(ue, {
|
|
2608
2608
|
class: H(`${o} no-transition`),
|
|
2609
|
-
size: `${
|
|
2609
|
+
size: `${m.value}px`,
|
|
2610
2610
|
placement: "left",
|
|
2611
2611
|
visible: i.value,
|
|
2612
2612
|
"onUpdate:visible": le[0] || (le[0] = (G) => i.value = G),
|
|
@@ -2690,7 +2690,7 @@ const oi = /* @__PURE__ */ nt(ti, [["render", ui]]), ni = /* @__PURE__ */ ne({
|
|
|
2690
2690
|
footer: !1,
|
|
2691
2691
|
showInAttachedElement: !1,
|
|
2692
2692
|
zIndex: 980,
|
|
2693
|
-
style: et({ marginLeft: `${
|
|
2693
|
+
style: et({ marginLeft: `${m.value}px` })
|
|
2694
2694
|
}, {
|
|
2695
2695
|
default: O(() => [
|
|
2696
2696
|
b(R, {
|
|
@@ -2714,7 +2714,7 @@ const oi = /* @__PURE__ */ nt(ti, [["render", ui]]), ni = /* @__PURE__ */ ne({
|
|
|
2714
2714
|
value: G.path,
|
|
2715
2715
|
key: G.name,
|
|
2716
2716
|
onClick: (se) => g(G.path),
|
|
2717
|
-
onMouseenter:
|
|
2717
|
+
onMouseenter: f
|
|
2718
2718
|
}, {
|
|
2719
2719
|
icon: O(() => [
|
|
2720
2720
|
G.level == 1 ? (T(), w(xt, {
|
|
@@ -2762,7 +2762,7 @@ const oi = /* @__PURE__ */ nt(ti, [["render", ui]]), ni = /* @__PURE__ */ ne({
|
|
|
2762
2762
|
}, 8, ["class", "size", "visible", "style"]),
|
|
2763
2763
|
b(ue, {
|
|
2764
2764
|
class: H([`${o}`, i.value ? "" : "no-transition"]),
|
|
2765
|
-
size: `${
|
|
2765
|
+
size: `${me.value}px`,
|
|
2766
2766
|
placement: "left",
|
|
2767
2767
|
visible: i.value && y.value && C.value,
|
|
2768
2768
|
showOverlay: !1,
|
|
@@ -3041,7 +3041,7 @@ const Nc = We(si), ri = /* @__PURE__ */ ne({
|
|
|
3041
3041
|
}
|
|
3042
3042
|
});
|
|
3043
3043
|
const ci = We(ri), $u = () => {
|
|
3044
|
-
},
|
|
3044
|
+
}, fu = {
|
|
3045
3045
|
// 普通上传文件 POST
|
|
3046
3046
|
baseUploadFile: "/api/base/upload",
|
|
3047
3047
|
// 准备上传文件 POST
|
|
@@ -3052,11 +3052,11 @@ const ci = We(ri), $u = () => {
|
|
|
3052
3052
|
getFileUrl: "/api/base/upload/files/url"
|
|
3053
3053
|
};
|
|
3054
3054
|
function Ni(u) {
|
|
3055
|
-
return Xe.post(`${
|
|
3055
|
+
return Xe.post(`${fu.uploadReady}`, Dn.stringify(u));
|
|
3056
3056
|
}
|
|
3057
3057
|
function gi(u) {
|
|
3058
3058
|
const e = pu();
|
|
3059
|
-
return Xe.service.get(`${
|
|
3059
|
+
return Xe.service.get(`${fu.getFileUrl}?sessionId=${e}`, {
|
|
3060
3060
|
timeout: 0,
|
|
3061
3061
|
params: u
|
|
3062
3062
|
});
|
|
@@ -3090,24 +3090,24 @@ const Ht = (u) => {
|
|
|
3090
3090
|
onError: g = $u
|
|
3091
3091
|
}) => {
|
|
3092
3092
|
var A;
|
|
3093
|
-
const y = Vo(e, u) || "file", j = Vo(t, u), E = pu(), F = M ? `${
|
|
3094
|
-
function I(
|
|
3093
|
+
const y = Vo(e, u) || "file", j = Vo(t, u), E = pu(), F = M ? `${fu.pieceUploadFiles}?sessionId=${E}` : `${fu.baseUploadFile}?sessionId=${E}`, C = [];
|
|
3094
|
+
function I(f, L) {
|
|
3095
3095
|
let z = 0;
|
|
3096
3096
|
C.forEach((c) => {
|
|
3097
3097
|
z += c;
|
|
3098
|
-
}),
|
|
3098
|
+
}), f = z > 0 ? yu.round(z / a, 2) : 0, i(f, L);
|
|
3099
3099
|
}
|
|
3100
|
-
function p(
|
|
3100
|
+
function p(f, L) {
|
|
3101
3101
|
let z = 0, c = 0, h = !1, V = [];
|
|
3102
|
-
const D =
|
|
3102
|
+
const D = f.length, v = async () => {
|
|
3103
3103
|
if (h)
|
|
3104
3104
|
return;
|
|
3105
|
-
const P =
|
|
3105
|
+
const P = f.shift();
|
|
3106
3106
|
if (P) {
|
|
3107
3107
|
const B = c++, te = new XMLHttpRequest();
|
|
3108
|
-
n && (te.withCredentials = !0), te.upload.onprogress = (
|
|
3109
|
-
const Q =
|
|
3110
|
-
C[B] =
|
|
3108
|
+
n && (te.withCredentials = !0), te.upload.onprogress = (m) => {
|
|
3109
|
+
const Q = m.total > 0 ? yu.round(m.loaded / m.total, 2) : 0;
|
|
3110
|
+
C[B] = m.loaded, I(Q, m);
|
|
3111
3111
|
}, te.onerror = function(Q) {
|
|
3112
3112
|
h = !0, g(Q);
|
|
3113
3113
|
}, te.onload = () => {
|
|
@@ -3116,13 +3116,13 @@ const Ht = (u) => {
|
|
|
3116
3116
|
return;
|
|
3117
3117
|
}
|
|
3118
3118
|
if (z == D - 1) {
|
|
3119
|
-
const
|
|
3120
|
-
r(
|
|
3119
|
+
const m = V.map((Q) => Ht(Q));
|
|
3120
|
+
r(m);
|
|
3121
3121
|
} else
|
|
3122
3122
|
z++, v();
|
|
3123
3123
|
}, te.open("post", F ?? "", !0);
|
|
3124
|
-
for (const
|
|
3125
|
-
te.setRequestHeader(
|
|
3124
|
+
for (const m of Object.keys(o))
|
|
3125
|
+
te.setRequestHeader(m, o[m]);
|
|
3126
3126
|
te.send(P), V.push(te);
|
|
3127
3127
|
} else if (z === D) {
|
|
3128
3128
|
const B = V.map((te) => Ht(te));
|
|
@@ -3134,15 +3134,15 @@ const Ht = (u) => {
|
|
|
3134
3134
|
return x(), V;
|
|
3135
3135
|
}
|
|
3136
3136
|
if (M && l) {
|
|
3137
|
-
let
|
|
3137
|
+
let f = [];
|
|
3138
3138
|
for (let c = 0; c < a; c = c + N) {
|
|
3139
3139
|
const h = (A = u.file) == null ? void 0 : A.slice(c, Math.min(c + N, a));
|
|
3140
|
-
|
|
3140
|
+
f.push(h);
|
|
3141
3141
|
}
|
|
3142
|
-
const L =
|
|
3142
|
+
const L = f == null ? void 0 : f.map((c, h) => {
|
|
3143
3143
|
const V = new FormData(), D = {
|
|
3144
3144
|
key: l,
|
|
3145
|
-
end: h ==
|
|
3145
|
+
end: h == f.length - 1,
|
|
3146
3146
|
index: h,
|
|
3147
3147
|
piece: c
|
|
3148
3148
|
};
|
|
@@ -3161,29 +3161,29 @@ const Ht = (u) => {
|
|
|
3161
3161
|
}
|
|
3162
3162
|
return z;
|
|
3163
3163
|
} else {
|
|
3164
|
-
const
|
|
3165
|
-
n && (
|
|
3164
|
+
const f = new XMLHttpRequest();
|
|
3165
|
+
n && (f.withCredentials = n), f.upload.onprogress = (z) => {
|
|
3166
3166
|
const c = z.total > 0 ? yu.round(z.loaded / z.total, 2) : 0;
|
|
3167
3167
|
i(c, z);
|
|
3168
|
-
},
|
|
3168
|
+
}, f.onerror = function(c) {
|
|
3169
3169
|
g(c);
|
|
3170
|
-
},
|
|
3171
|
-
if (
|
|
3172
|
-
g(Ht(
|
|
3170
|
+
}, f.onload = () => {
|
|
3171
|
+
if (f.status < 200 || f.status >= 300) {
|
|
3172
|
+
g(Ht(f));
|
|
3173
3173
|
return;
|
|
3174
3174
|
}
|
|
3175
|
-
r(Ht(
|
|
3175
|
+
r(Ht(f));
|
|
3176
3176
|
};
|
|
3177
3177
|
const L = new FormData();
|
|
3178
3178
|
if (j)
|
|
3179
3179
|
for (const z of Object.keys(j))
|
|
3180
3180
|
L.append(z, j[z]);
|
|
3181
|
-
u.file && L.append(y, u.file),
|
|
3181
|
+
u.file && L.append(y, u.file), f.open("post", F ?? "", !0);
|
|
3182
3182
|
for (const z of Object.keys(o))
|
|
3183
|
-
|
|
3184
|
-
return
|
|
3183
|
+
f.setRequestHeader(z, o[z]);
|
|
3184
|
+
return f.send(L), {
|
|
3185
3185
|
abort() {
|
|
3186
|
-
|
|
3186
|
+
f.abort();
|
|
3187
3187
|
}
|
|
3188
3188
|
};
|
|
3189
3189
|
}
|
|
@@ -3552,7 +3552,7 @@ const Ht = (u) => {
|
|
|
3552
3552
|
};
|
|
3553
3553
|
}
|
|
3554
3554
|
});
|
|
3555
|
-
const Cn = /* @__PURE__ */ nt(Ai, [["__scopeId", "data-v-8a486150"]]),
|
|
3555
|
+
const Cn = /* @__PURE__ */ nt(Ai, [["__scopeId", "data-v-8a486150"]]), mi = /* @__PURE__ */ ne({
|
|
3556
3556
|
__name: "GUploaderListItem",
|
|
3557
3557
|
props: {
|
|
3558
3558
|
file: {
|
|
@@ -3629,7 +3629,7 @@ const Cn = /* @__PURE__ */ nt(Ai, [["__scopeId", "data-v-8a486150"]]), fi = /* @
|
|
|
3629
3629
|
], 2);
|
|
3630
3630
|
};
|
|
3631
3631
|
}
|
|
3632
|
-
}),
|
|
3632
|
+
}), fi = /* @__PURE__ */ ne({
|
|
3633
3633
|
__name: "GUploaderList",
|
|
3634
3634
|
props: {
|
|
3635
3635
|
fileList: {
|
|
@@ -3651,7 +3651,7 @@ const Cn = /* @__PURE__ */ nt(Ai, [["__scopeId", "data-v-8a486150"]]), fi = /* @
|
|
|
3651
3651
|
class: H(o.value)
|
|
3652
3652
|
}, {
|
|
3653
3653
|
default: O(() => [
|
|
3654
|
-
(T(!0), $(ge, null, ze(u.fileList, (l, s) => (T(), w(
|
|
3654
|
+
(T(!0), $(ge, null, ze(u.fileList, (l, s) => (T(), w(mi, {
|
|
3655
3655
|
key: `fileItem-${s}`,
|
|
3656
3656
|
file: l,
|
|
3657
3657
|
listType: u.listType
|
|
@@ -4006,14 +4006,14 @@ const Cn = /* @__PURE__ */ nt(Ai, [["__scopeId", "data-v-8a486150"]]), fi = /* @
|
|
|
4006
4006
|
download: E,
|
|
4007
4007
|
showLink: F,
|
|
4008
4008
|
showButtonProgress: C
|
|
4009
|
-
} = ca(n), I = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), A = _([]),
|
|
4009
|
+
} = ca(n), I = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), A = _([]), f = S(() => n.directory ? A.value.length ? kn(A.value) : { fileId: "" } : { fileId: "" }), L = S(() => n.limit > 0 && A.value.length >= n.limit), z = S(() => n.buttonText ? n.buttonText : n.directory ? L.value ? `${o.t("重新选择")}` : `${o.t("上传文件夹")}` : L.value ? `${o.t("重新选择")}` : `${o.t("上传文件")}`), c = (U) => {
|
|
4010
4010
|
I.clear();
|
|
4011
4011
|
const W = U == null ? void 0 : U.map((J, ae) => {
|
|
4012
|
-
const
|
|
4012
|
+
const me = J.status ? J.status : J.url ? "done" : "error", we = wu({
|
|
4013
4013
|
...J,
|
|
4014
4014
|
fileId: J.fileId ?? `${eu(10)}-${J.filename}`,
|
|
4015
|
-
status:
|
|
4016
|
-
percent: J.percent ?? (["error", "init"].indexOf(
|
|
4015
|
+
status: me,
|
|
4016
|
+
percent: J.percent ?? (["error", "init"].indexOf(me) > -1 ? 0 : 1)
|
|
4017
4017
|
});
|
|
4018
4018
|
return I.set(we.fileId, we), we;
|
|
4019
4019
|
});
|
|
@@ -4040,7 +4040,7 @@ const Cn = /* @__PURE__ */ nt(Ai, [["__scopeId", "data-v-8a486150"]]), fi = /* @
|
|
|
4040
4040
|
const W = ((Ie = U.file) == null ? void 0 : Ie.size) ?? 1, J = W > n.largeLimit;
|
|
4041
4041
|
let ae = "";
|
|
4042
4042
|
J && (ae = await V(U.file));
|
|
4043
|
-
const
|
|
4043
|
+
const me = (Te, R) => {
|
|
4044
4044
|
const ue = I.get(U.fileId);
|
|
4045
4045
|
ue && (ue.status = "uploading", ue.percent = Te, a("progress", ue, R));
|
|
4046
4046
|
}, we = J ? (Te) => {
|
|
@@ -4072,7 +4072,7 @@ const Cn = /* @__PURE__ */ nt(Ai, [["__scopeId", "data-v-8a486150"]]), fi = /* @
|
|
|
4072
4072
|
fileReadyKey: ae,
|
|
4073
4073
|
thread: n.thread,
|
|
4074
4074
|
chunkSize: n.chunkSize,
|
|
4075
|
-
onProgress:
|
|
4075
|
+
onProgress: me,
|
|
4076
4076
|
onSuccess: we,
|
|
4077
4077
|
onError: Ue
|
|
4078
4078
|
};
|
|
@@ -4084,9 +4084,9 @@ const Cn = /* @__PURE__ */ nt(Ai, [["__scopeId", "data-v-8a486150"]]), fi = /* @
|
|
|
4084
4084
|
const W = p.get(U.fileId);
|
|
4085
4085
|
if (W)
|
|
4086
4086
|
if (Et(W)) {
|
|
4087
|
-
W.forEach((
|
|
4087
|
+
W.forEach((me) => {
|
|
4088
4088
|
var we;
|
|
4089
|
-
(we =
|
|
4089
|
+
(we = me.abort) == null || we.call(me);
|
|
4090
4090
|
});
|
|
4091
4091
|
const ae = I.get(U.fileId);
|
|
4092
4092
|
ae && (ae.status = "error", ae.percent = 0, h(ae));
|
|
@@ -4102,9 +4102,9 @@ const Cn = /* @__PURE__ */ nt(Ai, [["__scopeId", "data-v-8a486150"]]), fi = /* @
|
|
|
4102
4102
|
}, P = () => {
|
|
4103
4103
|
if (A.value.length > 0)
|
|
4104
4104
|
for (const U of A.value)
|
|
4105
|
-
|
|
4105
|
+
m(U);
|
|
4106
4106
|
}, B = async (U, W) => {
|
|
4107
|
-
const J = `${eu(10)}-${U.name}`, ae = void 0,
|
|
4107
|
+
const J = `${eu(10)}-${U.name}`, ae = void 0, me = wu({
|
|
4108
4108
|
fileId: J,
|
|
4109
4109
|
file: U,
|
|
4110
4110
|
filename: U.name,
|
|
@@ -4114,7 +4114,7 @@ const Cn = /* @__PURE__ */ nt(Ai, [["__scopeId", "data-v-8a486150"]]), fi = /* @
|
|
|
4114
4114
|
percent: 0,
|
|
4115
4115
|
fileUploadType: "file"
|
|
4116
4116
|
});
|
|
4117
|
-
I.set(J,
|
|
4117
|
+
I.set(J, me), A.value = [...A.value, me], h(me), n.autoUpload && D(me);
|
|
4118
4118
|
}, te = (U) => {
|
|
4119
4119
|
if (n.limit > 0 && A.value.length + U.length > n.limit) {
|
|
4120
4120
|
if (A.value.length > U.length)
|
|
@@ -4130,14 +4130,14 @@ const Cn = /* @__PURE__ */ nt(Ai, [["__scopeId", "data-v-8a486150"]]), fi = /* @
|
|
|
4130
4130
|
console.error(ae);
|
|
4131
4131
|
}) : B(J);
|
|
4132
4132
|
}
|
|
4133
|
-
},
|
|
4133
|
+
}, m = (U) => {
|
|
4134
4134
|
A.value = A.value.filter((W) => W.fileId !== U.fileId), h(U);
|
|
4135
4135
|
}, Q = (U) => {
|
|
4136
4136
|
St(n.onBeforeRemove) ? Promise.resolve(n.onBeforeRemove(U)).then((W) => {
|
|
4137
|
-
W &&
|
|
4137
|
+
W && m(U);
|
|
4138
4138
|
}).catch((W) => {
|
|
4139
4139
|
console.error(W);
|
|
4140
|
-
}) :
|
|
4140
|
+
}) : m(U);
|
|
4141
4141
|
}, k = S(() => {
|
|
4142
4142
|
if (n.accept)
|
|
4143
4143
|
return n.accept;
|
|
@@ -4186,16 +4186,16 @@ const Cn = /* @__PURE__ */ nt(Ai, [["__scopeId", "data-v-8a486150"]]), fi = /* @
|
|
|
4186
4186
|
buttonProps: u.buttonProps,
|
|
4187
4187
|
fileList: A.value
|
|
4188
4188
|
}, { ...(J = A.value) != null && J.length ? {} : { tip: u.tip } }), null, 16, ["disabled", "listType", "uploaderText", "multiple", "directory", "hide", "accept", "onButtonClick", "buttonProps", "fileList"])) : q("", !0),
|
|
4189
|
-
u.showFileList && A.value.length ? (T(), w(d(
|
|
4189
|
+
u.showFileList && A.value.length ? (T(), w(d(ma), {
|
|
4190
4190
|
key: 1,
|
|
4191
4191
|
class: H(`${d(cu)}__card`),
|
|
4192
4192
|
size: "small"
|
|
4193
4193
|
}, {
|
|
4194
4194
|
default: O(() => [
|
|
4195
|
-
u.directory ? u.directory &&
|
|
4195
|
+
u.directory ? u.directory && f.value ? (T(), w(Ei, {
|
|
4196
4196
|
key: 1,
|
|
4197
|
-
fileTree:
|
|
4198
|
-
}, null, 8, ["fileTree"])) : q("", !0) : (T(), w(
|
|
4197
|
+
fileTree: f.value
|
|
4198
|
+
}, null, 8, ["fileTree"])) : q("", !0) : (T(), w(fi, {
|
|
4199
4199
|
key: 0,
|
|
4200
4200
|
fileList: A.value,
|
|
4201
4201
|
listType: d(N)
|
|
@@ -4626,7 +4626,7 @@ async function Qi(u, e, t, o) {
|
|
|
4626
4626
|
if (n.state === 200) {
|
|
4627
4627
|
const a = n.data;
|
|
4628
4628
|
if (!Fe(a) && a.length)
|
|
4629
|
-
return
|
|
4629
|
+
return fn({
|
|
4630
4630
|
list: a,
|
|
4631
4631
|
parentKey: null,
|
|
4632
4632
|
keyName: u == null ? void 0 : u.keyName,
|
|
@@ -4645,7 +4645,7 @@ async function bi(u, e, t, o) {
|
|
|
4645
4645
|
if (n.state === 200) {
|
|
4646
4646
|
const a = n.data;
|
|
4647
4647
|
if (!Fe(a) && a.length)
|
|
4648
|
-
return
|
|
4648
|
+
return fn({
|
|
4649
4649
|
list: a,
|
|
4650
4650
|
parentKey: null,
|
|
4651
4651
|
keyName: u == null ? void 0 : u.valueName,
|
|
@@ -4857,7 +4857,7 @@ const bn = /* @__PURE__ */ ne({
|
|
|
4857
4857
|
}, [
|
|
4858
4858
|
b(A, Ae({
|
|
4859
4859
|
modelValue: r.value,
|
|
4860
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
4860
|
+
"onUpdate:modelValue": p[0] || (p[0] = (f) => r.value = f)
|
|
4861
4861
|
}, d(C), {
|
|
4862
4862
|
placeholder: I.placeholder,
|
|
4863
4863
|
options: i.value,
|
|
@@ -5272,7 +5272,7 @@ var Vn = { exports: {} };
|
|
|
5272
5272
|
this.$d.weeks && (V += 7 * this.$d.weeks);
|
|
5273
5273
|
var D = p(V, "D"), v = p(this.$d.hours, "H"), x = p(this.$d.minutes, "M"), P = this.$d.seconds || 0;
|
|
5274
5274
|
this.$d.milliseconds && (P += this.$d.milliseconds / 1e3, P = Math.round(1e3 * P) / 1e3);
|
|
5275
|
-
var B = p(P, "S"), te = c.negative || h.negative || D.negative || v.negative || x.negative || B.negative,
|
|
5275
|
+
var B = p(P, "S"), te = c.negative || h.negative || D.negative || v.negative || x.negative || B.negative, m = v.format || x.format || B.format ? "T" : "", Q = (te ? "-" : "") + "P" + c.format + h.format + D.format + m + v.format + x.format + B.format;
|
|
5276
5276
|
return Q === "P" || Q === "-P" ? "P0D" : Q;
|
|
5277
5277
|
}, z.toJSON = function() {
|
|
5278
5278
|
return this.toISOString();
|
|
@@ -5333,7 +5333,7 @@ var Vn = { exports: {} };
|
|
|
5333
5333
|
}, z.asYears = function() {
|
|
5334
5334
|
return this.as("years");
|
|
5335
5335
|
}, L;
|
|
5336
|
-
}(),
|
|
5336
|
+
}(), f = function(L, z, c) {
|
|
5337
5337
|
return L.add(z.years() * c, "y").add(z.months() * c, "M").add(z.days() * c, "d").add(z.hours() * c, "h").add(z.minutes() * c, "m").add(z.seconds() * c, "s").add(z.milliseconds() * c, "ms");
|
|
5338
5338
|
};
|
|
5339
5339
|
return function(L, z, c) {
|
|
@@ -5343,9 +5343,9 @@ var Vn = { exports: {} };
|
|
|
5343
5343
|
}, c.isDuration = y;
|
|
5344
5344
|
var h = z.prototype.add, V = z.prototype.subtract;
|
|
5345
5345
|
z.prototype.add = function(D, v) {
|
|
5346
|
-
return y(D) ?
|
|
5346
|
+
return y(D) ? f(this, D, 1) : h.bind(this)(D, v);
|
|
5347
5347
|
}, z.prototype.subtract = function(D, v) {
|
|
5348
|
-
return y(D) ?
|
|
5348
|
+
return y(D) ? f(this, D, -1) : V.bind(this)(D, v);
|
|
5349
5349
|
};
|
|
5350
5350
|
};
|
|
5351
5351
|
});
|
|
@@ -5704,7 +5704,7 @@ const qi = ["id"], Ji = /* @__PURE__ */ ne({
|
|
|
5704
5704
|
return a.formItem.placeholder;
|
|
5705
5705
|
const c = a.formItem.name.trim().replace(/[::]/g, "").replace(/ {2,}/g, "");
|
|
5706
5706
|
return c !== "" ? `${F.value}${c}` : "";
|
|
5707
|
-
}), I = S(() => a.formItem.name.replace(/:|:/, "")), p = _(!1), A = _(150),
|
|
5707
|
+
}), I = S(() => a.formItem.name.replace(/:|:/, "")), p = _(!1), A = _(150), f = S(() => A.value + 20), L = _(null);
|
|
5708
5708
|
function z() {
|
|
5709
5709
|
if (L.value) {
|
|
5710
5710
|
const c = L.value.querySelector("label");
|
|
@@ -5743,7 +5743,7 @@ const qi = ["id"], Ji = /* @__PURE__ */ ne({
|
|
|
5743
5743
|
name: c.formItem.inputType != "RE_PASSWORD" ? c.formItem.keyName : "rePassword",
|
|
5744
5744
|
class: [`${c.isLabelNameShow ? "" : `${d(Po)}-label--hidden`}`]
|
|
5745
5745
|
}, {
|
|
5746
|
-
...c.enableLabelEllipsis ? {} : { labelWidth:
|
|
5746
|
+
...c.enableLabelEllipsis ? {} : { labelWidth: f.value }
|
|
5747
5747
|
}), {
|
|
5748
5748
|
label: O(() => [
|
|
5749
5749
|
b(D, {
|
|
@@ -5781,7 +5781,7 @@ const qi = ["id"], Ji = /* @__PURE__ */ ne({
|
|
|
5781
5781
|
modelValue: d(ie)(M.value, c.formItem.keyName),
|
|
5782
5782
|
placeholder: C.value,
|
|
5783
5783
|
disabled: r.value,
|
|
5784
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
5784
|
+
"onUpdate:modelValue": h[0] || (h[0] = (m) => i(c.formItem.keyName, m))
|
|
5785
5785
|
}), null, 16, ["formItem", "inputType", "modelValue", "placeholder", "disabled"])) : q("", !0),
|
|
5786
5786
|
c.formItem.itemType === "text_input" && c.formItem.inputType == "RE_PASSWORD" ? (T(), w(Mo, Ae({ key: 2 }, c.componentProps, {
|
|
5787
5787
|
formItem: c.formItem,
|
|
@@ -5789,26 +5789,26 @@ const qi = ["id"], Ji = /* @__PURE__ */ ne({
|
|
|
5789
5789
|
modelValue: d(ie)(M.value, "rePassword"),
|
|
5790
5790
|
placeholder: C.value,
|
|
5791
5791
|
disabled: r.value,
|
|
5792
|
-
"onUpdate:modelValue": h[1] || (h[1] = (
|
|
5792
|
+
"onUpdate:modelValue": h[1] || (h[1] = (m) => i("rePassword", m))
|
|
5793
5793
|
}), null, 16, ["formItem", "inputType", "modelValue", "placeholder", "disabled"])) : q("", !0),
|
|
5794
5794
|
c.formItem.itemType === "check_box" ? (T(), w(Un, Ae({ key: 3 }, c.componentProps, {
|
|
5795
5795
|
modelValue: d(ie)(M.value, c.formItem.keyName, !1),
|
|
5796
5796
|
disabled: r.value,
|
|
5797
|
-
"onUpdate:modelValue": h[2] || (h[2] = (
|
|
5797
|
+
"onUpdate:modelValue": h[2] || (h[2] = (m) => i(c.formItem.keyName, m))
|
|
5798
5798
|
}), null, 16, ["modelValue", "disabled"])) : q("", !0),
|
|
5799
5799
|
c.formItem.itemType === "switch" ? (T(), w(Qn, Ae({ key: 4 }, c.componentProps, {
|
|
5800
5800
|
formItem: c.formItem,
|
|
5801
5801
|
viewName: c.viewName,
|
|
5802
5802
|
modelValue: d(ie)(M.value, c.formItem.keyName, !1),
|
|
5803
5803
|
disabled: r.value,
|
|
5804
|
-
"onUpdate:modelValue": h[3] || (h[3] = (
|
|
5804
|
+
"onUpdate:modelValue": h[3] || (h[3] = (m) => i(c.formItem.keyName, m))
|
|
5805
5805
|
}), null, 16, ["formItem", "viewName", "modelValue", "disabled"])) : q("", !0),
|
|
5806
5806
|
c.formItem.itemType === "radio" ? (T(), w(bn, Ae({ key: 5 }, c.componentProps, {
|
|
5807
5807
|
modelValue: d(ie)(M.value, c.formItem.keyName),
|
|
5808
5808
|
formItem: c.formItem,
|
|
5809
5809
|
viewName: c.viewName,
|
|
5810
5810
|
disabled: r.value,
|
|
5811
|
-
"onUpdate:modelValue": h[4] || (h[4] = (
|
|
5811
|
+
"onUpdate:modelValue": h[4] || (h[4] = (m) => i(c.formItem.keyName, m))
|
|
5812
5812
|
}), null, 16, ["modelValue", "formItem", "viewName", "disabled"])) : q("", !0),
|
|
5813
5813
|
c.formItem.itemType === "selector" || c.formItem.itemType === "multi_selector" ? (T(), w(Yn, Ae({ key: 6 }, c.componentProps, {
|
|
5814
5814
|
key: (B = c.formItem.listData) == null ? void 0 : B.dataId,
|
|
@@ -5818,7 +5818,7 @@ const qi = ["id"], Ji = /* @__PURE__ */ ne({
|
|
|
5818
5818
|
multiple: c.formItem.itemType === "multi_selector",
|
|
5819
5819
|
disabled: r.value,
|
|
5820
5820
|
placeholder: C.value,
|
|
5821
|
-
"onUpdate:modelValue": h[5] || (h[5] = (
|
|
5821
|
+
"onUpdate:modelValue": h[5] || (h[5] = (m) => i(c.formItem.keyName, m))
|
|
5822
5822
|
}), null, 16, ["modelValue", "formItem", "viewName", "multiple", "disabled", "placeholder"])) : q("", !0),
|
|
5823
5823
|
c.formItem.itemType === "date_selector" || c.formItem.itemType === "time_selector" || c.formItem.itemType === "date_time_selector" ? (T(), w(_n, Ae({ key: 7 }, c.componentProps, {
|
|
5824
5824
|
modelValue: d(ie)(M.value, c.formItem.keyName),
|
|
@@ -5826,7 +5826,7 @@ const qi = ["id"], Ji = /* @__PURE__ */ ne({
|
|
|
5826
5826
|
viewName: c.viewName,
|
|
5827
5827
|
disabled: r.value,
|
|
5828
5828
|
placeholder: C.value,
|
|
5829
|
-
"onUpdate:modelValue": h[6] || (h[6] = (
|
|
5829
|
+
"onUpdate:modelValue": h[6] || (h[6] = (m) => i(c.formItem.keyName, m))
|
|
5830
5830
|
}), null, 16, ["modelValue", "formItem", "viewName", "disabled", "placeholder"])) : q("", !0),
|
|
5831
5831
|
c.formItem.itemType == "delay_selector" ? (T(), w(Zi, Ae({ key: 8 }, c.componentProps, {
|
|
5832
5832
|
modelValue: d(ie)(M.value, c.formItem.keyName),
|
|
@@ -5834,7 +5834,7 @@ const qi = ["id"], Ji = /* @__PURE__ */ ne({
|
|
|
5834
5834
|
viewName: c.viewName,
|
|
5835
5835
|
disabled: r.value,
|
|
5836
5836
|
placeholder: C.value,
|
|
5837
|
-
"onUpdate:modelValue": h[7] || (h[7] = (
|
|
5837
|
+
"onUpdate:modelValue": h[7] || (h[7] = (m) => i(c.formItem.keyName, m))
|
|
5838
5838
|
}), null, 16, ["modelValue", "formItem", "viewName", "disabled", "placeholder"])) : q("", !0),
|
|
5839
5839
|
c.formItem.itemType === "tree_check_box" ? (T(), w(Bn, Ae({ key: 9 }, c.componentProps, {
|
|
5840
5840
|
modelValue: d(ie)(M.value, c.formItem.keyName),
|
|
@@ -5842,7 +5842,7 @@ const qi = ["id"], Ji = /* @__PURE__ */ ne({
|
|
|
5842
5842
|
viewName: c.viewName,
|
|
5843
5843
|
disabled: r.value,
|
|
5844
5844
|
placeholder: C.value,
|
|
5845
|
-
"onUpdate:modelValue": h[8] || (h[8] = (
|
|
5845
|
+
"onUpdate:modelValue": h[8] || (h[8] = (m) => i(c.formItem.keyName, m))
|
|
5846
5846
|
}), null, 16, ["modelValue", "formItem", "viewName", "disabled", "placeholder"])) : q("", !0),
|
|
5847
5847
|
c.formItem.itemType === "multi_tree_selector" || c.formItem.itemType === "tree_selector" ? (T(), w(Fn, Ae({ key: 10 }, c.componentProps, {
|
|
5848
5848
|
modelValue: d(ie)(M.value, c.formItem.keyName),
|
|
@@ -5851,7 +5851,7 @@ const qi = ["id"], Ji = /* @__PURE__ */ ne({
|
|
|
5851
5851
|
multiple: c.formItem.itemType === "multi_tree_selector",
|
|
5852
5852
|
disabled: r.value,
|
|
5853
5853
|
placeholder: C.value,
|
|
5854
|
-
"onUpdate:modelValue": h[9] || (h[9] = (
|
|
5854
|
+
"onUpdate:modelValue": h[9] || (h[9] = (m) => i(c.formItem.keyName, m))
|
|
5855
5855
|
}), null, 16, ["modelValue", "formItem", "viewName", "multiple", "disabled", "placeholder"])) : q("", !0),
|
|
5856
5856
|
c.formItem.itemType === "file" ? (T(), w(Pn, Ae({ key: 11 }, c.componentProps, {
|
|
5857
5857
|
modelValue: d(ie)(M.value, c.formItem.keyName),
|
|
@@ -5860,8 +5860,8 @@ const qi = ["id"], Ji = /* @__PURE__ */ ne({
|
|
|
5860
5860
|
disabled: r.value,
|
|
5861
5861
|
placeholder: C.value,
|
|
5862
5862
|
fileName: c.formItem.fileUploadType == "file" ? d(ie)(M.value, c.formItem.filenameKeyName) || ((te = d(ie)(M.value, c.formItem.keyName)) == null ? void 0 : te.split("/").slice(-1)[0]) : "",
|
|
5863
|
-
"onUpdate:fileName": h[10] || (h[10] = (
|
|
5864
|
-
"onUpdate:modelValue": h[11] || (h[11] = (
|
|
5863
|
+
"onUpdate:fileName": h[10] || (h[10] = (m) => c.formItem.filenameKeyName && i(c.formItem.filenameKeyName, m)),
|
|
5864
|
+
"onUpdate:modelValue": h[11] || (h[11] = (m) => i(c.formItem.keyName, m))
|
|
5865
5865
|
}), null, 16, ["modelValue", "formItem", "viewName", "disabled", "placeholder", "fileName"])) : q("", !0),
|
|
5866
5866
|
c.formItem.itemType === "tag" ? (T(), w(Ki, Ae({ key: 12 }, c.componentProps, {
|
|
5867
5867
|
modelValue: d(ie)(M.value, c.formItem.keyName),
|
|
@@ -5869,7 +5869,7 @@ const qi = ["id"], Ji = /* @__PURE__ */ ne({
|
|
|
5869
5869
|
viewName: c.viewName,
|
|
5870
5870
|
disabled: r.value,
|
|
5871
5871
|
placeholder: C.value,
|
|
5872
|
-
"onUpdate:modelValue": h[12] || (h[12] = (
|
|
5872
|
+
"onUpdate:modelValue": h[12] || (h[12] = (m) => i(c.formItem.keyName, m))
|
|
5873
5873
|
}), null, 16, ["modelValue", "formItem", "viewName", "disabled", "placeholder"])) : q("", !0),
|
|
5874
5874
|
c.formItem.itemType === "rich_text" ? (T(), w(Hi, Ae({ key: 13 }, c.componentProps, {
|
|
5875
5875
|
modelValue: d(ie)(M.value, c.formItem.keyName),
|
|
@@ -5877,7 +5877,7 @@ const qi = ["id"], Ji = /* @__PURE__ */ ne({
|
|
|
5877
5877
|
viewName: c.viewName,
|
|
5878
5878
|
disabled: r.value,
|
|
5879
5879
|
placeholder: C.value,
|
|
5880
|
-
"onUpdate:modelValue": h[13] || (h[13] = (
|
|
5880
|
+
"onUpdate:modelValue": h[13] || (h[13] = (m) => i(c.formItem.keyName, m))
|
|
5881
5881
|
}), null, 16, ["modelValue", "formItem", "viewName", "disabled", "placeholder"])) : q("", !0)
|
|
5882
5882
|
];
|
|
5883
5883
|
}),
|
|
@@ -5960,7 +5960,7 @@ const Eu = /* @__PURE__ */ nt(Ji, [["__scopeId", "data-v-a507a307"]]), Xi = ["id
|
|
|
5960
5960
|
return x.required && x.keyName && P.push({
|
|
5961
5961
|
validator: () => {
|
|
5962
5962
|
const B = ie(l.value, x.keyName);
|
|
5963
|
-
return
|
|
5963
|
+
return mu(B) ? {
|
|
5964
5964
|
result: !1,
|
|
5965
5965
|
message: `${x.name.trim().replace(/[::]/g, "").replace(/ {2,}/g, "")}${o.t("为必填项")}`
|
|
5966
5966
|
} : { result: !0 };
|
|
@@ -6023,7 +6023,7 @@ const Eu = /* @__PURE__ */ nt(Ji, [["__scopeId", "data-v-a507a307"]]), Xi = ["id
|
|
|
6023
6023
|
}, A = S(() => {
|
|
6024
6024
|
var D;
|
|
6025
6025
|
return (D = n.board) == null ? void 0 : D.okButton;
|
|
6026
|
-
}),
|
|
6026
|
+
}), f = S(() => {
|
|
6027
6027
|
var D;
|
|
6028
6028
|
return (D = n.board) == null ? void 0 : D.cancelButton;
|
|
6029
6029
|
}), L = t;
|
|
@@ -6042,7 +6042,7 @@ const Eu = /* @__PURE__ */ nt(Ji, [["__scopeId", "data-v-a507a307"]]), Xi = ["id
|
|
|
6042
6042
|
const P = M.value.filter((te) => te.itemType == "file" && te.fileUploadType == "path").map((te) => te.keyName);
|
|
6043
6043
|
x.length && x.forEach((te) => {
|
|
6044
6044
|
P.includes(te) && v[te] && Et(v[te]) && (v[te] = v[te].filter(
|
|
6045
|
-
(
|
|
6045
|
+
(m) => m && m.url
|
|
6046
6046
|
));
|
|
6047
6047
|
});
|
|
6048
6048
|
const B = M.value.filter((te) => te.itemType == "hidden");
|
|
@@ -6131,15 +6131,15 @@ const Eu = /* @__PURE__ */ nt(Ji, [["__scopeId", "data-v-a507a307"]]), Xi = ["id
|
|
|
6131
6131
|
footer: O(() => {
|
|
6132
6132
|
var P;
|
|
6133
6133
|
return [
|
|
6134
|
-
|
|
6134
|
+
f.value && f.value.name != "" && f.value.action !== "NONE" ? (T(), w(x, {
|
|
6135
6135
|
key: 0,
|
|
6136
6136
|
theme: "default",
|
|
6137
|
-
onClick: v[0] || (v[0] = (B) =>
|
|
6137
|
+
onClick: v[0] || (v[0] = (B) => f.value && h(f.value))
|
|
6138
6138
|
}, {
|
|
6139
6139
|
default: O(() => {
|
|
6140
6140
|
var B;
|
|
6141
6141
|
return [
|
|
6142
|
-
ce(oe((B =
|
|
6142
|
+
ce(oe((B = f.value) == null ? void 0 : B.name), 1)
|
|
6143
6143
|
];
|
|
6144
6144
|
}),
|
|
6145
6145
|
_: 1
|
|
@@ -6180,8 +6180,8 @@ const tl = /* @__PURE__ */ ne({
|
|
|
6180
6180
|
emits: ["close-dialog"],
|
|
6181
6181
|
setup(u, { emit: e }) {
|
|
6182
6182
|
const t = ln(() => Promise.resolve().then(() => oa)), { T: o } = je(), n = jt(), a = u, M = S(() => {
|
|
6183
|
-
var p, A,
|
|
6184
|
-
return (p = a.board) != null && p.data ? (A = a.board) == null ? void 0 : A.data.dataId : (
|
|
6183
|
+
var p, A, f;
|
|
6184
|
+
return (p = a.board) != null && p.data ? (A = a.board) == null ? void 0 : A.data.dataId : (f = a.board) != null && f.tableData ? a.board.tableData.dataId : null;
|
|
6185
6185
|
}), l = S(() => {
|
|
6186
6186
|
if (Fe(n.query))
|
|
6187
6187
|
return {};
|
|
@@ -6203,10 +6203,10 @@ const tl = /* @__PURE__ */ ne({
|
|
|
6203
6203
|
const g = _();
|
|
6204
6204
|
async function y(p, A) {
|
|
6205
6205
|
g.value && (g.value.formOkButtonLoading || (g.value.formOkButtonLoading = !0));
|
|
6206
|
-
let
|
|
6207
|
-
return Object.keys(s.value).length && Object.assign(
|
|
6206
|
+
let f = {};
|
|
6207
|
+
return Object.keys(s.value).length && Object.assign(f, s.value), Object.assign(f, p), (await wn({
|
|
6208
6208
|
buttonId: A,
|
|
6209
|
-
props:
|
|
6209
|
+
props: f,
|
|
6210
6210
|
viewName: a.viewName
|
|
6211
6211
|
})).state === 200 ? (pe.success(`${o.t("提交成功")}`), g.value && (g.value.formOkButtonLoading = !1), !0) : (g.value && (g.value.formOkButtonLoading = !1), !1);
|
|
6212
6212
|
}
|
|
@@ -6237,7 +6237,7 @@ const tl = /* @__PURE__ */ ne({
|
|
|
6237
6237
|
return _e(() => {
|
|
6238
6238
|
N.value == "form" && I();
|
|
6239
6239
|
}), lt(bt, s.value), (p, A) => {
|
|
6240
|
-
const
|
|
6240
|
+
const f = Z("t-loading");
|
|
6241
6241
|
return N.value !== "form" ? (T(), w(d(t), {
|
|
6242
6242
|
from: "dialog",
|
|
6243
6243
|
key: p.viewName,
|
|
@@ -6245,7 +6245,7 @@ const tl = /* @__PURE__ */ ne({
|
|
|
6245
6245
|
board: p.board,
|
|
6246
6246
|
dialogProps: p.dialogProps,
|
|
6247
6247
|
onCloseDialog: r
|
|
6248
|
-
}, null, 8, ["viewName", "board", "dialogProps"])) : (T(), w(
|
|
6248
|
+
}, null, 8, ["viewName", "board", "dialogProps"])) : (T(), w(f, {
|
|
6249
6249
|
key: 1,
|
|
6250
6250
|
class: "g-dialog-form",
|
|
6251
6251
|
loading: C.value,
|
|
@@ -6373,19 +6373,19 @@ const nl = We(ol), al = { class: "g-form" }, Ml = { class: "g-form-header" }, il
|
|
|
6373
6373
|
emits: ["confirm-form", "confirm-and-close", "close-dialog"],
|
|
6374
6374
|
setup(u, { expose: e, emit: t }) {
|
|
6375
6375
|
const { T: o } = je(), n = nu(), a = Qt(), M = Ye(zn, ""), l = u, s = _(200), N = S(() => {
|
|
6376
|
-
var
|
|
6377
|
-
return (
|
|
6376
|
+
var m;
|
|
6377
|
+
return (m = l.board) == null ? void 0 : m.formItems;
|
|
6378
6378
|
}), i = _({}), { handleItemShowIf: r } = jo({ formModel: i }), g = jt();
|
|
6379
6379
|
function y() {
|
|
6380
|
-
const
|
|
6381
|
-
|
|
6382
|
-
|
|
6380
|
+
const m = n.getFormData(g.fullPath);
|
|
6381
|
+
m && Object.keys(m).length && Object.keys(i.value).forEach((Q) => {
|
|
6382
|
+
mu(m[Q]) || (i.value[Q] = m[Q]);
|
|
6383
6383
|
});
|
|
6384
6384
|
}
|
|
6385
|
-
function j(
|
|
6386
|
-
if (a.findExistTabMenuItem({ path:
|
|
6385
|
+
function j(m) {
|
|
6386
|
+
if (a.findExistTabMenuItem({ path: m }) && Object.keys(i.value).length) {
|
|
6387
6387
|
const k = En(i.value, l.formData);
|
|
6388
|
-
k && Object.keys(k).length && n.setFormData(
|
|
6388
|
+
k && Object.keys(k).length && n.setFormData(m, k);
|
|
6389
6389
|
}
|
|
6390
6390
|
}
|
|
6391
6391
|
de(
|
|
@@ -6399,17 +6399,17 @@ const nl = We(ol), al = { class: "g-form" }, Ml = { class: "g-form-header" }, il
|
|
|
6399
6399
|
}
|
|
6400
6400
|
);
|
|
6401
6401
|
const E = _(), F = S(() => {
|
|
6402
|
-
var
|
|
6403
|
-
return (
|
|
6402
|
+
var m;
|
|
6403
|
+
return (m = E.value) == null ? void 0 : m.tFormRef;
|
|
6404
6404
|
}), C = _({});
|
|
6405
6405
|
async function I() {
|
|
6406
|
-
let
|
|
6407
|
-
return A.value && (
|
|
6406
|
+
let m = [];
|
|
6407
|
+
return A.value && (m = A == null ? void 0 : A.value.map((Q) => {
|
|
6408
6408
|
const { formItem: k } = Q, U = [];
|
|
6409
6409
|
return k.required && k.keyName && U.push({
|
|
6410
6410
|
validator: () => {
|
|
6411
6411
|
const W = ie(i.value, k.keyName);
|
|
6412
|
-
return
|
|
6412
|
+
return mu(W) ? {
|
|
6413
6413
|
result: !1,
|
|
6414
6414
|
message: `${k.name.trim().replace(/[::]/g, "").replace(/ {2,}/g, "")}${o.t("为必填项")}`
|
|
6415
6415
|
} : { result: !0 };
|
|
@@ -6430,13 +6430,13 @@ const nl = We(ol), al = { class: "g-form" }, Ml = { class: "g-form-header" }, il
|
|
|
6430
6430
|
keyName: k.inputType !== "RE_PASSWORD" ? k.keyName : "rePassword",
|
|
6431
6431
|
rules: U
|
|
6432
6432
|
};
|
|
6433
|
-
})),
|
|
6433
|
+
})), m == null ? void 0 : m.reduce((Q, k) => (k.rules.length && (Q[k.keyName] = k.rules), Q), {});
|
|
6434
6434
|
}
|
|
6435
6435
|
function p() {
|
|
6436
6436
|
if (E.value) {
|
|
6437
|
-
const
|
|
6438
|
-
if (
|
|
6439
|
-
const Q =
|
|
6437
|
+
const m = E.value.$el;
|
|
6438
|
+
if (m) {
|
|
6439
|
+
const Q = m.querySelectorAll(".t-form__label label");
|
|
6440
6440
|
if (Q) {
|
|
6441
6441
|
const k = Array.from(Q).map((W) => W.offsetWidth), U = Math.max(...k);
|
|
6442
6442
|
s.value = U + 15;
|
|
@@ -6444,48 +6444,48 @@ const nl = We(ol), al = { class: "g-form" }, Ml = { class: "g-form-header" }, il
|
|
|
6444
6444
|
}
|
|
6445
6445
|
}
|
|
6446
6446
|
}
|
|
6447
|
-
const A = _(),
|
|
6448
|
-
function L(
|
|
6447
|
+
const A = _(), f = _();
|
|
6448
|
+
function L(m, Q, k) {
|
|
6449
6449
|
A.value && A.value.forEach((U) => {
|
|
6450
|
-
U.formItemId && Q.includes(U.formItemId) && U.$el.classList.contains(
|
|
6450
|
+
U.formItemId && Q.includes(U.formItemId) && U.$el.classList.contains(m) && U.setBlockShowFlag(k);
|
|
6451
6451
|
});
|
|
6452
6452
|
}
|
|
6453
6453
|
_e(async () => {
|
|
6454
6454
|
p(), C.value = await I();
|
|
6455
6455
|
});
|
|
6456
|
-
function z(
|
|
6457
|
-
Ke(i.value,
|
|
6456
|
+
function z(m, Q) {
|
|
6457
|
+
Ke(i.value, m, Q), F.value && c([m]);
|
|
6458
6458
|
}
|
|
6459
|
-
async function c(
|
|
6459
|
+
async function c(m = []) {
|
|
6460
6460
|
var U;
|
|
6461
6461
|
const Q = h();
|
|
6462
|
-
return (
|
|
6463
|
-
fields:
|
|
6462
|
+
return (m.length ? m.some((W) => Q.includes(W)) : !0) ? (U = F.value) == null ? void 0 : U.validate({
|
|
6463
|
+
fields: m.length ? m : Q
|
|
6464
6464
|
}) : Promise.resolve({});
|
|
6465
6465
|
}
|
|
6466
6466
|
const h = () => {
|
|
6467
|
-
var
|
|
6468
|
-
return (
|
|
6467
|
+
var m;
|
|
6468
|
+
return (m = A == null ? void 0 : A.value) == null ? void 0 : m.flatMap((Q) => {
|
|
6469
6469
|
const { formItem: k } = Q;
|
|
6470
6470
|
return (k.keyName ?? "") != "" && !Q.getDisableFlag() ? k.inputType !== "RE_PASSWORD" ? k.keyName : "rePassword" : [];
|
|
6471
6471
|
});
|
|
6472
6472
|
}, V = S(() => {
|
|
6473
|
-
var
|
|
6474
|
-
return (
|
|
6473
|
+
var m;
|
|
6474
|
+
return (m = l.board) == null ? void 0 : m.okButton;
|
|
6475
6475
|
}), D = S(() => {
|
|
6476
|
-
var
|
|
6477
|
-
return (
|
|
6476
|
+
var m;
|
|
6477
|
+
return (m = l.board) == null ? void 0 : m.cancelButton;
|
|
6478
6478
|
}), v = t;
|
|
6479
|
-
function x(
|
|
6480
|
-
for (const Q in
|
|
6481
|
-
const k =
|
|
6479
|
+
function x(m) {
|
|
6480
|
+
for (const Q in m) {
|
|
6481
|
+
const k = m[Q].find((U) => U.result === !1);
|
|
6482
6482
|
if (k)
|
|
6483
6483
|
return { ...k };
|
|
6484
6484
|
}
|
|
6485
6485
|
return null;
|
|
6486
6486
|
}
|
|
6487
|
-
function P(
|
|
6488
|
-
let Q = Lu(
|
|
6487
|
+
function P(m) {
|
|
6488
|
+
let Q = Lu(m);
|
|
6489
6489
|
const k = Object.keys(Q);
|
|
6490
6490
|
if (N.value && k.length) {
|
|
6491
6491
|
const U = N.value.filter((J) => J.itemType == "file" && J.fileUploadType == "path").map((J) => J.keyName);
|
|
@@ -6501,8 +6501,8 @@ const nl = We(ol), al = { class: "g-form" }, Ml = { class: "g-form-header" }, il
|
|
|
6501
6501
|
}
|
|
6502
6502
|
return Q;
|
|
6503
6503
|
}
|
|
6504
|
-
function B(
|
|
6505
|
-
switch (
|
|
6504
|
+
function B(m) {
|
|
6505
|
+
switch (m.action) {
|
|
6506
6506
|
case "CONFIRM": {
|
|
6507
6507
|
c().then((Q) => {
|
|
6508
6508
|
if (Object.keys(Q).length) {
|
|
@@ -6510,7 +6510,7 @@ const nl = We(ol), al = { class: "g-form" }, Ml = { class: "g-form-header" }, il
|
|
|
6510
6510
|
pe.warning(k == null ? void 0 : k.message);
|
|
6511
6511
|
} else {
|
|
6512
6512
|
const k = P(i.value);
|
|
6513
|
-
v("confirm-form", k,
|
|
6513
|
+
v("confirm-form", k, m.buttonId);
|
|
6514
6514
|
}
|
|
6515
6515
|
});
|
|
6516
6516
|
break;
|
|
@@ -6522,7 +6522,7 @@ const nl = We(ol), al = { class: "g-form" }, Ml = { class: "g-form-header" }, il
|
|
|
6522
6522
|
pe.warning(k == null ? void 0 : k.message);
|
|
6523
6523
|
} else {
|
|
6524
6524
|
const k = P(i.value);
|
|
6525
|
-
v("confirm-and-close", k,
|
|
6525
|
+
v("confirm-and-close", k, m.buttonId);
|
|
6526
6526
|
}
|
|
6527
6527
|
});
|
|
6528
6528
|
break;
|
|
@@ -6532,7 +6532,7 @@ const nl = We(ol), al = { class: "g-form" }, Ml = { class: "g-form-header" }, il
|
|
|
6532
6532
|
break;
|
|
6533
6533
|
}
|
|
6534
6534
|
default: {
|
|
6535
|
-
console.log(
|
|
6535
|
+
console.log(m);
|
|
6536
6536
|
break;
|
|
6537
6537
|
}
|
|
6538
6538
|
}
|
|
@@ -6540,11 +6540,11 @@ const nl = We(ol), al = { class: "g-form" }, Ml = { class: "g-form-header" }, il
|
|
|
6540
6540
|
const te = _(!1);
|
|
6541
6541
|
return e({
|
|
6542
6542
|
formOkButtonLoading: te
|
|
6543
|
-
}), S(() => a.tabMenuList), sn((
|
|
6543
|
+
}), S(() => a.tabMenuList), sn((m, Q) => {
|
|
6544
6544
|
j(Q.fullPath);
|
|
6545
|
-
}), rn((
|
|
6545
|
+
}), rn((m, Q) => {
|
|
6546
6546
|
j(Q.fullPath);
|
|
6547
|
-
}), (
|
|
6547
|
+
}), (m, Q) => {
|
|
6548
6548
|
const k = Z("t-button"), U = Z("t-space");
|
|
6549
6549
|
return T(), $("div", al, [
|
|
6550
6550
|
ee("div", Ml, [
|
|
@@ -6610,7 +6610,7 @@ const nl = We(ol), al = { class: "g-form" }, Ml = { class: "g-form-header" }, il
|
|
|
6610
6610
|
key: 0,
|
|
6611
6611
|
ref_for: !0,
|
|
6612
6612
|
ref_key: "formBlockRef",
|
|
6613
|
-
ref:
|
|
6613
|
+
ref: f,
|
|
6614
6614
|
name: W.name,
|
|
6615
6615
|
blockType: W.itemType,
|
|
6616
6616
|
showIf: d(r)(W.showIf),
|
|
@@ -6622,7 +6622,7 @@ const nl = We(ol), al = { class: "g-form" }, Ml = { class: "g-form-header" }, il
|
|
|
6622
6622
|
ref: A,
|
|
6623
6623
|
formModel: i.value,
|
|
6624
6624
|
formItem: W,
|
|
6625
|
-
viewName:
|
|
6625
|
+
viewName: m.viewName,
|
|
6626
6626
|
onAfterUpdateValue: z
|
|
6627
6627
|
}, null, 8, ["formModel", "formItem", "viewName"]))
|
|
6628
6628
|
], 64))), 128))
|
|
@@ -6718,60 +6718,60 @@ const sl = /* @__PURE__ */ nt(ll, [["__scopeId", "data-v-1d6a40aa"]]), rl = We(s
|
|
|
6718
6718
|
const {
|
|
6719
6719
|
T: t
|
|
6720
6720
|
} = je(), o = u, n = e, a = S(() => {
|
|
6721
|
-
var
|
|
6722
|
-
return ((
|
|
6721
|
+
var f;
|
|
6722
|
+
return ((f = o.headerInfo) == null ? void 0 : f.buttons) ?? [];
|
|
6723
6723
|
});
|
|
6724
|
-
function M(
|
|
6725
|
-
n("header-button-action",
|
|
6724
|
+
function M(f) {
|
|
6725
|
+
n("header-button-action", f);
|
|
6726
6726
|
}
|
|
6727
6727
|
const l = S(() => {
|
|
6728
|
-
var
|
|
6729
|
-
return (L = (
|
|
6728
|
+
var f, L;
|
|
6729
|
+
return (L = (f = o.headerInfo) == null ? void 0 : f.searchBar) == null ? void 0 : L.filters;
|
|
6730
6730
|
}), s = S(() => {
|
|
6731
|
-
var
|
|
6732
|
-
return Et((
|
|
6731
|
+
var f;
|
|
6732
|
+
return Et((f = o.headerInfo.searchBar) == null ? void 0 : f.filters) ? o.headerInfo.searchBar.filters.filter((L) => L.itemType !== "text_input") : [];
|
|
6733
6733
|
}), N = S(() => {
|
|
6734
|
-
var
|
|
6735
|
-
return Et((
|
|
6736
|
-
}), i = S(() => s.value.length ? s.value.filter((
|
|
6734
|
+
var f;
|
|
6735
|
+
return Et((f = o.headerInfo.searchBar) == null ? void 0 : f.filters) ? o.headerInfo.searchBar.filters.filter((L) => L.itemType === "text_input") : [];
|
|
6736
|
+
}), i = S(() => s.value.length ? s.value.filter((f) => f.itemType === "selector").map((f) => f.keyName) : []), r = tu({}, l.value, !0), g = _(Be(r));
|
|
6737
6737
|
let y = _(0);
|
|
6738
|
-
function j(
|
|
6739
|
-
L !== null && typeof L < "u" ? Ke(g.value,
|
|
6738
|
+
function j(f, L) {
|
|
6739
|
+
L !== null && typeof L < "u" ? Ke(g.value, f, L) : i.value.includes(f) ? Ke(g.value, f, "all") : Ke(g.value, f, L), y.value && clearTimeout(y.value), y.value = setTimeout(() => {
|
|
6740
6740
|
const z = Be(g.value);
|
|
6741
6741
|
Object.keys(z).forEach((c) => {
|
|
6742
6742
|
i.value.includes(c) && z[c] == "all" && delete z[c], (z[c] === "" || z[c] === null) && delete z[c];
|
|
6743
6743
|
}), n("header-filter-change", z);
|
|
6744
6744
|
}, 300);
|
|
6745
6745
|
}
|
|
6746
|
-
function E(
|
|
6747
|
-
return
|
|
6746
|
+
function E(f) {
|
|
6747
|
+
return f.itemType == "selector" ? {
|
|
6748
6748
|
filterable: !0
|
|
6749
|
-
} :
|
|
6749
|
+
} : f.itemType == "text_input" ? {
|
|
6750
6750
|
suffixIcon: () => b(ba, null, null)
|
|
6751
6751
|
} : {};
|
|
6752
6752
|
}
|
|
6753
6753
|
function F() {
|
|
6754
6754
|
g.value = Be(tu({}, l.value, !0));
|
|
6755
|
-
const
|
|
6756
|
-
Object.keys(
|
|
6757
|
-
i.value.includes(L) &&
|
|
6758
|
-
}), n("header-filter-change",
|
|
6755
|
+
const f = Be(g.value);
|
|
6756
|
+
Object.keys(f).forEach((L) => {
|
|
6757
|
+
i.value.includes(L) && f[L] == "all" && delete f[L], (f[L] === "" || f[L] === null) && delete f[L];
|
|
6758
|
+
}), n("header-filter-change", f);
|
|
6759
6759
|
}
|
|
6760
|
-
const C = S(() => o.tableColumns && o.tableColumns.length ? o.tableColumns.map((
|
|
6760
|
+
const C = S(() => o.tableColumns && o.tableColumns.length ? o.tableColumns.map((f, L) => ({
|
|
6761
6761
|
disabled: L == 0 || L == o.tableColumns.length - 1,
|
|
6762
|
-
label:
|
|
6763
|
-
value:
|
|
6762
|
+
label: f.title,
|
|
6763
|
+
value: f.colKey
|
|
6764
6764
|
})) : []);
|
|
6765
|
-
function I(
|
|
6766
|
-
n("display-columns-change",
|
|
6765
|
+
function I(f) {
|
|
6766
|
+
n("display-columns-change", f);
|
|
6767
6767
|
}
|
|
6768
6768
|
const p = jt(), A = nu();
|
|
6769
6769
|
return _e(() => {
|
|
6770
|
-
const
|
|
6771
|
-
|
|
6772
|
-
...
|
|
6770
|
+
const f = A.getFormData(p.fullPath);
|
|
6771
|
+
f != null && f.formData && (g.value = {
|
|
6772
|
+
...f.formData
|
|
6773
6773
|
}, Object.keys(g.value).length && n("header-filter-change", g.value));
|
|
6774
|
-
}), lt("isHeaderFormItem", !0), (
|
|
6774
|
+
}), lt("isHeaderFormItem", !0), (f, L) => {
|
|
6775
6775
|
const z = Z("t-button"), c = Z("t-space"), h = Z("t-form");
|
|
6776
6776
|
return T(), $("div", Nl, [a.value && a.value.length ? (T(), w(c, {
|
|
6777
6777
|
key: 0,
|
|
@@ -6783,7 +6783,7 @@ const sl = /* @__PURE__ */ nt(ll, [["__scopeId", "data-v-1d6a40aa"]]), rl = We(s
|
|
|
6783
6783
|
}, [V.action == "UPLOAD_FILE" ? (T(), w(cl, {
|
|
6784
6784
|
key: 0,
|
|
6785
6785
|
button: V,
|
|
6786
|
-
viewName:
|
|
6786
|
+
viewName: f.viewName
|
|
6787
6787
|
}, null, 8, ["button", "viewName"])) : (T(), w(z, {
|
|
6788
6788
|
key: 1,
|
|
6789
6789
|
theme: "primary",
|
|
@@ -6810,7 +6810,7 @@ const sl = /* @__PURE__ */ nt(ll, [["__scopeId", "data-v-1d6a40aa"]]), rl = We(s
|
|
|
6810
6810
|
required: !1
|
|
6811
6811
|
},
|
|
6812
6812
|
formModel: g.value,
|
|
6813
|
-
viewName:
|
|
6813
|
+
viewName: f.viewName,
|
|
6814
6814
|
onAfterUpdateValue: j,
|
|
6815
6815
|
isLabelNameShow: !0,
|
|
6816
6816
|
componentProps: E(V),
|
|
@@ -6827,7 +6827,7 @@ const sl = /* @__PURE__ */ nt(ll, [["__scopeId", "data-v-1d6a40aa"]]), rl = We(s
|
|
|
6827
6827
|
}, [b(Eu, {
|
|
6828
6828
|
formItem: V,
|
|
6829
6829
|
formModel: g.value,
|
|
6830
|
-
viewName:
|
|
6830
|
+
viewName: f.viewName,
|
|
6831
6831
|
onAfterUpdateValue: j,
|
|
6832
6832
|
isLabelNameShow: !1,
|
|
6833
6833
|
componentProps: E(V)
|
|
@@ -6840,7 +6840,7 @@ const sl = /* @__PURE__ */ nt(ll, [["__scopeId", "data-v-1d6a40aa"]]), rl = We(s
|
|
|
6840
6840
|
_: 1
|
|
6841
6841
|
})) : q("", !0), b(d(hi), {
|
|
6842
6842
|
columnOptions: C.value,
|
|
6843
|
-
displayColumns:
|
|
6843
|
+
displayColumns: f.displayColumns,
|
|
6844
6844
|
onConfirm: I
|
|
6845
6845
|
}, null, 8, ["columnOptions", "displayColumns"])]),
|
|
6846
6846
|
_: 1
|
|
@@ -7013,7 +7013,7 @@ const Tl = /* @__PURE__ */ nt(Dl, [["__scopeId", "data-v-f74b066f"]]), dl = We(T
|
|
|
7013
7013
|
);
|
|
7014
7014
|
const A = (c, h) => {
|
|
7015
7015
|
o.value && (o.value = !1), n("table-button-action", c, h);
|
|
7016
|
-
},
|
|
7016
|
+
}, f = async () => {
|
|
7017
7017
|
l.value.forEach((h, V) => {
|
|
7018
7018
|
const D = y.value[V];
|
|
7019
7019
|
D && D.name && (h != null && h.$el) && i.value.set(D.name, h.$el.offsetWidth);
|
|
@@ -7022,7 +7022,7 @@ const Tl = /* @__PURE__ */ nt(Dl, [["__scopeId", "data-v-f74b066f"]]), dl = We(T
|
|
|
7022
7022
|
g.value = c, s.value = c, N.value = !0;
|
|
7023
7023
|
};
|
|
7024
7024
|
_e(() => {
|
|
7025
|
-
|
|
7025
|
+
f();
|
|
7026
7026
|
});
|
|
7027
7027
|
const L = S(() => {
|
|
7028
7028
|
if (!N.value)
|
|
@@ -7345,8 +7345,8 @@ var wt = {
|
|
|
7345
7345
|
posix: null
|
|
7346
7346
|
};
|
|
7347
7347
|
wt.posix = wt;
|
|
7348
|
-
const
|
|
7349
|
-
class
|
|
7348
|
+
const ml = wt.extname, $n = wt.basename;
|
|
7349
|
+
class fl {
|
|
7350
7350
|
constructor() {
|
|
7351
7351
|
let e = (() => typeof global > "u")(), t = "image/png", o = "image/jpeg", n = "image/jpeg", a = "image/webp", M = "application/pdf", l = "image/svg+xml";
|
|
7352
7352
|
Object.assign(this, {
|
|
@@ -7375,7 +7375,7 @@ function El(u, {
|
|
|
7375
7375
|
outline: s,
|
|
7376
7376
|
archive: y
|
|
7377
7377
|
} = {}) {
|
|
7378
|
-
var { fromMime: i, toMime: r, expected: g } = new
|
|
7378
|
+
var { fromMime: i, toMime: r, expected: g } = new fl(), y = y || "canvas", j = E || t.replace(/@\d+x$/i, "") || ml(e), E = i(r(j) || j), F = r(E), C = u.length;
|
|
7379
7379
|
if (!j)
|
|
7380
7380
|
throw new Error(
|
|
7381
7381
|
"Cannot determine image format (use a filename extension or 'format' argument)"
|
|
@@ -7386,12 +7386,12 @@ function El(u, {
|
|
|
7386
7386
|
throw new RangeError(
|
|
7387
7387
|
"Canvas has no associated contexts (try calling getContext or newPage first)"
|
|
7388
7388
|
);
|
|
7389
|
-
let I, p, A = e.replace(/{(\d*)}/g, (L, z) => (p = !0, z = parseInt(z, 10), I = isFinite(z) ? z : isFinite(I) ? I : -1, "{}")),
|
|
7390
|
-
if (isFinite(
|
|
7389
|
+
let I, p, A = e.replace(/{(\d*)}/g, (L, z) => (p = !0, z = parseInt(z, 10), I = isFinite(z) ? z : isFinite(I) ? I : -1, "{}")), f = n > 0 ? n - 1 : n < 0 ? C + n : void 0;
|
|
7390
|
+
if (isFinite(f) && f < 0 || f >= C)
|
|
7391
7391
|
throw new RangeError(
|
|
7392
|
-
C == 1 ? `Canvas only has a ‘page 1’ (${
|
|
7392
|
+
C == 1 ? `Canvas only has a ‘page 1’ (${f} is out of bounds)` : `Canvas has pages 1–${C} (${f} is out of bounds)`
|
|
7393
7393
|
);
|
|
7394
|
-
if (u = isFinite(
|
|
7394
|
+
if (u = isFinite(f) ? [u[f]] : p || E == "pdf" ? u : u.slice(-1), a === void 0)
|
|
7395
7395
|
a = 0.92;
|
|
7396
7396
|
else if (typeof a != "number" || !isFinite(a) || a < 0 || a > 1)
|
|
7397
7397
|
throw new TypeError(
|
|
@@ -7803,18 +7803,18 @@ const $l = vt(
|
|
|
7803
7803
|
return t;
|
|
7804
7804
|
}, Jl = (u, e, t) => {
|
|
7805
7805
|
const a = t;
|
|
7806
|
-
var M, l, s, N, i, r, g,
|
|
7806
|
+
var M, l, s, N, i, r, g, f, y, j, A, E, L, z, h, c;
|
|
7807
7807
|
const F = new Array(t), C = new Array(4096), I = new Array(4096), p = new Array(4096 + 1);
|
|
7808
7808
|
for (E = u, l = 1 << E, i = l + 1, M = l + 2, g = -1, N = E + 1, s = (1 << N) - 1, y = 0; y < l; y++)
|
|
7809
7809
|
C[y] = 0, I[y] = y;
|
|
7810
|
-
var A,
|
|
7811
|
-
for (A =
|
|
7810
|
+
var A, f, L, z, c, h;
|
|
7811
|
+
for (A = f = L = z = c = h = 0, j = 0; j < a; ) {
|
|
7812
7812
|
if (z === 0) {
|
|
7813
|
-
if (
|
|
7814
|
-
A += e[h] <<
|
|
7813
|
+
if (f < N) {
|
|
7814
|
+
A += e[h] << f, f += 8, h++;
|
|
7815
7815
|
continue;
|
|
7816
7816
|
}
|
|
7817
|
-
if (y = A & s, A >>= N,
|
|
7817
|
+
if (y = A & s, A >>= N, f -= N, y > M || y == i)
|
|
7818
7818
|
break;
|
|
7819
7819
|
if (y == l) {
|
|
7820
7820
|
N = E + 1, s = (1 << N) - 1, M = l + 2, g = -1;
|
|
@@ -7928,7 +7928,7 @@ class as {
|
|
|
7928
7928
|
e.put(this.parsedData[t], 8);
|
|
7929
7929
|
}
|
|
7930
7930
|
}
|
|
7931
|
-
class
|
|
7931
|
+
class ft {
|
|
7932
7932
|
constructor(e = -1, t = Re.L) {
|
|
7933
7933
|
this.moduleCount = 0, this.dataList = [], this.typeNumber = e, this.errorCorrectLevel = t, this.moduleCount = 0, this.dataList = [];
|
|
7934
7934
|
}
|
|
@@ -7962,7 +7962,7 @@ class mt {
|
|
|
7962
7962
|
for (let n = 0; n < this.moduleCount; n++)
|
|
7963
7963
|
this.modules[o][n] = null;
|
|
7964
7964
|
}
|
|
7965
|
-
this.setupPositionProbePattern(0, 0), this.setupPositionProbePattern(this.moduleCount - 7, 0), this.setupPositionProbePattern(0, this.moduleCount - 7), this.setupPositionAdjustPattern(), this.setupTimingPattern(), this.setupTypeInfo(e, t), this.typeNumber >= 7 && this.setupTypeNumber(e), this.dataCache == null && (this.dataCache =
|
|
7965
|
+
this.setupPositionProbePattern(0, 0), this.setupPositionProbePattern(this.moduleCount - 7, 0), this.setupPositionProbePattern(0, this.moduleCount - 7), this.setupPositionAdjustPattern(), this.setupTimingPattern(), this.setupTypeInfo(e, t), this.typeNumber >= 7 && this.setupTypeNumber(e), this.dataCache == null && (this.dataCache = ft.createData(this.typeNumber, this.errorCorrectLevel, this.dataList)), this.mapData(this.dataCache, t);
|
|
7966
7966
|
}
|
|
7967
7967
|
setupPositionProbePattern(e, t) {
|
|
7968
7968
|
for (let o = -1; o <= 7; o++)
|
|
@@ -8049,9 +8049,9 @@ class mt {
|
|
|
8049
8049
|
throw new Error(`code length overflow. (${a.getLengthInBits()}>${l * 8})`);
|
|
8050
8050
|
for (a.getLengthInBits() + 4 <= l * 8 && a.put(0, 4); a.getLengthInBits() % 8 != 0; )
|
|
8051
8051
|
a.putBit(!1);
|
|
8052
|
-
for (; !(a.getLengthInBits() >= l * 8 || (a.put(
|
|
8053
|
-
a.put(
|
|
8054
|
-
return
|
|
8052
|
+
for (; !(a.getLengthInBits() >= l * 8 || (a.put(ft.PAD0, 8), a.getLengthInBits() >= l * 8)); )
|
|
8053
|
+
a.put(ft.PAD1, 8);
|
|
8054
|
+
return ft.createBytes(a, n);
|
|
8055
8055
|
}
|
|
8056
8056
|
static createBytes(e, t) {
|
|
8057
8057
|
let o = 0, n = 0, a = 0;
|
|
@@ -8083,8 +8083,8 @@ class mt {
|
|
|
8083
8083
|
return r;
|
|
8084
8084
|
}
|
|
8085
8085
|
}
|
|
8086
|
-
|
|
8087
|
-
|
|
8086
|
+
ft.PAD0 = 236;
|
|
8087
|
+
ft.PAD1 = 17;
|
|
8088
8088
|
const Re = { L: 1, M: 0, Q: 3, H: 2 }, He = { MODE_NUMBER: 1, MODE_ALPHA_NUM: 2, MODE_8BIT_BYTE: 4, MODE_KANJI: 8 }, Nt = {
|
|
8089
8089
|
PATTERN000: 0,
|
|
8090
8090
|
PATTERN001: 1,
|
|
@@ -8579,7 +8579,7 @@ const Mt = [
|
|
|
8579
8579
|
[2809, 2213, 1579, 1219],
|
|
8580
8580
|
[2953, 2331, 1663, 1273]
|
|
8581
8581
|
];
|
|
8582
|
-
var is = 100, be = 256, Go = be - 1, At = 4, qn = 16, Ao = 1 << qn, Jn = 10,
|
|
8582
|
+
var is = 100, be = 256, Go = be - 1, At = 4, qn = 16, Ao = 1 << qn, Jn = 10, mo = 10, ls = Ao >> mo, ss = Ao << Jn - mo, rs = be >> 3, lo = 6, cs = 1 << lo, Ns = rs * cs, gs = 30, Xn = 10, gu = 1 << Xn, ea = 8, Zo = 1 << ea, Ds = Xn + ea, Ft = 1 << Ds, Ho = 499, Ko = 491, qo = 487, ta = 503, Ts = 3 * ta;
|
|
8583
8583
|
function ds(u, e) {
|
|
8584
8584
|
var t, o, n, a, M;
|
|
8585
8585
|
function l() {
|
|
@@ -8592,25 +8592,25 @@ function ds(u, e) {
|
|
|
8592
8592
|
for (var C = 0; C < be; C++)
|
|
8593
8593
|
t[C][0] >>= At, t[C][1] >>= At, t[C][2] >>= At, t[C][3] = C;
|
|
8594
8594
|
}
|
|
8595
|
-
function N(C, I, p, A,
|
|
8596
|
-
t[I][0] -= C * (t[I][0] - p) / gu, t[I][1] -= C * (t[I][1] - A) / gu, t[I][2] -= C * (t[I][2] -
|
|
8595
|
+
function N(C, I, p, A, f) {
|
|
8596
|
+
t[I][0] -= C * (t[I][0] - p) / gu, t[I][1] -= C * (t[I][1] - A) / gu, t[I][2] -= C * (t[I][2] - f) / gu;
|
|
8597
8597
|
}
|
|
8598
|
-
function i(C, I, p, A,
|
|
8598
|
+
function i(C, I, p, A, f) {
|
|
8599
8599
|
for (var L = Math.abs(I - C), z = Math.min(I + C, be), c = I + 1, h = I - 1, V = 1, D, v; c < z || h > L; )
|
|
8600
|
-
v = M[V++], c < z && (D = t[c++], D[0] -= v * (D[0] - p) / Ft, D[1] -= v * (D[1] - A) / Ft, D[2] -= v * (D[2] -
|
|
8600
|
+
v = M[V++], c < z && (D = t[c++], D[0] -= v * (D[0] - p) / Ft, D[1] -= v * (D[1] - A) / Ft, D[2] -= v * (D[2] - f) / Ft), h > L && (D = t[h--], D[0] -= v * (D[0] - p) / Ft, D[1] -= v * (D[1] - A) / Ft, D[2] -= v * (D[2] - f) / Ft);
|
|
8601
8601
|
}
|
|
8602
8602
|
function r(C, I, p) {
|
|
8603
|
-
var A = 2147483647,
|
|
8603
|
+
var A = 2147483647, f = A, L = -1, z = L, c, h, V, D, v;
|
|
8604
8604
|
for (c = 0; c < be; c++)
|
|
8605
|
-
h = t[c], V = Math.abs(h[0] - C) + Math.abs(h[1] - I) + Math.abs(h[2] - p), V < A && (A = V, L = c), D = V - (n[c] >> qn - At), D <
|
|
8605
|
+
h = t[c], V = Math.abs(h[0] - C) + Math.abs(h[1] - I) + Math.abs(h[2] - p), V < A && (A = V, L = c), D = V - (n[c] >> qn - At), D < f && (f = D, z = c), v = a[c] >> mo, a[c] -= v, n[c] += v << Jn;
|
|
8606
8606
|
return a[L] += ls, n[L] -= ss, z;
|
|
8607
8607
|
}
|
|
8608
8608
|
function g() {
|
|
8609
|
-
var C, I, p, A,
|
|
8609
|
+
var C, I, p, A, f, L, z = 0, c = 0;
|
|
8610
8610
|
for (C = 0; C < be; C++) {
|
|
8611
|
-
for (p = t[C],
|
|
8612
|
-
A = t[I], A[1] < L && (
|
|
8613
|
-
if (A = t[
|
|
8611
|
+
for (p = t[C], f = C, L = p[1], I = C + 1; I < be; I++)
|
|
8612
|
+
A = t[I], A[1] < L && (f = I, L = A[1]);
|
|
8613
|
+
if (A = t[f], C != f && (I = A[0], A[0] = p[0], p[0] = I, I = A[1], A[1] = p[1], p[1] = I, I = A[2], A[2] = p[2], p[2] = I, I = A[3], A[3] = p[3], p[3] = I), L != z) {
|
|
8614
8614
|
for (o[z] = c + C >> 1, I = z + 1; I < L; I++)
|
|
8615
8615
|
o[I] = C;
|
|
8616
8616
|
z = L, c = C;
|
|
@@ -8620,19 +8620,19 @@ function ds(u, e) {
|
|
|
8620
8620
|
o[I] = Go;
|
|
8621
8621
|
}
|
|
8622
8622
|
function y(C, I, p) {
|
|
8623
|
-
for (var A,
|
|
8624
|
-
h < be && (
|
|
8623
|
+
for (var A, f, L, z = 1e3, c = -1, h = o[I], V = h - 1; h < be || V >= 0; )
|
|
8624
|
+
h < be && (f = t[h], L = f[1] - I, L >= z ? h = be : (h++, L < 0 && (L = -L), A = f[0] - C, A < 0 && (A = -A), L += A, L < z && (A = f[2] - p, A < 0 && (A = -A), L += A, L < z && (z = L, c = f[3])))), V >= 0 && (f = t[V], L = I - f[1], L >= z ? V = -1 : (V--, L < 0 && (L = -L), A = f[0] - C, A < 0 && (A = -A), L += A, L < z && (A = f[2] - p, A < 0 && (A = -A), L += A, L < z && (z = L, c = f[3]))));
|
|
8625
8625
|
return c;
|
|
8626
8626
|
}
|
|
8627
8627
|
function j() {
|
|
8628
|
-
var C, I = u.length, p = 30 + (e - 1) / 3, A = I / (3 * e),
|
|
8628
|
+
var C, I = u.length, p = 30 + (e - 1) / 3, A = I / (3 * e), f = ~~(A / is), L = gu, z = Ns, c = z >> lo;
|
|
8629
8629
|
for (c <= 1 && (c = 0), C = 0; C < c; C++)
|
|
8630
8630
|
M[C] = L * ((c * c - C * C) * Zo / (c * c));
|
|
8631
8631
|
var h;
|
|
8632
8632
|
I < Ts ? (e = 1, h = 3) : I % Ho !== 0 ? h = 3 * Ho : I % Ko !== 0 ? h = 3 * Ko : I % qo !== 0 ? h = 3 * qo : h = 3 * ta;
|
|
8633
8633
|
var V, D, v, x, P = 0;
|
|
8634
8634
|
for (C = 0; C < A; )
|
|
8635
|
-
if (V = (u[P] & 255) << At, D = (u[P + 1] & 255) << At, v = (u[P + 2] & 255) << At, x = r(V, D, v), N(L, x, V, D, v), c !== 0 && i(c, x, V, D, v), P += h, P >= I && (P -= I), C++,
|
|
8635
|
+
if (V = (u[P] & 255) << At, D = (u[P + 1] & 255) << At, v = (u[P + 2] & 255) << At, x = r(V, D, v), N(L, x, V, D, v), c !== 0 && i(c, x, V, D, v), P += h, P >= I && (P -= I), C++, f === 0 && (f = 1), C % f === 0)
|
|
8636
8636
|
for (L -= L / p, z -= z / gs, c = z >> lo, c <= 1 && (c = 0), x = 0; x < c; x++)
|
|
8637
8637
|
M[x] = L * ((c * c - x * x) * Zo / (c * c));
|
|
8638
8638
|
}
|
|
@@ -8643,8 +8643,8 @@ function ds(u, e) {
|
|
|
8643
8643
|
function F() {
|
|
8644
8644
|
for (var C = [], I = [], p = 0; p < be; p++)
|
|
8645
8645
|
I[t[p][3]] = p;
|
|
8646
|
-
for (var A = 0,
|
|
8647
|
-
var L = I[
|
|
8646
|
+
for (var A = 0, f = 0; f < be; f++) {
|
|
8647
|
+
var L = I[f];
|
|
8648
8648
|
C[A++] = t[L][0], C[A++] = t[L][1], C[A++] = t[L][2];
|
|
8649
8649
|
}
|
|
8650
8650
|
return C;
|
|
@@ -8675,7 +8675,7 @@ function Is(u, e, t, o) {
|
|
|
8675
8675
|
function A(x, P) {
|
|
8676
8676
|
a[i++] = x, i >= 254 && h(P);
|
|
8677
8677
|
}
|
|
8678
|
-
function
|
|
8678
|
+
function f(x) {
|
|
8679
8679
|
L(Kt), r = E + 2, y = !0, v(E, x);
|
|
8680
8680
|
}
|
|
8681
8681
|
function L(x) {
|
|
@@ -8683,25 +8683,25 @@ function Is(u, e, t, o) {
|
|
|
8683
8683
|
M[P] = -1;
|
|
8684
8684
|
}
|
|
8685
8685
|
function z(x, P) {
|
|
8686
|
-
var B, te,
|
|
8686
|
+
var B, te, m, Q, k, U, W;
|
|
8687
8687
|
for (j = x, y = !1, p = j, g = V(p), E = 1 << x - 1, F = E + 1, r = E + 2, i = 0, Q = D(), W = 0, B = Kt; B < 65536; B *= 2)
|
|
8688
8688
|
++W;
|
|
8689
8689
|
W = 8 - W, U = Kt, L(U), v(E, P);
|
|
8690
8690
|
e:
|
|
8691
8691
|
for (; (te = D()) != Jo; ) {
|
|
8692
|
-
if (B = (te << Du) + Q,
|
|
8693
|
-
Q = l[
|
|
8692
|
+
if (B = (te << Du) + Q, m = te << W ^ Q, M[m] === B) {
|
|
8693
|
+
Q = l[m];
|
|
8694
8694
|
continue;
|
|
8695
|
-
} else if (M[
|
|
8696
|
-
k = U -
|
|
8695
|
+
} else if (M[m] >= 0) {
|
|
8696
|
+
k = U - m, m === 0 && (k = 1);
|
|
8697
8697
|
do
|
|
8698
|
-
if ((
|
|
8699
|
-
Q = l[
|
|
8698
|
+
if ((m -= k) < 0 && (m += U), M[m] === B) {
|
|
8699
|
+
Q = l[m];
|
|
8700
8700
|
continue e;
|
|
8701
8701
|
}
|
|
8702
|
-
while (M[
|
|
8702
|
+
while (M[m] >= 0);
|
|
8703
8703
|
}
|
|
8704
|
-
v(Q, P), Q = te, r < 1 << Du ? (l[
|
|
8704
|
+
v(Q, P), Q = te, r < 1 << Du ? (l[m] = r++, M[m] = B) : f(P);
|
|
8705
8705
|
}
|
|
8706
8706
|
v(Q, P), v(F, P);
|
|
8707
8707
|
}
|
|
@@ -8866,11 +8866,11 @@ xe.prototype.ditherPixels = function(u, e) {
|
|
|
8866
8866
|
n = N * M + i;
|
|
8867
8867
|
var g = n * 3, y = l[g], j = l[g + 1], E = l[g + 2];
|
|
8868
8868
|
g = this.findClosestRGB(y, j, E), this.usedEntry[g] = !0, this.indexedPixels[n] = g, g *= 3;
|
|
8869
|
-
for (var F = this.colorTab[g], C = this.colorTab[g + 1], I = this.colorTab[g + 2], p = y - F, A = j - C,
|
|
8869
|
+
for (var F = this.colorTab[g], C = this.colorTab[g + 1], I = this.colorTab[g + 2], p = y - F, A = j - C, f = E - I, L = s == 1 ? 0 : o.length - 1, z = s == 1 ? o.length : 0; L !== z; L += s) {
|
|
8870
8870
|
var c = o[L][1], h = o[L][2];
|
|
8871
8871
|
if (c + i >= 0 && c + i < M && h + N >= 0 && h + N < a) {
|
|
8872
8872
|
var V = o[L][0];
|
|
8873
|
-
g = n + c + h * M, g *= 3, l[g] = Math.max(0, Math.min(255, l[g] + p * V)), l[g + 1] = Math.max(0, Math.min(255, l[g + 1] + A * V)), l[g + 2] = Math.max(0, Math.min(255, l[g + 2] +
|
|
8873
|
+
g = n + c + h * M, g *= 3, l[g] = Math.max(0, Math.min(255, l[g] + p * V)), l[g + 1] = Math.max(0, Math.min(255, l[g + 1] + A * V)), l[g + 2] = Math.max(0, Math.min(255, l[g + 2] + f * V));
|
|
8874
8874
|
}
|
|
8875
8875
|
}
|
|
8876
8876
|
}
|
|
@@ -9012,7 +9012,7 @@ class ye {
|
|
|
9012
9012
|
throw new Error("dotScale should be in range (0, 1].");
|
|
9013
9013
|
t.components.data.scale = t.dotScale, t.components.timing.scale = t.dotScale, t.components.alignment.scale = t.dotScale;
|
|
9014
9014
|
}
|
|
9015
|
-
this.options = t, this.canvas = new ct(e.size, e.size), this.canvasContext = this.canvas.getContext("2d"), this.qrCode = new
|
|
9015
|
+
this.options = t, this.canvas = new ct(e.size, e.size), this.canvasContext = this.canvas.getContext("2d"), this.qrCode = new ft(-1, this.options.correctLevel), Number.isInteger(this.options.maskPattern) && (this.qrCode.maskPattern = this.options.maskPattern), Number.isInteger(this.options.version) && (this.qrCode.typeNumber = this.options.version), this.qrCode.addData(this.options.text), this.qrCode.make();
|
|
9016
9016
|
}
|
|
9017
9017
|
draw() {
|
|
9018
9018
|
return new Promise((e) => this._draw().then(e));
|
|
@@ -9068,19 +9068,19 @@ class ye {
|
|
|
9068
9068
|
_draw() {
|
|
9069
9069
|
var e, t, o, n, a, M, l, s, N, i, r, g, y, j, E, F, C, I, p;
|
|
9070
9070
|
return ys(this, void 0, void 0, function* () {
|
|
9071
|
-
const A = (e = this.qrCode) === null || e === void 0 ? void 0 : e.moduleCount,
|
|
9071
|
+
const A = (e = this.qrCode) === null || e === void 0 ? void 0 : e.moduleCount, f = this.options.size;
|
|
9072
9072
|
let L = this.options.margin;
|
|
9073
|
-
(L < 0 || L * 2 >=
|
|
9074
|
-
const z = Math.ceil(L), c =
|
|
9073
|
+
(L < 0 || L * 2 >= f) && (L = 0);
|
|
9074
|
+
const z = Math.ceil(L), c = f - 2 * L, h = this.options.whiteMargin, V = this.options.backgroundDimming, D = Math.ceil(c / A), v = D * A, x = v + 2 * z, P = new ct(x, x), B = P.getContext("2d");
|
|
9075
9075
|
this._clear(), B.save(), B.translate(z, z);
|
|
9076
|
-
const te = new ct(x, x),
|
|
9076
|
+
const te = new ct(x, x), m = te.getContext("2d");
|
|
9077
9077
|
let Q = null, k = [];
|
|
9078
9078
|
if (this.options.gifBackground) {
|
|
9079
9079
|
const R = Xl(this.options.gifBackground);
|
|
9080
9080
|
if (Q = R, k = us(R, !0), this.options.autoColor) {
|
|
9081
9081
|
let ue = 0, G = 0, se = 0, Le = 0;
|
|
9082
|
-
for (let
|
|
9083
|
-
const Oe = k[0].colorTable[
|
|
9082
|
+
for (let fe = 0; fe < k[0].colorTable.length; fe++) {
|
|
9083
|
+
const Oe = k[0].colorTable[fe];
|
|
9084
9084
|
Oe[0] > 200 || Oe[1] > 200 || Oe[2] > 200 || Oe[0] === 0 && Oe[1] === 0 && Oe[2] === 0 || (Le++, ue += Oe[0], G += Oe[1], se += Oe[2]);
|
|
9085
9085
|
}
|
|
9086
9086
|
ue = ~~(ue / Le), G = ~~(G / Le), se = ~~(se / Le), this.options.colorDark = `rgb(${ue},${G},${se})`;
|
|
@@ -9091,26 +9091,26 @@ class ye {
|
|
|
9091
9091
|
const ue = ye._getAverageRGB(R);
|
|
9092
9092
|
this.options.colorDark = `rgb(${ue.r},${ue.g},${ue.b})`;
|
|
9093
9093
|
}
|
|
9094
|
-
|
|
9094
|
+
m.drawImage(R, 0, 0, R.width, R.height, 0, 0, x, x), m.rect(0, 0, x, x), m.fillStyle = V, m.fill();
|
|
9095
9095
|
} else
|
|
9096
|
-
|
|
9096
|
+
m.rect(0, 0, x, x), m.fillStyle = this.options.colorLight, m.fill();
|
|
9097
9097
|
const U = Ee.getPatternPosition(this.qrCode.typeNumber), W = ((o = (t = this.options.components) === null || t === void 0 ? void 0 : t.data) === null || o === void 0 ? void 0 : o.scale) || du, J = (1 - W) * 0.5;
|
|
9098
9098
|
for (let R = 0; R < A; R++)
|
|
9099
9099
|
for (let ue = 0; ue < A; ue++) {
|
|
9100
9100
|
const G = this.qrCode.isDark(R, ue), se = ue < 8 && (R < 8 || R >= A - 8) || ue >= A - 8 && R < 8, Le = R == 6 && ue >= 8 && ue <= A - 8 || ue == 6 && R >= 8 && R <= A - 8;
|
|
9101
|
-
let
|
|
9101
|
+
let fe = se || Le;
|
|
9102
9102
|
for (let Qe = 1; Qe < U.length - 1; Qe++)
|
|
9103
|
-
|
|
9104
|
-
const Oe = ue * D + (
|
|
9103
|
+
fe = fe || R >= U[Qe] - 2 && R <= U[Qe] + 2 && ue >= U[Qe] - 2 && ue <= U[Qe] + 2;
|
|
9104
|
+
const Oe = ue * D + (fe ? 0 : J * D), Ge = R * D + (fe ? 0 : J * D);
|
|
9105
9105
|
if (B.strokeStyle = G ? this.options.colorDark : this.options.colorLight, B.lineWidth = 0.5, B.fillStyle = G ? this.options.colorDark : this.options.colorLight, U.length === 0)
|
|
9106
|
-
|
|
9106
|
+
fe || B.fillRect(Oe, Ge, (fe ? 1 : W) * D, (fe ? 1 : W) * D);
|
|
9107
9107
|
else {
|
|
9108
9108
|
const Qe = ue < A - 4 && ue >= A - 4 - 5 && R < A - 4 && R >= A - 4 - 5;
|
|
9109
|
-
!
|
|
9109
|
+
!fe && !Qe && B.fillRect(Oe, Ge, (fe ? 1 : W) * D, (fe ? 1 : W) * D);
|
|
9110
9110
|
}
|
|
9111
9111
|
}
|
|
9112
|
-
const ae = U[U.length - 1],
|
|
9113
|
-
if (B.fillStyle =
|
|
9112
|
+
const ae = U[U.length - 1], me = this.options.colorLight;
|
|
9113
|
+
if (B.fillStyle = me, B.fillRect(0, 0, 8 * D, 8 * D), B.fillRect(0, (A - 8) * D, 8 * D, 8 * D), B.fillRect((A - 8) * D, 0, 8 * D, 8 * D), !((a = (n = this.options.components) === null || n === void 0 ? void 0 : n.timing) === null || a === void 0) && a.protectors && (B.fillRect(8 * D, 6 * D, (A - 8 - 8) * D, D), B.fillRect(6 * D, 8 * D, D, (A - 8 - 8) * D)), !((l = (M = this.options.components) === null || M === void 0 ? void 0 : M.cornerAlignment) === null || l === void 0) && l.protectors && ye._drawAlignProtector(B, ae, ae, D), !((N = (s = this.options.components) === null || s === void 0 ? void 0 : s.alignment) === null || N === void 0) && N.protectors)
|
|
9114
9114
|
for (let R = 0; R < U.length; R++)
|
|
9115
9115
|
for (let ue = 0; ue < U.length; ue++) {
|
|
9116
9116
|
const G = U[ue], se = U[R];
|
|
@@ -9144,21 +9144,21 @@ class ye {
|
|
|
9144
9144
|
const R = yield Xo(this.options.logoImage);
|
|
9145
9145
|
let ue = this.options.logoScale, G = this.options.logoMargin, se = this.options.logoCornerRadius;
|
|
9146
9146
|
(ue <= 0 || ue >= 1) && (ue = 0.2), G < 0 && (G = 0), se < 0 && (se = 0);
|
|
9147
|
-
const Le = v * ue,
|
|
9148
|
-
B.restore(), B.fillStyle = this.options.logoBackgroundColor, B.save(), ye._prepareRoundedCornerClip(B,
|
|
9147
|
+
const Le = v * ue, fe = 0.5 * (x - Le), Oe = fe;
|
|
9148
|
+
B.restore(), B.fillStyle = this.options.logoBackgroundColor, B.save(), ye._prepareRoundedCornerClip(B, fe - G, Oe - G, Le + 2 * G, Le + 2 * G, se + G), B.clip();
|
|
9149
9149
|
const Ge = B.globalCompositeOperation;
|
|
9150
|
-
B.globalCompositeOperation = "destination-out", B.fill(), B.globalCompositeOperation = Ge, B.restore(), B.save(), ye._prepareRoundedCornerClip(B,
|
|
9150
|
+
B.globalCompositeOperation = "destination-out", B.fill(), B.globalCompositeOperation = Ge, B.restore(), B.save(), ye._prepareRoundedCornerClip(B, fe, Oe, Le, Le, se), B.clip(), B.drawImage(R, fe, Oe, Le, Le), B.restore(), B.save(), B.translate(z, z);
|
|
9151
9151
|
}
|
|
9152
9152
|
if (Q) {
|
|
9153
|
-
let R, ue, G, se, Le,
|
|
9153
|
+
let R, ue, G, se, Le, fe;
|
|
9154
9154
|
if (k.forEach(function(Oe) {
|
|
9155
|
-
R || (R = new xe(
|
|
9155
|
+
R || (R = new xe(f, f), R.setDelay(Oe.delay), R.setRepeat(0));
|
|
9156
9156
|
const { width: Ge, height: Qe } = Oe.dims;
|
|
9157
|
-
ue || (ue = new ct(Ge, Qe), G = ue.getContext("2d"), G.rect(0, 0, ue.width, ue.height), G.fillStyle = "#ffffff", G.fill()), (!se || !
|
|
9157
|
+
ue || (ue = new ct(Ge, Qe), G = ue.getContext("2d"), G.rect(0, 0, ue.width, ue.height), G.fillStyle = "#ffffff", G.fill()), (!se || !fe || Ge !== se.width || Qe !== se.height) && (se = new ct(Ge, Qe), Le = se.getContext("2d"), fe = Le.createImageData(Ge, Qe)), fe.data.set(Oe.patch), Le.putImageData(fe, 0, 0), G.drawImage(se.getContext("2d").canvas, Oe.dims.left, Oe.dims.top);
|
|
9158
9158
|
const _t = new ct(x, x), yt = _t.getContext("2d");
|
|
9159
9159
|
yt.drawImage(ue.getContext("2d").canvas, 0, 0, x, x), yt.rect(0, 0, x, x), yt.fillStyle = V, yt.fill(), yt.drawImage(P.getContext("2d").canvas, 0, 0, x, x);
|
|
9160
|
-
const Y = new ct(
|
|
9161
|
-
X.drawImage(_t.getContext("2d").canvas, 0, 0,
|
|
9160
|
+
const Y = new ct(f, f), X = Y.getContext("2d");
|
|
9161
|
+
X.drawImage(_t.getContext("2d").canvas, 0, 0, f, f), R.addFrame(X.getImageData(0, 0, Y.width, Y.height).data);
|
|
9162
9162
|
}), !R)
|
|
9163
9163
|
throw new Error("No frames.");
|
|
9164
9164
|
if (R.finish(), en(this.canvas)) {
|
|
@@ -9167,9 +9167,9 @@ class ye {
|
|
|
9167
9167
|
}
|
|
9168
9168
|
return Promise.resolve(Buffer.from(R.stream().toFlattenUint8Array()));
|
|
9169
9169
|
} else {
|
|
9170
|
-
|
|
9171
|
-
const R = new ct(
|
|
9172
|
-
R.getContext("2d").drawImage(P.getContext("2d").canvas, 0, 0,
|
|
9170
|
+
m.drawImage(P.getContext("2d").canvas, 0, 0, x, x), B.drawImage(te.getContext("2d").canvas, -z, -z, x, x);
|
|
9171
|
+
const R = new ct(f, f);
|
|
9172
|
+
R.getContext("2d").drawImage(P.getContext("2d").canvas, 0, 0, f, f), this.canvas = R;
|
|
9173
9173
|
const G = this.options.gifBackground ? "gif" : "png";
|
|
9174
9174
|
return en(this.canvas) ? Promise.resolve(this.canvas.toDataURL(G)) : Promise.resolve(this.canvas.toBuffer(G));
|
|
9175
9175
|
}
|
|
@@ -9396,15 +9396,15 @@ const As = {
|
|
|
9396
9396
|
});
|
|
9397
9397
|
}
|
|
9398
9398
|
}
|
|
9399
|
-
},
|
|
9400
|
-
function
|
|
9399
|
+
}, ms = ["src"];
|
|
9400
|
+
function fs(u, e, t, o, n, a) {
|
|
9401
9401
|
return t.bindElement ? (T(), $("img", {
|
|
9402
9402
|
key: 0,
|
|
9403
9403
|
style: { display: "inline-block" },
|
|
9404
9404
|
src: n.imgUrl
|
|
9405
|
-
}, null, 8,
|
|
9405
|
+
}, null, 8, ms)) : q("", !0);
|
|
9406
9406
|
}
|
|
9407
|
-
const Es = /* @__PURE__ */ nt(As, [["render",
|
|
9407
|
+
const Es = /* @__PURE__ */ nt(As, [["render", fs]]);
|
|
9408
9408
|
function ua(u = {}) {
|
|
9409
9409
|
const e = _(!1);
|
|
9410
9410
|
return {
|
|
@@ -9499,45 +9499,45 @@ const zs = { key: 0 }, Ls = ["innerHTML"], ps = ["innerHTML"], xs = ["innerHTML"
|
|
|
9499
9499
|
() => o(),
|
|
9500
9500
|
{ deep: !0 }
|
|
9501
9501
|
);
|
|
9502
|
-
const A = _(null), { width:
|
|
9502
|
+
const A = _(null), { width: f } = gn(A), L = No(), z = _(/* @__PURE__ */ new Map());
|
|
9503
9503
|
function c(D) {
|
|
9504
9504
|
const { columnsWidth: v } = D, x = {};
|
|
9505
|
-
h.value.forEach((
|
|
9506
|
-
const k =
|
|
9505
|
+
h.value.forEach((m, Q) => {
|
|
9506
|
+
const k = m.colKey, U = v[k];
|
|
9507
9507
|
if (k && U)
|
|
9508
9508
|
if (k === "row-select")
|
|
9509
9509
|
x[k] = 50;
|
|
9510
|
-
else if (
|
|
9511
|
-
const W =
|
|
9510
|
+
else if (m.cell === "BUTTONS" && Q === h.value.length - 1) {
|
|
9511
|
+
const W = m.resize.maxWidth;
|
|
9512
9512
|
x[k] = Math.min(U, W);
|
|
9513
9513
|
} else
|
|
9514
9514
|
x[k] = U;
|
|
9515
9515
|
});
|
|
9516
|
-
const P = Object.entries(x).filter(([
|
|
9517
|
-
const k = h.value.findIndex((U) => U.colKey ===
|
|
9518
|
-
return
|
|
9519
|
-
}), B = Object.values(x).reduce((
|
|
9516
|
+
const P = Object.entries(x).filter(([m, Q]) => {
|
|
9517
|
+
const k = h.value.findIndex((U) => U.colKey === m);
|
|
9518
|
+
return m !== "row-select" && k !== h.value.length - 1;
|
|
9519
|
+
}), B = Object.values(x).reduce((m, Q) => m + Q, 0), te = f.value;
|
|
9520
9520
|
if (B < te) {
|
|
9521
|
-
const
|
|
9521
|
+
const m = P.reduce((U, [W, J]) => U + J, 0), Q = te - B;
|
|
9522
9522
|
P.forEach(([U, W]) => {
|
|
9523
|
-
const J = W /
|
|
9523
|
+
const J = W / m, ae = Math.floor(Q * J);
|
|
9524
9524
|
x[U] = W + ae;
|
|
9525
9525
|
});
|
|
9526
9526
|
let k = Q - P.reduce((U, [W]) => U + (x[W] - v[W]), 0);
|
|
9527
9527
|
if (k > 0) {
|
|
9528
|
-
const U = P.sort(([J, ae], [
|
|
9528
|
+
const U = P.sort(([J, ae], [me, we]) => we - ae).map(([J]) => J);
|
|
9529
9529
|
let W = 0;
|
|
9530
9530
|
for (; k > 0 && W < U.length; )
|
|
9531
9531
|
x[U[W]] += 1, k--, W++;
|
|
9532
9532
|
}
|
|
9533
9533
|
}
|
|
9534
|
-
for (const
|
|
9535
|
-
const Q =
|
|
9536
|
-
Q && x[Q] && (
|
|
9534
|
+
for (const m of h.value) {
|
|
9535
|
+
const Q = m.colKey;
|
|
9536
|
+
Q && x[Q] && (m.width = x[Q], z.value.set(Q, x[Q]));
|
|
9537
9537
|
}
|
|
9538
9538
|
L.setColumnWidthData(a.viewName, x);
|
|
9539
9539
|
}
|
|
9540
|
-
lt("tableLayoutSize",
|
|
9540
|
+
lt("tableLayoutSize", f);
|
|
9541
9541
|
const h = _([]);
|
|
9542
9542
|
de(
|
|
9543
9543
|
() => a.tableColumns,
|
|
@@ -9588,10 +9588,10 @@ const zs = { key: 0 }, Ls = ["innerHTML"], ps = ["innerHTML"], xs = ["innerHTML"
|
|
|
9588
9588
|
onColumnResizeChange: c
|
|
9589
9589
|
}
|
|
9590
9590
|
}, {
|
|
9591
|
-
TEXT: O(({ col:
|
|
9592
|
-
j(y(
|
|
9591
|
+
TEXT: O(({ col: m, row: Q }) => [
|
|
9592
|
+
j(y(m, Q)) ? (T(), $("span", zs, [
|
|
9593
9593
|
ee("span", {
|
|
9594
|
-
innerHTML: y(
|
|
9594
|
+
innerHTML: y(m, Q),
|
|
9595
9595
|
style: { "white-space": "pre-wrap" }
|
|
9596
9596
|
}, null, 8, Ls)
|
|
9597
9597
|
])) : (T(), $("span", {
|
|
@@ -9599,21 +9599,21 @@ const zs = { key: 0 }, Ls = ["innerHTML"], ps = ["innerHTML"], xs = ["innerHTML"
|
|
|
9599
9599
|
innerHTML: E()
|
|
9600
9600
|
}, null, 8, ps))
|
|
9601
9601
|
]),
|
|
9602
|
-
ENUMS: O(({ col:
|
|
9602
|
+
ENUMS: O(({ col: m, row: Q }) => [
|
|
9603
9603
|
ee("span", {
|
|
9604
|
-
innerHTML: F(
|
|
9604
|
+
innerHTML: F(m, Q)
|
|
9605
9605
|
}, null, 8, xs)
|
|
9606
9606
|
]),
|
|
9607
|
-
DATE: O(({ col:
|
|
9607
|
+
DATE: O(({ col: m, row: Q }) => [
|
|
9608
9608
|
ee("span", {
|
|
9609
|
-
innerHTML: C(
|
|
9609
|
+
innerHTML: C(m, Q)
|
|
9610
9610
|
}, null, 8, Os)
|
|
9611
9611
|
]),
|
|
9612
|
-
QR_CODE: O(({ col:
|
|
9612
|
+
QR_CODE: O(({ col: m, row: Q }) => [
|
|
9613
9613
|
b(P, null, {
|
|
9614
9614
|
content: O(() => [
|
|
9615
9615
|
b(Es, {
|
|
9616
|
-
text: y(
|
|
9616
|
+
text: y(m, Q),
|
|
9617
9617
|
size: 80,
|
|
9618
9618
|
margin: 0
|
|
9619
9619
|
}, null, 8, ["text"]),
|
|
@@ -9633,11 +9633,11 @@ const zs = { key: 0 }, Ls = ["innerHTML"], ps = ["innerHTML"], xs = ["innerHTML"
|
|
|
9633
9633
|
_: 2
|
|
9634
9634
|
}, 1024)
|
|
9635
9635
|
]),
|
|
9636
|
-
FORM_ITEM: O(({ col:
|
|
9637
|
-
|
|
9636
|
+
FORM_ITEM: O(({ col: m, row: Q }) => [
|
|
9637
|
+
m.formItems && m.formItems.length ? (T(), w(jl, {
|
|
9638
9638
|
key: 0,
|
|
9639
9639
|
viewName: D.viewName,
|
|
9640
|
-
col:
|
|
9640
|
+
col: m,
|
|
9641
9641
|
row: Q,
|
|
9642
9642
|
onBlur: p
|
|
9643
9643
|
}, null, 8, ["viewName", "col", "row"])) : (T(), $("span", {
|
|
@@ -9645,13 +9645,13 @@ const zs = { key: 0 }, Ls = ["innerHTML"], ps = ["innerHTML"], xs = ["innerHTML"
|
|
|
9645
9645
|
innerHTML: E()
|
|
9646
9646
|
}, null, 8, ks))
|
|
9647
9647
|
]),
|
|
9648
|
-
IMAGE: O(({ col:
|
|
9648
|
+
IMAGE: O(({ col: m, row: Q }) => [
|
|
9649
9649
|
ee("div", {
|
|
9650
9650
|
class: H(`${d(Pt)}__imageViewer`)
|
|
9651
9651
|
}, [
|
|
9652
|
-
y(
|
|
9652
|
+
y(m, Q) ? (T(), w(te, {
|
|
9653
9653
|
key: 0,
|
|
9654
|
-
images: [y(
|
|
9654
|
+
images: [y(m, Q)]
|
|
9655
9655
|
}, {
|
|
9656
9656
|
trigger: O(({ open: k }) => [
|
|
9657
9657
|
ee("div", {
|
|
@@ -9659,15 +9659,15 @@ const zs = { key: 0 }, Ls = ["innerHTML"], ps = ["innerHTML"], xs = ["innerHTML"
|
|
|
9659
9659
|
}, [
|
|
9660
9660
|
b(B, {
|
|
9661
9661
|
class: H(`${d(Pt)}__imageViewer--image-img`),
|
|
9662
|
-
src: y(
|
|
9662
|
+
src: y(m, Q),
|
|
9663
9663
|
shape: "round",
|
|
9664
9664
|
fit: "scale-down"
|
|
9665
9665
|
}, {
|
|
9666
9666
|
error: O(() => [
|
|
9667
|
-
|
|
9667
|
+
m.name == `${d(t).t("头像")}` ? (T(), w(d(Uu), { key: 0 })) : (T(), w(d(Xt), { key: 1 }))
|
|
9668
9668
|
]),
|
|
9669
9669
|
loading: O(() => [
|
|
9670
|
-
|
|
9670
|
+
m.name == `${d(t).t("头像")}` ? (T(), w(d(Uu), { key: 0 })) : (T(), w(d(Xt), {
|
|
9671
9671
|
key: 1,
|
|
9672
9672
|
size: "large"
|
|
9673
9673
|
}))
|
|
@@ -9690,7 +9690,7 @@ const zs = { key: 0 }, Ls = ["innerHTML"], ps = ["innerHTML"], xs = ["innerHTML"
|
|
|
9690
9690
|
key: 1,
|
|
9691
9691
|
class: H(`${d(Pt)}__imageViewer--placeholder`)
|
|
9692
9692
|
}, [
|
|
9693
|
-
|
|
9693
|
+
m.name == `${d(t).t("头像")}` ? (T(), w(d(Uu), {
|
|
9694
9694
|
key: 0,
|
|
9695
9695
|
size: "large"
|
|
9696
9696
|
})) : (T(), w(d(Xt), {
|
|
@@ -9700,12 +9700,12 @@ const zs = { key: 0 }, Ls = ["innerHTML"], ps = ["innerHTML"], xs = ["innerHTML"
|
|
|
9700
9700
|
], 2))
|
|
9701
9701
|
], 2)
|
|
9702
9702
|
]),
|
|
9703
|
-
BUTTONS: O(({ col:
|
|
9704
|
-
|
|
9703
|
+
BUTTONS: O(({ col: m, row: Q }) => [
|
|
9704
|
+
m.buttons && m.buttons.length > 0 ? (T(), w(Il, {
|
|
9705
9705
|
key: 0,
|
|
9706
|
-
buttons:
|
|
9706
|
+
buttons: m.buttons,
|
|
9707
9707
|
row: Q,
|
|
9708
|
-
"operations-width": z.value.get(
|
|
9708
|
+
"operations-width": z.value.get(m.colKey) ?? 300,
|
|
9709
9709
|
onTableButtonAction: I
|
|
9710
9710
|
}, null, 8, ["buttons", "row", "operations-width"])) : (T(), $("span", {
|
|
9711
9711
|
key: 1,
|
|
@@ -9754,7 +9754,7 @@ const vs = /* @__PURE__ */ nt(ws, [["__scopeId", "data-v-bc0293b3"]]), Us = /* @
|
|
|
9754
9754
|
return (y, j) => {
|
|
9755
9755
|
const E = Z("t-card"), F = Z("t-tab-panel"), C = Z("t-tabs");
|
|
9756
9756
|
return T(), w(C, {
|
|
9757
|
-
class: H(`${d(
|
|
9757
|
+
class: H(`${d(mM)}`),
|
|
9758
9758
|
placement: "left",
|
|
9759
9759
|
value: l.value,
|
|
9760
9760
|
onChange: N
|
|
@@ -9832,11 +9832,11 @@ const Qs = /* @__PURE__ */ ne({
|
|
|
9832
9832
|
var X, re;
|
|
9833
9833
|
let Y = {};
|
|
9834
9834
|
return E.value && F.value && Object.assign(Y, F.value), s.dialogProps && ((X = Object.keys(s.dialogProps)) != null && X.length) && Object.assign(Y, s.dialogProps), r.value === "table" && Object.assign(Y, p.value), s.serverProps && ((re = Object.keys(s.serverProps)) != null && re.length) && Object.assign(Y, s.serverProps), Object.assign(Y, I.value), Y;
|
|
9835
|
-
}),
|
|
9835
|
+
}), f = _(!1), L = _(!0);
|
|
9836
9836
|
async function z() {
|
|
9837
9837
|
var Y, X, re, Se, Ze;
|
|
9838
9838
|
try {
|
|
9839
|
-
if (
|
|
9839
|
+
if (f.value = !0, L.value && s.from == "view" && r.value == "table") {
|
|
9840
9840
|
const Me = h.getFormData(n.fullPath);
|
|
9841
9841
|
Me != null && Me.pagination && (p.value = {
|
|
9842
9842
|
...Me.pagination
|
|
@@ -9861,7 +9861,7 @@ const Qs = /* @__PURE__ */ ne({
|
|
|
9861
9861
|
} catch (Me) {
|
|
9862
9862
|
console.warn("getViewDataApi", Me);
|
|
9863
9863
|
} finally {
|
|
9864
|
-
|
|
9864
|
+
f.value = !1, L.value = !1;
|
|
9865
9865
|
}
|
|
9866
9866
|
}
|
|
9867
9867
|
_e(() => {
|
|
@@ -9895,7 +9895,7 @@ const Qs = /* @__PURE__ */ ne({
|
|
|
9895
9895
|
}
|
|
9896
9896
|
);
|
|
9897
9897
|
const D = _(!1), v = _(!1), x = _(""), P = _({}), B = _(), te = _();
|
|
9898
|
-
async function
|
|
9898
|
+
async function m(Y, X = {}) {
|
|
9899
9899
|
if ((Y ?? "") != "") {
|
|
9900
9900
|
X.viewName = Y;
|
|
9901
9901
|
const re = await Sn(X);
|
|
@@ -9911,7 +9911,7 @@ const Qs = /* @__PURE__ */ ne({
|
|
|
9911
9911
|
try {
|
|
9912
9912
|
switch (Y.action) {
|
|
9913
9913
|
case "VIEW_BY_DIALOG": {
|
|
9914
|
-
(Y.view ?? "") != "" ? (x.value = "view", await
|
|
9914
|
+
(Y.view ?? "") != "" ? (x.value = "view", await m(Y.view), P.value = Y, l.initPropsSource({ ...X, ...s.serverProps }), await Q(!0), v.value = !0) : (Y.link ?? "") != "" && (x.value = "iframe", P.value = Y, l.initPropsSource(X), B.value = {}, te.value = (re = Y.props) == null ? void 0 : re.map((Me) => Me.keyName), await Q(!0), v.value = !0);
|
|
9915
9915
|
break;
|
|
9916
9916
|
}
|
|
9917
9917
|
case "VIEW": {
|
|
@@ -10051,8 +10051,8 @@ const Qs = /* @__PURE__ */ ne({
|
|
|
10051
10051
|
let Me = {};
|
|
10052
10052
|
if (Y.props && Y.props.forEach((Ne) => {
|
|
10053
10053
|
Ne.keyName && (X[Ne.keyName] ?? "") != "" && (Me[Ne.keyName] = X[Ne.keyName]);
|
|
10054
|
-
}),
|
|
10055
|
-
|
|
10054
|
+
}), me.value && me.value.length > 0 && Y.props && Y.props.forEach((Ne) => {
|
|
10055
|
+
me.value.forEach((he) => {
|
|
10056
10056
|
if (Ne.keyName && ie(he, Ne.keyName)) {
|
|
10057
10057
|
const qe = ie(he, Ne.keyName);
|
|
10058
10058
|
Me[Ne.keyName] ? Me[Ne.keyName] = [
|
|
@@ -10111,9 +10111,9 @@ const Qs = /* @__PURE__ */ ne({
|
|
|
10111
10111
|
function ae(Y) {
|
|
10112
10112
|
J.value = Y;
|
|
10113
10113
|
}
|
|
10114
|
-
const
|
|
10114
|
+
const me = _([]);
|
|
10115
10115
|
function we(Y) {
|
|
10116
|
-
|
|
10116
|
+
me.value = Y;
|
|
10117
10117
|
}
|
|
10118
10118
|
const Ue = _([]), K = S(() => Ie.value.length ? Ue.value.filter(
|
|
10119
10119
|
(X, re) => X.colKey == "row-select" || Ie.value.indexOf(X.colKey) !== -1 || re == 0 || re == Ue.value.length - 1
|
|
@@ -10158,7 +10158,7 @@ const Qs = /* @__PURE__ */ ne({
|
|
|
10158
10158
|
se();
|
|
10159
10159
|
}, 500), k.value && (k.value.formOkButtonLoading = !1), !0) : (k.value && (k.value.formOkButtonLoading = !1), !1);
|
|
10160
10160
|
}
|
|
10161
|
-
function
|
|
10161
|
+
function fe(Y, X) {
|
|
10162
10162
|
if (Y.itemType == "selector" || Y.itemType == "time_selector" || Y.itemType == "date_time_selector" || Y.itemType == "tree_check_box" || Y.itemType === "multi_tree_selector" || Y.itemType === "tree_selector") {
|
|
10163
10163
|
const re = vu.confirm({
|
|
10164
10164
|
theme: "info",
|
|
@@ -10222,7 +10222,7 @@ const Qs = /* @__PURE__ */ ne({
|
|
|
10222
10222
|
return T(), $(ge, null, [
|
|
10223
10223
|
b(re, {
|
|
10224
10224
|
class: H(`${d(yM)}`),
|
|
10225
|
-
loading:
|
|
10225
|
+
loading: f.value,
|
|
10226
10226
|
size: "medium"
|
|
10227
10227
|
}, {
|
|
10228
10228
|
default: O(() => [
|
|
@@ -10258,7 +10258,7 @@ const Qs = /* @__PURE__ */ ne({
|
|
|
10258
10258
|
paginationProps: p.value,
|
|
10259
10259
|
headerFilterProps: C.value,
|
|
10260
10260
|
onTableButtonAction: U,
|
|
10261
|
-
onTableFormConfirm:
|
|
10261
|
+
onTableFormConfirm: fe,
|
|
10262
10262
|
onReturnSelectedKey: ae,
|
|
10263
10263
|
onReturnSelectedRow: we,
|
|
10264
10264
|
onReturnPaginationProps: G
|
|
@@ -10307,7 +10307,7 @@ const zu = We(Qs), oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
10307
10307
|
if (a.initSocket(), window.addEventListener("onSocketReload", () => {
|
|
10308
10308
|
o.toggleGlobalReload();
|
|
10309
10309
|
}), (p = t.query) != null && p.redirect) {
|
|
10310
|
-
const A = t.query,
|
|
10310
|
+
const A = t.query, f = decodeURIComponent(A.redirect), L = Dn.parse(f.split("?")[1]), z = f.split("?")[0];
|
|
10311
10311
|
z === "/view" && Object.keys(L).length == 0 ? e.push(N.value) : e.push({
|
|
10312
10312
|
path: z,
|
|
10313
10313
|
query: {
|
|
@@ -10347,7 +10347,7 @@ const zu = We(Qs), oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
10347
10347
|
Fe(i.value) || await E(i.value, r.value);
|
|
10348
10348
|
}
|
|
10349
10349
|
lt("handleUpdateView", j);
|
|
10350
|
-
async function E(p, A,
|
|
10350
|
+
async function E(p, A, f = void 0) {
|
|
10351
10351
|
var c;
|
|
10352
10352
|
const L = {};
|
|
10353
10353
|
L.viewName = p;
|
|
@@ -10381,9 +10381,9 @@ const zu = We(Qs), oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
10381
10381
|
});
|
|
10382
10382
|
return lt(zn, l), (p, A) => (T(), w(d(To), Ae({ key: l.value }, I.value), {
|
|
10383
10383
|
default: O(() => {
|
|
10384
|
-
var
|
|
10384
|
+
var f;
|
|
10385
10385
|
return [
|
|
10386
|
-
F.value ? (T(!0), $(ge, { key: 0 }, ze((
|
|
10386
|
+
F.value ? (T(!0), $(ge, { key: 0 }, ze((f = g.value) == null ? void 0 : f.boards, (L) => {
|
|
10387
10387
|
var z, c;
|
|
10388
10388
|
return T(), w(d(zu), {
|
|
10389
10389
|
key: `${(z = g.value) == null ? void 0 : z.viewName}_${L.boardType}`,
|
|
@@ -10399,11 +10399,14 @@ const zu = We(Qs), oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
10399
10399
|
}
|
|
10400
10400
|
});
|
|
10401
10401
|
/**
|
|
10402
|
-
* tdesign v1.10.
|
|
10403
|
-
* (c)
|
|
10402
|
+
* tdesign v1.10.7
|
|
10403
|
+
* (c) 2025 tdesign
|
|
10404
10404
|
* @license MIT
|
|
10405
10405
|
*/
|
|
10406
10406
|
var tn = {
|
|
10407
|
+
autoComplete: {
|
|
10408
|
+
empty: "Empty Data"
|
|
10409
|
+
},
|
|
10407
10410
|
pagination: {
|
|
10408
10411
|
itemsPerPage: "{size} / page",
|
|
10409
10412
|
jumpTo: "Jump to",
|
|
@@ -10585,7 +10588,9 @@ var tn = {
|
|
|
10585
10588
|
colorPicker: {
|
|
10586
10589
|
swatchColorTitle: "System Default",
|
|
10587
10590
|
recentColorTitle: "Recently Used",
|
|
10588
|
-
clearConfirmText: "Clear recently used colors?"
|
|
10591
|
+
clearConfirmText: "Clear recently used colors?",
|
|
10592
|
+
singleColor: "Single",
|
|
10593
|
+
gradientColor: "Gradient"
|
|
10589
10594
|
},
|
|
10590
10595
|
guide: {
|
|
10591
10596
|
finishButtonProps: {
|
|
@@ -10637,11 +10642,14 @@ var tn = {
|
|
|
10637
10642
|
}
|
|
10638
10643
|
};
|
|
10639
10644
|
/**
|
|
10640
|
-
* tdesign v1.10.
|
|
10641
|
-
* (c)
|
|
10645
|
+
* tdesign v1.10.7
|
|
10646
|
+
* (c) 2025 tdesign
|
|
10642
10647
|
* @license MIT
|
|
10643
10648
|
*/
|
|
10644
10649
|
var Ys = {
|
|
10650
|
+
autoComplete: {
|
|
10651
|
+
empty: "暂无数据"
|
|
10652
|
+
},
|
|
10645
10653
|
pagination: {
|
|
10646
10654
|
itemsPerPage: "{size} 条/页",
|
|
10647
10655
|
jumpTo: "跳至",
|
|
@@ -10823,7 +10831,9 @@ var Ys = {
|
|
|
10823
10831
|
colorPicker: {
|
|
10824
10832
|
swatchColorTitle: "系统预设颜色",
|
|
10825
10833
|
recentColorTitle: "最近使用颜色",
|
|
10826
|
-
clearConfirmText: "确定清空最近使用的颜色吗?"
|
|
10834
|
+
clearConfirmText: "确定清空最近使用的颜色吗?",
|
|
10835
|
+
singleColor: "单色",
|
|
10836
|
+
gradientColor: "渐变"
|
|
10827
10837
|
},
|
|
10828
10838
|
guide: {
|
|
10829
10839
|
finishButtonProps: {
|
|
@@ -10875,11 +10885,14 @@ var Ys = {
|
|
|
10875
10885
|
}
|
|
10876
10886
|
};
|
|
10877
10887
|
/**
|
|
10878
|
-
* tdesign v1.10.
|
|
10879
|
-
* (c)
|
|
10888
|
+
* tdesign v1.10.7
|
|
10889
|
+
* (c) 2025 tdesign
|
|
10880
10890
|
* @license MIT
|
|
10881
10891
|
*/
|
|
10882
10892
|
var _s = {
|
|
10893
|
+
autoComplete: {
|
|
10894
|
+
empty: "暫無數據"
|
|
10895
|
+
},
|
|
10883
10896
|
pagination: {
|
|
10884
10897
|
itemsPerPage: "{size} 項/頁",
|
|
10885
10898
|
jumpTo: "跳至",
|
|
@@ -11061,7 +11074,9 @@ var _s = {
|
|
|
11061
11074
|
colorPicker: {
|
|
11062
11075
|
swatchColorTitle: "系統預設顔色",
|
|
11063
11076
|
recentColorTitle: "最近使用的顔色",
|
|
11064
|
-
clearConfirmText: "確定清空最近使用的顔色嗎?"
|
|
11077
|
+
clearConfirmText: "確定清空最近使用的顔色嗎?",
|
|
11078
|
+
singleColor: "單色",
|
|
11079
|
+
gradientColor: "漸變"
|
|
11065
11080
|
},
|
|
11066
11081
|
guide: {
|
|
11067
11082
|
finishButtonProps: {
|
|
@@ -11180,7 +11195,7 @@ const Bs = { class: "gConfigProvider" }, Fs = /* @__PURE__ */ ne({
|
|
|
11180
11195
|
DateLocaleConfigRef: a,
|
|
11181
11196
|
SideMenuConfigRef: s
|
|
11182
11197
|
}), (g, y) => (T(), $("div", Bs, [
|
|
11183
|
-
b(d(
|
|
11198
|
+
b(d(fa), { globalConfig: r.value }, {
|
|
11184
11199
|
default: O(() => [
|
|
11185
11200
|
Pe(g.$slots, "default")
|
|
11186
11201
|
]),
|
|
@@ -11341,7 +11356,7 @@ const na = /* @__PURE__ */ nt(ir, [["__scopeId", "data-v-75fdffa5"]]), Tc = /* @
|
|
|
11341
11356
|
u.directive(e, on[e]);
|
|
11342
11357
|
});
|
|
11343
11358
|
}
|
|
11344
|
-
}, rr = "@gonsin/gview", cr = "2.0.
|
|
11359
|
+
}, rr = "@gonsin/gview", cr = "2.0.143", Nr = "dist/index.mjs", gr = "dist/types/index.d.ts", Dr = [
|
|
11345
11360
|
"dist",
|
|
11346
11361
|
"README.md",
|
|
11347
11362
|
"CHANGELOG.md"
|
|
@@ -11378,7 +11393,7 @@ const na = /* @__PURE__ */ nt(ir, [["__scopeId", "data-v-75fdffa5"]]), Tc = /* @
|
|
|
11378
11393
|
pinia: "^2.0.32",
|
|
11379
11394
|
qs: "^6.11.1",
|
|
11380
11395
|
"tdesign-icons-vue-next": "^0.1.11",
|
|
11381
|
-
"tdesign-vue-next": "^1.
|
|
11396
|
+
"tdesign-vue-next": "^1.10.7",
|
|
11382
11397
|
vue: "^3.2.47",
|
|
11383
11398
|
"vue-i18n": "^9.2.2",
|
|
11384
11399
|
"vue-qr": "^4.0.9",
|
|
@@ -11460,7 +11475,7 @@ const na = /* @__PURE__ */ nt(ir, [["__scopeId", "data-v-75fdffa5"]]), Tc = /* @
|
|
|
11460
11475
|
], 2)
|
|
11461
11476
|
], 2));
|
|
11462
11477
|
}
|
|
11463
|
-
}), Ar = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxODAuMjAyIDIyIiBjbGFzcz0iZGVzaWduLWljb25mb250Ij4KICA8cGF0aCBkPSJNMTI0LjY1LDMzMi41NjdoMTVMMTM4LjMsMzQzLjFhMi44MTEsMi44MTEsMCwwLDEtMy4xLDIuNDVIMTI0LjFhMzEuNjU2LDMxLjY1NiwwLDAsMS01LjYtLjQ0MSw3LjczOSw3LjczOSwwLDAsMS0zLjU1LTEuMzIzLDcuNTEsNy41MSwwLDAsMS0zLjc1LTYuNzEzdi0uNTM5Yy4xLS41ODguMS0xLjIyNS4yLTEuOTExYTEyLjA5NCwxMi4wOTQsMCwwLDEsMy4zNS02Ljk1OCwxMS40LDExLjQsMCwwLDEsNS4wNS0zLjAzOCwyNy45NDgsMjcuOTQ4LDAsMCwxLDcuNy0uOThoMTQuOWwtMi45NSwzLjkyaC0xMS44YTEyLjcsMTIuNywwLDAsMC02LjEsMS4yMjVjLTEuNiwxLjAyOS0yLjU1LDIuODkxLTIuOTUsNS4zOWExMS4zMSwxMS4zMSwwLDAsMCwwLDMuNjc1LDQuODQsNC44NCwwLDAsMCwxLjI1LDIuMzUyLDQuMTQ0LDQuMTQ0LDAsMCwwLDIuMywxLjAyOSwxNS45NTQsMTUuOTU0LDAsMCwwLDMuNzUuMzQzaDUuODVsLjgtNS4xOTRoLTguNmwuNy0zLjgyMlpNMjYxLjQsMzI5LjUyOWwtMS44NSwxNi4wMjJoLTYuNWwzLTIxLjhoOC4zNWw5Ljc1LDE2LjI2NywyLjQtMTYuMjY3aDYuMmwtLjQ1LDIuNzkzLTIuMTUsMTQuOWE1LjgsNS44LDAsMCwxLTEuNCwzLjAzOCw0LjMsNC4zLDAsMCwxLTIuODUsMS4xMjdoLTQuNDVMMjYxLjQsMzI5LjUyOVptLTIxLDE1Ljk3MywzLjEtMjEuOGg3LjFsLTMuMiwyMS44Wm0tMzMuMiwwLDIuODUtMy45MkgyMjMuMmExNy41MzYsMTcuNTM2LDAsMCwwLDQuNTUtLjQ0MSwzLjEsMy4xLDAsMCwwLDEuOTUtMi4xMDcsMi4xODYsMi4xODYsMCwwLDAtMS42LTIuMzUyLDEwLjUsMTAuNSwwLDAsMC0zLjM1LS4zNDNoLTUuN2MtMy40NSwwLTUuODUtLjUzOS03LjMtMS4zNzJhNS42MTksNS42MTksMCwwLDEtMS45NS0yLjEwNyw0LjgzOCw0LjgzOCwwLDAsMS0uMzUtMi43OTMsNi41MTgsNi41MTgsMCwwLDEsMi41LTQuMTY1YzEuNC0xLjIyNSwzLjQ1LTEuOTExLDYuMi0yLjE1Ni45LDAsMi4zLS4xLDQuMS0uMWgxNS4ybC0zLjEsMy45MmgtMTEuMmEzMy4xODQsMzMuMTg0LDAsMCwwLTQuMS4yLDIuNTk0LDIuNTk0LDAsMCwwLTIuNCwyLjE1NiwxLjgxNSwxLjgxNSwwLDAsMCwxLjQsMi4xNTYsMTMuODI4LDEzLjgyOCwwLDAsMCwzLjguMzQzaDQuOWEyOS45NjUsMjkuOTY1LDAsMCwxLDUuNi40NDFjMi4wNS41MzksMy40NSwxLjQ3LDQuMSwyLjc5M2E2LjM2LDYuMzYsMCwwLDEsLjQ1LDMuMzgxLDYuOTA4LDYuOTA4LDAsMCwxLTEuNzUsMy41NzcsOC45NTIsOC45NTIsMCwwLDEtNS43NSwyLjYsMzcuMiwzNy4yLDAsMCwxLTUuMy4yNDVIMjA3LjJabS0yMi43NS0xNS45NzMtMi4zLDE2LjAyMmgtNi4ybDMuMi0yMS44aDguMzVsOS43NSwxNi4yNjcsMi40LTE2LjI2N2g2LjJsLTMuMiwyMS44aC04bC0xMC4yLTE2LjAyMlpNMTU4LjEsMzQ1LjZoLTEuMTVhMjQuNTEzLDI0LjUxMywwLDAsMS04LjgtMS4zNzIsNy45LDcuOSwwLDAsMS00LjQ1LTMuNTc3LDkuMjc5LDkuMjc5LDAsMCwxLS44LTUuOTI5Yy42LTQuMTY1LDIuNS03LjE1NCw1LjctOC44NjksMi4zLTEuMzcyLDUuNS0yLjEwNyw5LjUtMi4yNTRoMS42YTI3LjAzLDI3LjAzLDAsMCwxLDcuOSwxLjAyOSw4LjEsOC4xLDAsMCwxLDUuMDUsNC41MDgsMTEuMjM3LDExLjIzNywwLDAsMSwuNDUsNS43MzMsMTAuNiwxMC42LDAsMCwxLTIuNCw1LjczMywxMi4yMzMsMTIuMjMzLDAsMCwxLTYuNjUsNC4wNjcsMjIuMjE3LDIyLjIxNywwLDAsMS01Ljk1LjkzMVptMC0xOC4zMjVhOS4yMTQsOS4yMTQsMCwwLDAtNS43LDIuMTA3LDguNDc5LDguNDc5LDAsMCwwLTIuMyw1LjE5NGMtLjM1LDIuNSwwLDQuNDU5LDEuMTUsNS42MzUsMS4wNSwxLjEyNywzLDEuNzE1LDUuNzUsMS43MTVoMS4wNWExMC4xMTcsMTAuMTE3LDAsMCwwLDUuMTUtMS43MTUsOC40NzEsOC40NzEsMCwwLDAsMi43NS01LjU4NmMuMzUtMi4zNTIuMS00LjA2Ny0uOC01LjI5Mi0xLTEuMzcyLTMtMi4xMDctNi4wNS0yLjEwN0E2LjUwNiw2LjUwNiwwLDAsMSwxNTguMSwzMjcuMjc1WiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTExMS4yIC0zMjMuNikiIGZpbGw9IiNiY2M0ZDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPgogIDxwYXRoIGQ9Ik00NTkuMTUsMzUxLjJhNC4xNSw0LjE1LDAsMSwxLTQuMTUsNC4xNSw0LjE0LDQuMTQsMCwwLDEsNC4xNS00LjE1Wm0tMS45NSw2LjdoLjY1di0yLjI1SDQ1OWMuMS4wNS4yLjA1LjMuMTVhMi4yNTYsMi4yNTYsMCwwLDEsLjM1LjM1LDUuMjIxLDUuMjIxLDAsMCwxLC41LjdsLjY1LDEuMDVoLjg1bC0uOS0xLjRhOC41NDQsOC41NDQsMCwwLDAtLjU1LS43LDIuOCwyLjgsMCwwLDAtLjQtLjI1LDEuNzIsMS43MiwwLDAsMCwxLjEtLjQ1LDEuNCwxLjQsMCwwLDAsLjE1LTEuNjUsMS4zLDEuMywwLDAsMC0uNTUtLjUsMi45MjEsMi45MjEsMCwwLDAtMS4wNS0uMTVINDU3LjJ2NS4xWm0uNjUtMi44aDEuNDVhMi4zMTgsMi4zMTgsMCwwLDAsLjctLjEuNzc4Ljc3OCwwLDAsMCwuNC0uMy44MDYuODA2LDAsMCwwLC4xNS0uNDUuODI4LjgyOCwwLDAsMC0uMjUtLjYsMS4yMjksMS4yMjksMCwwLDAtLjg1LS4yNWgtMS42djEuN1ptMS4zLTMuMzVhMy42NSwzLjY1LDAsMSwwLDMuNjUsMy42NUEzLjY3MSwzLjY3MSwwLDAsMCw0NTkuMTUsMzUxLjc1WiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI4My4wOTggLTMzNy44NSkiIGZpbGw9IiNiY2M0ZDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPgo8L3N2Zz4K",
|
|
11478
|
+
}), Ar = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxODAuMjAyIDIyIiBjbGFzcz0iZGVzaWduLWljb25mb250Ij4KICA8cGF0aCBkPSJNMTI0LjY1LDMzMi41NjdoMTVMMTM4LjMsMzQzLjFhMi44MTEsMi44MTEsMCwwLDEtMy4xLDIuNDVIMTI0LjFhMzEuNjU2LDMxLjY1NiwwLDAsMS01LjYtLjQ0MSw3LjczOSw3LjczOSwwLDAsMS0zLjU1LTEuMzIzLDcuNTEsNy41MSwwLDAsMS0zLjc1LTYuNzEzdi0uNTM5Yy4xLS41ODguMS0xLjIyNS4yLTEuOTExYTEyLjA5NCwxMi4wOTQsMCwwLDEsMy4zNS02Ljk1OCwxMS40LDExLjQsMCwwLDEsNS4wNS0zLjAzOCwyNy45NDgsMjcuOTQ4LDAsMCwxLDcuNy0uOThoMTQuOWwtMi45NSwzLjkyaC0xMS44YTEyLjcsMTIuNywwLDAsMC02LjEsMS4yMjVjLTEuNiwxLjAyOS0yLjU1LDIuODkxLTIuOTUsNS4zOWExMS4zMSwxMS4zMSwwLDAsMCwwLDMuNjc1LDQuODQsNC44NCwwLDAsMCwxLjI1LDIuMzUyLDQuMTQ0LDQuMTQ0LDAsMCwwLDIuMywxLjAyOSwxNS45NTQsMTUuOTU0LDAsMCwwLDMuNzUuMzQzaDUuODVsLjgtNS4xOTRoLTguNmwuNy0zLjgyMlpNMjYxLjQsMzI5LjUyOWwtMS44NSwxNi4wMjJoLTYuNWwzLTIxLjhoOC4zNWw5Ljc1LDE2LjI2NywyLjQtMTYuMjY3aDYuMmwtLjQ1LDIuNzkzLTIuMTUsMTQuOWE1LjgsNS44LDAsMCwxLTEuNCwzLjAzOCw0LjMsNC4zLDAsMCwxLTIuODUsMS4xMjdoLTQuNDVMMjYxLjQsMzI5LjUyOVptLTIxLDE1Ljk3MywzLjEtMjEuOGg3LjFsLTMuMiwyMS44Wm0tMzMuMiwwLDIuODUtMy45MkgyMjMuMmExNy41MzYsMTcuNTM2LDAsMCwwLDQuNTUtLjQ0MSwzLjEsMy4xLDAsMCwwLDEuOTUtMi4xMDcsMi4xODYsMi4xODYsMCwwLDAtMS42LTIuMzUyLDEwLjUsMTAuNSwwLDAsMC0zLjM1LS4zNDNoLTUuN2MtMy40NSwwLTUuODUtLjUzOS03LjMtMS4zNzJhNS42MTksNS42MTksMCwwLDEtMS45NS0yLjEwNyw0LjgzOCw0LjgzOCwwLDAsMS0uMzUtMi43OTMsNi41MTgsNi41MTgsMCwwLDEsMi41LTQuMTY1YzEuNC0xLjIyNSwzLjQ1LTEuOTExLDYuMi0yLjE1Ni45LDAsMi4zLS4xLDQuMS0uMWgxNS4ybC0zLjEsMy45MmgtMTEuMmEzMy4xODQsMzMuMTg0LDAsMCwwLTQuMS4yLDIuNTk0LDIuNTk0LDAsMCwwLTIuNCwyLjE1NiwxLjgxNSwxLjgxNSwwLDAsMCwxLjQsMi4xNTYsMTMuODI4LDEzLjgyOCwwLDAsMCwzLjguMzQzaDQuOWEyOS45NjUsMjkuOTY1LDAsMCwxLDUuNi40NDFjMi4wNS41MzksMy40NSwxLjQ3LDQuMSwyLjc5M2E2LjM2LDYuMzYsMCwwLDEsLjQ1LDMuMzgxLDYuOTA4LDYuOTA4LDAsMCwxLTEuNzUsMy41NzcsOC45NTIsOC45NTIsMCwwLDEtNS43NSwyLjYsMzcuMiwzNy4yLDAsMCwxLTUuMy4yNDVIMjA3LjJabS0yMi43NS0xNS45NzMtMi4zLDE2LjAyMmgtNi4ybDMuMi0yMS44aDguMzVsOS43NSwxNi4yNjcsMi40LTE2LjI2N2g2LjJsLTMuMiwyMS44aC04bC0xMC4yLTE2LjAyMlpNMTU4LjEsMzQ1LjZoLTEuMTVhMjQuNTEzLDI0LjUxMywwLDAsMS04LjgtMS4zNzIsNy45LDcuOSwwLDAsMS00LjQ1LTMuNTc3LDkuMjc5LDkuMjc5LDAsMCwxLS44LTUuOTI5Yy42LTQuMTY1LDIuNS03LjE1NCw1LjctOC44NjksMi4zLTEuMzcyLDUuNS0yLjEwNyw5LjUtMi4yNTRoMS42YTI3LjAzLDI3LjAzLDAsMCwxLDcuOSwxLjAyOSw4LjEsOC4xLDAsMCwxLDUuMDUsNC41MDgsMTEuMjM3LDExLjIzNywwLDAsMSwuNDUsNS43MzMsMTAuNiwxMC42LDAsMCwxLTIuNCw1LjczMywxMi4yMzMsMTIuMjMzLDAsMCwxLTYuNjUsNC4wNjcsMjIuMjE3LDIyLjIxNywwLDAsMS01Ljk1LjkzMVptMC0xOC4zMjVhOS4yMTQsOS4yMTQsMCwwLDAtNS43LDIuMTA3LDguNDc5LDguNDc5LDAsMCwwLTIuMyw1LjE5NGMtLjM1LDIuNSwwLDQuNDU5LDEuMTUsNS42MzUsMS4wNSwxLjEyNywzLDEuNzE1LDUuNzUsMS43MTVoMS4wNWExMC4xMTcsMTAuMTE3LDAsMCwwLDUuMTUtMS43MTUsOC40NzEsOC40NzEsMCwwLDAsMi43NS01LjU4NmMuMzUtMi4zNTIuMS00LjA2Ny0uOC01LjI5Mi0xLTEuMzcyLTMtMi4xMDctNi4wNS0yLjEwN0E2LjUwNiw2LjUwNiwwLDAsMSwxNTguMSwzMjcuMjc1WiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTExMS4yIC0zMjMuNikiIGZpbGw9IiNiY2M0ZDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPgogIDxwYXRoIGQ9Ik00NTkuMTUsMzUxLjJhNC4xNSw0LjE1LDAsMSwxLTQuMTUsNC4xNSw0LjE0LDQuMTQsMCwwLDEsNC4xNS00LjE1Wm0tMS45NSw2LjdoLjY1di0yLjI1SDQ1OWMuMS4wNS4yLjA1LjMuMTVhMi4yNTYsMi4yNTYsMCwwLDEsLjM1LjM1LDUuMjIxLDUuMjIxLDAsMCwxLC41LjdsLjY1LDEuMDVoLjg1bC0uOS0xLjRhOC41NDQsOC41NDQsMCwwLDAtLjU1LS43LDIuOCwyLjgsMCwwLDAtLjQtLjI1LDEuNzIsMS43MiwwLDAsMCwxLjEtLjQ1LDEuNCwxLjQsMCwwLDAsLjE1LTEuNjUsMS4zLDEuMywwLDAsMC0uNTUtLjUsMi45MjEsMi45MjEsMCwwLDAtMS4wNS0uMTVINDU3LjJ2NS4xWm0uNjUtMi44aDEuNDVhMi4zMTgsMi4zMTgsMCwwLDAsLjctLjEuNzc4Ljc3OCwwLDAsMCwuNC0uMy44MDYuODA2LDAsMCwwLC4xNS0uNDUuODI4LjgyOCwwLDAsMC0uMjUtLjYsMS4yMjksMS4yMjksMCwwLDAtLjg1LS4yNWgtMS42djEuN1ptMS4zLTMuMzVhMy42NSwzLjY1LDAsMSwwLDMuNjUsMy42NUEzLjY3MSwzLjY3MSwwLDAsMCw0NTkuMTUsMzUxLjc1WiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI4My4wOTggLTMzNy44NSkiIGZpbGw9IiNiY2M0ZDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPgo8L3N2Zz4K", mr = ["innerHTML"], fr = ["innerHTML"], Er = /* @__PURE__ */ ne({
|
|
11464
11479
|
__name: "GLoginFooter",
|
|
11465
11480
|
props: {
|
|
11466
11481
|
copyrightInfoEng: { default: "Copyright 2023 All Rights Reserved. " },
|
|
@@ -11479,8 +11494,8 @@ const na = /* @__PURE__ */ nt(ir, [["__scopeId", "data-v-75fdffa5"]]), Tc = /* @
|
|
|
11479
11494
|
ee("div", {
|
|
11480
11495
|
class: H(`${e}--copyright`)
|
|
11481
11496
|
}, [
|
|
11482
|
-
ee("div", { innerHTML: t.copyrightInfoEng }, null, 8,
|
|
11483
|
-
ee("div", { innerHTML: t.copyrightInfoCN }, null, 8,
|
|
11497
|
+
ee("div", { innerHTML: t.copyrightInfoEng }, null, 8, mr),
|
|
11498
|
+
ee("div", { innerHTML: t.copyrightInfoCN }, null, 8, fr)
|
|
11484
11499
|
], 2)
|
|
11485
11500
|
], 2));
|
|
11486
11501
|
}
|
|
@@ -11560,7 +11575,7 @@ function yc(u) {
|
|
|
11560
11575
|
}
|
|
11561
11576
|
const { i18n: Ac } = je({
|
|
11562
11577
|
project: "venus"
|
|
11563
|
-
}),
|
|
11578
|
+
}), mc = {
|
|
11564
11579
|
install: kr
|
|
11565
11580
|
};
|
|
11566
11581
|
export {
|
|
@@ -11604,7 +11619,7 @@ export {
|
|
|
11604
11619
|
Tc as NotFound,
|
|
11605
11620
|
Tn as PREFIX,
|
|
11606
11621
|
jc as PROJECT_PREFIX,
|
|
11607
|
-
|
|
11622
|
+
mn as RequestHttp,
|
|
11608
11623
|
lu as SESSION_FORM_DATA_CACHE,
|
|
11609
11624
|
yn as StorageUtils,
|
|
11610
11625
|
Yo as TOKEN_EXPIRED_TIME,
|
|
@@ -11620,7 +11635,7 @@ export {
|
|
|
11620
11635
|
IM as commonTableClass,
|
|
11621
11636
|
sM as configHttp,
|
|
11622
11637
|
En as deepCompareObjects,
|
|
11623
|
-
|
|
11638
|
+
mc as default,
|
|
11624
11639
|
lc as dialogClass,
|
|
11625
11640
|
Ru as dialogPluginClass,
|
|
11626
11641
|
Pu as downloadFile,
|
|
@@ -11643,7 +11658,7 @@ export {
|
|
|
11643
11658
|
tu as initFormModel,
|
|
11644
11659
|
aM as initTableColumns,
|
|
11645
11660
|
MM as initTableDisplayColumns,
|
|
11646
|
-
|
|
11661
|
+
fn as initTreeSelectorData,
|
|
11647
11662
|
It as is,
|
|
11648
11663
|
Et as isArray,
|
|
11649
11664
|
tc as isAsyncFunction,
|
|
@@ -11652,7 +11667,7 @@ export {
|
|
|
11652
11667
|
Xr as isDate,
|
|
11653
11668
|
Ra as isDef,
|
|
11654
11669
|
ac as isElement,
|
|
11655
|
-
|
|
11670
|
+
mu as isFormVoid,
|
|
11656
11671
|
St as isFunction,
|
|
11657
11672
|
tt as isNull,
|
|
11658
11673
|
ic as isNullAndUnDef,
|
|
@@ -11671,9 +11686,9 @@ export {
|
|
|
11671
11686
|
De as localStorageUtils,
|
|
11672
11687
|
eu as nanoid,
|
|
11673
11688
|
Tt as resolveUrl,
|
|
11674
|
-
|
|
11689
|
+
mt as sessionStorageUtils,
|
|
11675
11690
|
yc as setupStore,
|
|
11676
|
-
|
|
11691
|
+
mM as tabClass,
|
|
11677
11692
|
Pt as tableClass,
|
|
11678
11693
|
cu as uploaderClass,
|
|
11679
11694
|
jn as urlToPath,
|