@unizhen/ui 0.1.106 → 0.1.108
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/lib/ui.js +281 -287
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -5425,50 +5425,44 @@ var xm = /*#__PURE__*/ W(hm, [["render", bm]]), Sm = /* @__PURE__ */ new WeakMap
|
|
|
5425
5425
|
}
|
|
5426
5426
|
}), wm = { class: "uz-flex uz-justify-between uz-gap-2" }, Tm = {
|
|
5427
5427
|
key: 0,
|
|
5428
|
-
class: "uz-flex uz-items-start uz-justify-between uz-gap-
|
|
5429
|
-
}, Em = { class: "uz-flex-1" },
|
|
5428
|
+
class: "uz-flex uz-items-start uz-justify-between uz-gap-2 uz-w-full"
|
|
5429
|
+
}, Em = { key: 0 }, Dm = { class: "uz-flex-1" }, Om = {
|
|
5430
5430
|
key: 1,
|
|
5431
5431
|
class: "uz-flex uz-gap-2 uz-flex-1"
|
|
5432
|
-
},
|
|
5432
|
+
}, km = {
|
|
5433
5433
|
key: 0,
|
|
5434
5434
|
class: "uz-search-fields-collapse"
|
|
5435
5435
|
};
|
|
5436
|
-
function
|
|
5436
|
+
function Am(n, s, c, d, f, p) {
|
|
5437
5437
|
let m = O("NButton"), h = O("NButtonGroup"), g = O("NGridItem"), v = O("NInputGroupLabel"), y = O("NPopover"), b = O("UzFormItem"), x = O("NInputGroup"), C = O("NGrid"), w = O("CaretDown"), T = O("NIcon"), ee = O("Search"), te = O("Refresh"), j = k("media");
|
|
5438
5438
|
return S(), a("div", {
|
|
5439
5439
|
class: "uz-search-bar uz-flex uz-flex-col uz-w-full",
|
|
5440
5440
|
onKeyup: s[1] ||= I((e) => n.doSearch(!1), ["enter"])
|
|
5441
|
-
}, [o("div", wm, [n.enableHeader ? (S(), a("div", Tm, [
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
n.tabList && n.tabList.length > 0 ? (S(), r(g, {
|
|
5450
|
-
key: 0,
|
|
5451
|
-
span: n.gridSpan
|
|
5441
|
+
}, [o("div", wm, [n.enableHeader ? (S(), a("div", Tm, [
|
|
5442
|
+
D(n.$slots, "header"),
|
|
5443
|
+
n.tabList && n.tabList.length > 0 ? (S(), a("div", Em, [u(h, null, {
|
|
5444
|
+
default: P(() => [(S(!0), a(e, null, E(n.tabList, (e) => (S(), r(m, {
|
|
5445
|
+
key: e.value,
|
|
5446
|
+
type: n.tabButtonType(e),
|
|
5447
|
+
secondary: "",
|
|
5448
|
+
onClick: (t) => n.tabItemChange(e.value)
|
|
5452
5449
|
}, {
|
|
5453
|
-
default: P(() => [
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
n.offset > -1 ? (S(), r(g, {
|
|
5468
|
-
key: 1,
|
|
5450
|
+
default: P(() => [l(A(e.label), 1)]),
|
|
5451
|
+
_: 2
|
|
5452
|
+
}, 1032, ["type", "onClick"]))), 128))]),
|
|
5453
|
+
_: 1
|
|
5454
|
+
})])) : i("", !0),
|
|
5455
|
+
F((S(), a("div", Dm, [u(C, {
|
|
5456
|
+
"x-gap": "8",
|
|
5457
|
+
"y-gap": "8",
|
|
5458
|
+
cols: n.cols,
|
|
5459
|
+
"collapsed-rows": 1,
|
|
5460
|
+
collapsed: !0
|
|
5461
|
+
}, {
|
|
5462
|
+
default: P(() => [n.offset > -1 ? (S(), r(g, {
|
|
5463
|
+
key: 0,
|
|
5469
5464
|
offset: n.offset
|
|
5470
|
-
}, null, 8, ["offset"])) : i("", !0),
|
|
5471
|
-
n.collapsed ? (S(!0), a(e, { key: 2 }, E(n.itemData, (e, t) => (S(), r(g, {
|
|
5465
|
+
}, null, 8, ["offset"])) : i("", !0), n.collapsed ? (S(!0), a(e, { key: 1 }, E(n.itemData, (e, t) => (S(), r(g, {
|
|
5472
5466
|
key: `${t}_${Date.now()}`,
|
|
5473
5467
|
span: e.search.show ? e.search.span === 1 ? n.gridSpan : e.search.span || n.gridSpan : 0
|
|
5474
5468
|
}, {
|
|
@@ -5492,13 +5486,13 @@ function km(n, s, c, d, f, p) {
|
|
|
5492
5486
|
_: 2
|
|
5493
5487
|
}, 1024)]),
|
|
5494
5488
|
_: 2
|
|
5495
|
-
}, 1032, ["span"]))), 128)) : i("", !0)
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5489
|
+
}, 1032, ["span"]))), 128)) : i("", !0)]),
|
|
5490
|
+
_: 1
|
|
5491
|
+
}, 8, ["cols"])])), [[j]])
|
|
5492
|
+
])) : i("", !0), n.enableHeader ? (S(), a("div", Om, [
|
|
5499
5493
|
n.more ? (S(), r(m, {
|
|
5500
5494
|
key: 0,
|
|
5501
|
-
|
|
5495
|
+
secondary: "",
|
|
5502
5496
|
onClick: n.showMore
|
|
5503
5497
|
}, {
|
|
5504
5498
|
icon: P(() => [u(T, { class: _(["uz-search-more", n.collapsed ? void 0 : "uz-search-rotate"]) }, {
|
|
@@ -5545,7 +5539,7 @@ function km(n, s, c, d, f, p) {
|
|
|
5545
5539
|
})) : i("", !0),
|
|
5546
5540
|
D(n.$slots, "action")
|
|
5547
5541
|
])) : i("", !0)]), u(t, { name: "uz-search-fields" }, {
|
|
5548
|
-
default: P(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (S(), a("div",
|
|
5542
|
+
default: P(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (S(), a("div", km, [u(C, {
|
|
5549
5543
|
"x-gap": "8",
|
|
5550
5544
|
"y-gap": "8",
|
|
5551
5545
|
cols: 4
|
|
@@ -5580,7 +5574,7 @@ function km(n, s, c, d, f, p) {
|
|
|
5580
5574
|
_: 1
|
|
5581
5575
|
})], 32);
|
|
5582
5576
|
}
|
|
5583
|
-
var
|
|
5577
|
+
var jm = /*#__PURE__*/ W(Cm, [["render", Am]]), Mm = f({
|
|
5584
5578
|
name: "UzSearchMobileBar",
|
|
5585
5579
|
components: {
|
|
5586
5580
|
NIcon: V,
|
|
@@ -5671,10 +5665,10 @@ var Am = /*#__PURE__*/ W(Cm, [["render", km]]), jm = f({
|
|
|
5671
5665
|
clearAll: l
|
|
5672
5666
|
};
|
|
5673
5667
|
}
|
|
5674
|
-
}),
|
|
5675
|
-
function
|
|
5668
|
+
}), Nm = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, Pm = { class: "uz-flex uz-gap-2" }, Fm = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
|
|
5669
|
+
function Im(t, n, s, c, d, f) {
|
|
5676
5670
|
let p = O("Search"), m = O("NIcon"), h = O("NButton"), g = O("NInputGroupLabel"), _ = O("UzFormItem"), v = O("NInputGroup"), y = O("NGridItem"), b = O("NGrid"), x = O("Refresh"), C = O("NDrawerContent"), w = O("NDrawer");
|
|
5677
|
-
return S(), a(e, null, [o("div",
|
|
5671
|
+
return S(), a(e, null, [o("div", Nm, [D(t.$slots, "header"), o("div", Pm, [t.itemData && Object.keys(t.itemData).length > 0 ? (S(), r(h, {
|
|
5678
5672
|
key: 0,
|
|
5679
5673
|
secondary: "",
|
|
5680
5674
|
onClick: n[0] ||= (e) => t.drawer = !0
|
|
@@ -5699,7 +5693,7 @@ function Fm(t, n, s, c, d, f) {
|
|
|
5699
5693
|
title: "查询",
|
|
5700
5694
|
closable: ""
|
|
5701
5695
|
}, {
|
|
5702
|
-
footer: P(() => [o("div",
|
|
5696
|
+
footer: P(() => [o("div", Fm, [u(h, {
|
|
5703
5697
|
secondary: "",
|
|
5704
5698
|
loading: t.loading,
|
|
5705
5699
|
onClick: t.clearAll,
|
|
@@ -5754,7 +5748,7 @@ function Fm(t, n, s, c, d, f) {
|
|
|
5754
5748
|
_: 1
|
|
5755
5749
|
}, 8, ["show"])], 64);
|
|
5756
5750
|
}
|
|
5757
|
-
var
|
|
5751
|
+
var Lm = /*#__PURE__*/ W(Mm, [["render", Im]]), Rm = /(?<=\[)(.+?)(?=\])/g, zm = {
|
|
5758
5752
|
index: 1,
|
|
5759
5753
|
selection: 0,
|
|
5760
5754
|
pagination: 1,
|
|
@@ -5772,10 +5766,10 @@ var Im = /*#__PURE__*/ W(jm, [["render", Fm]]), Lm = /(?<=\[)(.+?)(?=\])/g, Rm =
|
|
|
5772
5766
|
placement: "right",
|
|
5773
5767
|
summary: ""
|
|
5774
5768
|
};
|
|
5775
|
-
function
|
|
5769
|
+
function Bm(e) {
|
|
5776
5770
|
return Function("return " + e)();
|
|
5777
5771
|
}
|
|
5778
|
-
var
|
|
5772
|
+
var Vm = () => new Promise((e) => {
|
|
5779
5773
|
let t = window.localStorage.getItem("city");
|
|
5780
5774
|
if (t) e(JSON.parse(t));
|
|
5781
5775
|
else {
|
|
@@ -5788,9 +5782,9 @@ var Bm = () => new Promise((e) => {
|
|
|
5788
5782
|
t && (clearInterval(i), e(JSON.parse(t)));
|
|
5789
5783
|
}, 500);
|
|
5790
5784
|
}
|
|
5791
|
-
}),
|
|
5785
|
+
}), Hm = async (e, t, n) => {
|
|
5792
5786
|
if (t && typeof t == "string") {
|
|
5793
|
-
let r = t.match(
|
|
5787
|
+
let r = t.match(Rm);
|
|
5794
5788
|
if (r && t.indexOf("return") === -1) {
|
|
5795
5789
|
let t = r[0].split(":");
|
|
5796
5790
|
if (t[0] === "date") return (t) => fd(t[e], r[0].replace("date:", "") || "YYYY-MM-DD");
|
|
@@ -5811,7 +5805,7 @@ var Bm = () => new Promise((e) => {
|
|
|
5811
5805
|
}
|
|
5812
5806
|
}
|
|
5813
5807
|
return t && typeof t == "function" ? (e, n) => t(e, n, p) : "";
|
|
5814
|
-
},
|
|
5808
|
+
}, Um = (e, t, n) => {
|
|
5815
5809
|
let r = t.map((t) => {
|
|
5816
5810
|
let r = [], i = t.id;
|
|
5817
5811
|
return e.input === "select" && (e.params.labelKeys || e.search.labelKeys) ? ((e.params.labelKeys || e.search.labelKeys || "").split(",").forEach((e) => {
|
|
@@ -5824,35 +5818,35 @@ var Bm = () => new Promise((e) => {
|
|
|
5824
5818
|
};
|
|
5825
5819
|
});
|
|
5826
5820
|
return r.sort((e, t) => Number(e.disabled) - Number(t.disabled)), r;
|
|
5827
|
-
},
|
|
5828
|
-
function
|
|
5829
|
-
|
|
5821
|
+
}, Wm = /* @__PURE__ */ new Map();
|
|
5822
|
+
function Gm() {
|
|
5823
|
+
Wm.clear();
|
|
5830
5824
|
}
|
|
5831
|
-
async function
|
|
5825
|
+
async function Km(e, t = !1) {
|
|
5832
5826
|
let n = e.split("."), r = !1;
|
|
5833
|
-
return n.length > 1 && (
|
|
5827
|
+
return n.length > 1 && (Wm.has(n[0]) && !t ? r = U(Wm.get(n[0])) : (r = await bf({ tableId: n[0] }), Wm.set(n[0], r))), {
|
|
5834
5828
|
sourceData: r,
|
|
5835
5829
|
n
|
|
5836
5830
|
};
|
|
5837
5831
|
}
|
|
5838
|
-
async function
|
|
5832
|
+
async function qm(e) {
|
|
5839
5833
|
return new Promise((t, n) => {
|
|
5840
5834
|
let r = X(`dynamicTable_${e}`, !1);
|
|
5841
|
-
r &&
|
|
5835
|
+
r && Wm.has(`dynamicTable_${e}`) ? t(r) : yf(e, r ? r.createTime : null).then((n) => {
|
|
5842
5836
|
if (n) {
|
|
5843
5837
|
let r = {
|
|
5844
5838
|
createTime: n.createTime,
|
|
5845
5839
|
tableTitle: n.tableTitle,
|
|
5846
5840
|
viewJson: n.viewJson
|
|
5847
5841
|
};
|
|
5848
|
-
Y(`dynamicTable_${e}`, r, 0),
|
|
5849
|
-
} else
|
|
5842
|
+
Y(`dynamicTable_${e}`, r, 0), Wm.set(`dynamicTable_${e}`, !0), cd("tables_"), t(n);
|
|
5843
|
+
} else Wm.set(`dynamicTable_${e}`, !0), t(r);
|
|
5850
5844
|
}).catch(() => {
|
|
5851
5845
|
n();
|
|
5852
5846
|
});
|
|
5853
5847
|
});
|
|
5854
5848
|
}
|
|
5855
|
-
var
|
|
5849
|
+
var Jm = (e) => e.map((e) => {
|
|
5856
5850
|
let t = {};
|
|
5857
5851
|
return t.z = e.params.placeholder, e.input === "group" ? t.n = e.params.children : t.c = +!!e.params.clearable, e.input === "input" && (e.params.type && (t.t = e.params.type), e.params.minlength && (t.i = e.params.minlength), e.params.maxlength && (t.a = e.params.maxlength), e.params.rows && (t.r = e.params.rows), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "auto" && (t.o = e.params.options, e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "number" && (t.b = +!!e.params.showButton, e.params.min && (t.i = e.params.min), e.params.max && (t.a = e.params.max), e.params.minKey && (t.x = e.params.minKey), e.params.maxKey && (t.y = e.params.maxKey), e.params.step && (t.t = e.params.step), e.params.precision && (t.p = e.params.precision), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "date" && (t.y = e.params.type, e.params.format && (t.f = e.params.format), e.params.isDateDisabled && (t.d = e.params.isDateDisabled), e.params.timePickerProps && (t.t = e.params.timePickerProps)), e.input === "select" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple, t.t = +!!e.params.tag, t.l = (e.params.labelKeys || "").replace(/\s*/g, ""), t.v = (e.params.valueKey || "").replace(/\s*/g, ""), t.r = e.params.renderLabel, t.g = e.params.renderTag), e.input === "cascader" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple), e.input === "checkbox" && (t.o = e.params.options), e.input === "time" && (t.f = e.params.format), e.input === "upload" && (t.s = +!!e.params.small, t.a = e.params.accept, t.m = e.params.max), e.input === "switch" && (t.h = e.params.checked, t.u = e.params.unchecked), e.input === "divider" && (t.p = e.params.placement), e.input === "filling" && (t.k = e.params.parentKey), e.input === "subTable" && (t.i = +!!e.params.init, t.q = +!!e.params.quest, t.k = e.params.searchKey, t.l = e.params.link, t.c = e.params.columns, t.a = e.params.actions, t.b = +!!e.params.addButton, t.g = +!!e.params.draggable, t.h = +!!e.params.childActions, t.x = +!!e.params.expandable, t.n = +!!e.params.showActions, t.d = +!!e.params.showDelete, e.params.optionsType && (t.t = e.params.optionsType), e.params.optionsSource && (t.u = e.params.optionsSource), e.params.options && (t.o = e.params.options), e.params.summary && (t.s = e.params.summary), e.params.merge && (t.m = e.params.merge), e.params.deleteFn && (t.f = e.params.deleteFn)), {
|
|
5858
5852
|
i: e.input,
|
|
@@ -5927,7 +5921,7 @@ var qm = (e) => e.map((e) => {
|
|
|
5927
5921
|
p: { s: +!!e.form.expand.show }
|
|
5928
5922
|
}
|
|
5929
5923
|
};
|
|
5930
|
-
}),
|
|
5924
|
+
}), Ym = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
|
|
5931
5925
|
let t = {};
|
|
5932
5926
|
return t.placeholder = e.p.z, e.i === "group" ? t.children = e.p.n : t.clearable = !!e.p.c, e.i === "input" && (e.p.t && (t.type = e.p.t), e.p.i && (t.minlength = e.p.i), e.p.a && (t.maxlength = e.p.a), e.p.r && (t.rows = e.p.r), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "auto" && (t.options = e.p.o, e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "number" && (t.showButton = !!e.p.b, e.p.i && (t.min = e.p.i), e.p.a && (t.max = e.p.a), e.p.x && (t.minKey = e.p.x), e.p.y && (t.maxKey = e.p.y), e.p.t && (t.step = e.p.t), e.p.p && (t.precision = e.p.p), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "date" && (t.type = e.p.y, e.p.f && (t.format = e.p.f), e.p.d && (t.isDateDisabled = e.p.d), e.p.t && (t.timePickerProps = e.p.t)), e.i === "select" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m, t.tag = !!e.p.t, t.labelKeys = e.p.l, t.valueKey = e.p.v, t.renderLabel = e.p.r, t.renderTag = e.p.g), e.i === "cascader" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m), e.i === "checkbox" && (t.options = e.p.o), e.i === "time" && (t.format = e.p.f), e.i === "upload" && (t.small = !!e.p.s, t.accept = e.p.a, t.max = e.p.m), e.i === "switch" && (t.checked = e.p.h, t.unchecked = e.p.u), e.i === "divider" && (t.placement = e.p.p), e.i === "filling" && (t.parentKey = e.p.k), e.i === "subTable" && (t.init = !!e.p.i, t.quest = !!e.p.q, t.searchKey = e.p.k, t.link = e.p.l, t.columns = e.p.c, t.actions = e.p.a, t.addButton = !!e.p.b, t.draggable = !!e.p.g, t.childActions = !!e.p.h, t.showActions = !!e.p.n, t.showDelete = !!(e.p.d ?? !0), t.expandable = !!e.p.x, e.p.t && (t.optionsType = e.p.t), e.p.u && (t.optionsSource = e.p.u), e.p.o && (t.options = e.p.o), e.p.s && (t.summary = e.p.s), e.p.m && (t.merge = e.p.m), e.p.f && (t.deleteFn = e.p.f)), {
|
|
5933
5927
|
input: e.i,
|
|
@@ -6002,12 +5996,12 @@ var qm = (e) => e.map((e) => {
|
|
|
6002
5996
|
expand: { show: e.f && e.f.p ? !!e.f.p.s : !0 }
|
|
6003
5997
|
}
|
|
6004
5998
|
};
|
|
6005
|
-
}),
|
|
5999
|
+
}), Xm = (e) => ({
|
|
6006
6000
|
f: e.fetch,
|
|
6007
6001
|
n: e.fetchFn,
|
|
6008
6002
|
o: e.when_drawer_open,
|
|
6009
6003
|
b: e.when_before_save
|
|
6010
|
-
}),
|
|
6004
|
+
}), Zm = (e) => e ? e.fetch ? e : {
|
|
6011
6005
|
fetch: e.f,
|
|
6012
6006
|
fetchFn: e.n,
|
|
6013
6007
|
when_drawer_open: e.o,
|
|
@@ -6017,7 +6011,7 @@ var qm = (e) => e.map((e) => {
|
|
|
6017
6011
|
fetchFn: "",
|
|
6018
6012
|
when_drawer_open: "",
|
|
6019
6013
|
when_before_save: ""
|
|
6020
|
-
},
|
|
6014
|
+
}, Qm = (e) => ({
|
|
6021
6015
|
i: e.index,
|
|
6022
6016
|
s: e.selection,
|
|
6023
6017
|
p: e.pagination,
|
|
@@ -6033,7 +6027,7 @@ var qm = (e) => e.map((e) => {
|
|
|
6033
6027
|
h: e.drawerHeight,
|
|
6034
6028
|
l: e.placement,
|
|
6035
6029
|
r: e.summary
|
|
6036
|
-
}),
|
|
6030
|
+
}), $m = (e) => {
|
|
6037
6031
|
let t = {};
|
|
6038
6032
|
return e && (t = e.index !== void 0 || e.selection !== void 0 || e.pagination !== void 0 || e.cache !== void 0 || e.draggable !== void 0 || e.addButton !== void 0 || e.filterButton !== void 0 || e.commonTime !== void 0 || e.asynchronous !== void 0 || e.filePort !== void 0 || e.actionWidth !== void 0 || e.drawerWidth !== void 0 || e.drawerHeight !== void 0 || e.placement !== void 0 || e.summary !== void 0 ? e : {
|
|
6039
6033
|
index: e.i,
|
|
@@ -6051,9 +6045,9 @@ var qm = (e) => e.map((e) => {
|
|
|
6051
6045
|
drawerHeight: e.h,
|
|
6052
6046
|
placement: e.l,
|
|
6053
6047
|
summary: e.r
|
|
6054
|
-
}), Object.assign({},
|
|
6048
|
+
}), Object.assign({}, zm, U(t));
|
|
6055
6049
|
};
|
|
6056
|
-
function
|
|
6050
|
+
function eh(e, t, n, r) {
|
|
6057
6051
|
return new Promise(async (i, a) => {
|
|
6058
6052
|
let o = [], s = {}, c = {}, l = {}, u = [], d = [], f = U(e), p = [];
|
|
6059
6053
|
for (let e of f) e.input === "group" ? p.push(...e.params.children) : p.push(e);
|
|
@@ -6088,21 +6082,21 @@ function $m(e, t, n, r) {
|
|
|
6088
6082
|
disabled: !0
|
|
6089
6083
|
}];
|
|
6090
6084
|
if (e.params.immediately || r) {
|
|
6091
|
-
let { sourceData: t, n: r } = await
|
|
6085
|
+
let { sourceData: t, n: r } = await Km(e.source);
|
|
6092
6086
|
if (t && Array.isArray(t)) {
|
|
6093
6087
|
if (e.sourceFn) {
|
|
6094
6088
|
let r = e.sourceFn;
|
|
6095
6089
|
n = Function("sourceData", r)(t);
|
|
6096
|
-
} else n =
|
|
6090
|
+
} else n = Um(e, t, r);
|
|
6097
6091
|
}
|
|
6098
6092
|
} else e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
|
|
6099
|
-
let { sourceData: t, n } = await
|
|
6093
|
+
let { sourceData: t, n } = await Km(e.source);
|
|
6100
6094
|
if (t && Array.isArray(t)) {
|
|
6101
6095
|
if (e.sourceFn) {
|
|
6102
6096
|
let n = e.sourceFn;
|
|
6103
6097
|
return Function("sourceData", n)(t);
|
|
6104
6098
|
}
|
|
6105
|
-
return
|
|
6099
|
+
return Um(e, t, n);
|
|
6106
6100
|
}
|
|
6107
6101
|
};
|
|
6108
6102
|
if (e.params.options = n, e.form.backfill && t) {
|
|
@@ -6136,27 +6130,27 @@ function $m(e, t, n, r) {
|
|
|
6136
6130
|
J(e);
|
|
6137
6131
|
}
|
|
6138
6132
|
if (e.input === "cascader" && e.table.render === "[city]") {
|
|
6139
|
-
let t = await
|
|
6133
|
+
let t = await Vm();
|
|
6140
6134
|
e.params.options = t;
|
|
6141
6135
|
}
|
|
6142
6136
|
if (e.input === "subTable" && e.params.link) {
|
|
6143
|
-
let t = await
|
|
6137
|
+
let t = await qm(e.params.link).catch(() => {
|
|
6144
6138
|
a();
|
|
6145
6139
|
});
|
|
6146
6140
|
if (t) try {
|
|
6147
6141
|
let n = rt.parse(t.viewJson);
|
|
6148
6142
|
n.suffix && (e._suffix = Hf(n.suffix));
|
|
6149
|
-
let r =
|
|
6143
|
+
let r = Ym(n.table);
|
|
6150
6144
|
r.forEach((e) => {
|
|
6151
6145
|
e.table.sorter = !1;
|
|
6152
6146
|
});
|
|
6153
6147
|
let i = r.filter((e) => e.input === "subTable");
|
|
6154
6148
|
if (i) for await (let e of i) {
|
|
6155
|
-
let t = await
|
|
6149
|
+
let t = await qm(e.params.link).catch(() => {
|
|
6156
6150
|
a();
|
|
6157
6151
|
});
|
|
6158
6152
|
if (t) try {
|
|
6159
|
-
let n = rt.parse(t.viewJson), r =
|
|
6153
|
+
let n = rt.parse(t.viewJson), r = Ym(n.table);
|
|
6160
6154
|
r.forEach((e) => {
|
|
6161
6155
|
e.table.sorter = !1;
|
|
6162
6156
|
}), e.params.columns = r, e.params.actions = n.action;
|
|
@@ -6190,7 +6184,7 @@ function $m(e, t, n, r) {
|
|
|
6190
6184
|
});
|
|
6191
6185
|
});
|
|
6192
6186
|
}
|
|
6193
|
-
async function
|
|
6187
|
+
async function th(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
6194
6188
|
let s = 0, c = [], l = [], u = {
|
|
6195
6189
|
key: "",
|
|
6196
6190
|
link: "",
|
|
@@ -6205,25 +6199,25 @@ async function eh(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
6205
6199
|
for await (let [e, s] of m.entries()) {
|
|
6206
6200
|
if (s.source && !s.table.render && (s.input === "select" || s.input === "cascader")) {
|
|
6207
6201
|
if (s.table.render = (e) => e[`${s.key}Str`], t || s.params.immediately || s.search.defaultValue) {
|
|
6208
|
-
let { sourceData: t, n } = await
|
|
6202
|
+
let { sourceData: t, n } = await Km(s.source, a && e === 0);
|
|
6209
6203
|
if (t && Array.isArray(t)) {
|
|
6210
6204
|
if (s.sourceFn) {
|
|
6211
6205
|
let e = s.sourceFn, n = Function("sourceData", e);
|
|
6212
6206
|
s.params.options = n(t);
|
|
6213
|
-
} else s.params.options =
|
|
6207
|
+
} else s.params.options = Um(s, t, n);
|
|
6214
6208
|
}
|
|
6215
6209
|
} else s.params.options = [{
|
|
6216
6210
|
label: "加载中......",
|
|
6217
6211
|
value: "loading",
|
|
6218
6212
|
disabled: !0
|
|
6219
6213
|
}], s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
6220
|
-
let { sourceData: e, n: t } = await
|
|
6214
|
+
let { sourceData: e, n: t } = await Km(s.source);
|
|
6221
6215
|
if (e && Array.isArray(e)) {
|
|
6222
6216
|
if (s.sourceFn) {
|
|
6223
6217
|
let t = s.sourceFn;
|
|
6224
6218
|
return Function("sourceData", t)(e);
|
|
6225
6219
|
}
|
|
6226
|
-
return
|
|
6220
|
+
return Um(s, e, t);
|
|
6227
6221
|
}
|
|
6228
6222
|
};
|
|
6229
6223
|
}
|
|
@@ -6246,7 +6240,7 @@ async function eh(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
6246
6240
|
tooltip: !0,
|
|
6247
6241
|
"line-clamp": s.table.clamp ?? 0
|
|
6248
6242
|
} : !1,
|
|
6249
|
-
render: s.table.render ? await
|
|
6243
|
+
render: s.table.render ? await Hm(s.key, s.table.render, i) : void 0,
|
|
6250
6244
|
show: q.isMobile ? s.table.mobile ?? !1 : s.table.show ?? !0,
|
|
6251
6245
|
pin: !!s.table.fixed,
|
|
6252
6246
|
fixTemp: s.table.fixed
|
|
@@ -6281,34 +6275,34 @@ async function eh(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
6281
6275
|
if (s.search.title && (s.label = s.search.title), s.search.source) {
|
|
6282
6276
|
if (s.input = "select", s.params.type = s.search.type, s.params.valueKey = s.search.valueKey, s.params.valueKey = s.search.valueKey, s.search.source === "from-up") s.params.options = s.params.options;
|
|
6283
6277
|
else if (s.params.immediately || s.search.defaultValue) {
|
|
6284
|
-
let { sourceData: e, n: t } = await
|
|
6278
|
+
let { sourceData: e, n: t } = await Km(s.search.source);
|
|
6285
6279
|
if (e && Array.isArray(e)) {
|
|
6286
6280
|
if (s.sourceFn) {
|
|
6287
6281
|
let t = s.sourceFn, n = Function("sourceData", t);
|
|
6288
6282
|
s.params.options = n(e);
|
|
6289
|
-
} else s.params.options =
|
|
6283
|
+
} else s.params.options = Um(s, e, t);
|
|
6290
6284
|
}
|
|
6291
6285
|
} else s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
6292
|
-
let { sourceData: e, n: t } = await
|
|
6286
|
+
let { sourceData: e, n: t } = await Km(s.search.source);
|
|
6293
6287
|
if (e && Array.isArray(e)) {
|
|
6294
6288
|
if (s.sourceFn) {
|
|
6295
6289
|
let t = s.sourceFn;
|
|
6296
6290
|
return Function("sourceData", t)(e);
|
|
6297
6291
|
}
|
|
6298
|
-
return
|
|
6292
|
+
return Um(s, e, t);
|
|
6299
6293
|
}
|
|
6300
6294
|
};
|
|
6301
6295
|
}
|
|
6302
|
-
if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue =
|
|
6296
|
+
if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue = Bm(s.search.defaultValue))), s.search.show) {
|
|
6303
6297
|
let e = U(s);
|
|
6304
6298
|
e.params._async && (e.params._search = !0, e.params._asyncFn = async () => {
|
|
6305
|
-
let { sourceData: t, n } = await
|
|
6299
|
+
let { sourceData: t, n } = await Km(e.source || e.search.source);
|
|
6306
6300
|
if (t && Array.isArray(t)) {
|
|
6307
6301
|
if (e.sourceFn) {
|
|
6308
6302
|
let n = e.sourceFn;
|
|
6309
6303
|
return Function("sourceData", n)(t);
|
|
6310
6304
|
}
|
|
6311
|
-
return
|
|
6305
|
+
return Um(e, t, n);
|
|
6312
6306
|
}
|
|
6313
6307
|
}), c.push({
|
|
6314
6308
|
input: e.input,
|
|
@@ -6362,7 +6356,7 @@ async function eh(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
6362
6356
|
}
|
|
6363
6357
|
//#endregion
|
|
6364
6358
|
//#region components/spin/index.vue?vue&type=script&lang.ts
|
|
6365
|
-
var
|
|
6359
|
+
var nh = f({
|
|
6366
6360
|
name: "UzSpin",
|
|
6367
6361
|
components: {
|
|
6368
6362
|
NButton: R,
|
|
@@ -6408,7 +6402,7 @@ var th = f({
|
|
|
6408
6402
|
});
|
|
6409
6403
|
//#endregion
|
|
6410
6404
|
//#region components/spin/index.vue
|
|
6411
|
-
function
|
|
6405
|
+
function rh(e, t, n, i, a, s) {
|
|
6412
6406
|
let c = O("NEllipsis"), d = O("NButton"), f = O("NSpin");
|
|
6413
6407
|
return S(), r(f, { show: e.value }, {
|
|
6414
6408
|
description: P(() => [
|
|
@@ -6436,7 +6430,7 @@ function nh(e, t, n, i, a, s) {
|
|
|
6436
6430
|
_: 3
|
|
6437
6431
|
}, 8, ["show"]);
|
|
6438
6432
|
}
|
|
6439
|
-
var
|
|
6433
|
+
var ih = /*#__PURE__*/ W(nh, [["render", rh]]), ah = f({
|
|
6440
6434
|
name: "UzTableExpand",
|
|
6441
6435
|
components: {
|
|
6442
6436
|
NDataTable: se,
|
|
@@ -6462,8 +6456,8 @@ var rh = /*#__PURE__*/ W(th, [["render", nh]]), ih = f({
|
|
|
6462
6456
|
} catch (e) {
|
|
6463
6457
|
J(e);
|
|
6464
6458
|
}
|
|
6465
|
-
|
|
6466
|
-
let { tableColumns: r } = await
|
|
6459
|
+
qm(e.data.link).then(async (e) => {
|
|
6460
|
+
let { tableColumns: r } = await th(Ym(rt.parse(e.viewJson).table), !0, 2, () => {}, {}, !1, !0), a = 0, o = r.map((e) => ({
|
|
6467
6461
|
...e,
|
|
6468
6462
|
sorter: !1,
|
|
6469
6463
|
resizable: !1
|
|
@@ -6484,7 +6478,7 @@ var rh = /*#__PURE__*/ W(th, [["render", nh]]), ih = f({
|
|
|
6484
6478
|
});
|
|
6485
6479
|
//#endregion
|
|
6486
6480
|
//#region components/table/components/expand.vue
|
|
6487
|
-
function
|
|
6481
|
+
function oh(e, t, n, i, a, o) {
|
|
6488
6482
|
let s = O("NDataTable");
|
|
6489
6483
|
return S(), r(s, {
|
|
6490
6484
|
columns: e.columns,
|
|
@@ -6503,18 +6497,18 @@ function ah(e, t, n, i, a, o) {
|
|
|
6503
6497
|
"scroll-x"
|
|
6504
6498
|
]);
|
|
6505
6499
|
}
|
|
6506
|
-
var
|
|
6500
|
+
var sh = /*#__PURE__*/ W(ah, [["render", oh]]), ch = f({
|
|
6507
6501
|
components: { NSkeleton: je },
|
|
6508
6502
|
setup() {
|
|
6509
6503
|
return {};
|
|
6510
6504
|
}
|
|
6511
|
-
}),
|
|
6512
|
-
function
|
|
6505
|
+
}), lh = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, uh = { class: "uz-flex uz-justify-between" }, dh = { class: "uz-flex uz-gap-1" };
|
|
6506
|
+
function fh(e, t, n, r, i, s) {
|
|
6513
6507
|
let c = O("NSkeleton");
|
|
6514
|
-
return S(), a("div",
|
|
6508
|
+
return S(), a("div", lh, [o("div", uh, [u(c, {
|
|
6515
6509
|
width: 120,
|
|
6516
6510
|
size: "medium"
|
|
6517
|
-
}), o("div",
|
|
6511
|
+
}), o("div", dh, [
|
|
6518
6512
|
u(c, {
|
|
6519
6513
|
width: 180,
|
|
6520
6514
|
size: "medium"
|
|
@@ -6547,7 +6541,7 @@ function dh(e, t, n, r, i, s) {
|
|
|
6547
6541
|
}
|
|
6548
6542
|
//#endregion
|
|
6549
6543
|
//#region components/table/index.vue?vue&type=script&lang.ts
|
|
6550
|
-
var
|
|
6544
|
+
var ph = f({
|
|
6551
6545
|
name: "UzTable",
|
|
6552
6546
|
components: {
|
|
6553
6547
|
NDataTable: se,
|
|
@@ -6560,10 +6554,10 @@ var fh = f({
|
|
|
6560
6554
|
GridDots: ns,
|
|
6561
6555
|
Plus: fc,
|
|
6562
6556
|
VueDraggable: nt,
|
|
6563
|
-
UzSpin:
|
|
6557
|
+
UzSpin: ih,
|
|
6564
6558
|
UzIcon: Ru,
|
|
6565
|
-
TableExpand:
|
|
6566
|
-
SkeletonLoading: /* @__PURE__ */ W(
|
|
6559
|
+
TableExpand: sh,
|
|
6560
|
+
SkeletonLoading: /* @__PURE__ */ W(ch, [["render", fh]])
|
|
6567
6561
|
},
|
|
6568
6562
|
props: {
|
|
6569
6563
|
id: {
|
|
@@ -6703,7 +6697,7 @@ var fh = f({
|
|
|
6703
6697
|
fetchFn: "",
|
|
6704
6698
|
when_drawer_open: "",
|
|
6705
6699
|
when_before_save: ""
|
|
6706
|
-
}), L = T(
|
|
6700
|
+
}), L = T($m()), ne = T(""), re = T(!1), ie = T([]), z = T([]), ae = m("modules"), oe = (e) => e.id, se = (e, n) => {
|
|
6707
6701
|
t("update:rowKeys", {
|
|
6708
6702
|
keys: e,
|
|
6709
6703
|
rows: U(n)
|
|
@@ -6812,7 +6806,7 @@ var fh = f({
|
|
|
6812
6806
|
width: 180,
|
|
6813
6807
|
render: (e) => [p("div", {}, { default: () => e.updateBy }), p("div", {}, { default: () => fd(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
6814
6808
|
}], be = (t) => a?.remainingDays < 0 && t === "add" ? !0 : !e.ruleFetch || !j.value || j.value && j.value[0] === "*" ? !1 : !j.value?.includes(t), xe = async (e) => {
|
|
6815
|
-
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await
|
|
6809
|
+
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await eh(N.value, e, () => f.value?.getFormValues());
|
|
6816
6810
|
return x.value = t, {
|
|
6817
6811
|
form: t,
|
|
6818
6812
|
fillingDefaultValue: n,
|
|
@@ -6980,8 +6974,8 @@ var fh = f({
|
|
|
6980
6974
|
};
|
|
6981
6975
|
}
|
|
6982
6976
|
}, Te = async () => {
|
|
6983
|
-
re.value = !1,
|
|
6984
|
-
let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await
|
|
6977
|
+
re.value = !1, Gm();
|
|
6978
|
+
let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await th(N.value, e.child, 0, () => ({}), ae);
|
|
6985
6979
|
!l.value && L.value.index && n.unshift({
|
|
6986
6980
|
title: "#",
|
|
6987
6981
|
key: "index",
|
|
@@ -7050,7 +7044,7 @@ var fh = f({
|
|
|
7050
7044
|
filter: "default",
|
|
7051
7045
|
filterOptionValue: null,
|
|
7052
7046
|
renderFilterMenu: () => p("div", { class: "uz-table-filter" }, [p(R, { onClick: ze }, { default: () => s("Common.expand") }), p(R, { onClick: Be }, { default: () => s("Common.contract") })]),
|
|
7053
|
-
renderExpand: (e) => p(
|
|
7047
|
+
renderExpand: (e) => p(sh, {
|
|
7054
7048
|
data: a,
|
|
7055
7049
|
value: e
|
|
7056
7050
|
})
|
|
@@ -7117,13 +7111,13 @@ var fh = f({
|
|
|
7117
7111
|
fetchFn: "",
|
|
7118
7112
|
when_drawer_open: "",
|
|
7119
7113
|
when_before_save: ""
|
|
7120
|
-
}, L.value =
|
|
7114
|
+
}, L.value = $m();
|
|
7121
7115
|
}, Pe = (t) => {
|
|
7122
7116
|
let n = rt.parse(t.viewJson);
|
|
7123
|
-
y.value = t.tableTitle, N.value =
|
|
7117
|
+
y.value = t.tableTitle, N.value = Ym(n.table), P.value = Hf(e.actions || n.action);
|
|
7124
7118
|
let r = Hf(n.suffix || []);
|
|
7125
|
-
F.value = r.filter((e) => e.main).map((e) => (Ie(e), e)), I.value =
|
|
7126
|
-
let i =
|
|
7119
|
+
F.value = r.filter((e) => e.main).map((e) => (Ie(e), e)), I.value = Zm(n.trigger);
|
|
7120
|
+
let i = $m(e.options ?? n.option);
|
|
7127
7121
|
t.tableTitle && i.title && pd(t.tableTitle), L.value = i;
|
|
7128
7122
|
}, Fe = async () => {
|
|
7129
7123
|
v.value = !1, Ne();
|
|
@@ -7141,7 +7135,7 @@ var fh = f({
|
|
|
7141
7135
|
ne.value = s("Notice.network"), re.value = !0;
|
|
7142
7136
|
return;
|
|
7143
7137
|
}
|
|
7144
|
-
De(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], F.value = e.suffixes || [], L.value =
|
|
7138
|
+
De(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], F.value = e.suffixes || [], L.value = $m(e.options), await Te()) : await qm(t).then(async (e) => {
|
|
7145
7139
|
Pe(e), await Te();
|
|
7146
7140
|
}).catch((e) => {
|
|
7147
7141
|
ne.value = e?.message || s("Notice.network"), re.value = !0;
|
|
@@ -7260,14 +7254,14 @@ var fh = f({
|
|
|
7260
7254
|
}
|
|
7261
7255
|
};
|
|
7262
7256
|
}
|
|
7263
|
-
}),
|
|
7257
|
+
}), mh = { class: "uz-com-title" }, hh = {
|
|
7264
7258
|
ref: "mRef",
|
|
7265
7259
|
class: "uz-table-m-content"
|
|
7266
|
-
},
|
|
7260
|
+
}, gh = {
|
|
7267
7261
|
key: 1,
|
|
7268
7262
|
class: "uz-transform-fade-in"
|
|
7269
|
-
},
|
|
7270
|
-
function
|
|
7263
|
+
}, _h = { class: "uz-com-title" }, vh = ["data-index"];
|
|
7264
|
+
function yh(t, n, c, d, f, p) {
|
|
7271
7265
|
let m = O("SkeletonLoading"), h = O("NButton"), g = O("Plus"), y = O("NIcon"), b = O("UzActionButton"), x = O("UzSearchMobileBar"), C = O("UzTableMobile"), w = O("Filter"), T = O("NCheckbox"), k = O("GridDots"), ee = O("VueDraggable"), te = O("NPopover"), M = O("UzTableFile"), N = O("UzSearchBar"), I = O("NDataTable"), L = O("NSpin"), R = O("UzTableDrawer");
|
|
7272
7266
|
return S(), a("div", {
|
|
7273
7267
|
class: "uz-table",
|
|
@@ -7332,7 +7326,7 @@ function vh(t, n, c, d, f, p) {
|
|
|
7332
7326
|
key: "0"
|
|
7333
7327
|
} : {
|
|
7334
7328
|
name: "header",
|
|
7335
|
-
fn: P(() => [o("div",
|
|
7329
|
+
fn: P(() => [o("div", mh, A(t.title), 1)]),
|
|
7336
7330
|
key: "1"
|
|
7337
7331
|
}]), 1032, [
|
|
7338
7332
|
"data",
|
|
@@ -7340,7 +7334,7 @@ function vh(t, n, c, d, f, p) {
|
|
|
7340
7334
|
"cache",
|
|
7341
7335
|
"loading",
|
|
7342
7336
|
"onOnUpdate:value"
|
|
7343
|
-
]), o("div",
|
|
7337
|
+
]), o("div", hh, [u(C, {
|
|
7344
7338
|
tableColumns: t.tableCols,
|
|
7345
7339
|
tableData: t.tableData,
|
|
7346
7340
|
tableQueries: t.tableQueries,
|
|
@@ -7358,7 +7352,7 @@ function vh(t, n, c, d, f, p) {
|
|
|
7358
7352
|
"minH",
|
|
7359
7353
|
"maxH",
|
|
7360
7354
|
"onUpdate:rowKeys"
|
|
7361
|
-
])], 512)], 2)) : (S(), a("div",
|
|
7355
|
+
])], 512)], 2)) : (S(), a("div", gh, [u(N, {
|
|
7362
7356
|
data: t.searchData,
|
|
7363
7357
|
id: t.id || t.route.params.id,
|
|
7364
7358
|
cache: t.tableOption.cache,
|
|
@@ -7413,7 +7407,7 @@ function vh(t, n, c, d, f, p) {
|
|
|
7413
7407
|
_: 1
|
|
7414
7408
|
})]),
|
|
7415
7409
|
_: 1
|
|
7416
|
-
})], 8,
|
|
7410
|
+
})], 8, vh)), [[j, !e.hide]])), 128)), u(h, {
|
|
7417
7411
|
block: "",
|
|
7418
7412
|
tertiary: "",
|
|
7419
7413
|
loading: t.loading,
|
|
@@ -7467,7 +7461,7 @@ function vh(t, n, c, d, f, p) {
|
|
|
7467
7461
|
key: "0"
|
|
7468
7462
|
} : {
|
|
7469
7463
|
name: "header",
|
|
7470
|
-
fn: P(() => [o("div",
|
|
7464
|
+
fn: P(() => [o("div", _h, A(t.title), 1)]),
|
|
7471
7465
|
key: "1"
|
|
7472
7466
|
}]), 1032, [
|
|
7473
7467
|
"data",
|
|
@@ -7528,7 +7522,7 @@ function vh(t, n, c, d, f, p) {
|
|
|
7528
7522
|
u(R, { ref: "drawerRef" }, null, 512)
|
|
7529
7523
|
], 4);
|
|
7530
7524
|
}
|
|
7531
|
-
var
|
|
7525
|
+
var bh = /*#__PURE__*/ W(ph, [["render", yh]]), xh = f({
|
|
7532
7526
|
name: "UzTableChild",
|
|
7533
7527
|
components: {
|
|
7534
7528
|
NSpin: Ne,
|
|
@@ -7558,7 +7552,7 @@ var yh = /*#__PURE__*/ W(fh, [["render", vh]]), bh = f({
|
|
|
7558
7552
|
emits: ["update:value"],
|
|
7559
7553
|
setup(e, { emit: t, expose: r }) {
|
|
7560
7554
|
let i = m("emitSuffix"), a = m("modules"), o = m("mainFormValue"), s = m("childFormReload"), c = n(() => s ? s() : 0), { t: l } = Ze(), u = T(), d = T(), f = T(), h = T(!1), _ = T(!0), v = T([]), b = T({ child: [] }), x = T(""), S = T({}), C = T([]), w = T(void 0), E = async (t, n) => {
|
|
7561
|
-
let { formDefaultValue: r, fillingDefaultArray: i } = await
|
|
7555
|
+
let { formDefaultValue: r, fillingDefaultArray: i } = await eh(U(n ?? e.item.params.columns), t, void 0, !0);
|
|
7562
7556
|
return S.value = r, i;
|
|
7563
7557
|
}, D = async (t) => {
|
|
7564
7558
|
if (h.value) return;
|
|
@@ -7589,7 +7583,7 @@ var yh = /*#__PURE__*/ W(fh, [["render", vh]]), bh = f({
|
|
|
7589
7583
|
});
|
|
7590
7584
|
}, O = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
|
|
7591
7585
|
e.item._suffix && (C.value = e.item._suffix.filter((e) => e.sub)), await E(e.value, t);
|
|
7592
|
-
let { tableColumns: r, tableWidth: i } = await
|
|
7586
|
+
let { tableColumns: r, tableWidth: i } = await th(U(t ?? e.item.params.columns), !0, e.status, () => b.value.child, a, n), s = i;
|
|
7593
7587
|
r.unshift({
|
|
7594
7588
|
title: " ",
|
|
7595
7589
|
key: "index",
|
|
@@ -7765,14 +7759,14 @@ var yh = /*#__PURE__*/ W(fh, [["render", vh]]), bh = f({
|
|
|
7765
7759
|
}
|
|
7766
7760
|
};
|
|
7767
7761
|
}
|
|
7768
|
-
}),
|
|
7762
|
+
}), Sh = { class: "uz-flex-1 uz-w-full" }, Ch = { class: "uz-flex uz-justify-between" }, wh = { class: "uz-com-title" }, Th = {
|
|
7769
7763
|
key: 0,
|
|
7770
7764
|
class: "uz-table-asterisk"
|
|
7771
|
-
},
|
|
7772
|
-
function
|
|
7765
|
+
}, Eh = { class: "uz-flex uz-gap-2" }, Dh = { class: "uz-flex uz-justify-end uz-gap-2" };
|
|
7766
|
+
function Oh(t, n, c, d, f, p) {
|
|
7773
7767
|
let m = O("UzIcon"), h = O("NIcon"), g = O("NButton"), v = O("Plus"), y = O("NDataTable"), b = O("NForm");
|
|
7774
|
-
return S(), a("div",
|
|
7775
|
-
o("div",
|
|
7768
|
+
return S(), a("div", Sh, [
|
|
7769
|
+
o("div", Ch, [o("div", wh, [l(A(t.item.label) + " ", 1), t.item.form.rule.required ? (S(), a("span", Th, " \xA0* ")) : i("", !0)]), o("div", Eh, [
|
|
7776
7770
|
t.status === 2 ? i("", !0) : (S(!0), a(e, { key: 0 }, E(t.suffixes, (e) => (S(), r(g, {
|
|
7777
7771
|
key: e.key,
|
|
7778
7772
|
type: e.color,
|
|
@@ -7845,7 +7839,7 @@ function Dh(t, n, c, d, f, p) {
|
|
|
7845
7839
|
"scroll-x",
|
|
7846
7840
|
"class",
|
|
7847
7841
|
"row-class-name"
|
|
7848
|
-
])) : i("", !0), o("div",
|
|
7842
|
+
])) : i("", !0), o("div", Dh, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (S(), r(g, {
|
|
7849
7843
|
key: 0,
|
|
7850
7844
|
type: "success",
|
|
7851
7845
|
secondary: "",
|
|
@@ -7874,7 +7868,7 @@ function Dh(t, n, c, d, f, p) {
|
|
|
7874
7868
|
}, 8, ["model"])
|
|
7875
7869
|
]);
|
|
7876
7870
|
}
|
|
7877
|
-
var
|
|
7871
|
+
var kh = /*#__PURE__*/ W(xh, [["render", Oh]]), Ah = f({
|
|
7878
7872
|
name: "UzTableQuestChild",
|
|
7879
7873
|
components: { NDataTable: se },
|
|
7880
7874
|
props: {
|
|
@@ -7902,7 +7896,7 @@ var Oh = /*#__PURE__*/ W(bh, [["render", Dh]]), kh = f({
|
|
|
7902
7896
|
}), o.value = t, i.value = !1;
|
|
7903
7897
|
}
|
|
7904
7898
|
}, l = async (i) => {
|
|
7905
|
-
let { tableColumns: c, tableWidth: l } = await
|
|
7899
|
+
let { tableColumns: c, tableWidth: l } = await th(U(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
|
|
7906
7900
|
c.unshift({
|
|
7907
7901
|
title: " ",
|
|
7908
7902
|
key: "index",
|
|
@@ -7976,11 +7970,11 @@ var Oh = /*#__PURE__*/ W(bh, [["render", Dh]]), kh = f({
|
|
|
7976
7970
|
tableScrollX: s
|
|
7977
7971
|
};
|
|
7978
7972
|
}
|
|
7979
|
-
}),
|
|
7980
|
-
function
|
|
7973
|
+
}), jh = { class: "uz-flex-1 uz-w-full" }, Mh = { class: "uz-flex uz-justify-between" }, Nh = { class: "uz-com-title" };
|
|
7974
|
+
function Ph(e, t, n, r, i, s) {
|
|
7981
7975
|
let c = O("NDataTable"), l = O("UzTableDrawer");
|
|
7982
|
-
return S(), a("div",
|
|
7983
|
-
o("div",
|
|
7976
|
+
return S(), a("div", jh, [
|
|
7977
|
+
o("div", Mh, [o("div", Nh, A(e.item.label), 1)]),
|
|
7984
7978
|
t[0] ||= o("div", { class: "uz-br" }, null, -1),
|
|
7985
7979
|
u(c, {
|
|
7986
7980
|
columns: e.columns,
|
|
@@ -8002,7 +7996,7 @@ function Nh(e, t, n, r, i, s) {
|
|
|
8002
7996
|
u(l, { ref: "drawerRef" }, null, 512)
|
|
8003
7997
|
]);
|
|
8004
7998
|
}
|
|
8005
|
-
var
|
|
7999
|
+
var Fh = /*#__PURE__*/ W(Ah, [["render", Ph]]), Ih = f({
|
|
8006
8000
|
name: "UzTableDrawer",
|
|
8007
8001
|
components: {
|
|
8008
8002
|
NButton: R,
|
|
@@ -8074,11 +8068,11 @@ var Ph = /*#__PURE__*/ W(kh, [["render", Nh]]), Fh = f({
|
|
|
8074
8068
|
linkFn: t
|
|
8075
8069
|
};
|
|
8076
8070
|
let r = e.split(".")[0];
|
|
8077
|
-
|
|
8071
|
+
qm(r).then((e) => {
|
|
8078
8072
|
g(async () => {
|
|
8079
8073
|
let t = rt.parse(e.viewJson);
|
|
8080
|
-
d.value =
|
|
8081
|
-
let { form: i } = await
|
|
8074
|
+
d.value = $m(t.option), u.value = !0;
|
|
8075
|
+
let { form: i } = await eh(Ym(t.table), n);
|
|
8082
8076
|
y.value = t.trigger, n && w(n);
|
|
8083
8077
|
let a = X(`tables_cache_link_${r}`, !1);
|
|
8084
8078
|
a && (c.value = a), g(() => {
|
|
@@ -8139,7 +8133,7 @@ var Ph = /*#__PURE__*/ W(kh, [["render", Nh]]), Fh = f({
|
|
|
8139
8133
|
tableId: n,
|
|
8140
8134
|
...e
|
|
8141
8135
|
}).then(() => {
|
|
8142
|
-
|
|
8136
|
+
Gm(), bf({ tableId: n }).then((e) => {
|
|
8143
8137
|
let r = l.value.link.split("."), i;
|
|
8144
8138
|
if (l.value.linkFn) {
|
|
8145
8139
|
let t = l.value.linkFn;
|
|
@@ -8172,11 +8166,11 @@ var Ph = /*#__PURE__*/ W(kh, [["render", Nh]]), Fh = f({
|
|
|
8172
8166
|
}
|
|
8173
8167
|
};
|
|
8174
8168
|
}
|
|
8175
|
-
}),
|
|
8169
|
+
}), Lh = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, Rh = {
|
|
8176
8170
|
key: 0,
|
|
8177
8171
|
class: "uz-grid uz-grid-cols-2 uz-gap-2"
|
|
8178
|
-
},
|
|
8179
|
-
function
|
|
8172
|
+
}, zh = { class: "uz-flex uz-justify-between uz-gap-2 uz-w-full" }, Bh = { class: "uz-flex uz-gap-2" };
|
|
8173
|
+
function Vh(t, n, c, d, f, p) {
|
|
8180
8174
|
let m = O("NSkeleton"), h = O("UzForm"), g = O("UzSpin"), _ = O("NSpin"), v = O("NButton"), y = O("NPopover"), b = O("NDrawerContent"), x = O("NDrawer"), C = O("UzOcr"), w = O("NModal");
|
|
8181
8175
|
return S(), a(e, null, [u(x, {
|
|
8182
8176
|
show: t.drawer,
|
|
@@ -8202,7 +8196,7 @@ function Bh(t, n, c, d, f, p) {
|
|
|
8202
8196
|
message: t.spinMsg,
|
|
8203
8197
|
status: t.spinStatus
|
|
8204
8198
|
}, {
|
|
8205
|
-
default: P(() => [o("div",
|
|
8199
|
+
default: P(() => [o("div", Lh, [t.skeletonShow ? (S(), a("div", Rh, [
|
|
8206
8200
|
u(m, {
|
|
8207
8201
|
size: "large",
|
|
8208
8202
|
style: { height: "156px" }
|
|
@@ -8265,7 +8259,7 @@ function Bh(t, n, c, d, f, p) {
|
|
|
8265
8259
|
_: 2
|
|
8266
8260
|
}, [t.formStatus === 2 ? void 0 : {
|
|
8267
8261
|
name: "footer",
|
|
8268
|
-
fn: P(() => [o("div",
|
|
8262
|
+
fn: P(() => [o("div", zh, [t.isMobile ? i("", !0) : (S(), r(v, {
|
|
8269
8263
|
key: 0,
|
|
8270
8264
|
loading: t.spinShow,
|
|
8271
8265
|
type: "success",
|
|
@@ -8274,7 +8268,7 @@ function Bh(t, n, c, d, f, p) {
|
|
|
8274
8268
|
}, {
|
|
8275
8269
|
default: P(() => [l(A(t.$t("OCR.ocr")), 1)]),
|
|
8276
8270
|
_: 1
|
|
8277
|
-
}, 8, ["loading"])), o("div",
|
|
8271
|
+
}, 8, ["loading"])), o("div", Bh, [
|
|
8278
8272
|
u(v, {
|
|
8279
8273
|
loading: t.spinShow,
|
|
8280
8274
|
class: "uz-drawer-button",
|
|
@@ -8342,7 +8336,7 @@ function Bh(t, n, c, d, f, p) {
|
|
|
8342
8336
|
_: 1
|
|
8343
8337
|
}, 8, ["show"])], 64);
|
|
8344
8338
|
}
|
|
8345
|
-
var
|
|
8339
|
+
var Hh = /*#__PURE__*/ W(Ih, [["render", Vh]]), Uh = f({
|
|
8346
8340
|
name: "UzTableMobileList",
|
|
8347
8341
|
props: {
|
|
8348
8342
|
tableData: {
|
|
@@ -8360,12 +8354,12 @@ var Vh = /*#__PURE__*/ W(Fh, [["render", Bh]]), Hh = f({
|
|
|
8360
8354
|
},
|
|
8361
8355
|
emits: ["update:row-keys"],
|
|
8362
8356
|
setup() {}
|
|
8363
|
-
}),
|
|
8357
|
+
}), Wh = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, Gh = {
|
|
8364
8358
|
key: 1,
|
|
8365
8359
|
class: "uz-table-mobile-group-txt"
|
|
8366
8360
|
};
|
|
8367
|
-
function
|
|
8368
|
-
return S(), a("div",
|
|
8361
|
+
function Kh(t, n, s, c, l, u) {
|
|
8362
|
+
return S(), a("div", Wh, [(S(!0), a(e, null, E(t.tableColumns, (n) => (S(), a("div", {
|
|
8369
8363
|
key: n.key,
|
|
8370
8364
|
class: _(["uz-flex uz-overflow-hidden", n.lineBreak ? "uz-flex-col" : ""]),
|
|
8371
8365
|
style: v(`grid-column: span ${n.lineCol || 2} / span ${n.lineCol || 2}`)
|
|
@@ -8376,11 +8370,11 @@ function Gh(t, n, s, c, l, u) {
|
|
|
8376
8370
|
class: "mobile"
|
|
8377
8371
|
})) : i("", !0)], 64)) : (S(), a(e, { key: 1 }, [o("div", { class: _(["uz-table-mobile-group-title", n.lineBreak ? "line-break" : ""]) }, [o("div", null, A(typeof n.title == "string" ? n.title : n.title()), 1)], 2), o("div", { class: _(["uz-table-mobile-group-content", n.lineBreak ? "line-break" : ""]) }, [n.render ? (S(), r(ee(() => {
|
|
8378
8372
|
if (t.tableData) return n.render(t.tableData, t.tableIndex);
|
|
8379
|
-
}), { key: 0 })) : (S(), a("div",
|
|
8373
|
+
}), { key: 0 })) : (S(), a("div", Gh, A(t.tableData[n.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
|
|
8380
8374
|
}
|
|
8381
8375
|
//#endregion
|
|
8382
8376
|
//#region components/table/mobile.vue?vue&type=script&lang.ts
|
|
8383
|
-
var
|
|
8377
|
+
var qh = f({
|
|
8384
8378
|
name: "UzTableMobile",
|
|
8385
8379
|
components: {
|
|
8386
8380
|
NCheckbox: ie,
|
|
@@ -8388,7 +8382,7 @@ var Kh = f({
|
|
|
8388
8382
|
NPagination: Te,
|
|
8389
8383
|
NCheckboxGroup: z,
|
|
8390
8384
|
NRadioGroup: ke,
|
|
8391
|
-
UzTableMobileList: /* @__PURE__ */ W(
|
|
8385
|
+
UzTableMobileList: /* @__PURE__ */ W(Uh, [["render", Kh], ["__scopeId", "data-v-84c394fe"]])
|
|
8392
8386
|
},
|
|
8393
8387
|
props: {
|
|
8394
8388
|
tableData: {
|
|
@@ -8435,17 +8429,17 @@ var Kh = f({
|
|
|
8435
8429
|
}
|
|
8436
8430
|
};
|
|
8437
8431
|
}
|
|
8438
|
-
}),
|
|
8432
|
+
}), Jh = {
|
|
8439
8433
|
key: 0,
|
|
8440
8434
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
8441
|
-
},
|
|
8435
|
+
}, Yh = {
|
|
8442
8436
|
key: 0,
|
|
8443
8437
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
8444
|
-
},
|
|
8438
|
+
}, Xh = {
|
|
8445
8439
|
key: 0,
|
|
8446
8440
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
8447
8441
|
};
|
|
8448
|
-
function
|
|
8442
|
+
function Zh(t, n, o, s, c, l) {
|
|
8449
8443
|
let d = O("UzTableMobileList"), f = O("NCheckbox"), p = O("NPagination"), m = O("NCheckboxGroup"), h = O("NRadio"), g = O("NRadioGroup");
|
|
8450
8444
|
return t.selection === 2 ? (S(), r(m, {
|
|
8451
8445
|
key: 0,
|
|
@@ -8472,7 +8466,7 @@ function Xh(t, n, o, s, c, l) {
|
|
|
8472
8466
|
"tableColumns"
|
|
8473
8467
|
])]),
|
|
8474
8468
|
_: 2
|
|
8475
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div",
|
|
8469
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div", Jh, [u(p, {
|
|
8476
8470
|
page: t.tableQueries.query.page,
|
|
8477
8471
|
"onUpdate:page": [n[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
8478
8472
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -8514,7 +8508,7 @@ function Xh(t, n, o, s, c, l) {
|
|
|
8514
8508
|
"tableColumns"
|
|
8515
8509
|
])]),
|
|
8516
8510
|
_: 2
|
|
8517
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div",
|
|
8511
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div", Yh, [u(p, {
|
|
8518
8512
|
page: t.tableQueries.query.page,
|
|
8519
8513
|
"onUpdate:page": [n[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
8520
8514
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -8549,7 +8543,7 @@ function Xh(t, n, o, s, c, l) {
|
|
|
8549
8543
|
"tableData",
|
|
8550
8544
|
"tableIndex",
|
|
8551
8545
|
"tableColumns"
|
|
8552
|
-
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div",
|
|
8546
|
+
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div", Xh, [u(p, {
|
|
8553
8547
|
page: t.tableQueries.query.page,
|
|
8554
8548
|
"onUpdate:page": [n[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
8555
8549
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -8562,7 +8556,7 @@ function Xh(t, n, o, s, c, l) {
|
|
|
8562
8556
|
"onUpdate:page"
|
|
8563
8557
|
])])) : i("", !0)], 4));
|
|
8564
8558
|
}
|
|
8565
|
-
var
|
|
8559
|
+
var Qh = /*#__PURE__*/ W(qh, [["render", Zh], ["__scopeId", "data-v-70b54e3b"]]), $h = f({
|
|
8566
8560
|
name: "UzTableFile",
|
|
8567
8561
|
components: {
|
|
8568
8562
|
NDropdown: fe,
|
|
@@ -8711,11 +8705,11 @@ var Zh = /*#__PURE__*/ W(Kh, [["render", Xh], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
8711
8705
|
}
|
|
8712
8706
|
};
|
|
8713
8707
|
}
|
|
8714
|
-
}),
|
|
8708
|
+
}), eg = { class: "uz-file-port-modal" }, tg = {
|
|
8715
8709
|
key: 1,
|
|
8716
8710
|
class: "uz-file-port-panel"
|
|
8717
|
-
},
|
|
8718
|
-
function
|
|
8711
|
+
}, ng = { class: "uz-flex uz-justify-between" };
|
|
8712
|
+
function rg(t, n, i, s, c, d) {
|
|
8719
8713
|
let f = O("FileText"), p = O("NIcon"), m = O("NButton"), h = O("NDropdown"), g = O("NUpload"), _ = O("NSpace"), v = O("NDataTable"), y = O("NModal");
|
|
8720
8714
|
return S(), a(e, null, [u(h, {
|
|
8721
8715
|
trigger: "hover",
|
|
@@ -8750,8 +8744,8 @@ function ng(t, n, i, s, c, d) {
|
|
|
8750
8744
|
default: P(() => [...n[1] ||= [l(" 下载模板 ", -1)]]),
|
|
8751
8745
|
_: 1
|
|
8752
8746
|
}, 8, ["onClick"])]),
|
|
8753
|
-
default: P(() => [o("div",
|
|
8754
|
-
t.rawFile ? (S(), a("div",
|
|
8747
|
+
default: P(() => [o("div", eg, [
|
|
8748
|
+
t.rawFile ? (S(), a("div", tg, [
|
|
8755
8749
|
n[5] ||= o("div", { class: "uz-file-port-icon" }, [o("svg", {
|
|
8756
8750
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8757
8751
|
viewBox: "0 0 24 24",
|
|
@@ -8798,7 +8792,7 @@ function ng(t, n, i, s, c, d) {
|
|
|
8798
8792
|
}, [o("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])]), o("div", { class: "uz-file-port-subtitle" }, "拖拽或点击上传Excel文件")], -1)]]),
|
|
8799
8793
|
_: 1
|
|
8800
8794
|
}, 8, ["on-before-upload"])),
|
|
8801
|
-
o("div",
|
|
8795
|
+
o("div", ng, [n[8] ||= o("div", { class: "uz-com-title" }, "导入历史", -1), u(m, {
|
|
8802
8796
|
onClick: t.init,
|
|
8803
8797
|
loading: t.loading,
|
|
8804
8798
|
secondary: ""
|
|
@@ -8821,7 +8815,7 @@ function ng(t, n, i, s, c, d) {
|
|
|
8821
8815
|
_: 1
|
|
8822
8816
|
}, 8, ["show", "on-after-leave"])], 64);
|
|
8823
8817
|
}
|
|
8824
|
-
var
|
|
8818
|
+
var ig = /*#__PURE__*/ W($h, [["render", rg], ["__scopeId", "data-v-669e3267"]]), $ = w({
|
|
8825
8819
|
page: {
|
|
8826
8820
|
label: "首页",
|
|
8827
8821
|
key: "/",
|
|
@@ -8832,7 +8826,7 @@ var rg = /*#__PURE__*/ W(Qh, [["render", ng], ["__scopeId", "data-v-669e3267"]])
|
|
|
8832
8826
|
active: "/",
|
|
8833
8827
|
thumbnail: []
|
|
8834
8828
|
});
|
|
8835
|
-
function
|
|
8829
|
+
function ag(e) {
|
|
8836
8830
|
$.cache = e.cache, $.page = {
|
|
8837
8831
|
label: e.label,
|
|
8838
8832
|
key: e.key,
|
|
@@ -8847,14 +8841,14 @@ function ig(e) {
|
|
|
8847
8841
|
closable: !1
|
|
8848
8842
|
}];
|
|
8849
8843
|
}
|
|
8850
|
-
function
|
|
8844
|
+
function og(e) {
|
|
8851
8845
|
$.active = e, G.push(e), Y($.cache, $, 0);
|
|
8852
8846
|
}
|
|
8853
|
-
function
|
|
8847
|
+
function sg(e, t) {
|
|
8854
8848
|
let n = $.thumbnail.find((t) => t.key === e);
|
|
8855
8849
|
n && (n.key = t, $.active = t, Y($.cache, $, 0));
|
|
8856
8850
|
}
|
|
8857
|
-
function
|
|
8851
|
+
function cg(e) {
|
|
8858
8852
|
let t = $.thumbnail.find((t) => t.path === e.key);
|
|
8859
8853
|
t ? ($.active = t.key, Y($.cache, $, 0), G.push(t.key)) : ($.active = e.key, $.thumbnail.push({
|
|
8860
8854
|
...e,
|
|
@@ -8862,7 +8856,7 @@ function sg(e) {
|
|
|
8862
8856
|
closable: !0
|
|
8863
8857
|
}), G.push(e.key));
|
|
8864
8858
|
}
|
|
8865
|
-
function
|
|
8859
|
+
function lg(e) {
|
|
8866
8860
|
let t = $.thumbnail.findIndex((t) => t.key === e);
|
|
8867
8861
|
if ($.thumbnail.splice(t, 1), $.active === e) {
|
|
8868
8862
|
let e = $.thumbnail[t - 1]?.key || "";
|
|
@@ -8870,12 +8864,12 @@ function cg(e) {
|
|
|
8870
8864
|
}
|
|
8871
8865
|
Y($.cache, $, 0);
|
|
8872
8866
|
}
|
|
8873
|
-
function
|
|
8867
|
+
function ug() {
|
|
8874
8868
|
$.active = $.page.path, $.thumbnail = [$.page], G.push($.page.path), Y($.cache, $, 0);
|
|
8875
8869
|
}
|
|
8876
8870
|
//#endregion
|
|
8877
8871
|
//#region components/thumbnail/index.vue?vue&type=script&lang.ts
|
|
8878
|
-
var
|
|
8872
|
+
var dg = f({
|
|
8879
8873
|
name: "UzThumbnail",
|
|
8880
8874
|
components: {
|
|
8881
8875
|
NTabs: Ie,
|
|
@@ -8897,29 +8891,29 @@ var ug = f({
|
|
|
8897
8891
|
setup(e, { slots: t }) {
|
|
8898
8892
|
let n = T(!!t.prefix), r = Je();
|
|
8899
8893
|
return b(() => {
|
|
8900
|
-
|
|
8894
|
+
ag(e.option), $.active !== r.path && sg(r.path, r.fullPath);
|
|
8901
8895
|
}), M(() => r, (e) => {
|
|
8902
|
-
$.active === r.path &&
|
|
8896
|
+
$.active === r.path && sg(e.path, e.fullPath);
|
|
8903
8897
|
}, { deep: !0 }), M(() => e.option, (e) => {
|
|
8904
|
-
|
|
8898
|
+
ag(e);
|
|
8905
8899
|
}, { deep: !0 }), {
|
|
8906
8900
|
thumbnailStore: $,
|
|
8907
8901
|
isSlotPrefix: n,
|
|
8908
8902
|
handleClose: (e) => {
|
|
8909
|
-
|
|
8903
|
+
lg(e);
|
|
8910
8904
|
},
|
|
8911
8905
|
handleChange: (e) => {
|
|
8912
|
-
|
|
8906
|
+
og(e);
|
|
8913
8907
|
},
|
|
8914
8908
|
handleClear: () => {
|
|
8915
|
-
|
|
8909
|
+
ug();
|
|
8916
8910
|
}
|
|
8917
8911
|
};
|
|
8918
8912
|
}
|
|
8919
8913
|
});
|
|
8920
8914
|
//#endregion
|
|
8921
8915
|
//#region components/thumbnail/index.vue
|
|
8922
|
-
function
|
|
8916
|
+
function fg(t, n, i, o, c, d) {
|
|
8923
8917
|
let f = O("NTabPane"), p = O("Trash"), m = O("NIcon"), h = O("NButton"), g = O("NPopconfirm"), _ = O("NFlex"), v = O("NTabs");
|
|
8924
8918
|
return S(), r(v, {
|
|
8925
8919
|
value: t.thumbnailStore.active,
|
|
@@ -8968,33 +8962,33 @@ function dg(t, n, i, o, c, d) {
|
|
|
8968
8962
|
"on-update:value"
|
|
8969
8963
|
]);
|
|
8970
8964
|
}
|
|
8971
|
-
var
|
|
8972
|
-
H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover =
|
|
8973
|
-
var
|
|
8965
|
+
var pg = /*#__PURE__*/ W(dg, [["render", fg]]), mg = "#007AFF", hg = "#0A84FF", gg = "#FF9500", _g = "#FF9F0A", vg = "#28CD41", yg = "#32D74B", bg = "#FFCC00", xg = "#FFD60A", Sg = "#FF3B30", Cg = "#FF453A";
|
|
8966
|
+
H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover = hg, H.common.infoColor = "#FF9F0A", H.common.infoColorHover = _g, H.common.successColor = "#32D74B", H.common.successColorHover = yg, H.common.warningColor = "#FFD60A", H.common.successColorHover = xg, H.common.errorColor = "#FF453A", H.common.errorColorHover = Cg, H.common.borderRadius = "var(--borderRadius)", H.common.inputColor = "rgba(var(--input))", H.common.borderColor = "rgba(var(--border), 0.7)", H.DataTable.tdColor = "#2d2d31", H.Scrollbar.width = "8px", H.Scrollbar.height = "8px", H.Scrollbar.borderRadius = "8px", H.Scrollbar.color = "#686873";
|
|
8967
|
+
var wg = {
|
|
8974
8968
|
common: {
|
|
8975
8969
|
inputColor: "rgba(var(--input))",
|
|
8976
8970
|
borderColor: "rgba(var(--border), 0.7)",
|
|
8977
8971
|
borderRadius: "var(--borderRadius)",
|
|
8978
|
-
primaryColor:
|
|
8979
|
-
primaryColorHover:
|
|
8980
|
-
primaryColorPressed:
|
|
8981
|
-
primaryColorSuppl:
|
|
8982
|
-
infoColor:
|
|
8983
|
-
infoColorHover:
|
|
8984
|
-
infoColorPressed:
|
|
8985
|
-
infoColorSuppl:
|
|
8986
|
-
successColor:
|
|
8987
|
-
successColorHover:
|
|
8988
|
-
successColorPressed:
|
|
8989
|
-
successColorSuppl:
|
|
8990
|
-
warningColor:
|
|
8991
|
-
warningColorHover:
|
|
8992
|
-
warningColorPressed:
|
|
8993
|
-
warningColorSuppl:
|
|
8994
|
-
errorColor:
|
|
8995
|
-
errorColorHover:
|
|
8996
|
-
errorColorPressed:
|
|
8997
|
-
errorColorSuppl:
|
|
8972
|
+
primaryColor: mg,
|
|
8973
|
+
primaryColorHover: hg,
|
|
8974
|
+
primaryColorPressed: mg,
|
|
8975
|
+
primaryColorSuppl: mg,
|
|
8976
|
+
infoColor: gg,
|
|
8977
|
+
infoColorHover: _g,
|
|
8978
|
+
infoColorPressed: gg,
|
|
8979
|
+
infoColorSuppl: gg,
|
|
8980
|
+
successColor: vg,
|
|
8981
|
+
successColorHover: yg,
|
|
8982
|
+
successColorPressed: vg,
|
|
8983
|
+
successColorSuppl: vg,
|
|
8984
|
+
warningColor: bg,
|
|
8985
|
+
warningColorHover: xg,
|
|
8986
|
+
warningColorPressed: bg,
|
|
8987
|
+
warningColorSuppl: bg,
|
|
8988
|
+
errorColor: Sg,
|
|
8989
|
+
errorColorHover: Cg,
|
|
8990
|
+
errorColorPressed: Sg,
|
|
8991
|
+
errorColorSuppl: Sg,
|
|
8998
8992
|
cardColor: "#fff"
|
|
8999
8993
|
},
|
|
9000
8994
|
Button: { textColor: "rgb(var(--font))" },
|
|
@@ -9008,7 +9002,7 @@ var Cg = {
|
|
|
9008
9002
|
borderRadius: "8px",
|
|
9009
9003
|
color: "#c0c0c0"
|
|
9010
9004
|
}
|
|
9011
|
-
},
|
|
9005
|
+
}, Tg = H, Eg = f({
|
|
9012
9006
|
name: "UzWrap",
|
|
9013
9007
|
components: { NConfigProvider: oe },
|
|
9014
9008
|
setup() {
|
|
@@ -9016,14 +9010,14 @@ var Cg = {
|
|
|
9016
9010
|
zhCN: We,
|
|
9017
9011
|
dateZhCN: He,
|
|
9018
9012
|
commonStore: q,
|
|
9019
|
-
lightTheme:
|
|
9020
|
-
darkTheme:
|
|
9013
|
+
lightTheme: wg,
|
|
9014
|
+
darkTheme: Tg
|
|
9021
9015
|
};
|
|
9022
9016
|
}
|
|
9023
9017
|
});
|
|
9024
9018
|
//#endregion
|
|
9025
9019
|
//#region components/wrap/index.vue
|
|
9026
|
-
function
|
|
9020
|
+
function Dg(e, t, n, i, a, o) {
|
|
9027
9021
|
let s = O("NConfigProvider");
|
|
9028
9022
|
return S(), r(s, {
|
|
9029
9023
|
theme: e.commonStore.theme ? { name: "darkTheme" } : null,
|
|
@@ -9042,10 +9036,10 @@ function Eg(e, t, n, i, a, o) {
|
|
|
9042
9036
|
"date-locale"
|
|
9043
9037
|
]);
|
|
9044
9038
|
}
|
|
9045
|
-
var
|
|
9039
|
+
var Og = /*#__PURE__*/ W(Eg, [["render", Dg]]);
|
|
9046
9040
|
//#endregion
|
|
9047
9041
|
//#region components/ocr/preprocess.ts
|
|
9048
|
-
function
|
|
9042
|
+
function kg(e) {
|
|
9049
9043
|
let t = /* @__PURE__ */ new Int32Array(256), n = e.length;
|
|
9050
9044
|
for (let r = 0; r < n; r++) t[e[r]]++;
|
|
9051
9045
|
let r = 0;
|
|
@@ -9060,7 +9054,7 @@ function Og(e) {
|
|
|
9060
9054
|
}
|
|
9061
9055
|
return c;
|
|
9062
9056
|
}
|
|
9063
|
-
function
|
|
9057
|
+
function Ag(e, t) {
|
|
9064
9058
|
return new Promise((n, r) => {
|
|
9065
9059
|
let i = new Image();
|
|
9066
9060
|
i.crossOrigin = "anonymous", i.onload = () => {
|
|
@@ -9093,7 +9087,7 @@ function kg(e, t) {
|
|
|
9093
9087
|
}
|
|
9094
9088
|
let u = t.threshold;
|
|
9095
9089
|
if (t.binarize) {
|
|
9096
|
-
t.autoThreshold && (u =
|
|
9090
|
+
t.autoThreshold && (u = kg(l));
|
|
9097
9091
|
for (let e = 0, t = 0; e < s.length; e += 4, t++) {
|
|
9098
9092
|
let n = l[t] < u ? 0 : 255;
|
|
9099
9093
|
s[e] = n, s[e + 1] = n, s[e + 2] = n;
|
|
@@ -9116,7 +9110,7 @@ function kg(e, t) {
|
|
|
9116
9110
|
}
|
|
9117
9111
|
//#endregion
|
|
9118
9112
|
//#region components/ocr/index.vue?vue&type=script&lang.ts
|
|
9119
|
-
var
|
|
9113
|
+
var jg = f({
|
|
9120
9114
|
name: "UzOcr",
|
|
9121
9115
|
components: {
|
|
9122
9116
|
NButton: R,
|
|
@@ -9153,7 +9147,7 @@ var Ag = f({
|
|
|
9153
9147
|
tessedit_char_blacklist: "|"
|
|
9154
9148
|
}), a.value), v = async () => {
|
|
9155
9149
|
if (f.value) try {
|
|
9156
|
-
let e = await
|
|
9150
|
+
let e = await Ag(f.value, {
|
|
9157
9151
|
enabled: o.value,
|
|
9158
9152
|
scale: s.value,
|
|
9159
9153
|
grayscale: !0,
|
|
@@ -9190,7 +9184,7 @@ var Ag = f({
|
|
|
9190
9184
|
t.value = !0, r.value = e("OCR.analysis");
|
|
9191
9185
|
let a = n;
|
|
9192
9186
|
if (o.value || s.value > 1) try {
|
|
9193
|
-
let e = await
|
|
9187
|
+
let e = await Ag(n, {
|
|
9194
9188
|
enabled: o.value,
|
|
9195
9189
|
scale: s.value,
|
|
9196
9190
|
grayscale: !0,
|
|
@@ -9252,25 +9246,25 @@ var Ag = f({
|
|
|
9252
9246
|
t: e
|
|
9253
9247
|
};
|
|
9254
9248
|
}
|
|
9255
|
-
}),
|
|
9249
|
+
}), Mg = { class: "uz-ocr" }, Ng = { class: "uz-ocr-left-col" }, Pg = { class: "uz-ocr-upload-card" }, Fg = { class: "uz-ocr-upload-title" }, Ig = {
|
|
9256
9250
|
key: 1,
|
|
9257
9251
|
class: "uz-ocr-preview-panel"
|
|
9258
|
-
},
|
|
9252
|
+
}, Lg = { class: "uz-ocr-preview-box" }, Rg = ["src"], zg = {
|
|
9259
9253
|
key: 0,
|
|
9260
9254
|
class: "uz-ocr-threshold-badge"
|
|
9261
|
-
},
|
|
9255
|
+
}, Bg = { class: "uz-ocr-preview-box" }, Vg = ["src"], Hg = { class: "uz-ocr-settings-form" }, Ug = { class: "uz-settings-row" }, Wg = { class: "uz-settings-label" }, Gg = {
|
|
9262
9256
|
key: 0,
|
|
9263
9257
|
class: "uz-ocr-nested-settings animate-fade-in"
|
|
9264
|
-
},
|
|
9258
|
+
}, Kg = { class: "uz-settings-row" }, qg = { class: "uz-settings-label" }, Jg = { class: "uz-settings-row" }, Yg = { class: "uz-settings-label" }, Xg = { class: "uz-ocr-right-col" }, Zg = { class: "uz-ocr-result-header" }, Qg = { class: "uz-result-title" }, $g = {
|
|
9265
9259
|
key: 0,
|
|
9266
9260
|
class: "uz-ocr-empty-state"
|
|
9267
|
-
},
|
|
9261
|
+
}, e_ = { class: "uz-empty-text" }, t_ = {
|
|
9268
9262
|
key: 1,
|
|
9269
9263
|
class: "uz-ocr-result-tabs"
|
|
9270
9264
|
};
|
|
9271
|
-
function
|
|
9265
|
+
function n_(e, t, n, s, c, d) {
|
|
9272
9266
|
let f = O("NUpload"), p = O("NTabPane"), m = O("NTabs"), h = O("NButton"), g = O("NSpace"), _ = O("NSwitch"), v = O("NSelect");
|
|
9273
|
-
return S(), a("div",
|
|
9267
|
+
return S(), a("div", Mg, [o("div", Ng, [e.rawImage ? (S(), a("div", Ig, [u(m, {
|
|
9274
9268
|
value: e.imagePreviewTab,
|
|
9275
9269
|
"onUpdate:value": t[0] ||= (t) => e.imagePreviewTab = t,
|
|
9276
9270
|
type: "segment",
|
|
@@ -9280,21 +9274,21 @@ function t_(e, t, n, s, c, d) {
|
|
|
9280
9274
|
name: "processed",
|
|
9281
9275
|
tab: e.t("OCR.previewProcessed")
|
|
9282
9276
|
}, {
|
|
9283
|
-
default: P(() => [o("div",
|
|
9277
|
+
default: P(() => [o("div", Lg, [o("img", {
|
|
9284
9278
|
src: e.processedImage,
|
|
9285
9279
|
alt: "Processed Preview",
|
|
9286
9280
|
class: "uz-ocr-preview-img"
|
|
9287
|
-
}, null, 8,
|
|
9281
|
+
}, null, 8, Rg), e.preEnabled && e.preBinarize ? (S(), a("div", zg, A(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + A(e.thresholdUsed), 1)) : i("", !0)])]),
|
|
9288
9282
|
_: 1
|
|
9289
9283
|
}, 8, ["tab"]), u(p, {
|
|
9290
9284
|
name: "raw",
|
|
9291
9285
|
tab: e.t("OCR.previewRaw")
|
|
9292
9286
|
}, {
|
|
9293
|
-
default: P(() => [o("div",
|
|
9287
|
+
default: P(() => [o("div", Bg, [o("img", {
|
|
9294
9288
|
src: e.rawImage,
|
|
9295
9289
|
alt: "Raw Preview",
|
|
9296
9290
|
class: "uz-ocr-preview-img"
|
|
9297
|
-
}, null, 8,
|
|
9291
|
+
}, null, 8, Vg)])]),
|
|
9298
9292
|
_: 1
|
|
9299
9293
|
}, 8, ["tab"])]),
|
|
9300
9294
|
_: 1
|
|
@@ -9328,7 +9322,7 @@ function t_(e, t, n, s, c, d) {
|
|
|
9328
9322
|
"directory-dnd": "",
|
|
9329
9323
|
class: "uz-w-full"
|
|
9330
9324
|
}, {
|
|
9331
|
-
default: P(() => [o("div",
|
|
9325
|
+
default: P(() => [o("div", Pg, [
|
|
9332
9326
|
t[4] ||= o("div", { class: "uz-ocr-upload-icon" }, [o("svg", {
|
|
9333
9327
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9334
9328
|
viewBox: "0 0 24 24",
|
|
@@ -9336,27 +9330,27 @@ function t_(e, t, n, s, c, d) {
|
|
|
9336
9330
|
height: "40",
|
|
9337
9331
|
fill: "currentColor"
|
|
9338
9332
|
}, [o("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])], -1),
|
|
9339
|
-
o("div",
|
|
9333
|
+
o("div", Fg, A(e.t("OCR.scan")), 1),
|
|
9340
9334
|
t[5] ||= o("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
|
|
9341
9335
|
])]),
|
|
9342
9336
|
_: 1
|
|
9343
|
-
}, 8, ["on-before-upload"])), o("div",
|
|
9337
|
+
}, 8, ["on-before-upload"])), o("div", Hg, [o("div", Ug, [o("span", Wg, A(e.t("OCR.preprocess")), 1), u(_, {
|
|
9344
9338
|
value: e.preEnabled,
|
|
9345
9339
|
"onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
|
|
9346
9340
|
size: "small"
|
|
9347
|
-
}, null, 8, ["value"])]), e.preEnabled ? (S(), a("div",
|
|
9341
|
+
}, null, 8, ["value"])]), e.preEnabled ? (S(), a("div", Gg, [o("div", Kg, [o("span", qg, A(e.t("OCR.scale")), 1), u(v, {
|
|
9348
9342
|
value: e.preScale,
|
|
9349
9343
|
"onUpdate:value": t[2] ||= (t) => e.preScale = t,
|
|
9350
9344
|
options: e.scaleOptions,
|
|
9351
9345
|
size: "small",
|
|
9352
9346
|
class: "uz-settings-select"
|
|
9353
|
-
}, null, 8, ["value", "options"])]), o("div",
|
|
9347
|
+
}, null, 8, ["value", "options"])]), o("div", Jg, [o("span", Yg, A(e.t("OCR.contrast")), 1), u(_, {
|
|
9354
9348
|
value: e.preContrast,
|
|
9355
9349
|
"onUpdate:value": t[3] ||= (t) => e.preContrast = t,
|
|
9356
9350
|
size: "small"
|
|
9357
|
-
}, null, 8, ["value"])])])) : i("", !0)])]), o("div",
|
|
9351
|
+
}, null, 8, ["value"])])])) : i("", !0)])]), o("div", Xg, [o("div", Zg, [o("span", Qg, "识别结果 (" + A(e.text.length) + " 行)", 1)]), e.text.length ? (S(), a("div", t_, A(e.fullText), 1)) : (S(), a("div", $g, [t[7] ||= o("div", { class: "uz-empty-icon" }, "📝", -1), o("div", e_, A(e.ocrLoading ? "正在读取图像解析文字,请稍候..." : "暂无识别数据,请上传图像"), 1)]))])]);
|
|
9358
9352
|
}
|
|
9359
|
-
var
|
|
9353
|
+
var r_ = /*#__PURE__*/ W(jg, [["render", n_], ["__scopeId", "data-v-c7224ff5"]]), i_ = /* @__PURE__ */ dt({
|
|
9360
9354
|
AccessPoint: () => gt,
|
|
9361
9355
|
Activity: () => bt,
|
|
9362
9356
|
Adjustments: () => wt,
|
|
@@ -9496,45 +9490,45 @@ var n_ = /*#__PURE__*/ W(Ag, [["render", t_], ["__scopeId", "data-v-c7224ff5"]])
|
|
|
9496
9490
|
UzFormItemTimesPicker: () => vp,
|
|
9497
9491
|
UzFormItemUpload: () => up,
|
|
9498
9492
|
UzIcon: () => Ru,
|
|
9499
|
-
UzOcr: () =>
|
|
9500
|
-
UzSearchBar: () =>
|
|
9501
|
-
UzSearchMobileBar: () =>
|
|
9502
|
-
UzSpin: () =>
|
|
9503
|
-
UzTable: () =>
|
|
9504
|
-
UzTableChild: () =>
|
|
9505
|
-
UzTableDrawer: () =>
|
|
9506
|
-
UzTableFile: () =>
|
|
9507
|
-
UzTableMobile: () =>
|
|
9508
|
-
UzTableQuestChild: () =>
|
|
9509
|
-
UzThumbnail: () =>
|
|
9510
|
-
UzWrap: () =>
|
|
9493
|
+
UzOcr: () => r_,
|
|
9494
|
+
UzSearchBar: () => jm,
|
|
9495
|
+
UzSearchMobileBar: () => Lm,
|
|
9496
|
+
UzSpin: () => ih,
|
|
9497
|
+
UzTable: () => bh,
|
|
9498
|
+
UzTableChild: () => kh,
|
|
9499
|
+
UzTableDrawer: () => Hh,
|
|
9500
|
+
UzTableFile: () => ig,
|
|
9501
|
+
UzTableMobile: () => Qh,
|
|
9502
|
+
UzTableQuestChild: () => Fh,
|
|
9503
|
+
UzThumbnail: () => pg,
|
|
9504
|
+
UzWrap: () => Og,
|
|
9511
9505
|
X: () => Hl,
|
|
9512
9506
|
commonStore: () => q,
|
|
9513
9507
|
fnActionReduction: () => Hf,
|
|
9514
9508
|
fnActionSimplify: () => Vf,
|
|
9515
|
-
fnAddThumbnail: () =>
|
|
9516
|
-
fnClearAllThumbnail: () =>
|
|
9517
|
-
fnDeleteThumbnail: () =>
|
|
9518
|
-
fnGetTableData: () =>
|
|
9519
|
-
fnOptionReduction: () =>
|
|
9520
|
-
fnOptionSimplify: () =>
|
|
9521
|
-
fnPrepareFormData: () =>
|
|
9522
|
-
fnPrepareTableData: () =>
|
|
9509
|
+
fnAddThumbnail: () => cg,
|
|
9510
|
+
fnClearAllThumbnail: () => ug,
|
|
9511
|
+
fnDeleteThumbnail: () => lg,
|
|
9512
|
+
fnGetTableData: () => qm,
|
|
9513
|
+
fnOptionReduction: () => $m,
|
|
9514
|
+
fnOptionSimplify: () => Qm,
|
|
9515
|
+
fnPrepareFormData: () => eh,
|
|
9516
|
+
fnPrepareTableData: () => th,
|
|
9523
9517
|
fnRenderAction: () => Pf,
|
|
9524
9518
|
fnSetLang: () => Hu,
|
|
9525
9519
|
fnSetTheme: () => Uu,
|
|
9526
|
-
fnSetThumbnail: () =>
|
|
9527
|
-
fnTableReduction: () =>
|
|
9528
|
-
fnTableSimplify: () =>
|
|
9529
|
-
fnTriggersReduction: () =>
|
|
9530
|
-
fnTriggersSimplify: () =>
|
|
9520
|
+
fnSetThumbnail: () => og,
|
|
9521
|
+
fnTableReduction: () => Ym,
|
|
9522
|
+
fnTableSimplify: () => Jm,
|
|
9523
|
+
fnTriggersReduction: () => Zm,
|
|
9524
|
+
fnTriggersSimplify: () => Xm,
|
|
9531
9525
|
i18n: () => K
|
|
9532
|
-
}),
|
|
9533
|
-
function
|
|
9534
|
-
|
|
9526
|
+
}), a_ = 3840, o_ = 2160, s_ = w({ scale: 1 });
|
|
9527
|
+
function c_(e, t) {
|
|
9528
|
+
a_ = e, o_ = t;
|
|
9535
9529
|
}
|
|
9536
|
-
function
|
|
9537
|
-
let e = 1, t = window.innerWidth, n = window.innerHeight, r =
|
|
9530
|
+
function l_() {
|
|
9531
|
+
let e = 1, t = window.innerWidth, n = window.innerHeight, r = a_, i = o_, a = parseFloat((r / i).toFixed(5));
|
|
9538
9532
|
if (parseFloat((t / n).toFixed(5)) > a) {
|
|
9539
9533
|
let t = parseFloat((n * a / r).toFixed(5));
|
|
9540
9534
|
e = t > 1 ? 1 : t;
|
|
@@ -9542,17 +9536,17 @@ function c_() {
|
|
|
9542
9536
|
let n = parseFloat((t / a / i).toFixed(5));
|
|
9543
9537
|
e = n > 1 ? 1 : n;
|
|
9544
9538
|
}
|
|
9545
|
-
|
|
9539
|
+
s_.scale = e;
|
|
9546
9540
|
}
|
|
9547
|
-
function
|
|
9548
|
-
let e = $e(
|
|
9541
|
+
function u_() {
|
|
9542
|
+
let e = $e(l_, 200);
|
|
9549
9543
|
return e(), window.addEventListener("resize", e), () => {
|
|
9550
|
-
|
|
9544
|
+
a_ = 3840, o_ = 2160, window.removeEventListener("resize", e);
|
|
9551
9545
|
};
|
|
9552
9546
|
}
|
|
9553
9547
|
//#endregion
|
|
9554
9548
|
//#region components/hooks/useThrottleFn.ts
|
|
9555
|
-
function
|
|
9549
|
+
function d_(e, t = 1e3) {
|
|
9556
9550
|
let r = T(e), i = n(() => et((...e) => r.value([...e]), t));
|
|
9557
9551
|
return x(() => {
|
|
9558
9552
|
i.value.cancel();
|
|
@@ -9564,14 +9558,14 @@ function u_(e, t = 1e3) {
|
|
|
9564
9558
|
}
|
|
9565
9559
|
//#endregion
|
|
9566
9560
|
//#region components/hooks/useLocalStorage.ts
|
|
9567
|
-
function
|
|
9561
|
+
function f_(e, t) {
|
|
9568
9562
|
return [T(X(e, t?.defaultValue)), (n) => {
|
|
9569
9563
|
n === void 0 ? sd(e) : Y(e, n, t?.expired || "1 Day");
|
|
9570
9564
|
}];
|
|
9571
9565
|
}
|
|
9572
9566
|
//#endregion
|
|
9573
9567
|
//#region components/hooks/useQuery.ts
|
|
9574
|
-
function
|
|
9568
|
+
function p_(e, t, n) {
|
|
9575
9569
|
let r = `useQuery-${e}`, i = T(), a = T(), o = T(), s = T(!1), c = T("idle"), l = T(), u = T(0), d = T(0), f = () => {
|
|
9576
9570
|
mf(), clearInterval(o.value), o.value = null;
|
|
9577
9571
|
}, p = async () => {
|
|
@@ -9637,26 +9631,26 @@ function f_(e, t, n) {
|
|
|
9637
9631
|
}
|
|
9638
9632
|
//#endregion
|
|
9639
9633
|
//#region package.json
|
|
9640
|
-
var
|
|
9641
|
-
async function
|
|
9634
|
+
var m_ = "0.1.108", h_;
|
|
9635
|
+
async function g_() {
|
|
9642
9636
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
9643
9637
|
method: "HEAD",
|
|
9644
9638
|
cache: "no-cache"
|
|
9645
9639
|
});
|
|
9646
9640
|
return e.headers.get("etag") || e.headers.get("last-modified");
|
|
9647
9641
|
}
|
|
9648
|
-
async function g_() {
|
|
9649
|
-
let e = await h_();
|
|
9650
|
-
m_ !== e && Wu(!0);
|
|
9651
|
-
}
|
|
9652
9642
|
async function __() {
|
|
9653
|
-
|
|
9654
|
-
|
|
9643
|
+
let e = await g_();
|
|
9644
|
+
h_ !== e && Wu(!0);
|
|
9645
|
+
}
|
|
9646
|
+
async function v_() {
|
|
9647
|
+
h_ = await g_(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
|
|
9648
|
+
__();
|
|
9655
9649
|
}, 6e4);
|
|
9656
9650
|
}
|
|
9657
9651
|
//#endregion
|
|
9658
9652
|
//#region components/create.ts
|
|
9659
|
-
function
|
|
9653
|
+
function y_({ components: e = [] } = {}) {
|
|
9660
9654
|
let t = [];
|
|
9661
9655
|
function n(e, t, n) {
|
|
9662
9656
|
e.component(t) || e.component(t, n);
|
|
@@ -9669,16 +9663,16 @@ function v_({ components: e = [] } = {}) {
|
|
|
9669
9663
|
});
|
|
9670
9664
|
}), i)) {
|
|
9671
9665
|
let { title: e = "杭州宇臻智能", monitor: t = !1, monitorInfo: n, version: a = !0, language: o = !1, local: s = "zh-CN" } = i, c = X("theme", !1), l = X("lang", s);
|
|
9672
|
-
Gu(e), Vu(o), Hu(l), Uu(c), K.global.locale.value = l, a &&
|
|
9666
|
+
Gu(e), Vu(o), Hu(l), Uu(c), K.global.locale.value = l, a && v_(), t && rf(r, t, n);
|
|
9673
9667
|
}
|
|
9674
9668
|
}
|
|
9675
9669
|
return {
|
|
9676
|
-
version:
|
|
9670
|
+
version: m_,
|
|
9677
9671
|
install: r
|
|
9678
9672
|
};
|
|
9679
9673
|
}
|
|
9680
9674
|
//#endregion
|
|
9681
9675
|
//#region components/preset.ts
|
|
9682
|
-
var
|
|
9676
|
+
var b_ = y_({ components: Object.keys(i_).map((e) => i_[e]) }), x_ = b_.install;
|
|
9683
9677
|
//#endregion
|
|
9684
|
-
export { gt as AccessPoint, bt as Activity, wt as Adjustments, Ot as AdjustmentsHorizontal, Mt as Affiliate, It as Alarm, Bt as AlertCircle, Wt as ApiApp, Qt as AppWindow, Jt as Apps, nn as Archive, sn as ArrowNarrowLeft, dn as AspectRatio, hn as Atom, yn as Atom2, Cn as Award, gf as BLOB, Dn as Barcode, jn as Basket, Fn as Bell, zn as Bluetooth, Un as Book2, wu as Books, qn as Box, Zn as BrandAsana, Iu as BrandStackoverflow, tr as Briefcase, ar as Building, lr as BuildingArch, cu as BuildingWarehouse, _f as CUSTOM, _r as Calculator, xr as Calendar, Tr as CalendarPlus, kr as CalendarStats, Nr as Camera, Lr as CaretDown, Vr as CaretUp, Gr as ChartArea, Yr as ChartBar, $r as ChartBubble, ri as ChartDonut, si as ChartLine, di as ChartPie, hi as ChartRadar, eu as CheckMark, yi as Checkbox, Ci as CheckupList, Xl as CircleMinus, Di as Clipboard, ji as ClipboardCheck, Fi as ClipboardList, zi as ClipboardPlus, Ui as Clock, qi as Cloud, Zi as CloudDownload, ta as CloudUpload, aa as Command, Ou as Confetti, gu as Container, la as Copy, pr as Cpu, pa as CreditCard, _a as Crosshair, xa as CurrencyYen, bu as Dashboard, Ta as Database, ka as DatabaseExport, Na as DatabaseImport, La as DeviceAnalytics, Va as DeviceDesktop, Ga as DeviceDesktopAnalytics, Ya as DeviceLaptop, $a as DeviceMobile, ro as Diamond, so as Dots, fo as DotsVertical, go as Edit, bo as Eraser, wo as Eye, vf as FILE, Oo as File, Mo as FileAlert, Io as FileAnalytics, Bo as FileText, Wo as Filter, hf as GET, Jo as GitCompare, Qo as GitPullRequest, ns as GridDots, os as Home, zu as IconList, us as Id, ms as LayoutSidebarLeftCollapse, vs as LayoutSidebarLeftExpand, Ss as Link, Es as List, As as ListCheck, Ps as ListDetails, Rs as Mail, Hs as Map, Ks as MapPin, fu as Menu2, iu as Message2, Mu as MinusRound, Xs as MoonStars, Q as POST, ec as Paperclip, ic as Photo, cc as PhotoOff, fc as Plus, gc as Presentation, bc as PresentationAnalytics, wc as Printer, Oc as Qrcode, Mc as Refresh, Ic as Report, Bc as ReportAnalytics, Wc as ReportMoney, Jc as ReportSearch, Qc as Search, nl as Settings, ol as SmartHome, ul as Sun, ml as TransferIn, vl as TransferOut, Sl as Trash, El as User, Kl as UserCircle, Al as UserMinus, Pl as UserPlus, Rl as Users, ft as UzActionButton, Gf as UzBack, Op as UzBom, xm as UzCamera, mm as UzCircle, ip as UzDraggableForm, $f as UzForm, Yf as UzFormItem, mp as UzFormItemImage, vp as UzFormItemTimesPicker, up as UzFormItemUpload, Ru as UzIcon,
|
|
9678
|
+
export { gt as AccessPoint, bt as Activity, wt as Adjustments, Ot as AdjustmentsHorizontal, Mt as Affiliate, It as Alarm, Bt as AlertCircle, Wt as ApiApp, Qt as AppWindow, Jt as Apps, nn as Archive, sn as ArrowNarrowLeft, dn as AspectRatio, hn as Atom, yn as Atom2, Cn as Award, gf as BLOB, Dn as Barcode, jn as Basket, Fn as Bell, zn as Bluetooth, Un as Book2, wu as Books, qn as Box, Zn as BrandAsana, Iu as BrandStackoverflow, tr as Briefcase, ar as Building, lr as BuildingArch, cu as BuildingWarehouse, _f as CUSTOM, _r as Calculator, xr as Calendar, Tr as CalendarPlus, kr as CalendarStats, Nr as Camera, Lr as CaretDown, Vr as CaretUp, Gr as ChartArea, Yr as ChartBar, $r as ChartBubble, ri as ChartDonut, si as ChartLine, di as ChartPie, hi as ChartRadar, eu as CheckMark, yi as Checkbox, Ci as CheckupList, Xl as CircleMinus, Di as Clipboard, ji as ClipboardCheck, Fi as ClipboardList, zi as ClipboardPlus, Ui as Clock, qi as Cloud, Zi as CloudDownload, ta as CloudUpload, aa as Command, Ou as Confetti, gu as Container, la as Copy, pr as Cpu, pa as CreditCard, _a as Crosshair, xa as CurrencyYen, bu as Dashboard, Ta as Database, ka as DatabaseExport, Na as DatabaseImport, La as DeviceAnalytics, Va as DeviceDesktop, Ga as DeviceDesktopAnalytics, Ya as DeviceLaptop, $a as DeviceMobile, ro as Diamond, so as Dots, fo as DotsVertical, go as Edit, bo as Eraser, wo as Eye, vf as FILE, Oo as File, Mo as FileAlert, Io as FileAnalytics, Bo as FileText, Wo as Filter, hf as GET, Jo as GitCompare, Qo as GitPullRequest, ns as GridDots, os as Home, zu as IconList, us as Id, ms as LayoutSidebarLeftCollapse, vs as LayoutSidebarLeftExpand, Ss as Link, Es as List, As as ListCheck, Ps as ListDetails, Rs as Mail, Hs as Map, Ks as MapPin, fu as Menu2, iu as Message2, Mu as MinusRound, Xs as MoonStars, Q as POST, ec as Paperclip, ic as Photo, cc as PhotoOff, fc as Plus, gc as Presentation, bc as PresentationAnalytics, wc as Printer, Oc as Qrcode, Mc as Refresh, Ic as Report, Bc as ReportAnalytics, Wc as ReportMoney, Jc as ReportSearch, Qc as Search, nl as Settings, ol as SmartHome, ul as Sun, ml as TransferIn, vl as TransferOut, Sl as Trash, El as User, Kl as UserCircle, Al as UserMinus, Pl as UserPlus, Rl as Users, ft as UzActionButton, Gf as UzBack, Op as UzBom, xm as UzCamera, mm as UzCircle, ip as UzDraggableForm, $f as UzForm, Yf as UzFormItem, mp as UzFormItemImage, vp as UzFormItemTimesPicker, up as UzFormItemUpload, Ru as UzIcon, r_ as UzOcr, jm as UzSearchBar, Lm as UzSearchMobileBar, ih as UzSpin, bh as UzTable, kh as UzTableChild, Hh as UzTableDrawer, ig as UzTableFile, Qh as UzTableMobile, Fh as UzTableQuestChild, pg as UzThumbnail, Og as UzWrap, Hl as X, q as commonStore, y_ as create, Tg as darkTheme, b_ as default, Hf as fnActionReduction, Vf as fnActionSimplify, cg as fnAddThumbnail, mf as fnCancelFetch, ug as fnClearAllThumbnail, l_ as fnComputedScale, Bu as fnCreateRouter, sd as fnDelStorage, ld as fnDelStorageAll, cd as fnDelStorageByPrefix, lg as fnDeleteThumbnail, od as fnDialog, J as fnErrorLog, yd as fnFilterByPinyinInitials, fd as fnFormatTime, gd as fnFormatUnits, hd as fnFullScreen, X as fnGetStorage, qm as fnGetTableData, u_ as fnListenerScale, ad as fnNotification, $m as fnOptionReduction, Qm as fnOptionSimplify, dd as fnPageModel2Naive, eh as fnPrepareFormData, th as fnPrepareTableData, Pf as fnRenderAction, ud as fnScrollTop, Hu as fnSetLang, c_ as fnSetNormalWidthAndHeight, Y as fnSetStorage, Uu as fnSetTheme, og as fnSetThumbnail, Ym as fnTableReduction, Jm as fnTableSimplify, md as fnThrottle, pd as fnTitle, Zm as fnTriggersReduction, Xm as fnTriggersSimplify, K as i18n, x_ as install, wg as lightTheme, bd as mergeColumns, G as router, s_ as scaleStore, yp as useDebounceFn, f_ as useLocalStorage, p_ as useQuery, d_ as useThrottleFn };
|