@unizhen/ui 0.1.30 → 0.1.32
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/components/table/child.vue.d.ts +1 -0
- package/lib/components/table/factory.d.ts +1 -1
- package/lib/ui.js +348 -339
- package/package.json +1 -1
|
@@ -104,7 +104,7 @@ export declare function fnPrepareFormData(items: IUzFormItems, formData?: Object
|
|
|
104
104
|
fillingDefaultValue: ObjectKey;
|
|
105
105
|
fillingDefaultArray: ObjectKey[];
|
|
106
106
|
}>;
|
|
107
|
-
export declare function fnPrepareTableData(items: IUzFormItems, child?: boolean, status?: number, formValues?: () => void, modules?: {}): Promise<{
|
|
107
|
+
export declare function fnPrepareTableData(items: IUzFormItems, child?: boolean, status?: number, formValues?: () => void, modules?: {}, reFetch?: boolean): Promise<{
|
|
108
108
|
tableColumns: any[];
|
|
109
109
|
search: {
|
|
110
110
|
input: "number" | "color" | "group" | "input" | "select" | "time" | "date" | "auto" | "cascader" | "checkbox" | "timesPicker" | "filling";
|
package/lib/ui.js
CHANGED
|
@@ -5028,11 +5028,11 @@ var fp = () => new Promise((e) => {
|
|
|
5028
5028
|
function gp() {
|
|
5029
5029
|
hp.clear();
|
|
5030
5030
|
}
|
|
5031
|
-
async function _p(e) {
|
|
5032
|
-
let
|
|
5033
|
-
return
|
|
5034
|
-
sourceData:
|
|
5035
|
-
n
|
|
5031
|
+
async function _p(e, t = !1) {
|
|
5032
|
+
let n = e.split("."), r = !1;
|
|
5033
|
+
return n.length > 1 && (hp.has(n[0]) && !t ? r = H(hp.get(n[0])) : (r = await xd({ tableId: n[0] }), hp.set(n[0], r))), {
|
|
5034
|
+
sourceData: r,
|
|
5035
|
+
n
|
|
5036
5036
|
};
|
|
5037
5037
|
}
|
|
5038
5038
|
async function vp(e) {
|
|
@@ -5370,17 +5370,17 @@ function Tp(e, t, n, r) {
|
|
|
5370
5370
|
});
|
|
5371
5371
|
});
|
|
5372
5372
|
}
|
|
5373
|
-
async function Ep(e, t = !1, n = 0, r = () => {}, i = {}) {
|
|
5374
|
-
let
|
|
5375
|
-
for (let e of
|
|
5373
|
+
async function Ep(e, t = !1, n = 0, r = () => {}, i = {}, a = !1) {
|
|
5374
|
+
let o = 0, s = [], c = [], l = [], u = H(e), d = [], p = [];
|
|
5375
|
+
for (let e of u) e.input === "group" ? (d.push(...e.params.children), p.push({
|
|
5376
5376
|
title: e.label,
|
|
5377
5377
|
key: e.key,
|
|
5378
5378
|
...e.table,
|
|
5379
5379
|
children: e.params.children.map((e) => e.key)
|
|
5380
|
-
})) : (
|
|
5381
|
-
for await (let e of
|
|
5380
|
+
})) : (d.push(e), p.push(e.key));
|
|
5381
|
+
for await (let e of d) {
|
|
5382
5382
|
if (e.source && !e.table.render && (e.input === "select" || e.input === "cascader")) if (e.table.render = (t) => t[`${e.key}Str`], t || e.params.immediately || e.search.defaultValue) {
|
|
5383
|
-
let { sourceData: t, n } = await _p(e.source);
|
|
5383
|
+
let { sourceData: t, n } = await _p(e.source, a);
|
|
5384
5384
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5385
5385
|
let n = e.sourceFn, r = Function("sourceData", n);
|
|
5386
5386
|
e.params.options = r(t);
|
|
@@ -5401,8 +5401,8 @@ async function Ep(e, t = !1, n = 0, r = () => {}, i = {}) {
|
|
|
5401
5401
|
if (n) return n.label;
|
|
5402
5402
|
}), e.input === "upload" && !e.table.render && (e.table.render = function(t) {
|
|
5403
5403
|
return f(zf, { value: t[e.key] }, { default: () => null });
|
|
5404
|
-
}),
|
|
5405
|
-
let
|
|
5404
|
+
}), o += Number(e.table.width || 140);
|
|
5405
|
+
let u = {
|
|
5406
5406
|
input: e.input,
|
|
5407
5407
|
title: e.label,
|
|
5408
5408
|
key: e.key,
|
|
@@ -5420,14 +5420,14 @@ async function Ep(e, t = !1, n = 0, r = () => {}, i = {}) {
|
|
|
5420
5420
|
pin: !!e.table.fixed,
|
|
5421
5421
|
fixTemp: e.table.fixed
|
|
5422
5422
|
};
|
|
5423
|
-
if (t) if (!
|
|
5423
|
+
if (t) if (!u.form.edit.show) u = null;
|
|
5424
5424
|
else {
|
|
5425
|
-
if (
|
|
5425
|
+
if (u.ellipsis = !1, u.resizable = !0, K.isMobile && (u.show = e.table.mobile), e.table.show && (n === 0 && (u.show = e.form.create.show), n === 1 && (u.show = e.form.edit.show), n === 2 && (u.show = e.form.show)), e.form.rule?.required && typeof e.form.rule.validator == "string") {
|
|
5426
5426
|
delete e.form.rule.message;
|
|
5427
5427
|
let t = e.form.rule.validator, n = Function("rule", "value", "index", "formValues", t);
|
|
5428
5428
|
e.form.rule.validator === "" ? e.form.rule.validator = (t, n) => r()[t.index].delete || n ? !0 : Error(e.form.rule.message) : e.form.rule.validator = (e, t) => r()[e.index].delete ? !0 : n(e, t, e.index, () => r());
|
|
5429
5429
|
}
|
|
5430
|
-
|
|
5430
|
+
u.render = function(t, r) {
|
|
5431
5431
|
return f(me, {
|
|
5432
5432
|
showLabel: !1,
|
|
5433
5433
|
showFeedback: !1,
|
|
@@ -5444,7 +5444,7 @@ async function Ep(e, t = !1, n = 0, r = () => {}, i = {}) {
|
|
|
5444
5444
|
}) });
|
|
5445
5445
|
};
|
|
5446
5446
|
}
|
|
5447
|
-
if (
|
|
5447
|
+
if (u && e.input !== "divider" && e.input !== "subTable" && l.push(u), e.input !== "divider" && e.input !== "switch" && e.input !== "subTable" && e.input !== "upload" && e.search.show) {
|
|
5448
5448
|
if (e.search.title && (e.label = e.search.title), e.search.source) if (e.input = "select", e.params.type = e.search.type, e.params.valueKey = e.search.valueKey, e.params.valueKey = e.search.valueKey, e.search.source === "from-up") e.params.options = e.params.options;
|
|
5449
5449
|
else if (e.params.immediately || e.search.defaultValue) {
|
|
5450
5450
|
let { sourceData: t, n } = await _p(e.search.source);
|
|
@@ -5467,7 +5467,7 @@ async function Ep(e, t = !1, n = 0, r = () => {}, i = {}) {
|
|
|
5467
5467
|
let n = t.sourceFn;
|
|
5468
5468
|
return Function("sourceData", n)(e);
|
|
5469
5469
|
} else return mp(t, e, n);
|
|
5470
|
-
}),
|
|
5470
|
+
}), s.push({
|
|
5471
5471
|
input: t.input,
|
|
5472
5472
|
label: t.label,
|
|
5473
5473
|
key: t.key,
|
|
@@ -5483,31 +5483,31 @@ async function Ep(e, t = !1, n = 0, r = () => {}, i = {}) {
|
|
|
5483
5483
|
});
|
|
5484
5484
|
}
|
|
5485
5485
|
}
|
|
5486
|
-
e.input === "subTable" && e.params.link && !e.params.quest &&
|
|
5486
|
+
e.input === "subTable" && e.params.link && !e.params.quest && c.push(e.params.link);
|
|
5487
5487
|
}
|
|
5488
|
-
let
|
|
5489
|
-
if (
|
|
5490
|
-
for (let e of
|
|
5488
|
+
let m = [];
|
|
5489
|
+
if (p.length > 0) {
|
|
5490
|
+
for (let e of p) {
|
|
5491
5491
|
if (typeof e == "string") {
|
|
5492
|
-
let t =
|
|
5493
|
-
t &&
|
|
5492
|
+
let t = l.find((t) => t.key === e);
|
|
5493
|
+
t && m.push(t);
|
|
5494
5494
|
}
|
|
5495
5495
|
if (typeof e == "object") {
|
|
5496
5496
|
let t = e.children, n = [];
|
|
5497
5497
|
for (let e of t) {
|
|
5498
|
-
let t =
|
|
5498
|
+
let t = l.find((t) => t.key === e);
|
|
5499
5499
|
t && n.push(t);
|
|
5500
5500
|
}
|
|
5501
|
-
e.children = n,
|
|
5501
|
+
e.children = n, m.push(e);
|
|
5502
5502
|
}
|
|
5503
5503
|
}
|
|
5504
|
-
|
|
5504
|
+
l = m;
|
|
5505
5505
|
}
|
|
5506
5506
|
return {
|
|
5507
|
-
tableColumns:
|
|
5508
|
-
search:
|
|
5509
|
-
subTableIds:
|
|
5510
|
-
tableWidth:
|
|
5507
|
+
tableColumns: l,
|
|
5508
|
+
search: s,
|
|
5509
|
+
subTableIds: c,
|
|
5510
|
+
tableWidth: o
|
|
5511
5511
|
};
|
|
5512
5512
|
}
|
|
5513
5513
|
//#endregion
|
|
@@ -6510,14 +6510,14 @@ var zp = /*#__PURE__*/ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6510
6510
|
}
|
|
6511
6511
|
},
|
|
6512
6512
|
emits: ["update:value"],
|
|
6513
|
-
setup(e, { emit:
|
|
6514
|
-
let
|
|
6513
|
+
setup(e, { emit: n, expose: r }) {
|
|
6514
|
+
let i = p("emitSuffix"), a = p("modules"), o = p("mainFormValue"), s = p("childFormReload"), c = t(() => s()), { t: l } = Ye(), u = w(), d = w(), m = w(), g = w(!0), _ = w(!1), y = w(!0), b = w([]), x = w({ child: [] }), S = w(""), C = w({}), T = w([]), E = w(void 0), D = async (t, n) => {
|
|
6515
6515
|
let { formDefaultValue: r, fillingDefaultArray: i } = await Tp(H(n ?? e.item.params.columns), t, void 0, !0);
|
|
6516
|
-
return
|
|
6517
|
-
},
|
|
6518
|
-
if (
|
|
6519
|
-
|
|
6520
|
-
let n = await
|
|
6516
|
+
return C.value = r, i;
|
|
6517
|
+
}, ee = async (t) => {
|
|
6518
|
+
if (_.value) return;
|
|
6519
|
+
_.value = !0;
|
|
6520
|
+
let n = await D(t), r = H(t).map((e, t) => ({
|
|
6521
6521
|
...e,
|
|
6522
6522
|
...n[t]
|
|
6523
6523
|
}));
|
|
@@ -6529,29 +6529,29 @@ var zp = /*#__PURE__*/ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6529
6529
|
t.forEach((t) => {
|
|
6530
6530
|
e[t] && typeof e[t] == "string" && (e[t] = JSON.parse(e[t]));
|
|
6531
6531
|
});
|
|
6532
|
-
}), e.item.params.init && r.length === 0 && e.status === 0 && (r = [
|
|
6532
|
+
}), e.item.params.init && r.length === 0 && e.status === 0 && (r = [C.value]), e.item.params.merge && typeof e.item.params.merge == "string") try {
|
|
6533
6533
|
let t = e.item.params.merge;
|
|
6534
|
-
r = await Function("formValue", "mainFormValue", "POST", t)(r,
|
|
6534
|
+
r = await Function("formValue", "mainFormValue", "POST", t)(r, o, Z);
|
|
6535
6535
|
} catch (e) {
|
|
6536
6536
|
q(e);
|
|
6537
6537
|
}
|
|
6538
|
-
|
|
6539
|
-
|
|
6538
|
+
x.value.child = r, _.value = !1, h(() => {
|
|
6539
|
+
I();
|
|
6540
6540
|
});
|
|
6541
6541
|
} else h(() => {
|
|
6542
|
-
|
|
6542
|
+
I();
|
|
6543
6543
|
});
|
|
6544
|
-
},
|
|
6545
|
-
e.item._suffix && (
|
|
6546
|
-
let { tableColumns:
|
|
6547
|
-
|
|
6544
|
+
}, O = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
|
|
6545
|
+
g.value = !0, e.item._suffix && (T.value = e.item._suffix.filter((e) => e.sub)), await D(e.value, t);
|
|
6546
|
+
let { tableColumns: r, tableWidth: i } = await Ep(H(t ?? e.item.params.columns), !0, e.status, () => x.value.child, a, n), s = i;
|
|
6547
|
+
r.unshift({
|
|
6548
6548
|
title: " ",
|
|
6549
6549
|
key: "index",
|
|
6550
6550
|
align: "center",
|
|
6551
6551
|
titleAlign: "center",
|
|
6552
6552
|
width: 10,
|
|
6553
6553
|
show: !0
|
|
6554
|
-
}), s += 60, e.item.params.draggable && e.status !== 2 && (
|
|
6554
|
+
}), s += 60, e.item.params.draggable && e.status !== 2 && (r.unshift({
|
|
6555
6555
|
title: " ",
|
|
6556
6556
|
key: "draggable",
|
|
6557
6557
|
align: "center",
|
|
@@ -6564,8 +6564,8 @@ var zp = /*#__PURE__*/ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6564
6564
|
render() {
|
|
6565
6565
|
return f("div", { class: "flex justify-center" }, f(B, {}, { default: () => f(Xo) }));
|
|
6566
6566
|
}
|
|
6567
|
-
}), s += 40), e.status !== 2 && e.item.params.showActions &&
|
|
6568
|
-
title: () =>
|
|
6567
|
+
}), s += 40), e.status !== 2 && e.item.params.showActions && r.push({
|
|
6568
|
+
title: () => l("Common.action"),
|
|
6569
6569
|
key: "action",
|
|
6570
6570
|
align: "center",
|
|
6571
6571
|
fixed: "right",
|
|
@@ -6578,7 +6578,7 @@ var zp = /*#__PURE__*/ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6578
6578
|
let r = [];
|
|
6579
6579
|
return e.item.params.childActions && e.item.params.actions && Rd(e.item.params.actions).forEach((e) => {
|
|
6580
6580
|
e.disabled && typeof e.disabled == "string" && (e.disabled = Function("rowData", "rowIndex", e.disabled)(t, n)), r.push(e);
|
|
6581
|
-
}), e.item.params.showDelete && e.status !== 2 && (
|
|
6581
|
+
}), e.item.params.showDelete && e.status !== 2 && (x.value.child.length > 1 && e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly) && r.push({
|
|
6582
6582
|
type: "normal",
|
|
6583
6583
|
color: "error",
|
|
6584
6584
|
key: "delete",
|
|
@@ -6586,7 +6586,7 @@ var zp = /*#__PURE__*/ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6586
6586
|
confirmText: "确认删除?",
|
|
6587
6587
|
onClick: () => {
|
|
6588
6588
|
let n = e.item.params.deleteFn;
|
|
6589
|
-
n && typeof n == "string" ? t = Function("rowData", "mainFormValue", n)(t,
|
|
6589
|
+
n && typeof n == "string" ? t = Function("rowData", "mainFormValue", n)(t, o) : t.delete = !0;
|
|
6590
6590
|
}
|
|
6591
6591
|
}), Ad({
|
|
6592
6592
|
buttons: r,
|
|
@@ -6595,10 +6595,10 @@ var zp = /*#__PURE__*/ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6595
6595
|
}
|
|
6596
6596
|
});
|
|
6597
6597
|
let c = [];
|
|
6598
|
-
|
|
6598
|
+
r.forEach((e) => {
|
|
6599
6599
|
e.show && c.push(e);
|
|
6600
|
-
}),
|
|
6601
|
-
},
|
|
6600
|
+
}), b.value = c, s += 180, E.value = s, g.value = !1;
|
|
6601
|
+
}, A = (t) => {
|
|
6602
6602
|
if (e.item.params.summary) {
|
|
6603
6603
|
if (typeof e.item.params.summary == "function") return e.item.params.summary(t);
|
|
6604
6604
|
try {
|
|
@@ -6609,65 +6609,65 @@ var zp = /*#__PURE__*/ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6609
6609
|
}
|
|
6610
6610
|
}
|
|
6611
6611
|
return [];
|
|
6612
|
-
},
|
|
6613
|
-
|
|
6614
|
-
|
|
6612
|
+
}, M = async () => {
|
|
6613
|
+
S.value = "", x.value.child.push(H(C.value)), h(() => {
|
|
6614
|
+
I();
|
|
6615
6615
|
});
|
|
6616
|
-
},
|
|
6617
|
-
|
|
6616
|
+
}, N = async () => {
|
|
6617
|
+
S.value = "";
|
|
6618
6618
|
try {
|
|
6619
6619
|
let t = e.item.params.options;
|
|
6620
6620
|
if (t) {
|
|
6621
6621
|
let n = Function("formValue", "mainFormValue", "POST", t);
|
|
6622
|
-
e.item.params.optionsType &&
|
|
6622
|
+
e.item.params.optionsType && i({
|
|
6623
6623
|
open: e.item.params.optionsType,
|
|
6624
|
-
mainFormValue:
|
|
6625
|
-
children: () =>
|
|
6624
|
+
mainFormValue: o,
|
|
6625
|
+
children: () => x.value.child,
|
|
6626
6626
|
callback: async (e) => {
|
|
6627
|
-
let t = await n(e,
|
|
6628
|
-
|
|
6629
|
-
|
|
6627
|
+
let t = await n(e, o, Z);
|
|
6628
|
+
x.value.child = [...x.value.child, ...t], h(() => {
|
|
6629
|
+
I();
|
|
6630
6630
|
});
|
|
6631
6631
|
}
|
|
6632
6632
|
});
|
|
6633
|
-
} else e.item.params.optionsType &&
|
|
6633
|
+
} else e.item.params.optionsType && i({
|
|
6634
6634
|
open: e.item.params.optionsType,
|
|
6635
|
-
mainFormValue:
|
|
6636
|
-
children: () =>
|
|
6635
|
+
mainFormValue: o,
|
|
6636
|
+
children: () => x.value.child,
|
|
6637
6637
|
callback: async (e) => {
|
|
6638
|
-
|
|
6639
|
-
|
|
6638
|
+
x.value.child = [...x.value.child, ...e], h(() => {
|
|
6639
|
+
I();
|
|
6640
6640
|
});
|
|
6641
6641
|
}
|
|
6642
6642
|
});
|
|
6643
6643
|
} catch (e) {
|
|
6644
6644
|
q(e);
|
|
6645
6645
|
}
|
|
6646
|
-
},
|
|
6647
|
-
|
|
6648
|
-
},
|
|
6649
|
-
let r =
|
|
6646
|
+
}, P = () => {
|
|
6647
|
+
m.value?.restoreValidation();
|
|
6648
|
+
}, F = () => (S.value = "", new Promise((t, n) => {
|
|
6649
|
+
let r = x.value.child.filter((e) => !e.delete).length;
|
|
6650
6650
|
if (e.item.form.rule.required && r === 0) {
|
|
6651
|
-
|
|
6651
|
+
S.value = e.item.form.rule.message, n();
|
|
6652
6652
|
return;
|
|
6653
6653
|
}
|
|
6654
|
-
|
|
6655
|
-
r ? (
|
|
6654
|
+
m.value?.validate((r) => {
|
|
6655
|
+
r ? (S.value = e.item.form.rule.message, n()) : t();
|
|
6656
6656
|
});
|
|
6657
|
-
})),
|
|
6658
|
-
if (e.item.params.draggable && e.status !== 2 &&
|
|
6659
|
-
let e =
|
|
6660
|
-
e && (
|
|
6657
|
+
})), I = () => {
|
|
6658
|
+
if (e.item.params.draggable && e.status !== 2 && u.value && !d.value) {
|
|
6659
|
+
let e = u.value.$el.querySelector(".n-data-table-tbody");
|
|
6660
|
+
e && (d.value = rt.create(e, {
|
|
6661
6661
|
handle: ".uz-drag-handle",
|
|
6662
6662
|
onEnd: ({ oldIndex: e, newIndex: t }) => {
|
|
6663
|
-
|
|
6664
|
-
let n = H(
|
|
6663
|
+
d.value?.destroy(), d.value = null, y.value = !1;
|
|
6664
|
+
let n = H(x.value.child), r = n.splice(e, 1)[0];
|
|
6665
6665
|
n.splice(t, 0, r), n = n.map((e, t) => ({
|
|
6666
6666
|
...e,
|
|
6667
6667
|
sort_index: t
|
|
6668
|
-
})),
|
|
6669
|
-
|
|
6670
|
-
|
|
6668
|
+
})), x.value.child = n, h(() => {
|
|
6669
|
+
y.value = !0, setTimeout(() => {
|
|
6670
|
+
I();
|
|
6671
6671
|
}, 0);
|
|
6672
6672
|
});
|
|
6673
6673
|
}
|
|
@@ -6675,161 +6675,170 @@ var zp = /*#__PURE__*/ U(Ap, [["render", Rp]]), Bp = d({
|
|
|
6675
6675
|
}
|
|
6676
6676
|
};
|
|
6677
6677
|
return v(() => {
|
|
6678
|
-
|
|
6679
|
-
}),
|
|
6680
|
-
validate:
|
|
6681
|
-
restoreValidation:
|
|
6678
|
+
d.value?.destroy(), d.value = null;
|
|
6679
|
+
}), r({
|
|
6680
|
+
validate: F,
|
|
6681
|
+
restoreValidation: P
|
|
6682
6682
|
}), j(() => e.item.params.columns, (e, t) => {
|
|
6683
|
-
JSON.stringify(e) !== JSON.stringify(t) &&
|
|
6683
|
+
JSON.stringify(e) !== JSON.stringify(t) && k(e);
|
|
6684
6684
|
}, {
|
|
6685
6685
|
deep: !0,
|
|
6686
6686
|
immediate: !0
|
|
6687
6687
|
}), j(() => e.value, (e) => {
|
|
6688
|
-
JSON.stringify(e) !== JSON.stringify(
|
|
6688
|
+
JSON.stringify(e) !== JSON.stringify(x.value.child) && ee(e);
|
|
6689
6689
|
}, {
|
|
6690
6690
|
deep: !0,
|
|
6691
6691
|
immediate: !0
|
|
6692
|
-
}), j(() =>
|
|
6693
|
-
e.status !== 2 &&
|
|
6694
|
-
}, { deep: !0 }), {
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6692
|
+
}), j(() => x.value.child, (t) => {
|
|
6693
|
+
e.status !== 2 && n("update:value", t);
|
|
6694
|
+
}, { deep: !0 }), j(() => c.value, async () => {
|
|
6695
|
+
await k(void 0, !0);
|
|
6696
|
+
}), {
|
|
6697
|
+
spin: g,
|
|
6698
|
+
loading: _,
|
|
6699
|
+
formRef: m,
|
|
6700
|
+
tableRef: u,
|
|
6701
|
+
columns: b,
|
|
6702
|
+
tableData: x,
|
|
6703
|
+
summaryData: A,
|
|
6704
|
+
message: S,
|
|
6705
|
+
tableScrollX: E,
|
|
6706
|
+
tableShow: y,
|
|
6707
|
+
suffixes: T,
|
|
6708
|
+
onAdd: M,
|
|
6709
|
+
onAddFormData: N,
|
|
6710
|
+
rowClassName: O,
|
|
6708
6711
|
doSuffixClick: (e) => {
|
|
6709
|
-
|
|
6712
|
+
i({
|
|
6710
6713
|
open: e.optionsType,
|
|
6711
|
-
mainFormValue:
|
|
6714
|
+
mainFormValue: o,
|
|
6712
6715
|
onClick: e.onClick,
|
|
6713
6716
|
optionsSource: e.optionsSource,
|
|
6714
|
-
children: () =>
|
|
6717
|
+
children: () => x.value.child,
|
|
6715
6718
|
callback: () => null
|
|
6716
6719
|
});
|
|
6717
6720
|
}
|
|
6718
6721
|
};
|
|
6719
6722
|
}
|
|
6720
|
-
}), Vp = { class: "uz-flex
|
|
6723
|
+
}), Vp = { class: "uz-flex uz-justify-between" }, Hp = { class: "uz-com-title" }, Up = {
|
|
6721
6724
|
key: 0,
|
|
6722
6725
|
class: "uz-table-asterisk"
|
|
6723
|
-
},
|
|
6724
|
-
function
|
|
6725
|
-
let m = D("UzIcon"), h = D("NIcon"), _ = D("NButton"), v = D("Plus"), y = D("NDataTable"), b = D("NForm");
|
|
6726
|
-
return x(),
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
default: N(() => [l(m, { icon: e.icon }, null, 8, ["icon"])]),
|
|
6726
|
+
}, Wp = { class: "uz-flex uz-gap-2" }, Gp = { class: "uz-flex uz-justify-end uz-gap-2" };
|
|
6727
|
+
function Kp(t, s, u, d, f, p) {
|
|
6728
|
+
let m = D("UzIcon"), h = D("NIcon"), _ = D("NButton"), v = D("Plus"), y = D("NDataTable"), b = D("NForm"), S = D("n-spin");
|
|
6729
|
+
return x(), n(S, {
|
|
6730
|
+
show: t.spin,
|
|
6731
|
+
class: "uz-flex-1 uz-w-full"
|
|
6732
|
+
}, {
|
|
6733
|
+
default: N(() => [
|
|
6734
|
+
a("div", Vp, [a("div", Hp, [c(k(t.item.label) + " ", 1), t.item.form.rule.required ? (x(), i("span", Up, " \xA0* ")) : r("", !0)]), a("div", Wp, [
|
|
6735
|
+
t.status === 2 ? r("", !0) : (x(!0), i(e, { key: 0 }, T(t.suffixes, (e) => (x(), n(_, {
|
|
6736
|
+
key: e.key,
|
|
6737
|
+
type: e.color,
|
|
6738
|
+
secondary: "",
|
|
6739
|
+
onClick: (n) => t.doSuffixClick(e)
|
|
6740
|
+
}, o({
|
|
6741
|
+
default: N(() => [c(" " + k(e.buttonText), 1)]),
|
|
6740
6742
|
_: 2
|
|
6741
|
-
},
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6743
|
+
}, [e.icon ? {
|
|
6744
|
+
name: "icon",
|
|
6745
|
+
fn: N(() => [l(h, null, {
|
|
6746
|
+
default: N(() => [l(m, { icon: e.icon }, null, 8, ["icon"])]),
|
|
6747
|
+
_: 2
|
|
6748
|
+
}, 1024)]),
|
|
6749
|
+
key: "0"
|
|
6750
|
+
} : void 0]), 1032, ["type", "onClick"]))), 128)),
|
|
6751
|
+
t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), n(_, {
|
|
6752
|
+
key: 1,
|
|
6753
|
+
type: "success",
|
|
6754
|
+
secondary: "",
|
|
6755
|
+
onClick: t.onAddFormData
|
|
6756
|
+
}, {
|
|
6757
|
+
icon: N(() => [l(h, null, {
|
|
6758
|
+
default: N(() => [l(v)]),
|
|
6759
|
+
_: 1
|
|
6760
|
+
})]),
|
|
6761
|
+
default: N(() => [s[0] ||= c(" 从数据新增 ", -1)]),
|
|
6752
6762
|
_: 1
|
|
6753
|
-
}
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
default: N(() => [
|
|
6763
|
+
}, 8, ["onClick"])) : r("", !0),
|
|
6764
|
+
t.item.params.addButton && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), n(_, {
|
|
6765
|
+
key: 2,
|
|
6766
|
+
type: "success",
|
|
6767
|
+
secondary: "",
|
|
6768
|
+
onClick: t.onAdd
|
|
6769
|
+
}, {
|
|
6770
|
+
icon: N(() => [l(h, null, {
|
|
6771
|
+
default: N(() => [l(v)]),
|
|
6772
|
+
_: 1
|
|
6773
|
+
})]),
|
|
6774
|
+
default: N(() => [s[1] ||= c(" 新增 ", -1)]),
|
|
6765
6775
|
_: 1
|
|
6766
|
-
}
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
"label-width": 80,
|
|
6775
|
-
model: t.tableData,
|
|
6776
|
-
class: "uz-flex uz-flex-col uz-gap-2"
|
|
6777
|
-
}, {
|
|
6778
|
-
default: N(() => [t.tableShow ? (x(), n(y, {
|
|
6779
|
-
key: 0,
|
|
6780
|
-
ref: "tableRef",
|
|
6781
|
-
columns: t.columns,
|
|
6782
|
-
data: t.tableData.child,
|
|
6783
|
-
pagination: !1,
|
|
6784
|
-
loading: t.loading,
|
|
6785
|
-
summary: t.summaryData,
|
|
6786
|
-
"scroll-x": t.tableScrollX,
|
|
6787
|
-
class: g([t.message ? "error-border" : void 0, "uz-table-child"]),
|
|
6788
|
-
size: "small",
|
|
6789
|
-
"row-class-name": t.rowClassName,
|
|
6790
|
-
"scrollbar-props": {
|
|
6791
|
-
size: 8,
|
|
6792
|
-
trigger: "none"
|
|
6793
|
-
},
|
|
6794
|
-
remote: ""
|
|
6795
|
-
}, null, 8, [
|
|
6796
|
-
"columns",
|
|
6797
|
-
"data",
|
|
6798
|
-
"loading",
|
|
6799
|
-
"summary",
|
|
6800
|
-
"scroll-x",
|
|
6801
|
-
"class",
|
|
6802
|
-
"row-class-name"
|
|
6803
|
-
])) : r("", !0), a("div", Kp, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), n(_, {
|
|
6804
|
-
key: 0,
|
|
6805
|
-
type: "success",
|
|
6806
|
-
secondary: "",
|
|
6807
|
-
onClick: t.onAddFormData
|
|
6776
|
+
}, 8, ["onClick"])) : r("", !0)
|
|
6777
|
+
])]),
|
|
6778
|
+
s[4] ||= a("div", { class: "uz-br" }, null, -1),
|
|
6779
|
+
l(b, {
|
|
6780
|
+
ref: "formRef",
|
|
6781
|
+
"label-width": 80,
|
|
6782
|
+
model: t.tableData,
|
|
6783
|
+
class: "uz-flex uz-flex-col uz-gap-2"
|
|
6808
6784
|
}, {
|
|
6809
|
-
|
|
6810
|
-
|
|
6785
|
+
default: N(() => [t.tableShow ? (x(), n(y, {
|
|
6786
|
+
key: 0,
|
|
6787
|
+
ref: "tableRef",
|
|
6788
|
+
columns: t.columns,
|
|
6789
|
+
data: t.tableData.child,
|
|
6790
|
+
pagination: !1,
|
|
6791
|
+
loading: t.loading,
|
|
6792
|
+
summary: t.summaryData,
|
|
6793
|
+
"scroll-x": t.tableScrollX,
|
|
6794
|
+
class: g([t.message ? "error-border" : void 0, "uz-table-child"]),
|
|
6795
|
+
size: "small",
|
|
6796
|
+
"row-class-name": t.rowClassName,
|
|
6797
|
+
"scrollbar-props": {
|
|
6798
|
+
size: 8,
|
|
6799
|
+
trigger: "none"
|
|
6800
|
+
},
|
|
6801
|
+
remote: ""
|
|
6802
|
+
}, null, 8, [
|
|
6803
|
+
"columns",
|
|
6804
|
+
"data",
|
|
6805
|
+
"loading",
|
|
6806
|
+
"summary",
|
|
6807
|
+
"scroll-x",
|
|
6808
|
+
"class",
|
|
6809
|
+
"row-class-name"
|
|
6810
|
+
])) : r("", !0), a("div", Gp, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), n(_, {
|
|
6811
|
+
key: 0,
|
|
6812
|
+
type: "success",
|
|
6813
|
+
secondary: "",
|
|
6814
|
+
onClick: t.onAddFormData
|
|
6815
|
+
}, {
|
|
6816
|
+
icon: N(() => [l(h, null, {
|
|
6817
|
+
default: N(() => [l(v)]),
|
|
6818
|
+
_: 1
|
|
6819
|
+
})]),
|
|
6820
|
+
default: N(() => [s[2] ||= c(" 从数据新增 ", -1)]),
|
|
6811
6821
|
_: 1
|
|
6812
|
-
}
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
default: N(() => [
|
|
6822
|
+
}, 8, ["onClick"])) : r("", !0), t.item.params.addButton && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), n(_, {
|
|
6823
|
+
key: 1,
|
|
6824
|
+
type: "success",
|
|
6825
|
+
secondary: "",
|
|
6826
|
+
onClick: t.onAdd
|
|
6827
|
+
}, {
|
|
6828
|
+
icon: N(() => [l(h, null, {
|
|
6829
|
+
default: N(() => [l(v)]),
|
|
6830
|
+
_: 1
|
|
6831
|
+
})]),
|
|
6832
|
+
default: N(() => [s[3] ||= c(" 新增 ", -1)]),
|
|
6823
6833
|
_: 1
|
|
6824
|
-
})]),
|
|
6825
|
-
default: N(() => [s[3] ||= c(" 新增 ", -1)]),
|
|
6834
|
+
}, 8, ["onClick"])) : r("", !0)])]),
|
|
6826
6835
|
_: 1
|
|
6827
|
-
}, 8, ["
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
]);
|
|
6836
|
+
}, 8, ["model"])
|
|
6837
|
+
]),
|
|
6838
|
+
_: 1
|
|
6839
|
+
}, 8, ["show"]);
|
|
6831
6840
|
}
|
|
6832
|
-
var
|
|
6841
|
+
var qp = /*#__PURE__*/ U(Bp, [["render", Kp]]), Jp = d({
|
|
6833
6842
|
name: "UzTableQuestChild",
|
|
6834
6843
|
components: { NDataTable: oe },
|
|
6835
6844
|
props: {
|
|
@@ -6928,11 +6937,11 @@ var Jp = /*#__PURE__*/ U(Bp, [["render", qp]]), Yp = d({
|
|
|
6928
6937
|
tableScrollX: s
|
|
6929
6938
|
};
|
|
6930
6939
|
}
|
|
6931
|
-
}),
|
|
6932
|
-
function
|
|
6940
|
+
}), Yp = { class: "uz-flex-1 uz-w-full" }, Xp = { class: "uz-flex uz-justify-between" }, Zp = { class: "uz-com-title" };
|
|
6941
|
+
function Qp(e, t, n, r, o, s) {
|
|
6933
6942
|
let c = D("NDataTable"), u = D("UzTableDrawer");
|
|
6934
|
-
return x(), i("div",
|
|
6935
|
-
a("div",
|
|
6943
|
+
return x(), i("div", Yp, [
|
|
6944
|
+
a("div", Xp, [a("div", Zp, k(e.item.label), 1)]),
|
|
6936
6945
|
t[0] ||= a("div", { class: "uz-br" }, null, -1),
|
|
6937
6946
|
l(c, {
|
|
6938
6947
|
columns: e.columns,
|
|
@@ -6957,7 +6966,7 @@ function $p(e, t, n, r, o, s) {
|
|
|
6957
6966
|
l(u, { ref: "drawerRef" }, null, 512)
|
|
6958
6967
|
]);
|
|
6959
6968
|
}
|
|
6960
|
-
var
|
|
6969
|
+
var $p = /*#__PURE__*/ U(Jp, [["render", Qp]]), em = d({
|
|
6961
6970
|
name: "UzTableDrawer",
|
|
6962
6971
|
components: {
|
|
6963
6972
|
NButton: L,
|
|
@@ -7121,11 +7130,11 @@ var em = /*#__PURE__*/ U(Yp, [["render", $p]]), tm = d({
|
|
|
7121
7130
|
}
|
|
7122
7131
|
};
|
|
7123
7132
|
}
|
|
7124
|
-
}),
|
|
7133
|
+
}), tm = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, nm = {
|
|
7125
7134
|
key: 0,
|
|
7126
7135
|
class: "uz-grid uz-grid-cols-2 uz-gap-2"
|
|
7127
|
-
},
|
|
7128
|
-
function
|
|
7136
|
+
}, rm = { class: "uz-flex uz-gap-2" };
|
|
7137
|
+
function im(e, t, s, u, d, f) {
|
|
7129
7138
|
let p = D("NSkeleton"), m = D("UzForm"), h = D("UzSpin"), g = D("NSpin"), _ = D("NButton"), v = D("NDrawerContent"), y = D("NDrawer");
|
|
7130
7139
|
return x(), n(y, {
|
|
7131
7140
|
show: e.drawer,
|
|
@@ -7151,7 +7160,7 @@ function am(e, t, s, u, d, f) {
|
|
|
7151
7160
|
message: e.spinMsg,
|
|
7152
7161
|
status: e.spinStatus
|
|
7153
7162
|
}, {
|
|
7154
|
-
default: N(() => [a("div",
|
|
7163
|
+
default: N(() => [a("div", tm, [e.skeletonShow ? (x(), i("div", nm, [
|
|
7155
7164
|
l(p, {
|
|
7156
7165
|
size: "large",
|
|
7157
7166
|
style: { height: "156px" }
|
|
@@ -7214,7 +7223,7 @@ function am(e, t, s, u, d, f) {
|
|
|
7214
7223
|
_: 2
|
|
7215
7224
|
}, [e.formStatus === 2 ? void 0 : {
|
|
7216
7225
|
name: "footer",
|
|
7217
|
-
fn: N(() => [a("div",
|
|
7226
|
+
fn: N(() => [a("div", rm, [
|
|
7218
7227
|
l(_, {
|
|
7219
7228
|
loading: e.spinShow,
|
|
7220
7229
|
class: "uz-drawer-button",
|
|
@@ -7257,7 +7266,7 @@ function am(e, t, s, u, d, f) {
|
|
|
7257
7266
|
"on-after-leave"
|
|
7258
7267
|
]);
|
|
7259
7268
|
}
|
|
7260
|
-
var
|
|
7269
|
+
var am = /*#__PURE__*/ U(em, [["render", im]]), om = d({
|
|
7261
7270
|
name: "UzTableMobileList",
|
|
7262
7271
|
props: {
|
|
7263
7272
|
tableData: {
|
|
@@ -7275,12 +7284,12 @@ var om = /*#__PURE__*/ U(tm, [["render", am]]), sm = d({
|
|
|
7275
7284
|
},
|
|
7276
7285
|
emits: ["update:row-keys"],
|
|
7277
7286
|
setup() {}
|
|
7278
|
-
}),
|
|
7287
|
+
}), sm = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, cm = {
|
|
7279
7288
|
key: 1,
|
|
7280
7289
|
class: "uz-table-mobile-group-txt"
|
|
7281
7290
|
};
|
|
7282
|
-
function
|
|
7283
|
-
return x(), i("div",
|
|
7291
|
+
function lm(t, o, s, c, l, u) {
|
|
7292
|
+
return x(), i("div", sm, [(x(!0), i(e, null, T(t.tableColumns, (o) => (x(), i("div", {
|
|
7284
7293
|
key: o.key,
|
|
7285
7294
|
class: g(["uz-flex uz-overflow-hidden", o.lineBreak ? "uz-flex-col" : ""]),
|
|
7286
7295
|
style: _(`grid-column: span ${o.lineCol || 2} / span ${o.lineCol || 2}`)
|
|
@@ -7291,11 +7300,11 @@ function um(t, o, s, c, l, u) {
|
|
|
7291
7300
|
class: "mobile"
|
|
7292
7301
|
})) : r("", !0)], 64)) : (x(), i(e, { key: 1 }, [a("div", { class: g(["uz-table-mobile-group-title", o.lineBreak ? "line-break" : ""]) }, [a("div", null, k(typeof o.title == "string" ? o.title : o.title()), 1)], 2), a("div", { class: g(["uz-table-mobile-group-content", o.lineBreak ? "line-break" : ""]) }, [o.render ? (x(), n(O(() => {
|
|
7293
7302
|
if (t.tableData) return o.render(t.tableData, t.tableIndex);
|
|
7294
|
-
}), { key: 0 })) : (x(), i("div",
|
|
7303
|
+
}), { key: 0 })) : (x(), i("div", cm, k(t.tableData[o.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
|
|
7295
7304
|
}
|
|
7296
7305
|
//#endregion
|
|
7297
7306
|
//#region components/table/mobile.vue?vue&type=script&lang.ts
|
|
7298
|
-
var
|
|
7307
|
+
var um = d({
|
|
7299
7308
|
name: "UzTableMobile",
|
|
7300
7309
|
components: {
|
|
7301
7310
|
NCheckbox: R,
|
|
@@ -7303,7 +7312,7 @@ var dm = d({
|
|
|
7303
7312
|
NPagination: we,
|
|
7304
7313
|
NCheckboxGroup: re,
|
|
7305
7314
|
NRadioGroup: Oe,
|
|
7306
|
-
UzTableMobileList: /* @__PURE__ */ U(
|
|
7315
|
+
UzTableMobileList: /* @__PURE__ */ U(om, [["render", lm], ["__scopeId", "data-v-84c394fe"]])
|
|
7307
7316
|
},
|
|
7308
7317
|
props: {
|
|
7309
7318
|
tableData: {
|
|
@@ -7350,17 +7359,17 @@ var dm = d({
|
|
|
7350
7359
|
}
|
|
7351
7360
|
};
|
|
7352
7361
|
}
|
|
7353
|
-
}),
|
|
7362
|
+
}), dm = {
|
|
7354
7363
|
key: 0,
|
|
7355
7364
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
7356
|
-
},
|
|
7365
|
+
}, fm = {
|
|
7357
7366
|
key: 0,
|
|
7358
7367
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
7359
|
-
},
|
|
7368
|
+
}, pm = {
|
|
7360
7369
|
key: 0,
|
|
7361
7370
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
7362
7371
|
};
|
|
7363
|
-
function
|
|
7372
|
+
function mm(t, a, o, s, c, u) {
|
|
7364
7373
|
let d = D("UzTableMobileList"), f = D("NCheckbox"), p = D("NPagination"), m = D("NCheckboxGroup"), h = D("NRadio"), g = D("NRadioGroup");
|
|
7365
7374
|
return t.selection === 2 ? (x(), n(m, {
|
|
7366
7375
|
key: 0,
|
|
@@ -7387,7 +7396,7 @@ function hm(t, a, o, s, c, u) {
|
|
|
7387
7396
|
"tableColumns"
|
|
7388
7397
|
])]),
|
|
7389
7398
|
_: 2
|
|
7390
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div",
|
|
7399
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", dm, [l(p, {
|
|
7391
7400
|
page: t.tableQueries.query.page,
|
|
7392
7401
|
"onUpdate:page": [a[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
7393
7402
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -7429,7 +7438,7 @@ function hm(t, a, o, s, c, u) {
|
|
|
7429
7438
|
"tableColumns"
|
|
7430
7439
|
])]),
|
|
7431
7440
|
_: 2
|
|
7432
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div",
|
|
7441
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", fm, [l(p, {
|
|
7433
7442
|
page: t.tableQueries.query.page,
|
|
7434
7443
|
"onUpdate:page": [a[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
7435
7444
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -7464,7 +7473,7 @@ function hm(t, a, o, s, c, u) {
|
|
|
7464
7473
|
"tableData",
|
|
7465
7474
|
"tableIndex",
|
|
7466
7475
|
"tableColumns"
|
|
7467
|
-
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div",
|
|
7476
|
+
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", pm, [l(p, {
|
|
7468
7477
|
page: t.tableQueries.query.page,
|
|
7469
7478
|
"onUpdate:page": [a[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
7470
7479
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -7477,7 +7486,7 @@ function hm(t, a, o, s, c, u) {
|
|
|
7477
7486
|
"onUpdate:page"
|
|
7478
7487
|
])])) : r("", !0)], 4));
|
|
7479
7488
|
}
|
|
7480
|
-
var
|
|
7489
|
+
var hm = /*#__PURE__*/ U(um, [["render", mm], ["__scopeId", "data-v-70b54e3b"]]), Q = C({
|
|
7481
7490
|
page: {
|
|
7482
7491
|
label: "首页",
|
|
7483
7492
|
key: "/",
|
|
@@ -7488,7 +7497,7 @@ var gm = /*#__PURE__*/ U(dm, [["render", hm], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
7488
7497
|
active: "/",
|
|
7489
7498
|
thumbnail: []
|
|
7490
7499
|
});
|
|
7491
|
-
function
|
|
7500
|
+
function gm(e) {
|
|
7492
7501
|
Q.cache = e.cache, Q.page = {
|
|
7493
7502
|
label: e.label,
|
|
7494
7503
|
key: e.key,
|
|
@@ -7503,14 +7512,14 @@ function _m(e) {
|
|
|
7503
7512
|
closable: !1
|
|
7504
7513
|
}];
|
|
7505
7514
|
}
|
|
7506
|
-
function
|
|
7515
|
+
function _m(e) {
|
|
7507
7516
|
Q.active = e, W.push(e), J(Q.cache, Q, 0);
|
|
7508
7517
|
}
|
|
7509
|
-
function
|
|
7518
|
+
function vm(e, t) {
|
|
7510
7519
|
let n = Q.thumbnail.find((t) => t.key === e);
|
|
7511
7520
|
n && (n.key = t, Q.active = t, J(Q.cache, Q, 0));
|
|
7512
7521
|
}
|
|
7513
|
-
function
|
|
7522
|
+
function ym(e) {
|
|
7514
7523
|
let t = Q.thumbnail.find((t) => t.path === e.key);
|
|
7515
7524
|
t ? (Q.active = t.key, J(Q.cache, Q, 0), W.push(t.key)) : (Q.active = e.key, Q.thumbnail.push({
|
|
7516
7525
|
...e,
|
|
@@ -7518,7 +7527,7 @@ function bm(e) {
|
|
|
7518
7527
|
closable: !0
|
|
7519
7528
|
}), W.push(e.key));
|
|
7520
7529
|
}
|
|
7521
|
-
function
|
|
7530
|
+
function bm(e) {
|
|
7522
7531
|
let t = Q.thumbnail.findIndex((t) => t.key === e);
|
|
7523
7532
|
if (Q.thumbnail.splice(t, 1), Q.active === e) {
|
|
7524
7533
|
let e = Q.thumbnail[t - 1]?.key || "";
|
|
@@ -7526,12 +7535,12 @@ function xm(e) {
|
|
|
7526
7535
|
}
|
|
7527
7536
|
J(Q.cache, Q, 0);
|
|
7528
7537
|
}
|
|
7529
|
-
function
|
|
7538
|
+
function xm() {
|
|
7530
7539
|
Q.active = Q.page.path, Q.thumbnail = [Q.page], W.push(Q.page.path), J(Q.cache, Q, 0);
|
|
7531
7540
|
}
|
|
7532
7541
|
//#endregion
|
|
7533
7542
|
//#region components/thumbnail/index.vue?vue&type=script&lang.ts
|
|
7534
|
-
var
|
|
7543
|
+
var Sm = d({
|
|
7535
7544
|
name: "UzThumbnail",
|
|
7536
7545
|
components: {
|
|
7537
7546
|
NTabs: Pe,
|
|
@@ -7553,29 +7562,29 @@ var Cm = d({
|
|
|
7553
7562
|
setup(e, { slots: t }) {
|
|
7554
7563
|
let n = w(!!t.prefix), r = Ke();
|
|
7555
7564
|
return y(() => {
|
|
7556
|
-
|
|
7565
|
+
gm(e.option), Q.active !== r.path && vm(r.path, r.fullPath);
|
|
7557
7566
|
}), j(() => r, (e) => {
|
|
7558
|
-
Q.active === r.path &&
|
|
7567
|
+
Q.active === r.path && vm(e.path, e.fullPath);
|
|
7559
7568
|
}, { deep: !0 }), j(() => e.option, (e) => {
|
|
7560
|
-
|
|
7569
|
+
gm(e);
|
|
7561
7570
|
}, { deep: !0 }), {
|
|
7562
7571
|
thumbnailStore: Q,
|
|
7563
7572
|
isSlotPrefix: n,
|
|
7564
7573
|
handleClose: (e) => {
|
|
7565
|
-
|
|
7574
|
+
bm(e);
|
|
7566
7575
|
},
|
|
7567
7576
|
handleChange: (e) => {
|
|
7568
|
-
|
|
7577
|
+
_m(e);
|
|
7569
7578
|
},
|
|
7570
7579
|
handleClear: () => {
|
|
7571
|
-
|
|
7580
|
+
xm();
|
|
7572
7581
|
}
|
|
7573
7582
|
};
|
|
7574
7583
|
}
|
|
7575
7584
|
});
|
|
7576
7585
|
//#endregion
|
|
7577
7586
|
//#region components/thumbnail/index.vue
|
|
7578
|
-
function
|
|
7587
|
+
function Cm(t, r, a, s, u, d) {
|
|
7579
7588
|
let f = D("NTabPane"), p = D("Trash"), m = D("NIcon"), h = D("NButton"), g = D("NPopconfirm"), _ = D("NFlex"), v = D("NTabs");
|
|
7580
7589
|
return x(), n(v, {
|
|
7581
7590
|
value: t.thumbnailStore.active,
|
|
@@ -7621,33 +7630,33 @@ function wm(t, r, a, s, u, d) {
|
|
|
7621
7630
|
"on-update:value"
|
|
7622
7631
|
]);
|
|
7623
7632
|
}
|
|
7624
|
-
var
|
|
7625
|
-
V.common.cardColor = "#32323b", V.common.primaryColor = "#0A84FF", V.common.primaryColorHover =
|
|
7626
|
-
var
|
|
7633
|
+
var wm = /*#__PURE__*/ U(Sm, [["render", Cm]]), Tm = "#007AFF", Em = "#0A84FF", Dm = "#FF9500", Om = "#FF9F0A", km = "#28CD41", Am = "#32D74B", jm = "#FFCC00", Mm = "#FFD60A", Nm = "#FF3B30", Pm = "#FF453A";
|
|
7634
|
+
V.common.cardColor = "#32323b", V.common.primaryColor = "#0A84FF", V.common.primaryColorHover = Em, V.common.infoColor = "#FF9F0A", V.common.infoColorHover = Om, V.common.successColor = "#32D74B", V.common.successColorHover = Am, V.common.warningColor = "#FFD60A", V.common.successColorHover = Mm, V.common.errorColor = "#FF453A", V.common.errorColorHover = Pm, V.common.borderRadius = "var(--borderRadius)", V.common.inputColor = "rgba(var(--input))", V.common.borderColor = "rgba(var(--border), 0.7)", V.DataTable.tdColor = "#2d2d31";
|
|
7635
|
+
var Fm = {
|
|
7627
7636
|
common: {
|
|
7628
7637
|
inputColor: "rgba(var(--input))",
|
|
7629
7638
|
borderColor: "rgba(var(--border), 0.7)",
|
|
7630
7639
|
borderRadius: "var(--borderRadius)",
|
|
7631
|
-
primaryColor:
|
|
7632
|
-
primaryColorHover:
|
|
7633
|
-
primaryColorPressed:
|
|
7634
|
-
primaryColorSuppl:
|
|
7635
|
-
infoColor:
|
|
7636
|
-
infoColorHover:
|
|
7637
|
-
infoColorPressed:
|
|
7638
|
-
infoColorSuppl:
|
|
7639
|
-
successColor:
|
|
7640
|
-
successColorHover:
|
|
7641
|
-
successColorPressed:
|
|
7642
|
-
successColorSuppl:
|
|
7643
|
-
warningColor:
|
|
7644
|
-
warningColorHover:
|
|
7645
|
-
warningColorPressed:
|
|
7646
|
-
warningColorSuppl:
|
|
7647
|
-
errorColor:
|
|
7648
|
-
errorColorHover:
|
|
7649
|
-
errorColorPressed:
|
|
7650
|
-
errorColorSuppl:
|
|
7640
|
+
primaryColor: Tm,
|
|
7641
|
+
primaryColorHover: Em,
|
|
7642
|
+
primaryColorPressed: Tm,
|
|
7643
|
+
primaryColorSuppl: Tm,
|
|
7644
|
+
infoColor: Dm,
|
|
7645
|
+
infoColorHover: Om,
|
|
7646
|
+
infoColorPressed: Dm,
|
|
7647
|
+
infoColorSuppl: Dm,
|
|
7648
|
+
successColor: km,
|
|
7649
|
+
successColorHover: Am,
|
|
7650
|
+
successColorPressed: km,
|
|
7651
|
+
successColorSuppl: km,
|
|
7652
|
+
warningColor: jm,
|
|
7653
|
+
warningColorHover: Mm,
|
|
7654
|
+
warningColorPressed: jm,
|
|
7655
|
+
warningColorSuppl: jm,
|
|
7656
|
+
errorColor: Nm,
|
|
7657
|
+
errorColorHover: Pm,
|
|
7658
|
+
errorColorPressed: Nm,
|
|
7659
|
+
errorColorSuppl: Nm,
|
|
7651
7660
|
cardColor: "#fff"
|
|
7652
7661
|
},
|
|
7653
7662
|
Button: { textColor: "rgb(var(--font))" },
|
|
@@ -7655,7 +7664,7 @@ var Im = {
|
|
|
7655
7664
|
DatePicker: { itemBorderRadius: "var(--borderRadius)" },
|
|
7656
7665
|
Notification: { borderRadius: "var(--borderRadius)" },
|
|
7657
7666
|
Radio: { boxShadow: "inset 0 0 0 1px rgb(var(--primary))" }
|
|
7658
|
-
},
|
|
7667
|
+
}, Im = V, Lm = d({
|
|
7659
7668
|
name: "UzWrap",
|
|
7660
7669
|
components: { NConfigProvider: ae },
|
|
7661
7670
|
setup() {
|
|
@@ -7663,14 +7672,14 @@ var Im = {
|
|
|
7663
7672
|
zhCN: He,
|
|
7664
7673
|
dateZhCN: Be,
|
|
7665
7674
|
commonStore: K,
|
|
7666
|
-
lightTheme:
|
|
7667
|
-
darkTheme:
|
|
7675
|
+
lightTheme: Fm,
|
|
7676
|
+
darkTheme: Im
|
|
7668
7677
|
};
|
|
7669
7678
|
}
|
|
7670
7679
|
});
|
|
7671
7680
|
//#endregion
|
|
7672
7681
|
//#region components/wrap/index.vue
|
|
7673
|
-
function
|
|
7682
|
+
function Rm(e, t, r, i, a, o) {
|
|
7674
7683
|
let s = D("NConfigProvider");
|
|
7675
7684
|
return x(), n(s, {
|
|
7676
7685
|
theme: e.commonStore.theme ? { name: "darkTheme" } : null,
|
|
@@ -7689,7 +7698,7 @@ function zm(e, t, r, i, a, o) {
|
|
|
7689
7698
|
"date-locale"
|
|
7690
7699
|
]);
|
|
7691
7700
|
}
|
|
7692
|
-
var
|
|
7701
|
+
var zm = /*#__PURE__*/ U(Lm, [["render", Rm]]), Bm = /* @__PURE__ */ at({
|
|
7693
7702
|
AccessPoint: () => ut,
|
|
7694
7703
|
Activity: () => mt,
|
|
7695
7704
|
Adjustments: () => vt,
|
|
@@ -7832,19 +7841,19 @@ var Bm = /*#__PURE__*/ U(Rm, [["render", zm]]), Vm = /* @__PURE__ */ at({
|
|
|
7832
7841
|
UzSearchMobileBar: () => cp,
|
|
7833
7842
|
UzSpin: () => kp,
|
|
7834
7843
|
UzTable: () => zp,
|
|
7835
|
-
UzTableChild: () =>
|
|
7836
|
-
UzTableDrawer: () =>
|
|
7837
|
-
UzTableMobile: () =>
|
|
7838
|
-
UzTableQuestChild: () =>
|
|
7839
|
-
UzThumbnail: () =>
|
|
7840
|
-
UzWrap: () =>
|
|
7844
|
+
UzTableChild: () => qp,
|
|
7845
|
+
UzTableDrawer: () => am,
|
|
7846
|
+
UzTableMobile: () => hm,
|
|
7847
|
+
UzTableQuestChild: () => $p,
|
|
7848
|
+
UzThumbnail: () => wm,
|
|
7849
|
+
UzWrap: () => zm,
|
|
7841
7850
|
X: () => Il,
|
|
7842
7851
|
commonStore: () => K,
|
|
7843
7852
|
fnActionReduction: () => Rd,
|
|
7844
7853
|
fnActionSimplify: () => Ld,
|
|
7845
|
-
fnAddThumbnail: () =>
|
|
7846
|
-
fnClearAllThumbnail: () =>
|
|
7847
|
-
fnDeleteThumbnail: () =>
|
|
7854
|
+
fnAddThumbnail: () => ym,
|
|
7855
|
+
fnClearAllThumbnail: () => xm,
|
|
7856
|
+
fnDeleteThumbnail: () => bm,
|
|
7848
7857
|
fnGetTableData: () => vp,
|
|
7849
7858
|
fnOptionReduction: () => wp,
|
|
7850
7859
|
fnOptionSimplify: () => Cp,
|
|
@@ -7853,18 +7862,18 @@ var Bm = /*#__PURE__*/ U(Rm, [["render", zm]]), Vm = /* @__PURE__ */ at({
|
|
|
7853
7862
|
fnRenderAction: () => Ad,
|
|
7854
7863
|
fnSetLang: () => Iu,
|
|
7855
7864
|
fnSetTheme: () => Lu,
|
|
7856
|
-
fnSetThumbnail: () =>
|
|
7865
|
+
fnSetThumbnail: () => _m,
|
|
7857
7866
|
fnTableReduction: () => bp,
|
|
7858
7867
|
fnTableSimplify: () => yp,
|
|
7859
7868
|
fnTriggersReduction: () => Sp,
|
|
7860
7869
|
fnTriggersSimplify: () => xp,
|
|
7861
7870
|
i18n: () => G
|
|
7862
|
-
}),
|
|
7863
|
-
function
|
|
7864
|
-
|
|
7871
|
+
}), Vm = 3840, Hm = 2160, Um = C({ scale: 1 });
|
|
7872
|
+
function Wm(e, t) {
|
|
7873
|
+
Vm = e, Hm = t;
|
|
7865
7874
|
}
|
|
7866
|
-
function
|
|
7867
|
-
let e = 1, t = window.innerWidth, n = window.innerHeight, r =
|
|
7875
|
+
function Gm() {
|
|
7876
|
+
let e = 1, t = window.innerWidth, n = window.innerHeight, r = Vm, i = Hm, a = parseFloat((r / i).toFixed(5));
|
|
7868
7877
|
if (parseFloat((t / n).toFixed(5)) > a) {
|
|
7869
7878
|
let t = parseFloat((n * a / r).toFixed(5));
|
|
7870
7879
|
e = t > 1 ? 1 : t;
|
|
@@ -7872,17 +7881,17 @@ function Km() {
|
|
|
7872
7881
|
let n = parseFloat((t / a / i).toFixed(5));
|
|
7873
7882
|
e = n > 1 ? 1 : n;
|
|
7874
7883
|
}
|
|
7875
|
-
|
|
7884
|
+
Um.scale = e;
|
|
7876
7885
|
}
|
|
7877
|
-
function
|
|
7878
|
-
let e = Ze(
|
|
7886
|
+
function Km() {
|
|
7887
|
+
let e = Ze(Gm, 200);
|
|
7879
7888
|
return e(), window.addEventListener("resize", e), () => {
|
|
7880
|
-
|
|
7889
|
+
Vm = 3840, Hm = 2160, window.removeEventListener("resize", e);
|
|
7881
7890
|
};
|
|
7882
7891
|
}
|
|
7883
7892
|
//#endregion
|
|
7884
7893
|
//#region components/hooks/useDebounceFn.ts
|
|
7885
|
-
function
|
|
7894
|
+
function qm(e, t = 1e3) {
|
|
7886
7895
|
let n = Ze(e, t);
|
|
7887
7896
|
return {
|
|
7888
7897
|
run: n,
|
|
@@ -7892,7 +7901,7 @@ function Jm(e, t = 1e3) {
|
|
|
7892
7901
|
}
|
|
7893
7902
|
//#endregion
|
|
7894
7903
|
//#region components/hooks/useThrottleFn.ts
|
|
7895
|
-
function
|
|
7904
|
+
function Jm(e, n = 1e3) {
|
|
7896
7905
|
let r = w(e), i = t(() => Qe((...e) => r.value([...e]), n));
|
|
7897
7906
|
return b(() => {
|
|
7898
7907
|
i.value.cancel();
|
|
@@ -7904,14 +7913,14 @@ function Ym(e, n = 1e3) {
|
|
|
7904
7913
|
}
|
|
7905
7914
|
//#endregion
|
|
7906
7915
|
//#region components/hooks/useLocalStorage.ts
|
|
7907
|
-
function
|
|
7916
|
+
function Ym(e, t) {
|
|
7908
7917
|
return [w(Y(e, t?.defaultValue)), (n) => {
|
|
7909
7918
|
n === void 0 ? Qu(e) : J(e, n, t?.expired || "1 Day");
|
|
7910
7919
|
}];
|
|
7911
7920
|
}
|
|
7912
7921
|
//#endregion
|
|
7913
7922
|
//#region components/hooks/useQuery.ts
|
|
7914
|
-
function
|
|
7923
|
+
function Xm(e, t, n) {
|
|
7915
7924
|
let r = `useQuery-${e}`, i = w(), a = w(), o = w(), s = w(!1), c = w("idle"), l = w(), u = w(0), d = w(0), f = () => {
|
|
7916
7925
|
md(), clearInterval(o.value), o.value = null;
|
|
7917
7926
|
}, p = async () => {
|
|
@@ -7977,26 +7986,26 @@ function Zm(e, t, n) {
|
|
|
7977
7986
|
}
|
|
7978
7987
|
//#endregion
|
|
7979
7988
|
//#region package.json
|
|
7980
|
-
var
|
|
7981
|
-
async function
|
|
7989
|
+
var Zm = "0.1.32", Qm;
|
|
7990
|
+
async function $m() {
|
|
7982
7991
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7983
7992
|
method: "HEAD",
|
|
7984
7993
|
cache: "no-cache"
|
|
7985
7994
|
});
|
|
7986
7995
|
return e.headers.get("etag") || e.headers.get("last-modified");
|
|
7987
7996
|
}
|
|
7988
|
-
async function
|
|
7989
|
-
let e = await
|
|
7990
|
-
|
|
7997
|
+
async function eh() {
|
|
7998
|
+
let e = await $m();
|
|
7999
|
+
Qm !== e && Ru(!0);
|
|
7991
8000
|
}
|
|
7992
|
-
async function
|
|
7993
|
-
|
|
7994
|
-
|
|
8001
|
+
async function th() {
|
|
8002
|
+
Qm = await $m(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
|
|
8003
|
+
eh();
|
|
7995
8004
|
}, 60 * 1e3);
|
|
7996
8005
|
}
|
|
7997
8006
|
//#endregion
|
|
7998
8007
|
//#region components/monitor.ts
|
|
7999
|
-
var
|
|
8008
|
+
var nh = "", rh, $ = navigator.userAgent.toLocaleUpperCase(), ih = () => {
|
|
8000
8009
|
let e = /WINDOWS NT 5.[\d]+/, t = /WINDOWS NT 6.[\d]+/, n = /WINDOWS NT 7.[\d]+/, r = /WINDOWS NT 10.[\d]+/, i = /WINDOWS NT 11.[\d]+/, a = /ANDROID [\d.]+/, o = /IPHONE/, s = /IPAD/, c = /MAC/;
|
|
8001
8010
|
if (e.test($)) return "Windows XP";
|
|
8002
8011
|
if (t.test($)) return "Windows 7";
|
|
@@ -8020,7 +8029,7 @@ var rh = "", ih, $ = navigator.userAgent.toLocaleUpperCase(), ah = () => {
|
|
|
8020
8029
|
return `MAC ${e ? e[0].replace(/_/g, ".").replace(/ /g, "") : ""}`;
|
|
8021
8030
|
}
|
|
8022
8031
|
return "Other Platform";
|
|
8023
|
-
},
|
|
8032
|
+
}, ah = () => {
|
|
8024
8033
|
let e = /MSIE [\d]+/, t = /EDG\/[\d.]+/, n = /FIREFOX\/[\d.]+/, r = /CHROME\/[\d.]+/, i = /SAFARI\/[\d.]+/, a = /OPR\/[\d.]+/, o = /SE \d/, s = /UCBROWSER/, c = /ANDROID [\d.]+/;
|
|
8025
8034
|
if (e.test($) && o.test($)) return "SogouIE";
|
|
8026
8035
|
if (o.test($)) return "SogouFast";
|
|
@@ -8049,64 +8058,64 @@ var rh = "", ih, $ = navigator.userAgent.toLocaleUpperCase(), ah = () => {
|
|
|
8049
8058
|
}
|
|
8050
8059
|
return "Others";
|
|
8051
8060
|
};
|
|
8052
|
-
function
|
|
8061
|
+
function oh(e, t, n, r = !1) {
|
|
8053
8062
|
if (e !== void 0 && (t in e || r)) {
|
|
8054
8063
|
let r = e[t], i = n(r);
|
|
8055
8064
|
typeof i == "function" && (e[t] = i);
|
|
8056
8065
|
}
|
|
8057
8066
|
}
|
|
8058
|
-
function
|
|
8067
|
+
function sh(e, t, n, r = !1) {
|
|
8059
8068
|
e.addEventListener(t, n, r);
|
|
8060
8069
|
}
|
|
8061
|
-
function
|
|
8070
|
+
function ch() {
|
|
8062
8071
|
if (!("XMLHttpRequest" in window)) return;
|
|
8063
8072
|
let e = XMLHttpRequest.prototype;
|
|
8064
|
-
|
|
8073
|
+
oh(e, "open", (e) => function(...t) {
|
|
8065
8074
|
this.xhr = {
|
|
8066
8075
|
method: t[0].toUpperCase(),
|
|
8067
8076
|
url: t[1],
|
|
8068
8077
|
startTime: Date.now(),
|
|
8069
8078
|
type: "xhr"
|
|
8070
|
-
},
|
|
8071
|
-
this.xhr.url.indexOf("log/submit") === -1 &&
|
|
8079
|
+
}, sh(this, "error", function() {
|
|
8080
|
+
this.xhr.url.indexOf("log/submit") === -1 && uh(3, this.xhr.url, `Request-${this.status}`);
|
|
8072
8081
|
}), e.apply(this, t);
|
|
8073
|
-
}),
|
|
8082
|
+
}), oh(e, "send", (e) => function(...t) {
|
|
8074
8083
|
let { url: n } = this.xhr;
|
|
8075
8084
|
this.ontimeout = function() {
|
|
8076
|
-
|
|
8077
|
-
},
|
|
8078
|
-
(this.status === 500 || this.status === 405) &&
|
|
8085
|
+
uh(3, n, "Network Timeout");
|
|
8086
|
+
}, sh(this, "loadend", function() {
|
|
8087
|
+
(this.status === 500 || this.status === 405) && uh(3, n, `${t[0]}-${this.status}-${this.response}`);
|
|
8079
8088
|
}), e.apply(this, t);
|
|
8080
8089
|
});
|
|
8081
8090
|
}
|
|
8082
|
-
function
|
|
8083
|
-
t && (
|
|
8084
|
-
|
|
8091
|
+
function lh(e, t, n) {
|
|
8092
|
+
t && (nh = t, rh = n, ch(), e.config.errorHandler = (e) => {
|
|
8093
|
+
uh(2, window.location.href, e.message);
|
|
8085
8094
|
}, window.addEventListener("unhandledrejection", function(e) {
|
|
8086
8095
|
e.preventDefault();
|
|
8087
8096
|
}));
|
|
8088
8097
|
}
|
|
8089
|
-
var
|
|
8090
|
-
let r =
|
|
8098
|
+
var uh = (e, t, n) => {
|
|
8099
|
+
let r = rh ? JSON.stringify(rh()) : "", i = {
|
|
8091
8100
|
type: e,
|
|
8092
8101
|
time: Date.now(),
|
|
8093
8102
|
url: encodeURIComponent(t || location.href),
|
|
8094
|
-
browser:
|
|
8095
|
-
platform:
|
|
8103
|
+
browser: ah(),
|
|
8104
|
+
platform: ih(),
|
|
8096
8105
|
message: n,
|
|
8097
8106
|
info: r
|
|
8098
8107
|
}, a = window.btoa(JSON.stringify(i));
|
|
8099
|
-
if (window.navigator.sendBeacon) window.navigator.sendBeacon(
|
|
8108
|
+
if (window.navigator.sendBeacon) window.navigator.sendBeacon(nh, a);
|
|
8100
8109
|
else {
|
|
8101
8110
|
let e = document.body, t = new Image();
|
|
8102
|
-
t.src =
|
|
8111
|
+
t.src = nh + "?data=" + a, t.onload = t.onerror = function() {
|
|
8103
8112
|
e.removeChild(t), t = null;
|
|
8104
8113
|
}, e.append(t);
|
|
8105
8114
|
}
|
|
8106
8115
|
};
|
|
8107
8116
|
//#endregion
|
|
8108
8117
|
//#region components/create.ts
|
|
8109
|
-
function
|
|
8118
|
+
function dh({ components: e = [] } = {}) {
|
|
8110
8119
|
let t = [];
|
|
8111
8120
|
function n(e, t, n) {
|
|
8112
8121
|
e.component(t) || e.component(t, n);
|
|
@@ -8119,16 +8128,16 @@ function fh({ components: e = [] } = {}) {
|
|
|
8119
8128
|
});
|
|
8120
8129
|
}), i)) {
|
|
8121
8130
|
let { title: e = "杭州宇臻智能", monitor: t = !1, monitorFn: n, version: a = !0, language: o = !1, local: s = "zh-CN" } = i, c = Y("theme", !1), l = Y("lang", s);
|
|
8122
|
-
zu(e), Fu(o), Iu(l), Lu(c), G.global.locale.value = l, a &&
|
|
8131
|
+
zu(e), Fu(o), Iu(l), Lu(c), G.global.locale.value = l, a && th(), t && lh(r, t, n);
|
|
8123
8132
|
}
|
|
8124
8133
|
}
|
|
8125
8134
|
return {
|
|
8126
|
-
version:
|
|
8135
|
+
version: Zm,
|
|
8127
8136
|
install: r
|
|
8128
8137
|
};
|
|
8129
8138
|
}
|
|
8130
8139
|
//#endregion
|
|
8131
8140
|
//#region components/preset.ts
|
|
8132
|
-
var
|
|
8141
|
+
var fh = dh({ components: Object.keys(Bm).map((e) => Bm[e]) }), ph = fh.install;
|
|
8133
8142
|
//#endregion
|
|
8134
|
-
export { ut as AccessPoint, mt as Activity, vt as Adjustments, St as AdjustmentsHorizontal, Et as Affiliate, At as Alarm, Pt as AlertCircle, Rt as ApiApp, Kt as AppWindow, Ht as Apps, Xt as Archive, en as ArrowNarrowLeft, an as AspectRatio, ln as Atom, pn as Atom2, _n as Award, gd as BLOB, xn as Barcode, Tn as Basket, kn as Bell, Nn as Bluetooth, Ln as Book2, vu as Books, Vn as Box, Gn as BrandAsana, Au as BrandStackoverflow, Yn as Briefcase, $n as Building, rr as BuildingArch, nu as BuildingWarehouse, _d as CUSTOM, dr as Calculator, hr as Calendar, yr as CalendarPlus, Cr as CalendarStats, Dr as Camera, jr as CaretDown, Fr as CaretUp, zr as ChartArea, Ur as ChartBar, qr as ChartBubble, Zr as ChartDonut, ti as ChartLine, ai as ChartPie, li as ChartRadar, Jl as CheckMark, pi as Checkbox, _i as CheckupList, Wl as CircleMinus, xi as Clipboard, Ti as ClipboardCheck, ki as ClipboardList, Ni as ClipboardPlus, Li as Clock, Vi as Cloud, Gi as CloudDownload, Yi as CloudUpload, $i as Command, Su as Confetti, uu as Container, ra as Copy, sr as Cpu, sa as CreditCard, da as Crosshair, ha as CurrencyYen, mu as Dashboard, ya as Database, Ca as DatabaseExport, Da as DatabaseImport, ja as DeviceAnalytics, Fa as DeviceDesktop, za as DeviceDesktopAnalytics, Ua as DeviceLaptop, qa as DeviceMobile, Za as Diamond, to as Dots, ao as DotsVertical, lo as Edit, mo as Eraser, vo as Eye, vd as FILE, So as File, Eo as FileAlert, Ao as FileAnalytics, Po as FileText, Ro as Filter, hd as GET, Ho as GitCompare, Ko as GitPullRequest, Xo as GridDots, es as Home, Nu as IconList, is as Id, cs as LayoutSidebarLeftCollapse, fs as LayoutSidebarLeftExpand, gs as Link, bs as List, ws as ListCheck, Os as ListDetails, Ms as Mail, Is as Map, Bs as MapPin, ou as Menu2, Ql as Message2, Eu as MinusRound, Ws as MoonStars, Z as POST, Js as Paperclip, Qs as Photo, nc as PhotoOff, oc as Plus, uc as Presentation, mc as PresentationAnalytics, vc as Printer, Sc as Qrcode, Ec as Refresh, Ac as Report, Pc as ReportAnalytics, Rc as ReportMoney, Hc as ReportSearch, Kc as Search, Xc as Settings, el as SmartHome, il as Sun, cl as TransferIn, fl as TransferOut, gl as Trash, bl as User, Bl as UserCircle, wl as UserMinus, Ol as UserPlus, Ml as Users, ot as UzActionButton, Vd as UzBack, Xf as UzCamera, gf as UzCircle, kf as UzDraggableForm, wf as UzForm, bf as UzFormItem, zf as UzFormItemImage, Uf as UzFormItemTimesPicker, Ff as UzFormItemUpload, Mu as UzIcon, np as UzSearchBar, cp as UzSearchMobileBar, kp as UzSpin, zp as UzTable,
|
|
8143
|
+
export { ut as AccessPoint, mt as Activity, vt as Adjustments, St as AdjustmentsHorizontal, Et as Affiliate, At as Alarm, Pt as AlertCircle, Rt as ApiApp, Kt as AppWindow, Ht as Apps, Xt as Archive, en as ArrowNarrowLeft, an as AspectRatio, ln as Atom, pn as Atom2, _n as Award, gd as BLOB, xn as Barcode, Tn as Basket, kn as Bell, Nn as Bluetooth, Ln as Book2, vu as Books, Vn as Box, Gn as BrandAsana, Au as BrandStackoverflow, Yn as Briefcase, $n as Building, rr as BuildingArch, nu as BuildingWarehouse, _d as CUSTOM, dr as Calculator, hr as Calendar, yr as CalendarPlus, Cr as CalendarStats, Dr as Camera, jr as CaretDown, Fr as CaretUp, zr as ChartArea, Ur as ChartBar, qr as ChartBubble, Zr as ChartDonut, ti as ChartLine, ai as ChartPie, li as ChartRadar, Jl as CheckMark, pi as Checkbox, _i as CheckupList, Wl as CircleMinus, xi as Clipboard, Ti as ClipboardCheck, ki as ClipboardList, Ni as ClipboardPlus, Li as Clock, Vi as Cloud, Gi as CloudDownload, Yi as CloudUpload, $i as Command, Su as Confetti, uu as Container, ra as Copy, sr as Cpu, sa as CreditCard, da as Crosshair, ha as CurrencyYen, mu as Dashboard, ya as Database, Ca as DatabaseExport, Da as DatabaseImport, ja as DeviceAnalytics, Fa as DeviceDesktop, za as DeviceDesktopAnalytics, Ua as DeviceLaptop, qa as DeviceMobile, Za as Diamond, to as Dots, ao as DotsVertical, lo as Edit, mo as Eraser, vo as Eye, vd as FILE, So as File, Eo as FileAlert, Ao as FileAnalytics, Po as FileText, Ro as Filter, hd as GET, Ho as GitCompare, Ko as GitPullRequest, Xo as GridDots, es as Home, Nu as IconList, is as Id, cs as LayoutSidebarLeftCollapse, fs as LayoutSidebarLeftExpand, gs as Link, bs as List, ws as ListCheck, Os as ListDetails, Ms as Mail, Is as Map, Bs as MapPin, ou as Menu2, Ql as Message2, Eu as MinusRound, Ws as MoonStars, Z as POST, Js as Paperclip, Qs as Photo, nc as PhotoOff, oc as Plus, uc as Presentation, mc as PresentationAnalytics, vc as Printer, Sc as Qrcode, Ec as Refresh, Ac as Report, Pc as ReportAnalytics, Rc as ReportMoney, Hc as ReportSearch, Kc as Search, Xc as Settings, el as SmartHome, il as Sun, cl as TransferIn, fl as TransferOut, gl as Trash, bl as User, Bl as UserCircle, wl as UserMinus, Ol as UserPlus, Ml as Users, ot as UzActionButton, Vd as UzBack, Xf as UzCamera, gf as UzCircle, kf as UzDraggableForm, wf as UzForm, bf as UzFormItem, zf as UzFormItemImage, Uf as UzFormItemTimesPicker, Ff as UzFormItemUpload, Mu as UzIcon, np as UzSearchBar, cp as UzSearchMobileBar, kp as UzSpin, zp as UzTable, qp as UzTableChild, am as UzTableDrawer, hm as UzTableMobile, $p as UzTableQuestChild, wm as UzThumbnail, zm as UzWrap, Il as X, K as commonStore, dh as create, Im as darkTheme, fh as default, Rd as fnActionReduction, Ld as fnActionSimplify, ym as fnAddThumbnail, md as fnCancelFetch, xm as fnClearAllThumbnail, Gm as fnComputedScale, Pu as fnCreateRouter, Qu as fnDelStorage, ed as fnDelStorageAll, $u as fnDelStorageByPrefix, bm as fnDeleteThumbnail, Zu as fnDialog, q as fnErrorLog, rd as fnFormatTime, sd as fnFormatUnits, od as fnFullScreen, Y as fnGetStorage, vp as fnGetTableData, Km as fnListenerScale, Xu as fnNotification, wp as fnOptionReduction, Cp as fnOptionSimplify, nd as fnPageModel2Naive, Tp as fnPrepareFormData, Ep as fnPrepareTableData, Ad as fnRenderAction, td as fnScrollTop, Iu as fnSetLang, Wm as fnSetNormalWidthAndHeight, J as fnSetStorage, Lu as fnSetTheme, _m as fnSetThumbnail, bp as fnTableReduction, yp as fnTableSimplify, ad as fnThrottle, id as fnTitle, Sp as fnTriggersReduction, xp as fnTriggersSimplify, G as i18n, ph as install, Fm as lightTheme, W as router, Um as scaleStore, qm as useDebounceFn, Ym as useLocalStorage, Xm as useQuery, Jm as useThrottleFn };
|