@unizhen/ui 0.0.72 → 0.0.74
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 +49 -40
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as oe, openBlock as s, createElementBlock as f, createStaticVNode as R, createElementVNode as o, ref as C, watch as
|
|
1
|
+
import { defineComponent as oe, openBlock as s, createElementBlock as f, createStaticVNode as R, createElementVNode as o, ref as C, watch as se, nextTick as ye, h as ee, reactive as It, resolveComponent as $, createBlock as V, withCtx as m, toDisplayString as E, createVNode as x, computed as ze, normalizeStyle as ve, inject as Ne, normalizeClass as ae, createSlots as Me, createTextVNode as q, Fragment as le, renderList as ke, provide as Mt, resolveDirective as Sn, withDirectives as Le, createCommentVNode as W, onMounted as Re, mergeProps as zt, withModifiers as et, watchEffect as Dn, onBeforeUnmount as Ut, withKeys as Ua, renderSlot as ge, markRaw as ja, defineAsyncComponent as Oa, onUnmounted as Tn, vShow as Nt, resolveDynamicComponent as hn } from "vue";
|
|
2
2
|
import { createDiscreteApi as Aa, NPopover as Pe, NFlex as Bn, NButton as we, NPopconfirm as jt, NTooltip as Vn, NIcon as me, NDropdown as Ra, NCascader as Fn, NCheckboxGroup as In, NCheckbox as Ot, NColorPicker as Pa, NSwitch as Ha, NTimePicker as Ea, NDatePicker as qa, NInputNumber as La, NSelect as Un, NInput as Ka, NDivider as At, NFormItem as Rt, NForm as Pt, NSpin as rt, NInputGroup as Ht, NUploadDragger as Wa, NImage as jn, NUpload as Ga, useNotification as Et, NImageGroup as Qa, NModal as Ja, NInputGroupLabel as On, NGridItem as An, NGrid as Rn, NButtonGroup as Xa, NDrawerContent as Pn, NDrawer as Hn, NTag as Ya, NEllipsis as Za, NSkeleton as En, NDataTable as qt, NRadioGroup as es, NPagination as ts, NRadio as ns, NTabPane as os, NTabs as rs, darkTheme as fe, NConfigProvider as as, dateZhCN as ss, zhCN as ls } from "naive-ui";
|
|
3
3
|
import Lt from "axios";
|
|
4
4
|
import { createRouter as is, createWebHistory as us, useRouter as cs, useRoute as at } from "vue-router";
|
|
@@ -2326,7 +2326,7 @@ const Xr = /* @__PURE__ */ w(mf, [["render", gf]]), Yr = /* @__PURE__ */ Object.
|
|
|
2326
2326
|
}
|
|
2327
2327
|
n.value = l;
|
|
2328
2328
|
};
|
|
2329
|
-
return c(e.icon),
|
|
2329
|
+
return c(e.icon), se(
|
|
2330
2330
|
() => e.icon,
|
|
2331
2331
|
(l) => {
|
|
2332
2332
|
c(l);
|
|
@@ -3739,7 +3739,7 @@ function $h(e, t, n, c, l, i) {
|
|
|
3739
3739
|
}, {
|
|
3740
3740
|
default: m(() => [
|
|
3741
3741
|
o("div", xh, [
|
|
3742
|
-
(s(!0), f(
|
|
3742
|
+
(s(!0), f(le, null, ke(e.item.params.options, (h) => (s(), V(u, {
|
|
3743
3743
|
key: h.value,
|
|
3744
3744
|
label: h.label,
|
|
3745
3745
|
value: h.value
|
|
@@ -3809,7 +3809,7 @@ function $h(e, t, n, c, l, i) {
|
|
|
3809
3809
|
"onUpdate:value": t[23] || (t[23] = (h) => e.formValue[e.item.key] = h),
|
|
3810
3810
|
item: e.item,
|
|
3811
3811
|
status: e.status
|
|
3812
|
-
}, null, 8, ["value", "item", "status"])) : (s(), f(
|
|
3812
|
+
}, null, 8, ["value", "item", "status"])) : (s(), f(le, { key: 14 }, [], 64));
|
|
3813
3813
|
}
|
|
3814
3814
|
const Ee = /* @__PURE__ */ w(bh, [["render", $h]]), _h = oe({
|
|
3815
3815
|
name: "UzForm",
|
|
@@ -4038,10 +4038,19 @@ const Ee = /* @__PURE__ */ w(bh, [["render", $h]]), _h = oe({
|
|
|
4038
4038
|
}, L = (F) => {
|
|
4039
4039
|
D.value && (p.value[D.value].params.options = F);
|
|
4040
4040
|
};
|
|
4041
|
-
return t({ validate: g, restoreValidation: N, getValues: () => r.value }),
|
|
4041
|
+
return t({ validate: g, restoreValidation: N, getValues: () => r.value }), se(
|
|
4042
|
+
() => e.items,
|
|
4043
|
+
(F) => {
|
|
4044
|
+
k(F);
|
|
4045
|
+
},
|
|
4046
|
+
{
|
|
4047
|
+
deep: !0,
|
|
4048
|
+
immediate: !0
|
|
4049
|
+
}
|
|
4050
|
+
), se(
|
|
4042
4051
|
() => e.value,
|
|
4043
4052
|
(F, b) => {
|
|
4044
|
-
JSON.stringify(F) !== JSON.stringify(b) && (r.value = F
|
|
4053
|
+
JSON.stringify(F) !== JSON.stringify(b) && (r.value = F);
|
|
4045
4054
|
},
|
|
4046
4055
|
{
|
|
4047
4056
|
deep: !0,
|
|
@@ -4064,7 +4073,7 @@ const Ee = /* @__PURE__ */ w(bh, [["render", $h]]), _h = oe({
|
|
|
4064
4073
|
}), Ch = ["onClick"];
|
|
4065
4074
|
function Mh(e, t, n, c, l, i) {
|
|
4066
4075
|
const r = $("Plus"), p = $("NIcon"), _ = $("UzTableChild"), M = $("UzTableQuestChild"), D = $("NDivider"), z = $("UzFormItem"), v = $("NFormItem"), u = $("NForm"), a = $("UzTableDrawer"), k = Sn("media");
|
|
4067
|
-
return s(), f(
|
|
4076
|
+
return s(), f(le, null, [
|
|
4068
4077
|
x(u, {
|
|
4069
4078
|
ref: "formRef",
|
|
4070
4079
|
class: "uz-w-full uz-h-full",
|
|
@@ -4078,7 +4087,7 @@ function Mh(e, t, n, c, l, i) {
|
|
|
4078
4087
|
Le((s(), f("div", {
|
|
4079
4088
|
class: ae(e.isMobile ? "" : "uz-form-grid")
|
|
4080
4089
|
}, [
|
|
4081
|
-
(s(!0), f(
|
|
4090
|
+
(s(!0), f(le, null, ke(e.formItems, (d, g) => (s(), f(le, { key: g }, [
|
|
4082
4091
|
e.itemShow(d) ? (s(), V(v, {
|
|
4083
4092
|
key: 0,
|
|
4084
4093
|
path: d.key,
|
|
@@ -4240,7 +4249,7 @@ const zh = /* @__PURE__ */ w(_h, [["render", Mh]]), Nh = oe({
|
|
|
4240
4249
|
};
|
|
4241
4250
|
return Re(() => {
|
|
4242
4251
|
i.value = e.value, z();
|
|
4243
|
-
}), t({ changeItem: M }),
|
|
4252
|
+
}), t({ changeItem: M }), se(
|
|
4244
4253
|
() => e.items,
|
|
4245
4254
|
() => {
|
|
4246
4255
|
z();
|
|
@@ -4248,7 +4257,7 @@ const zh = /* @__PURE__ */ w(_h, [["render", Mh]]), Nh = oe({
|
|
|
4248
4257
|
{
|
|
4249
4258
|
deep: !0
|
|
4250
4259
|
}
|
|
4251
|
-
),
|
|
4260
|
+
), se(
|
|
4252
4261
|
() => e.value,
|
|
4253
4262
|
(k) => {
|
|
4254
4263
|
i.value = k;
|
|
@@ -4527,7 +4536,7 @@ const Bh = /* @__PURE__ */ w(Nh, [["render", Th]]), Vh = oe({
|
|
|
4527
4536
|
};
|
|
4528
4537
|
return Re(() => {
|
|
4529
4538
|
M();
|
|
4530
|
-
}),
|
|
4539
|
+
}), se(
|
|
4531
4540
|
() => e.value,
|
|
4532
4541
|
() => {
|
|
4533
4542
|
M();
|
|
@@ -4575,7 +4584,7 @@ function jh(e, t, n, c, l, i) {
|
|
|
4575
4584
|
]),
|
|
4576
4585
|
_: 1
|
|
4577
4586
|
}, 8, ["accept", "max", "on-before-upload"])) : W("", !0),
|
|
4578
|
-
(s(!0), f(
|
|
4587
|
+
(s(!0), f(le, null, ke(e.formValue, (N, h) => (s(), f("div", {
|
|
4579
4588
|
key: h,
|
|
4580
4589
|
class: "uz-form-upload-item uz-w-20 uz-h-20"
|
|
4581
4590
|
}, [
|
|
@@ -4703,7 +4712,7 @@ function Ph(e, t, n, c, l, i) {
|
|
|
4703
4712
|
return s(), V(z, null, {
|
|
4704
4713
|
default: m(() => [
|
|
4705
4714
|
o("div", Rh, [
|
|
4706
|
-
(s(!0), f(
|
|
4715
|
+
(s(!0), f(le, null, ke(e.imgs, (v) => (s(), f(le, null, [
|
|
4707
4716
|
e.isAssetTypeAnImage(v) ? (s(), V(_, {
|
|
4708
4717
|
key: 0,
|
|
4709
4718
|
width: "40",
|
|
@@ -4790,7 +4799,7 @@ const ca = /* @__PURE__ */ w(Ah, [["render", Ph]]), Hh = oe({
|
|
|
4790
4799
|
}, v = (u) => {
|
|
4791
4800
|
r.value = u, M();
|
|
4792
4801
|
};
|
|
4793
|
-
return n({ clearAll: p }),
|
|
4802
|
+
return n({ clearAll: p }), se(
|
|
4794
4803
|
() => e.value,
|
|
4795
4804
|
(u) => {
|
|
4796
4805
|
if (u) {
|
|
@@ -4944,7 +4953,7 @@ const Lh = /* @__PURE__ */ w(Hh, [["render", qh], ["__scopeId", "data-v-79a42e8c
|
|
|
4944
4953
|
e.mode === "video" && a();
|
|
4945
4954
|
}), Ut(() => {
|
|
4946
4955
|
z();
|
|
4947
|
-
}),
|
|
4956
|
+
}), se([() => e.width, () => e.width], () => {
|
|
4948
4957
|
e.mode === "video" && (z(), a());
|
|
4949
4958
|
}), {
|
|
4950
4959
|
videoRef: n,
|
|
@@ -4960,7 +4969,7 @@ const Lh = /* @__PURE__ */ w(Hh, [["render", qh], ["__scopeId", "data-v-79a42e8c
|
|
|
4960
4969
|
};
|
|
4961
4970
|
function Xh(e, t, n, c, l, i) {
|
|
4962
4971
|
const r = $("NButton"), p = $("NModal");
|
|
4963
|
-
return s(), f(
|
|
4972
|
+
return s(), f(le, null, [
|
|
4964
4973
|
e.mode === "button" ? (s(), V(r, {
|
|
4965
4974
|
key: 0,
|
|
4966
4975
|
type: "primary",
|
|
@@ -5161,7 +5170,7 @@ const Yh = /* @__PURE__ */ w(Kh, [["render", Xh]]), Zh = oe({
|
|
|
5161
5170
|
c.value[u.value] = b;
|
|
5162
5171
|
g(!0);
|
|
5163
5172
|
};
|
|
5164
|
-
return
|
|
5173
|
+
return se(
|
|
5165
5174
|
() => e.data,
|
|
5166
5175
|
(b) => {
|
|
5167
5176
|
X(b);
|
|
@@ -5217,7 +5226,7 @@ function o1(e, t, n, c, l, i) {
|
|
|
5217
5226
|
default: m(() => [
|
|
5218
5227
|
x(p, null, {
|
|
5219
5228
|
default: m(() => [
|
|
5220
|
-
(s(!0), f(
|
|
5229
|
+
(s(!0), f(le, null, ke(e.tabList, (h) => (s(), V(r, {
|
|
5221
5230
|
key: h.value,
|
|
5222
5231
|
type: e.tabButtonType(h),
|
|
5223
5232
|
secondary: "",
|
|
@@ -5238,7 +5247,7 @@ function o1(e, t, n, c, l, i) {
|
|
|
5238
5247
|
key: 1,
|
|
5239
5248
|
offset: e.offset
|
|
5240
5249
|
}, null, 8, ["offset"])) : W("", !0),
|
|
5241
|
-
(s(!0), f(
|
|
5250
|
+
(s(!0), f(le, null, ke(e.itemData, (h, T) => (s(), V(_, {
|
|
5242
5251
|
key: `${T}_${Date.now()}`,
|
|
5243
5252
|
span: h.search.show ? e.gridSpan : 0
|
|
5244
5253
|
}, {
|
|
@@ -5420,7 +5429,7 @@ const r1 = /* @__PURE__ */ w(Zh, [["render", o1]]), a1 = oe({
|
|
|
5420
5429
|
}
|
|
5421
5430
|
_(!0);
|
|
5422
5431
|
};
|
|
5423
|
-
return
|
|
5432
|
+
return se(
|
|
5424
5433
|
() => e.data,
|
|
5425
5434
|
(v) => {
|
|
5426
5435
|
z(v);
|
|
@@ -5436,7 +5445,7 @@ const r1 = /* @__PURE__ */ w(Zh, [["render", o1]]), a1 = oe({
|
|
|
5436
5445
|
}), s1 = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, l1 = { class: "uz-flex uz-gap-2" }, i1 = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
|
|
5437
5446
|
function u1(e, t, n, c, l, i) {
|
|
5438
5447
|
const r = $("Search"), p = $("NIcon"), _ = $("NButton"), M = $("NInputGroupLabel"), D = $("UzFormItem"), z = $("NInputGroup"), v = $("NGridItem"), u = $("NGrid"), a = $("Refresh"), k = $("NDrawerContent"), d = $("NDrawer");
|
|
5439
|
-
return s(), f(
|
|
5448
|
+
return s(), f(le, null, [
|
|
5440
5449
|
o("div", s1, [
|
|
5441
5450
|
ge(e.$slots, "header"),
|
|
5442
5451
|
o("div", l1, [
|
|
@@ -5525,7 +5534,7 @@ function u1(e, t, n, c, l, i) {
|
|
|
5525
5534
|
cols: "1"
|
|
5526
5535
|
}, {
|
|
5527
5536
|
default: m(() => [
|
|
5528
|
-
(s(!0), f(
|
|
5537
|
+
(s(!0), f(le, null, ke(e.itemData, (g, N) => (s(), V(v, {
|
|
5529
5538
|
key: `${N}_${Date.now()}`,
|
|
5530
5539
|
span: g.search.show ? 1 : 0
|
|
5531
5540
|
}, {
|
|
@@ -6198,7 +6207,7 @@ const v1 = oe({
|
|
|
6198
6207
|
};
|
|
6199
6208
|
return Tn(() => {
|
|
6200
6209
|
clearInterval(n.value);
|
|
6201
|
-
}),
|
|
6210
|
+
}), se(
|
|
6202
6211
|
() => e.status,
|
|
6203
6212
|
(p) => {
|
|
6204
6213
|
p === 1 && r();
|
|
@@ -6887,20 +6896,20 @@ const fa = /* @__PURE__ */ w(v1, [["render", k1]]), y1 = oe({
|
|
|
6887
6896
|
right: 0
|
|
6888
6897
|
});
|
|
6889
6898
|
});
|
|
6890
|
-
}),
|
|
6899
|
+
}), se(
|
|
6891
6900
|
() => g.value,
|
|
6892
6901
|
() => {
|
|
6893
6902
|
Da();
|
|
6894
6903
|
},
|
|
6895
6904
|
{ deep: !0 }
|
|
6896
|
-
),
|
|
6905
|
+
), se(
|
|
6897
6906
|
() => e.height,
|
|
6898
6907
|
() => {
|
|
6899
6908
|
dn();
|
|
6900
6909
|
}
|
|
6901
|
-
),
|
|
6910
|
+
), se([() => l.params.id, () => e.id], async () => {
|
|
6902
6911
|
kt(), await Ze();
|
|
6903
|
-
}),
|
|
6912
|
+
}), se(
|
|
6904
6913
|
() => e.defaultCheckedRowKeys,
|
|
6905
6914
|
(y) => {
|
|
6906
6915
|
const U = y || [], K = ie.value.filter(
|
|
@@ -7477,19 +7486,19 @@ const S1 = /* @__PURE__ */ w(y1, [["render", N1]]), D1 = oe({
|
|
|
7477
7486
|
};
|
|
7478
7487
|
return Ut(() => {
|
|
7479
7488
|
_.value?.destroy(), _.value = null;
|
|
7480
|
-
}), n({ validate: I, restoreValidation: b }),
|
|
7489
|
+
}), n({ validate: I, restoreValidation: b }), se(
|
|
7481
7490
|
() => e.item.params.columns,
|
|
7482
7491
|
(B, j) => {
|
|
7483
7492
|
JSON.stringify(B) !== JSON.stringify(j) && T(B);
|
|
7484
7493
|
},
|
|
7485
7494
|
{ deep: !0, immediate: !0 }
|
|
7486
|
-
),
|
|
7495
|
+
), se(
|
|
7487
7496
|
() => e.value,
|
|
7488
7497
|
(B) => {
|
|
7489
7498
|
JSON.stringify(B) !== JSON.stringify(u.value.child) && N(B);
|
|
7490
7499
|
},
|
|
7491
7500
|
{ deep: !0, immediate: !0 }
|
|
7492
|
-
),
|
|
7501
|
+
), se(
|
|
7493
7502
|
() => u.value.child,
|
|
7494
7503
|
(B) => {
|
|
7495
7504
|
e.status !== 2 && t("update:value", B);
|
|
@@ -8083,12 +8092,12 @@ const J1 = /* @__PURE__ */ w(L1, [["render", Q1]]), X1 = oe({
|
|
|
8083
8092
|
};
|
|
8084
8093
|
function e0(e, t, n, c, l, i) {
|
|
8085
8094
|
return s(), f("div", Y1, [
|
|
8086
|
-
(s(!0), f(
|
|
8095
|
+
(s(!0), f(le, null, ke(e.tableColumns, (r) => (s(), f("div", {
|
|
8087
8096
|
key: r.key,
|
|
8088
8097
|
class: ae(["uz-flex uz-overflow-hidden", r.lineBreak ? "uz-flex-col" : ""]),
|
|
8089
8098
|
style: ve(`grid-column: span ${r.lineCol || 2} / span ${r.lineCol || 2}`)
|
|
8090
8099
|
}, [
|
|
8091
|
-
r.key === "action" ? (s(), f(
|
|
8100
|
+
r.key === "action" ? (s(), f(le, { key: 0 }, [
|
|
8092
8101
|
r.render ? (s(), V(hn(
|
|
8093
8102
|
() => {
|
|
8094
8103
|
if (e.tableData)
|
|
@@ -8098,7 +8107,7 @@ function e0(e, t, n, c, l, i) {
|
|
|
8098
8107
|
key: 0,
|
|
8099
8108
|
class: "mobile"
|
|
8100
8109
|
})) : W("", !0)
|
|
8101
|
-
], 64)) : (s(), f(
|
|
8110
|
+
], 64)) : (s(), f(le, { key: 1 }, [
|
|
8102
8111
|
o("div", {
|
|
8103
8112
|
class: ae(["uz-table-mobile-group-title", r.lineBreak ? "line-break" : ""])
|
|
8104
8113
|
}, [
|
|
@@ -8180,7 +8189,7 @@ function s0(e, t, n, c, l, i) {
|
|
|
8180
8189
|
})
|
|
8181
8190
|
}, {
|
|
8182
8191
|
default: m(() => [
|
|
8183
|
-
(s(!0), f(
|
|
8192
|
+
(s(!0), f(le, null, ke(e.tableData, (v, u) => (s(), V(p, {
|
|
8184
8193
|
key: v.id,
|
|
8185
8194
|
class: "uz-com-card uz-flex uz-gap-2",
|
|
8186
8195
|
value: v.id
|
|
@@ -8222,7 +8231,7 @@ function s0(e, t, n, c, l, i) {
|
|
|
8222
8231
|
})
|
|
8223
8232
|
}, {
|
|
8224
8233
|
default: m(() => [
|
|
8225
|
-
(s(!0), f(
|
|
8234
|
+
(s(!0), f(le, null, ke(e.tableData, (v, u) => (s(), V(D, {
|
|
8226
8235
|
key: v.id,
|
|
8227
8236
|
class: "uz-com-card uz-flex uz-gap-2",
|
|
8228
8237
|
value: v.id
|
|
@@ -8258,7 +8267,7 @@ function s0(e, t, n, c, l, i) {
|
|
|
8258
8267
|
maxHeight: e.maxH
|
|
8259
8268
|
})
|
|
8260
8269
|
}, [
|
|
8261
|
-
(s(!0), f(
|
|
8270
|
+
(s(!0), f(le, null, ke(e.tableData, (v, u) => (s(), f("div", {
|
|
8262
8271
|
key: v.id,
|
|
8263
8272
|
class: "uz-com-card uz-flex uz-flex-col uz-gap-2"
|
|
8264
8273
|
}, [
|
|
@@ -8363,7 +8372,7 @@ const u0 = oe({
|
|
|
8363
8372
|
};
|
|
8364
8373
|
return Re(() => {
|
|
8365
8374
|
_n(e.option), Q.active !== c.path && Cn(c.path, c.fullPath);
|
|
8366
|
-
}),
|
|
8375
|
+
}), se(
|
|
8367
8376
|
() => c,
|
|
8368
8377
|
(p) => {
|
|
8369
8378
|
Q.active === c.path && Cn(p.path, p.fullPath);
|
|
@@ -8371,7 +8380,7 @@ const u0 = oe({
|
|
|
8371
8380
|
{
|
|
8372
8381
|
deep: !0
|
|
8373
8382
|
}
|
|
8374
|
-
),
|
|
8383
|
+
), se(
|
|
8375
8384
|
() => e.option,
|
|
8376
8385
|
(p) => {
|
|
8377
8386
|
_n(p);
|
|
@@ -8427,7 +8436,7 @@ function c0(e, t, n, c, l, i) {
|
|
|
8427
8436
|
})
|
|
8428
8437
|
]),
|
|
8429
8438
|
default: m(() => [
|
|
8430
|
-
(s(!0), f(
|
|
8439
|
+
(s(!0), f(le, null, ke(e.thumbnailStore.thumbnail, (u) => (s(), V(r, {
|
|
8431
8440
|
key: u.key,
|
|
8432
8441
|
name: u.key,
|
|
8433
8442
|
tab: u.label,
|
|
@@ -8841,7 +8850,7 @@ function Y0(e, t, n) {
|
|
|
8841
8850
|
refetch: N
|
|
8842
8851
|
};
|
|
8843
8852
|
}
|
|
8844
|
-
const k0 = "0.0.
|
|
8853
|
+
const k0 = "0.0.74";
|
|
8845
8854
|
let xa;
|
|
8846
8855
|
async function $a() {
|
|
8847
8856
|
const e = await fetch(
|