@unizhen/ui 0.1.13 → 0.1.14
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 +86 -86
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as re, openBlock as s, createElementBlock as d, createStaticVNode as A, createElementVNode as r, ref as M, watch as ce, nextTick as be, h as ee, reactive as At, resolveComponent as x, createBlock as B, withCtx as m, toDisplayString as P, createVNode as b, computed as Se, normalizeStyle as ye, inject as De, normalizeClass as ie, createSlots as Ce, createTextVNode as E, Fragment as se, renderList as we, provide as Tt, resolveDirective as Dn, withDirectives as Ge, createCommentVNode as
|
|
1
|
+
import { defineComponent as re, openBlock as s, createElementBlock as d, createStaticVNode as A, createElementVNode as r, ref as M, watch as ce, nextTick as be, h as ee, reactive as At, resolveComponent as x, createBlock as B, withCtx as m, toDisplayString as P, createVNode as b, computed as Se, normalizeStyle as ye, inject as De, normalizeClass as ie, createSlots as Ce, createTextVNode as E, Fragment as se, renderList as we, provide as Tt, resolveDirective as Dn, withDirectives as Ge, createCommentVNode as Q, onMounted as Ee, mergeProps as Ft, withModifiers as at, watchEffect as Tn, onBeforeUnmount as Ot, withKeys as Va, renderSlot as ke, markRaw as Ua, defineAsyncComponent as ja, onUnmounted as Fn, vShow as Bt, resolveDynamicComponent as mn } from "vue";
|
|
2
2
|
import { createDiscreteApi as Aa, NPopover as Ze, NFlex as Bn, NButton as ve, NPopconfirm as Rt, NTooltip as In, NIcon as ge, NDropdown as Oa, NCascader as Ra, NCheckboxGroup as Vn, NCheckbox as Pt, NColorPicker as Pa, NSwitch as Ha, NTimePicker as Ea, NDatePicker as qa, NInputNumber as La, NSelect as Un, NInput as Ka, NDivider as Ht, NFormItem as Et, NForm as qt, NSpin as it, NInputGroup as Lt, NUploadDragger as Wa, NImage as jn, NUpload as Ga, useNotification as Kt, NImageGroup as Qa, NModal as Ja, NInputGroupLabel as An, NGridItem as On, NGrid as Rn, NButtonGroup as Xa, NDrawerContent as Pn, NDrawer as Hn, NEllipsis as Ya, NSkeleton as En, NDataTable as Wt, NRadioGroup as Za, NPagination as es, NRadio as ts, NTabPane as ns, NTabs as os, darkTheme as he, NConfigProvider as rs, dateZhCN as as, zhCN as ss } from "naive-ui";
|
|
3
3
|
import Gt from "axios";
|
|
4
4
|
import { createRouter as ls, createWebHistory as is, useRouter as cs, useRoute as ct } from "vue-router";
|
|
5
5
|
import { createI18n as us, useI18n as Qt } from "vue-i18n";
|
|
6
|
-
import { cloneDeep as
|
|
6
|
+
import { cloneDeep as G, compact as ds, debounce as qn, throttle as ps } from "lodash-es";
|
|
7
7
|
import Be from "dayjs";
|
|
8
8
|
import Ln from "vuedraggable";
|
|
9
9
|
import je from "json5";
|
|
@@ -3471,7 +3471,7 @@ const xh = /* @__PURE__ */ w(nh, [["render", bh]]), _h = re({
|
|
|
3471
3471
|
}
|
|
3472
3472
|
},
|
|
3473
3473
|
handleFocus: (g) => {
|
|
3474
|
-
const S =
|
|
3474
|
+
const S = G(e.item.params.options);
|
|
3475
3475
|
if (e.formValue && e.formValue[g]) {
|
|
3476
3476
|
const F = e.formValue[g].toLocaleLowerCase();
|
|
3477
3477
|
S.forEach((K) => {
|
|
@@ -3984,7 +3984,7 @@ const Le = /* @__PURE__ */ w(_h, [["render", Ch]]), Mh = re({
|
|
|
3984
3984
|
a.value[$.key] = [];
|
|
3985
3985
|
}
|
|
3986
3986
|
}), T), f = (T) => {
|
|
3987
|
-
T || (T =
|
|
3987
|
+
T || (T = G(e.items)), T && Array.isArray(T) && T.length > 0 ? p.value = h(T) : p.value = [];
|
|
3988
3988
|
}, u = () => new Promise(async (T) => {
|
|
3989
3989
|
let $ = 0;
|
|
3990
3990
|
for await (const I of _.value)
|
|
@@ -4000,7 +4000,7 @@ const Le = /* @__PURE__ */ w(_h, [["render", Ch]]), Mh = re({
|
|
|
4000
4000
|
if (I)
|
|
4001
4001
|
$();
|
|
4002
4002
|
else if (await u() === 0) {
|
|
4003
|
-
const q =
|
|
4003
|
+
const q = G(a.value);
|
|
4004
4004
|
z.value.forEach((H) => {
|
|
4005
4005
|
q[H] = JSON.stringify(q[H]);
|
|
4006
4006
|
}), Object.keys(q).forEach((H) => {
|
|
@@ -4104,11 +4104,11 @@ function Nh(e, t, n, c, l, i) {
|
|
|
4104
4104
|
_: 1
|
|
4105
4105
|
}),
|
|
4106
4106
|
t[0] || (t[0] = E(" 新增 ", -1))
|
|
4107
|
-
], 8, zh)) :
|
|
4107
|
+
], 8, zh)) : Q("", !0),
|
|
4108
4108
|
u.form.showDays ? (s(), d("span", {
|
|
4109
4109
|
key: 1,
|
|
4110
4110
|
class: ie(["uz-form-item-add", e.diffDay(e.formValue[u.key], !0)])
|
|
4111
|
-
}, P(e.diffDay(e.formValue[u.key])), 3)) :
|
|
4111
|
+
}, P(e.diffDay(e.formValue[u.key])), 3)) : Q("", !0)
|
|
4112
4112
|
]),
|
|
4113
4113
|
default: m(() => [
|
|
4114
4114
|
u.input === "subTable" && !u.params.quest ? (s(), B(_, {
|
|
@@ -4140,7 +4140,7 @@ function Nh(e, t, n, c, l, i) {
|
|
|
4140
4140
|
}, null, 8, ["item", "formValue", "status"]))
|
|
4141
4141
|
]),
|
|
4142
4142
|
_: 2
|
|
4143
|
-
}, 1032, ["path", "rule", "style", "show-label", "show-feedback"])) :
|
|
4143
|
+
}, 1032, ["path", "rule", "style", "show-label", "show-feedback"])) : Q("", !0)
|
|
4144
4144
|
], 64))), 128))
|
|
4145
4145
|
], 2)), [
|
|
4146
4146
|
[f]
|
|
@@ -4231,11 +4231,11 @@ const Sh = /* @__PURE__ */ w(Mh, [["render", Nh]]), Dh = re({
|
|
|
4231
4231
|
i.value[u.key] = u.form.defaultValue;
|
|
4232
4232
|
}), f), N = () => {
|
|
4233
4233
|
if (e.items && Array.isArray(e.items)) {
|
|
4234
|
-
const f =
|
|
4234
|
+
const f = G(e.items);
|
|
4235
4235
|
a.value = D(f);
|
|
4236
4236
|
}
|
|
4237
4237
|
}, v = () => {
|
|
4238
|
-
n("on-change",
|
|
4238
|
+
n("on-change", G(a.value));
|
|
4239
4239
|
}, o = () => {
|
|
4240
4240
|
p.value = [-1, -1], n("on-select", void 0);
|
|
4241
4241
|
}, h = () => {
|
|
@@ -4328,8 +4328,8 @@ function Bh(e, t, n, c, l, i) {
|
|
|
4328
4328
|
_: 1
|
|
4329
4329
|
}),
|
|
4330
4330
|
t[1] || (t[1] = E(" 新增 ", -1))
|
|
4331
|
-
])) :
|
|
4332
|
-
u.form.showDays ? (s(), d("span", Fh, " showDays ")) :
|
|
4331
|
+
])) : Q("", !0),
|
|
4332
|
+
u.form.showDays ? (s(), d("span", Fh, " showDays ")) : Q("", !0)
|
|
4333
4333
|
]),
|
|
4334
4334
|
default: m(() => [
|
|
4335
4335
|
e.formItemIndex[0] === g && e.formItemIndex[1] === -1 ? (s(), B(z, {
|
|
@@ -4348,7 +4348,7 @@ function Bh(e, t, n, c, l, i) {
|
|
|
4348
4348
|
})
|
|
4349
4349
|
]),
|
|
4350
4350
|
_: 1
|
|
4351
|
-
}, 8, ["onClick"])) :
|
|
4351
|
+
}, 8, ["onClick"])) : Q("", !0),
|
|
4352
4352
|
u.input === "subTable" ? (s(), B(D, {
|
|
4353
4353
|
key: 1,
|
|
4354
4354
|
formValue: e.formValue,
|
|
@@ -4400,7 +4400,7 @@ function Bh(e, t, n, c, l, i) {
|
|
|
4400
4400
|
})
|
|
4401
4401
|
]),
|
|
4402
4402
|
_: 1
|
|
4403
|
-
}, 8, ["onClick"])) :
|
|
4403
|
+
}, 8, ["onClick"])) : Q("", !0),
|
|
4404
4404
|
b(N, {
|
|
4405
4405
|
item: S,
|
|
4406
4406
|
formValue: e.formValue,
|
|
@@ -4502,7 +4502,7 @@ const Ih = /* @__PURE__ */ w(Dh, [["render", Bh]]), Vh = re({
|
|
|
4502
4502
|
}, _ = (N) => {
|
|
4503
4503
|
l.value.splice(N, 1), i();
|
|
4504
4504
|
}, z = () => {
|
|
4505
|
-
let N =
|
|
4505
|
+
let N = G(e.value);
|
|
4506
4506
|
if (!N) {
|
|
4507
4507
|
l.value = [];
|
|
4508
4508
|
return;
|
|
@@ -4577,7 +4577,7 @@ function Oh(e, t, n, c, l, i) {
|
|
|
4577
4577
|
})
|
|
4578
4578
|
]),
|
|
4579
4579
|
_: 1
|
|
4580
|
-
}, 8, ["accept", "max", "on-before-upload"])) :
|
|
4580
|
+
}, 8, ["accept", "max", "on-before-upload"])) : Q("", !0),
|
|
4581
4581
|
(s(!0), d(se, null, we(e.formValue, (S, y) => (s(), d("div", {
|
|
4582
4582
|
key: y,
|
|
4583
4583
|
class: "uz-form-upload-item uz-w-20 uz-h-20"
|
|
@@ -4658,7 +4658,7 @@ function Oh(e, t, n, c, l, i) {
|
|
|
4658
4658
|
]),
|
|
4659
4659
|
_: 1
|
|
4660
4660
|
}, 8, ["href"])
|
|
4661
|
-
])) :
|
|
4661
|
+
])) : Q("", !0)
|
|
4662
4662
|
])
|
|
4663
4663
|
]))), 128))
|
|
4664
4664
|
]),
|
|
@@ -4968,7 +4968,7 @@ function Zh(e, t, n, c, l, i) {
|
|
|
4968
4968
|
E(P(e.$t("Common.scan")), 1)
|
|
4969
4969
|
]),
|
|
4970
4970
|
_: 1
|
|
4971
|
-
}, 8, ["loading", "onClick"])) :
|
|
4971
|
+
}, 8, ["loading", "onClick"])) : Q("", !0),
|
|
4972
4972
|
e.mode === "button" ? (s(), B(p, {
|
|
4973
4973
|
key: 1,
|
|
4974
4974
|
show: e.modal,
|
|
@@ -4995,7 +4995,7 @@ function Zh(e, t, n, c, l, i) {
|
|
|
4995
4995
|
], 4)
|
|
4996
4996
|
]),
|
|
4997
4997
|
_: 1
|
|
4998
|
-
}, 8, ["show", "title", "on-after-leave"])) :
|
|
4998
|
+
}, 8, ["show", "title", "on-after-leave"])) : Q("", !0),
|
|
4999
4999
|
e.mode === "video" ? (s(), d("div", {
|
|
5000
5000
|
key: 2,
|
|
5001
5001
|
class: "uz-scan-canvas-main",
|
|
@@ -5009,7 +5009,7 @@ function Zh(e, t, n, c, l, i) {
|
|
|
5009
5009
|
width: e.width,
|
|
5010
5010
|
height: e.height
|
|
5011
5011
|
}, null, 8, Jh)
|
|
5012
|
-
], 4)) :
|
|
5012
|
+
], 4)) : Q("", !0),
|
|
5013
5013
|
r("div", Xh, [
|
|
5014
5014
|
r("video", Yh, null, 512)
|
|
5015
5015
|
])
|
|
@@ -5077,7 +5077,7 @@ const e1 = /* @__PURE__ */ w(Gh, [["render", Zh]]), t1 = re({
|
|
|
5077
5077
|
const n = ct(), c = M(), l = M([]), i = M(), a = M(!0), p = M(!1), _ = M(!1), z = M(0), D = M(0), N = M(0), v = M(1), o = M(""), h = M([]), f = M(!1), u = (T) => Array.isArray(T) && T.length > 0 || T ? T : !1, g = (T = !1) => {
|
|
5078
5078
|
if (e.loading)
|
|
5079
5079
|
return;
|
|
5080
|
-
const $ =
|
|
5080
|
+
const $ = G(c.value);
|
|
5081
5081
|
!T && $.query && ($.query.page = 1);
|
|
5082
5082
|
const I = [];
|
|
5083
5083
|
l.value.forEach((U) => {
|
|
@@ -5095,7 +5095,7 @@ const e1 = /* @__PURE__ */ w(Gh, [["render", Zh]]), t1 = re({
|
|
|
5095
5095
|
}
|
|
5096
5096
|
}), t("update:loading", !0), t("on-update:value", I);
|
|
5097
5097
|
}, S = () => {
|
|
5098
|
-
e.loading || (c.value =
|
|
5098
|
+
e.loading || (c.value = G(i.value), g());
|
|
5099
5099
|
}, y = () => {
|
|
5100
5100
|
a.value = !a.value;
|
|
5101
5101
|
}, F = (T) => f.value ? c.value && Array.isArray(c.value[o.value]) && c.value[o.value].includes(T.value) ? "primary" : "default" : c.value[o.value] === T.value ? "primary" : "default", K = (T) => {
|
|
@@ -5136,14 +5136,14 @@ const e1 = /* @__PURE__ */ w(Gh, [["render", Zh]]), t1 = re({
|
|
|
5136
5136
|
return { data: T, values: $ };
|
|
5137
5137
|
}, Z = (T) => {
|
|
5138
5138
|
if (h.value = [], T && T.length > 0) {
|
|
5139
|
-
const { data: $, values: I } = K(
|
|
5139
|
+
const { data: $, values: I } = K(G(T)), U = {}, q = e.id || n.params.id;
|
|
5140
5140
|
if (e.cache && q) {
|
|
5141
5141
|
const C = Me(`tables_${q}`, !1);
|
|
5142
5142
|
C && C.params.forEach((R) => {
|
|
5143
5143
|
U[R.key] = R.value;
|
|
5144
5144
|
});
|
|
5145
5145
|
}
|
|
5146
|
-
l.value = $, c.value =
|
|
5146
|
+
l.value = $, c.value = G({ ...I, ...U }), i.value = G(I);
|
|
5147
5147
|
}
|
|
5148
5148
|
g(!0);
|
|
5149
5149
|
}, ne = (T) => {
|
|
@@ -5230,11 +5230,11 @@ function a1(e, t, n, c, l, i) {
|
|
|
5230
5230
|
})
|
|
5231
5231
|
]),
|
|
5232
5232
|
_: 1
|
|
5233
|
-
}, 8, ["span"])) :
|
|
5233
|
+
}, 8, ["span"])) : Q("", !0),
|
|
5234
5234
|
e.offset > -1 ? (s(), B(_, {
|
|
5235
5235
|
key: 1,
|
|
5236
5236
|
offset: e.offset
|
|
5237
|
-
}, null, 8, ["offset"])) :
|
|
5237
|
+
}, null, 8, ["offset"])) : Q("", !0),
|
|
5238
5238
|
(s(!0), d(se, null, we(e.itemData, (y, F) => (s(), B(_, {
|
|
5239
5239
|
key: `${F}_${Date.now()}`,
|
|
5240
5240
|
span: y.search.show ? y.search.span || e.gridSpan : 0
|
|
@@ -5277,7 +5277,7 @@ function a1(e, t, n, c, l, i) {
|
|
|
5277
5277
|
])), [
|
|
5278
5278
|
[S]
|
|
5279
5279
|
])
|
|
5280
|
-
])) :
|
|
5280
|
+
])) : Q("", !0),
|
|
5281
5281
|
e.enableHeader ? (s(), d("div", r1, [
|
|
5282
5282
|
e.more ? (s(), B(a, {
|
|
5283
5283
|
key: 0,
|
|
@@ -5295,7 +5295,7 @@ function a1(e, t, n, c, l, i) {
|
|
|
5295
5295
|
}, 8, ["class"])
|
|
5296
5296
|
]),
|
|
5297
5297
|
_: 1
|
|
5298
|
-
}, 8, ["onClick"])) :
|
|
5298
|
+
}, 8, ["onClick"])) : Q("", !0),
|
|
5299
5299
|
e.itemData && Object.keys(e.itemData).length > 0 ? (s(), B(a, {
|
|
5300
5300
|
key: 1,
|
|
5301
5301
|
loading: e.loading,
|
|
@@ -5317,7 +5317,7 @@ function a1(e, t, n, c, l, i) {
|
|
|
5317
5317
|
E(" " + P(e.$t("Common.search")), 1)
|
|
5318
5318
|
]),
|
|
5319
5319
|
_: 1
|
|
5320
|
-
}, 8, ["loading"])) :
|
|
5320
|
+
}, 8, ["loading"])) : Q("", !0),
|
|
5321
5321
|
e.defaultValue && Object.keys(e.defaultValue).length > 0 ? (s(), B(a, {
|
|
5322
5322
|
key: 2,
|
|
5323
5323
|
loading: e.loading,
|
|
@@ -5336,9 +5336,9 @@ function a1(e, t, n, c, l, i) {
|
|
|
5336
5336
|
E(" " + P(e.$t("Common.reset")), 1)
|
|
5337
5337
|
]),
|
|
5338
5338
|
_: 1
|
|
5339
|
-
}, 8, ["loading", "onClick"])) :
|
|
5339
|
+
}, 8, ["loading", "onClick"])) : Q("", !0),
|
|
5340
5340
|
ke(e.$slots, "action")
|
|
5341
|
-
])) :
|
|
5341
|
+
])) : Q("", !0)
|
|
5342
5342
|
], 32);
|
|
5343
5343
|
}
|
|
5344
5344
|
const s1 = /* @__PURE__ */ w(t1, [["render", a1]]), l1 = re({
|
|
@@ -5380,7 +5380,7 @@ const s1 = /* @__PURE__ */ w(t1, [["render", a1]]), l1 = re({
|
|
|
5380
5380
|
const n = ct(), c = M([]), l = M(!1), i = M(), a = M(), p = (v) => Array.isArray(v) && v.length > 0 || v ? v : !1, _ = (v = !1) => {
|
|
5381
5381
|
if (e.loading)
|
|
5382
5382
|
return;
|
|
5383
|
-
const o =
|
|
5383
|
+
const o = G(i.value);
|
|
5384
5384
|
!v && o.query && (o.query.page = 1);
|
|
5385
5385
|
const h = [];
|
|
5386
5386
|
c.value.forEach((f) => {
|
|
@@ -5398,7 +5398,7 @@ const s1 = /* @__PURE__ */ w(t1, [["render", a1]]), l1 = re({
|
|
|
5398
5398
|
}
|
|
5399
5399
|
}), l.value = !1, t("update:loading", !0), t("on-update:value", h);
|
|
5400
5400
|
}, z = () => {
|
|
5401
|
-
e.loading || (i.value =
|
|
5401
|
+
e.loading || (i.value = G(a.value), _());
|
|
5402
5402
|
}, D = (v) => {
|
|
5403
5403
|
const o = {};
|
|
5404
5404
|
for (const h of v)
|
|
@@ -5406,14 +5406,14 @@ const s1 = /* @__PURE__ */ w(t1, [["render", a1]]), l1 = re({
|
|
|
5406
5406
|
return { data: v, values: o };
|
|
5407
5407
|
}, N = (v) => {
|
|
5408
5408
|
if (v && v.length > 0) {
|
|
5409
|
-
const { data: o, values: h } = D(
|
|
5409
|
+
const { data: o, values: h } = D(G(v)), f = {}, u = e.id || n.params.id;
|
|
5410
5410
|
if (e.cache && u) {
|
|
5411
5411
|
const g = Me(`tables_${u}`, !1);
|
|
5412
5412
|
g && g.params.forEach((S) => {
|
|
5413
5413
|
f[S.key] = S.value;
|
|
5414
5414
|
});
|
|
5415
5415
|
}
|
|
5416
|
-
c.value = o, i.value =
|
|
5416
|
+
c.value = o, i.value = G({ ...h, ...f }), a.value = G(h);
|
|
5417
5417
|
}
|
|
5418
5418
|
_(!0);
|
|
5419
5419
|
};
|
|
@@ -5454,7 +5454,7 @@ function d1(e, t, n, c, l, i) {
|
|
|
5454
5454
|
E(" " + P(e.$t("Common.search")), 1)
|
|
5455
5455
|
]),
|
|
5456
5456
|
_: 1
|
|
5457
|
-
})) :
|
|
5457
|
+
})) : Q("", !0),
|
|
5458
5458
|
ke(e.$slots, "action")
|
|
5459
5459
|
])
|
|
5460
5460
|
]),
|
|
@@ -5513,7 +5513,7 @@ function d1(e, t, n, c, l, i) {
|
|
|
5513
5513
|
E(" " + P(e.$t("Common.search")), 1)
|
|
5514
5514
|
]),
|
|
5515
5515
|
_: 1
|
|
5516
|
-
}, 8, ["loading"])) :
|
|
5516
|
+
}, 8, ["loading"])) : Q("", !0)
|
|
5517
5517
|
])
|
|
5518
5518
|
]),
|
|
5519
5519
|
default: m(() => [
|
|
@@ -5647,7 +5647,7 @@ function pa() {
|
|
|
5647
5647
|
async function Pe(e) {
|
|
5648
5648
|
const t = e.split(".");
|
|
5649
5649
|
let n = !1;
|
|
5650
|
-
return t.length > 1 && (Ue.has(t[0]) ? n =
|
|
5650
|
+
return t.length > 1 && (Ue.has(t[0]) ? n = G(Ue.get(t[0])) : (n = await Ve({ tableId: t[0] }), Ue.set(t[0], n))), { sourceData: n, n: t };
|
|
5651
5651
|
}
|
|
5652
5652
|
async function Xe(e) {
|
|
5653
5653
|
return new Promise((t, n) => {
|
|
@@ -5856,11 +5856,11 @@ const v1 = (e) => e.map((t) => {
|
|
|
5856
5856
|
drawerHeight: e.h,
|
|
5857
5857
|
placement: e.l,
|
|
5858
5858
|
summary: e.r
|
|
5859
|
-
}), Object.assign({}, h1,
|
|
5859
|
+
}), Object.assign({}, h1, G(t));
|
|
5860
5860
|
};
|
|
5861
5861
|
function wt(e, t, n) {
|
|
5862
5862
|
return new Promise(async (c, l) => {
|
|
5863
|
-
const i = [], a = {}, p = {}, _ = {}, z = [], D = [], N =
|
|
5863
|
+
const i = [], a = {}, p = {}, _ = {}, z = [], D = [], N = G(e), v = [];
|
|
5864
5864
|
for (const o of N)
|
|
5865
5865
|
o.input === "group" ? v.push(...o.params.children) : v.push(o);
|
|
5866
5866
|
for (const o of v) {
|
|
@@ -5901,12 +5901,12 @@ function wt(e, t, n) {
|
|
|
5901
5901
|
const { sourceData: f, n: u } = await Pe(o.source);
|
|
5902
5902
|
if (f && Array.isArray(f))
|
|
5903
5903
|
if (o.sourceFn) {
|
|
5904
|
-
const g = o.sourceFn
|
|
5905
|
-
|
|
5904
|
+
const g = o.sourceFn;
|
|
5905
|
+
h = new Function("sourceData", g)(f);
|
|
5906
5906
|
} else
|
|
5907
|
-
|
|
5907
|
+
h = Re(o, f, u);
|
|
5908
5908
|
} else
|
|
5909
|
-
o.params.
|
|
5909
|
+
o.params._async = !0, o.params._fetch = !1, o.params._asyncFn = async () => {
|
|
5910
5910
|
const { sourceData: f, n: u } = await Pe(o.source);
|
|
5911
5911
|
if (f && Array.isArray(f))
|
|
5912
5912
|
if (o.sourceFn) {
|
|
@@ -5915,7 +5915,7 @@ function wt(e, t, n) {
|
|
|
5915
5915
|
} else
|
|
5916
5916
|
return Re(o, f, u);
|
|
5917
5917
|
};
|
|
5918
|
-
if (o.form.backfill && t)
|
|
5918
|
+
if (o.params.options = h, o.form.backfill && t)
|
|
5919
5919
|
if (Array.isArray(t))
|
|
5920
5920
|
t.forEach((f, u) => {
|
|
5921
5921
|
const g = h.find((S) => S.value === f[o.key]);
|
|
@@ -6016,7 +6016,7 @@ async function gt(e, t = !1, n = 0, c = () => {
|
|
|
6016
6016
|
let i = 0;
|
|
6017
6017
|
const a = [], p = [];
|
|
6018
6018
|
let _ = [];
|
|
6019
|
-
const z =
|
|
6019
|
+
const z = G(e), D = [], N = [];
|
|
6020
6020
|
for (const o of z)
|
|
6021
6021
|
o.input === "group" ? (D.push(...o.params.children), N.push({
|
|
6022
6022
|
title: o.label,
|
|
@@ -6427,7 +6427,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6427
6427
|
}), C = M(He()), R = M(""), H = M(!1), O = M([]), L = M([]), ue = De("modules"), $e = (k) => k.id, vt = (k, V) => {
|
|
6428
6428
|
t("update:rowKeys", {
|
|
6429
6429
|
keys: k,
|
|
6430
|
-
rows:
|
|
6430
|
+
rows: G(V)
|
|
6431
6431
|
});
|
|
6432
6432
|
}, Ke = (k, V, W) => {
|
|
6433
6433
|
if (O.value = k, W.action === "check" && L.value.push(W.row), W.action === "uncheck") {
|
|
@@ -6439,8 +6439,8 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6439
6439
|
W.action === "checkAll" && V.forEach((X) => {
|
|
6440
6440
|
X && L.value.push(X);
|
|
6441
6441
|
}), W.action === "uncheckAll" && (L.value = [], O.value = []), t("update:rowKeys", {
|
|
6442
|
-
keys:
|
|
6443
|
-
rows:
|
|
6442
|
+
keys: G(O.value),
|
|
6443
|
+
rows: G(L.value)
|
|
6444
6444
|
});
|
|
6445
6445
|
}, kt = (k) => {
|
|
6446
6446
|
const V = e.summary || C.value.summary;
|
|
@@ -6448,7 +6448,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6448
6448
|
}, ae = (k = !1) => {
|
|
6449
6449
|
const V = e.id || l.params.id;
|
|
6450
6450
|
e.enableLoading && (v.value = !0, t("update:loading", !0));
|
|
6451
|
-
const W =
|
|
6451
|
+
const W = G(F.value);
|
|
6452
6452
|
if (k && delete W.orderby, q.value.fetch)
|
|
6453
6453
|
yn([q.value.fetch], "", W).then((X) => {
|
|
6454
6454
|
const j = vn(X);
|
|
@@ -6597,13 +6597,13 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6597
6597
|
}
|
|
6598
6598
|
return { form: X, data: Y };
|
|
6599
6599
|
}, cn = (k, V) => {
|
|
6600
|
-
const W =
|
|
6600
|
+
const W = G(k.onClick), X = e.id || l.params.id;
|
|
6601
6601
|
if (k.disabled) {
|
|
6602
6602
|
if (typeof k.disabled == "string") {
|
|
6603
6603
|
const j = new Function("rowData", "rowIndex", k.disabled);
|
|
6604
6604
|
k.disabled = (Y, le) => j(Y, le) || ot(k.key);
|
|
6605
6605
|
} else if (typeof k.disabled == "function") {
|
|
6606
|
-
const j =
|
|
6606
|
+
const j = G(k);
|
|
6607
6607
|
k.disabled = (Y, le) => j.disabled(Y, le) || ot(k.key);
|
|
6608
6608
|
}
|
|
6609
6609
|
} else
|
|
@@ -6646,7 +6646,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6646
6646
|
}).catch(() => null);
|
|
6647
6647
|
};
|
|
6648
6648
|
else if (k.type !== "group" && k.action === "detailInside") {
|
|
6649
|
-
const j =
|
|
6649
|
+
const j = G(k.onClick);
|
|
6650
6650
|
k.onClick = (Y) => {
|
|
6651
6651
|
D.value?.addAndEdit(
|
|
6652
6652
|
() => ln(Y, j),
|
|
@@ -6657,7 +6657,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6657
6657
|
);
|
|
6658
6658
|
};
|
|
6659
6659
|
} else if (k.type !== "group" && k.action === "editInside") {
|
|
6660
|
-
const j =
|
|
6660
|
+
const j = G(k.onClick);
|
|
6661
6661
|
k.onClick = (Y) => {
|
|
6662
6662
|
D.value?.addAndEdit(
|
|
6663
6663
|
() => ln(Y, j),
|
|
@@ -6705,7 +6705,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6705
6705
|
}).catch(() => null);
|
|
6706
6706
|
};
|
|
6707
6707
|
else if (k.type !== "group" && k.action) {
|
|
6708
|
-
const j =
|
|
6708
|
+
const j = G(k.onClick);
|
|
6709
6709
|
k.onClick = (Y) => {
|
|
6710
6710
|
let le;
|
|
6711
6711
|
e.fetch ? le = e.fetch({
|
|
@@ -6800,7 +6800,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6800
6800
|
}), j = j + 60);
|
|
6801
6801
|
const Y = e.id || l.params.id;
|
|
6802
6802
|
if (!p.value && C.value.commonTime && k.push(...Ta()), e.enableAction === !0 && I.value && I.value.length > 0) {
|
|
6803
|
-
const le =
|
|
6803
|
+
const le = G(I.value);
|
|
6804
6804
|
for (const me of le)
|
|
6805
6805
|
me.type === "group" ? me.children.forEach((Ae) => {
|
|
6806
6806
|
cn(Ae, W);
|
|
@@ -6896,7 +6896,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6896
6896
|
});
|
|
6897
6897
|
}, Ia = (k) => {
|
|
6898
6898
|
if (k.type !== "group" && k.optionsType) {
|
|
6899
|
-
const V =
|
|
6899
|
+
const V = G(k.onClick);
|
|
6900
6900
|
k.onClick = () => {
|
|
6901
6901
|
t("update:suffixes", {
|
|
6902
6902
|
title: k.buttonText,
|
|
@@ -6911,7 +6911,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6911
6911
|
});
|
|
6912
6912
|
};
|
|
6913
6913
|
} else if (k.type !== "group") {
|
|
6914
|
-
const V =
|
|
6914
|
+
const V = G(k.onClick);
|
|
6915
6915
|
k.onClick = async () => {
|
|
6916
6916
|
if (V && typeof V == "string") {
|
|
6917
6917
|
try {
|
|
@@ -7099,7 +7099,7 @@ function T1(e, t, n, c, l, i) {
|
|
|
7099
7099
|
E(" " + P(e.$t("Common.add")), 1)
|
|
7100
7100
|
]),
|
|
7101
7101
|
_: 1
|
|
7102
|
-
}, 8, ["disabled", "onClick"])) :
|
|
7102
|
+
}, 8, ["disabled", "onClick"])) : Q("", !0),
|
|
7103
7103
|
e.suffixes && e.suffixes.length > 0 ? (s(), B(D, {
|
|
7104
7104
|
key: 1,
|
|
7105
7105
|
data: e.suffixes,
|
|
@@ -7108,7 +7108,7 @@ function T1(e, t, n, c, l, i) {
|
|
|
7108
7108
|
size: "medium",
|
|
7109
7109
|
text: !1
|
|
7110
7110
|
}
|
|
7111
|
-
}, null, 8, ["data"])) :
|
|
7111
|
+
}, null, 8, ["data"])) : Q("", !0),
|
|
7112
7112
|
ke(e.$slots, "action")
|
|
7113
7113
|
]),
|
|
7114
7114
|
_: 2
|
|
@@ -7185,7 +7185,7 @@ function T1(e, t, n, c, l, i) {
|
|
|
7185
7185
|
onEnd: e.handleColumnChange
|
|
7186
7186
|
}), {
|
|
7187
7187
|
item: m(({ element: Z }) => [
|
|
7188
|
-
Z.hide ?
|
|
7188
|
+
Z.hide ? Q("", !0) : (s(), d("div", {
|
|
7189
7189
|
key: Z.key,
|
|
7190
7190
|
class: "uz-table-sort"
|
|
7191
7191
|
}, [
|
|
@@ -7219,7 +7219,7 @@ function T1(e, t, n, c, l, i) {
|
|
|
7219
7219
|
}, 16, ["modelValue", "onEnd"])
|
|
7220
7220
|
]),
|
|
7221
7221
|
_: 1
|
|
7222
|
-
})) :
|
|
7222
|
+
})) : Q("", !0),
|
|
7223
7223
|
e.addFetch && e.tableOption.addButton ? (s(), B(p, {
|
|
7224
7224
|
key: 1,
|
|
7225
7225
|
secondary: "",
|
|
@@ -7238,7 +7238,7 @@ function T1(e, t, n, c, l, i) {
|
|
|
7238
7238
|
E(" " + P(e.$t("Common.add")), 1)
|
|
7239
7239
|
]),
|
|
7240
7240
|
_: 1
|
|
7241
|
-
}, 8, ["disabled", "onClick"])) :
|
|
7241
|
+
}, 8, ["disabled", "onClick"])) : Q("", !0),
|
|
7242
7242
|
e.suffixes && e.suffixes.length > 0 ? (s(), B(D, {
|
|
7243
7243
|
key: 2,
|
|
7244
7244
|
data: e.suffixes,
|
|
@@ -7247,7 +7247,7 @@ function T1(e, t, n, c, l, i) {
|
|
|
7247
7247
|
size: "medium",
|
|
7248
7248
|
text: !1
|
|
7249
7249
|
}
|
|
7250
|
-
}, null, 8, ["data"])) :
|
|
7250
|
+
}, null, 8, ["data"])) : Q("", !0),
|
|
7251
7251
|
ke(e.$slots, "action")
|
|
7252
7252
|
]),
|
|
7253
7253
|
_: 2
|
|
@@ -7318,18 +7318,18 @@ const F1 = /* @__PURE__ */ w(_1, [["render", T1]]), B1 = re({
|
|
|
7318
7318
|
},
|
|
7319
7319
|
emits: ["update:value"],
|
|
7320
7320
|
setup(e, { emit: t, expose: n }) {
|
|
7321
|
-
const c = De("emitSuffix"), l = De("modules"), i = De("mainFormValue"), { t: a } = Qt(), p = M(), _ = M(), z = M(), D = M(!1), N = M(!0), v = M([]), o = M({ child: [] }), h = M(""), f = M({}), u = M([]), g = M(void 0), S = async (C) => {
|
|
7322
|
-
const { formDefaultValue:
|
|
7323
|
-
e.item.params.columns,
|
|
7321
|
+
const c = De("emitSuffix"), l = De("modules"), i = De("mainFormValue"), { t: a } = Qt(), p = M(), _ = M(), z = M(), D = M(!1), N = M(!0), v = M([]), o = M({ child: [] }), h = M(""), f = M({}), u = M([]), g = M(void 0), S = async (C, R) => {
|
|
7322
|
+
const { formDefaultValue: H, fillingDefaultArray: O } = await wt(
|
|
7323
|
+
G(R ?? e.item.params.columns),
|
|
7324
7324
|
C
|
|
7325
7325
|
);
|
|
7326
|
-
return f.value =
|
|
7326
|
+
return f.value = H, O;
|
|
7327
7327
|
}, y = async (C) => {
|
|
7328
7328
|
if (D.value)
|
|
7329
7329
|
return;
|
|
7330
7330
|
D.value = !0;
|
|
7331
7331
|
const R = await S(C);
|
|
7332
|
-
let H =
|
|
7332
|
+
let H = G(C).map((O, L) => ({
|
|
7333
7333
|
...O,
|
|
7334
7334
|
...R[L]
|
|
7335
7335
|
}));
|
|
@@ -7356,9 +7356,9 @@ const F1 = /* @__PURE__ */ w(_1, [["render", T1]]), B1 = re({
|
|
|
7356
7356
|
U();
|
|
7357
7357
|
});
|
|
7358
7358
|
}, F = (C) => C.delete ? "uz-table-child-delete" : "", K = async (C) => {
|
|
7359
|
-
e.item._suffix && (u.value = e.item._suffix.filter((ue) => ue.sub)), await S(C);
|
|
7359
|
+
e.item._suffix && (u.value = e.item._suffix.filter((ue) => ue.sub)), await S(e.value, C);
|
|
7360
7360
|
const { tableColumns: R, tableWidth: H } = await gt(
|
|
7361
|
-
|
|
7361
|
+
G(C ?? e.item.params.columns),
|
|
7362
7362
|
!0,
|
|
7363
7363
|
e.status,
|
|
7364
7364
|
() => o.value.child,
|
|
@@ -7449,7 +7449,7 @@ const F1 = /* @__PURE__ */ w(_1, [["render", T1]]), B1 = re({
|
|
|
7449
7449
|
}
|
|
7450
7450
|
return [];
|
|
7451
7451
|
}, ne = async () => {
|
|
7452
|
-
h.value = "", o.value.child.push(
|
|
7452
|
+
h.value = "", o.value.child.push(G(f.value)), be(() => {
|
|
7453
7453
|
U();
|
|
7454
7454
|
});
|
|
7455
7455
|
}, T = async () => {
|
|
@@ -7506,7 +7506,7 @@ const F1 = /* @__PURE__ */ w(_1, [["render", T1]]), B1 = re({
|
|
|
7506
7506
|
// },
|
|
7507
7507
|
onEnd: ({ oldIndex: R, newIndex: H }) => {
|
|
7508
7508
|
_.value?.destroy(), _.value = null, N.value = !1;
|
|
7509
|
-
let O =
|
|
7509
|
+
let O = G(o.value.child);
|
|
7510
7510
|
const L = O.splice(R, 1)[0];
|
|
7511
7511
|
O.splice(H, 0, L), O = O.map((ue, $e) => ({
|
|
7512
7512
|
...ue,
|
|
@@ -7576,7 +7576,7 @@ function R1(e, t, n, c, l, i) {
|
|
|
7576
7576
|
r("div", V1, [
|
|
7577
7577
|
r("div", U1, [
|
|
7578
7578
|
E(P(e.item.label) + " ", 1),
|
|
7579
|
-
e.item.form.rule.required ? (s(), d("span", j1, " * ")) :
|
|
7579
|
+
e.item.form.rule.required ? (s(), d("span", j1, " * ")) : Q("", !0)
|
|
7580
7580
|
]),
|
|
7581
7581
|
r("div", A1, [
|
|
7582
7582
|
e.status !== 2 ? (s(!0), d(se, { key: 0 }, we(e.suffixes, (v) => (s(), B(_, {
|
|
@@ -7604,7 +7604,7 @@ function R1(e, t, n, c, l, i) {
|
|
|
7604
7604
|
]),
|
|
7605
7605
|
key: "0"
|
|
7606
7606
|
} : void 0
|
|
7607
|
-
]), 1032, ["type", "onClick"]))), 128)) :
|
|
7607
|
+
]), 1032, ["type", "onClick"]))), 128)) : Q("", !0),
|
|
7608
7608
|
e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B(_, {
|
|
7609
7609
|
key: 1,
|
|
7610
7610
|
type: "success",
|
|
@@ -7623,7 +7623,7 @@ function R1(e, t, n, c, l, i) {
|
|
|
7623
7623
|
t[0] || (t[0] = E(" 从数据新增 ", -1))
|
|
7624
7624
|
]),
|
|
7625
7625
|
_: 1
|
|
7626
|
-
}, 8, ["onClick"])) :
|
|
7626
|
+
}, 8, ["onClick"])) : Q("", !0),
|
|
7627
7627
|
e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B(_, {
|
|
7628
7628
|
key: 2,
|
|
7629
7629
|
type: "success",
|
|
@@ -7642,7 +7642,7 @@ function R1(e, t, n, c, l, i) {
|
|
|
7642
7642
|
t[1] || (t[1] = E(" 新增 ", -1))
|
|
7643
7643
|
]),
|
|
7644
7644
|
_: 1
|
|
7645
|
-
}, 8, ["onClick"])) :
|
|
7645
|
+
}, 8, ["onClick"])) : Q("", !0)
|
|
7646
7646
|
])
|
|
7647
7647
|
]),
|
|
7648
7648
|
t[4] || (t[4] = r("div", { class: "uz-br" }, null, -1)),
|
|
@@ -7667,7 +7667,7 @@ function R1(e, t, n, c, l, i) {
|
|
|
7667
7667
|
"row-class-name": e.rowClassName,
|
|
7668
7668
|
"scrollbar-props": { size: 8, trigger: "none" },
|
|
7669
7669
|
remote: ""
|
|
7670
|
-
}, null, 8, ["columns", "data", "loading", "summary", "scroll-x", "class", "row-class-name"])) :
|
|
7670
|
+
}, null, 8, ["columns", "data", "loading", "summary", "scroll-x", "class", "row-class-name"])) : Q("", !0),
|
|
7671
7671
|
r("div", O1, [
|
|
7672
7672
|
e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B(_, {
|
|
7673
7673
|
key: 0,
|
|
@@ -7687,7 +7687,7 @@ function R1(e, t, n, c, l, i) {
|
|
|
7687
7687
|
t[2] || (t[2] = E(" 从数据新增 ", -1))
|
|
7688
7688
|
]),
|
|
7689
7689
|
_: 1
|
|
7690
|
-
}, 8, ["onClick"])) :
|
|
7690
|
+
}, 8, ["onClick"])) : Q("", !0),
|
|
7691
7691
|
e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B(_, {
|
|
7692
7692
|
key: 1,
|
|
7693
7693
|
type: "success",
|
|
@@ -7706,7 +7706,7 @@ function R1(e, t, n, c, l, i) {
|
|
|
7706
7706
|
t[3] || (t[3] = E(" 新增 ", -1))
|
|
7707
7707
|
]),
|
|
7708
7708
|
_: 1
|
|
7709
|
-
}, 8, ["onClick"])) :
|
|
7709
|
+
}, 8, ["onClick"])) : Q("", !0)
|
|
7710
7710
|
])
|
|
7711
7711
|
]),
|
|
7712
7712
|
_: 1
|
|
@@ -7740,7 +7740,7 @@ const P1 = /* @__PURE__ */ w(B1, [["render", R1]]), H1 = re({
|
|
|
7740
7740
|
}
|
|
7741
7741
|
}, z = async (N) => {
|
|
7742
7742
|
const { tableColumns: v, tableWidth: o } = await gt(
|
|
7743
|
-
|
|
7743
|
+
G(e.item.params.columns),
|
|
7744
7744
|
!0,
|
|
7745
7745
|
2,
|
|
7746
7746
|
() => a.value,
|
|
@@ -8182,7 +8182,7 @@ function o0(e, t, n, c, l, i) {
|
|
|
8182
8182
|
), {
|
|
8183
8183
|
key: 0,
|
|
8184
8184
|
class: "mobile"
|
|
8185
|
-
})) :
|
|
8185
|
+
})) : Q("", !0)
|
|
8186
8186
|
], 64)) : (s(), d(se, { key: 1 }, [
|
|
8187
8187
|
r("div", {
|
|
8188
8188
|
class: ie(["uz-table-mobile-group-title", a.lineBreak ? "line-break" : ""])
|
|
@@ -8290,7 +8290,7 @@ function c0(e, t, n, c, l, i) {
|
|
|
8290
8290
|
"page-size": e.tableQueries.query.pageSize,
|
|
8291
8291
|
size: "large"
|
|
8292
8292
|
}, null, 8, ["page", "item-count", "page-size", "onUpdate:page"])
|
|
8293
|
-
])) :
|
|
8293
|
+
])) : Q("", !0)
|
|
8294
8294
|
]),
|
|
8295
8295
|
_: 1
|
|
8296
8296
|
}, 8, ["value", "style", "onUpdate:value"])) : e.selection === 1 ? (s(), B(N, {
|
|
@@ -8332,7 +8332,7 @@ function c0(e, t, n, c, l, i) {
|
|
|
8332
8332
|
"page-size": e.tableQueries.query.pageSize,
|
|
8333
8333
|
size: "large"
|
|
8334
8334
|
}, null, 8, ["page", "item-count", "page-size", "onUpdate:page"])
|
|
8335
|
-
])) :
|
|
8335
|
+
])) : Q("", !0)
|
|
8336
8336
|
]),
|
|
8337
8337
|
_: 1
|
|
8338
8338
|
}, 8, ["value", "style", "onUpdate:value"])) : (s(), d("div", {
|
|
@@ -8364,7 +8364,7 @@ function c0(e, t, n, c, l, i) {
|
|
|
8364
8364
|
"page-size": e.tableQueries.query.pageSize,
|
|
8365
8365
|
size: "large"
|
|
8366
8366
|
}, null, 8, ["page", "item-count", "page-size", "onUpdate:page"])
|
|
8367
|
-
])) :
|
|
8367
|
+
])) : Q("", !0)
|
|
8368
8368
|
], 4));
|
|
8369
8369
|
}
|
|
8370
8370
|
const u0 = /* @__PURE__ */ w(a0, [["render", c0], ["__scopeId", "data-v-70b54e3b"]]), J = At({
|
|
@@ -8927,7 +8927,7 @@ function tm(e, t, n) {
|
|
|
8927
8927
|
refetch: S
|
|
8928
8928
|
};
|
|
8929
8929
|
}
|
|
8930
|
-
const x0 = "0.1.
|
|
8930
|
+
const x0 = "0.1.14";
|
|
8931
8931
|
let _a;
|
|
8932
8932
|
async function $a() {
|
|
8933
8933
|
const e = await fetch(
|