@unizhen/ui 0.1.97 → 0.1.99
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/back/index.vue.d.ts +23 -1328
- package/lib/components/camera/index.vue.d.ts +28 -3038
- package/lib/components/fetch.d.ts +1 -1
- package/lib/components/form/draggable.vue.d.ts +283 -18037
- package/lib/components/form/image.vue.d.ts +44 -744
- package/lib/components/form/index.vue.d.ts +283 -18037
- package/lib/components/form/item.vue.d.ts +237 -16271
- package/lib/components/form/timesPicker.vue.d.ts +33 -1183
- package/lib/components/form/upload.vue.d.ts +95 -5243
- package/lib/components/ocr/index.vue.d.ts +124 -5081
- package/lib/components/searchBar/components/timePickRange.vue.d.ts +24 -2340
- package/lib/components/searchBar/index.vue.d.ts +278 -18228
- package/lib/components/searchBar/mobile.vue.d.ts +281 -18414
- package/lib/components/spin/index.vue.d.ts +42 -1652
- package/lib/components/table/child.vue.d.ts +116 -8460
- package/lib/components/table/child_quest.vue.d.ts +68 -6822
- package/lib/components/table/components/expand.vue.d.ts +77 -7016
- package/lib/components/table/components/file.vue.d.ts +140 -12254
- package/lib/components/table/components/skeleton.vue.d.ts +9 -62
- package/lib/components/table/drawer.vue.d.ts +77 -3711
- package/lib/components/table/index.vue.d.ts +227 -17362
- package/lib/components/table/mobile.vue.d.ts +101 -3856
- package/lib/components/thumbnail/index.vue.d.ts +95 -3710
- package/lib/ui.css +1 -1
- package/lib/ui.js +592 -567
- package/package.json +22 -22
package/lib/ui.js
CHANGED
|
@@ -2234,9 +2234,7 @@ function Y(e, t, n = "1 Day") {
|
|
|
2234
2234
|
case "Day":
|
|
2235
2235
|
e = 864e5;
|
|
2236
2236
|
break;
|
|
2237
|
-
case "Week":
|
|
2238
|
-
e = 6048e5;
|
|
2239
|
-
break;
|
|
2237
|
+
case "Week": e = 6048e5;
|
|
2240
2238
|
}
|
|
2241
2239
|
n = Number(t[0]) * e;
|
|
2242
2240
|
}
|
|
@@ -2435,15 +2433,17 @@ var xd = 500, Sd = 300, Cd = [], wd = /* @__PURE__ */ new WeakMap(), Td = /* @__
|
|
|
2435
2433
|
let t = new URL(e, location.href).searchParams.toString();
|
|
2436
2434
|
t && n.push(t);
|
|
2437
2435
|
} catch {}
|
|
2438
|
-
if (t != null)
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2436
|
+
if (t != null) {
|
|
2437
|
+
if (typeof t == "string") n.push(t);
|
|
2438
|
+
else if (typeof URLSearchParams < "u" && t instanceof URLSearchParams) n.push(t.toString());
|
|
2439
|
+
else if (typeof FormData < "u" && t instanceof FormData) {
|
|
2440
|
+
let e = [];
|
|
2441
|
+
t.forEach((t, n) => {
|
|
2442
|
+
let r = typeof t == "string" ? t : `[File:${t.name}]`;
|
|
2443
|
+
e.push(`${n}=${r}`);
|
|
2444
|
+
}), n.push(e.join("&"));
|
|
2445
|
+
} else typeof Blob < "u" && t instanceof Blob ? n.push(`[Blob:${t.type || "unknown"},${t.size}B]`) : typeof ArrayBuffer < "u" && (t instanceof ArrayBuffer || ArrayBuffer.isView(t)) && n.push("[Binary data]");
|
|
2446
|
+
}
|
|
2447
2447
|
return Ld(Rd(n.filter(Boolean).join(" | ")), Sd);
|
|
2448
2448
|
}, Ud = (e) => {
|
|
2449
2449
|
let t;
|
|
@@ -2511,10 +2511,10 @@ var xd = 500, Sd = 300, Cd = [], wd = /* @__PURE__ */ new WeakMap(), Td = /* @__
|
|
|
2511
2511
|
}, Jd = (e) => {
|
|
2512
2512
|
Ed.has(e) || (Ed.add(e), e.addEventListener("error", () => {
|
|
2513
2513
|
let t = Td.get(e);
|
|
2514
|
-
|
|
2514
|
+
t && !qd(t.url) && Kd(3, t.url, `${t.method} network error`);
|
|
2515
2515
|
}), e.addEventListener("timeout", () => {
|
|
2516
2516
|
let t = Td.get(e);
|
|
2517
|
-
|
|
2517
|
+
t && !qd(t.url) && Kd(3, t.url, `${t.method} timeout`);
|
|
2518
2518
|
}), e.addEventListener("loadend", () => {
|
|
2519
2519
|
let t = Td.get(e);
|
|
2520
2520
|
if (!t || e.status < 400 || qd(t.url)) return;
|
|
@@ -2635,7 +2635,8 @@ df.interceptors.request.use((e) => {
|
|
|
2635
2635
|
if (t.status) {
|
|
2636
2636
|
let e = t.data;
|
|
2637
2637
|
return Promise.resolve(e);
|
|
2638
|
-
}
|
|
2638
|
+
}
|
|
2639
|
+
{
|
|
2639
2640
|
ad.destroyAll();
|
|
2640
2641
|
let n = t.message, r = cf(e.config.data ?? e.config.params);
|
|
2641
2642
|
return af(3, e.config.url || location.href, `Fetch ${t.code ?? "error"}: ${n || "Unknown error"}${r ? ` | Params: ${r}` : ""}`), ad.error({
|
|
@@ -2921,13 +2922,13 @@ function Wf(e, t, n, i, a, s) {
|
|
|
2921
2922
|
_: 1
|
|
2922
2923
|
}, 8, ["onClick"]);
|
|
2923
2924
|
}
|
|
2924
|
-
var Gf = /*#__PURE__*/ W(Uf, [["render", Wf]]), Kf = 46, qf = 8, Jf = 2 * Math.PI * Kf, Yf =
|
|
2925
|
+
var Gf = /*#__PURE__*/ W(Uf, [["render", Wf]]), Kf = 46, qf = 8, Jf = 2 * Math.PI * Kf, Yf = qf, Xf = 19, Zf = 69, Qf = 52, $f = 8, ep = 135, tp = 270, np = 2 * Math.PI * Qf, rp = tp / 360 * np, ip = 11, ap = `rotate(${ep} 60 ${Zf})`, op = (e, t, n, r) => {
|
|
2925
2926
|
let i = r * Math.PI / 180;
|
|
2926
2927
|
return {
|
|
2927
2928
|
x: e + n * Math.cos(i),
|
|
2928
2929
|
y: t + n * Math.sin(i)
|
|
2929
2930
|
};
|
|
2930
|
-
},
|
|
2931
|
+
}, sp = ({ x: e, y: t }) => `${e.toFixed(3)} ${t.toFixed(3)}`, cp = (e, t, n, r, i, a) => {
|
|
2931
2932
|
if (a <= 0) return "";
|
|
2932
2933
|
let o = n + r / 2, s = n - r / 2;
|
|
2933
2934
|
if (a >= 359.999) {
|
|
@@ -2939,16 +2940,16 @@ var Gf = /*#__PURE__*/ W(Uf, [["render", Wf]]), Kf = 46, qf = 8, Jf = 2 * Math.P
|
|
|
2939
2940
|
`A ${s} ${s} 0 1 0 ${i}`
|
|
2940
2941
|
].join(" ");
|
|
2941
2942
|
}
|
|
2942
|
-
let c = i + a, l =
|
|
2943
|
+
let c = i + a, l = op(e, t, o, i), u = op(e, t, o, c), d = op(e, t, s, c), f = op(e, t, s, i), p = r / 2, m = +(a > 180);
|
|
2943
2944
|
return [
|
|
2944
|
-
`M ${
|
|
2945
|
-
`A ${o} ${o} 0 ${m} 1 ${
|
|
2946
|
-
`A ${p} ${p} 0 0 1 ${
|
|
2947
|
-
`A ${s} ${s} 0 ${m} 0 ${
|
|
2948
|
-
`A ${p} ${p} 0 0 1 ${
|
|
2945
|
+
`M ${sp(l)}`,
|
|
2946
|
+
`A ${o} ${o} 0 ${m} 1 ${sp(u)}`,
|
|
2947
|
+
`A ${p} ${p} 0 0 1 ${sp(d)}`,
|
|
2948
|
+
`A ${s} ${s} 0 ${m} 0 ${sp(f)}`,
|
|
2949
|
+
`A ${p} ${p} 0 0 1 ${sp(l)}`,
|
|
2949
2950
|
"Z"
|
|
2950
2951
|
].join(" ");
|
|
2951
|
-
},
|
|
2952
|
+
}, lp = (e) => {
|
|
2952
2953
|
if (!e) return "";
|
|
2953
2954
|
let t = e.toLowerCase();
|
|
2954
2955
|
if (t.length > 6 && (t = t.substring(0, 7)), t && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)) {
|
|
@@ -2962,7 +2963,7 @@ var Gf = /*#__PURE__*/ W(Uf, [["render", Wf]]), Kf = 46, qf = 8, Jf = 2 * Math.P
|
|
|
2962
2963
|
return e.join(",");
|
|
2963
2964
|
}
|
|
2964
2965
|
return "0,0,0";
|
|
2965
|
-
},
|
|
2966
|
+
}, up = f({
|
|
2966
2967
|
name: "UzCircle",
|
|
2967
2968
|
components: { UzNumberFlow: Qe },
|
|
2968
2969
|
props: {
|
|
@@ -2985,10 +2986,10 @@ var Gf = /*#__PURE__*/ W(Uf, [["render", Wf]]), Kf = 46, qf = 8, Jf = 2 * Math.P
|
|
|
2985
2986
|
}
|
|
2986
2987
|
},
|
|
2987
2988
|
setup(e) {
|
|
2988
|
-
let t = te(), r = `uz-blurs-${t}`, i = n(() => `rgba(${
|
|
2989
|
+
let t = te(), r = `uz-blurs-${t}`, i = n(() => `rgba(${lp(e.color).split(",").map((e) => {
|
|
2989
2990
|
let t = Number(e) - 50;
|
|
2990
2991
|
return t < 0 && (t = 0), t;
|
|
2991
|
-
})},1)`), a = n(() => `rgba(${
|
|
2992
|
+
})},1)`), a = n(() => `rgba(${lp(e.color)},1)`), o = n(() => {
|
|
2992
2993
|
let t = Number(e.circle);
|
|
2993
2994
|
return Number.isFinite(t) ? Math.min(100, Math.max(0, t)) : 0;
|
|
2994
2995
|
}), s = T(o.value), c;
|
|
@@ -3020,32 +3021,32 @@ var Gf = /*#__PURE__*/ W(Uf, [["render", Wf]]), Kf = 46, qf = 8, Jf = 2 * Math.P
|
|
|
3020
3021
|
remainingLength: 0,
|
|
3021
3022
|
remainingStart: 0
|
|
3022
3023
|
};
|
|
3023
|
-
let n = Math.min(1, Math.min(e, t) /
|
|
3024
|
+
let n = Math.min(1, Math.min(e, t) / Xf), r = Yf + 3 * n, i = qf * n, a = e < Xf ? i : Jf - (t < Xf ? i : t - r) - r * 2, o = Jf - a - r * 2;
|
|
3024
3025
|
return {
|
|
3025
3026
|
activeLength: a,
|
|
3026
3027
|
activeStart: r / 2,
|
|
3027
3028
|
remainingLength: o,
|
|
3028
3029
|
remainingStart: r / 2 + a + r
|
|
3029
3030
|
};
|
|
3030
|
-
}), u = n(() => l.value.activeLength), d = n(() => l.value.activeStart), f = n(() => l.value.remainingLength), p = n(() => l.value.remainingStart), m = n(() =>
|
|
3031
|
-
let e =
|
|
3031
|
+
}), u = n(() => l.value.activeLength), d = n(() => l.value.activeStart), f = n(() => l.value.remainingLength), p = n(() => l.value.remainingStart), m = n(() => cp(60, 60, Kf, qf, -90 + p.value / Jf * 360, f.value / Jf * 360)), h = n(() => {
|
|
3032
|
+
let e = rp * (s.value / 100), t = rp - e;
|
|
3032
3033
|
if (e === 0) return {
|
|
3033
3034
|
activeLength: 0,
|
|
3034
|
-
remainingLength:
|
|
3035
|
+
remainingLength: rp,
|
|
3035
3036
|
remainingStart: 0
|
|
3036
3037
|
};
|
|
3037
3038
|
if (t === 0) return {
|
|
3038
|
-
activeLength:
|
|
3039
|
+
activeLength: rp,
|
|
3039
3040
|
remainingLength: 0,
|
|
3040
3041
|
remainingStart: 0
|
|
3041
3042
|
};
|
|
3042
|
-
let n = Math.min(
|
|
3043
|
+
let n = Math.min(ip, e, t);
|
|
3043
3044
|
return {
|
|
3044
3045
|
activeLength: e - n / 2,
|
|
3045
3046
|
remainingLength: t - n / 2,
|
|
3046
3047
|
remainingStart: e + n / 2
|
|
3047
3048
|
};
|
|
3048
|
-
}), g = n(() => h.value.activeLength), _ = n(() => h.value.remainingLength), v = n(() => h.value.remainingStart), b = n(() =>
|
|
3049
|
+
}), g = n(() => h.value.activeLength), _ = n(() => h.value.remainingLength), v = n(() => h.value.remainingStart), b = n(() => cp(60, Zf, Qf, $f, ep + v.value / np * 360, _.value / np * 360));
|
|
3049
3050
|
return {
|
|
3050
3051
|
color: n(() => e.color),
|
|
3051
3052
|
colorA: i,
|
|
@@ -3058,11 +3059,11 @@ var Gf = /*#__PURE__*/ W(Uf, [["render", Wf]]), Kf = 46, qf = 8, Jf = 2 * Math.P
|
|
|
3058
3059
|
fullRemainingLength: f,
|
|
3059
3060
|
fullRemainingStart: p,
|
|
3060
3061
|
fullRemainingPath: m,
|
|
3061
|
-
gaugeCenterY:
|
|
3062
|
-
gaugeRadius:
|
|
3063
|
-
gaugeStrokeWidth:
|
|
3064
|
-
gaugeCircumference:
|
|
3065
|
-
gaugeTransform:
|
|
3062
|
+
gaugeCenterY: Zf,
|
|
3063
|
+
gaugeRadius: Qf,
|
|
3064
|
+
gaugeStrokeWidth: $f,
|
|
3065
|
+
gaugeCircumference: np,
|
|
3066
|
+
gaugeTransform: ap,
|
|
3066
3067
|
gaugeActiveLength: g,
|
|
3067
3068
|
gaugeRemainingLength: _,
|
|
3068
3069
|
gaugeRemainingStart: v,
|
|
@@ -3071,38 +3072,38 @@ var Gf = /*#__PURE__*/ W(Uf, [["render", Wf]]), Kf = 46, qf = 8, Jf = 2 * Math.P
|
|
|
3071
3072
|
blurFilterId: r
|
|
3072
3073
|
};
|
|
3073
3074
|
}
|
|
3074
|
-
}),
|
|
3075
|
+
}), dp = { class: "uz-circle" }, fp = {
|
|
3075
3076
|
key: 0,
|
|
3076
3077
|
viewBox: "0 0 120 120",
|
|
3077
3078
|
"aria-hidden": "true"
|
|
3078
|
-
},
|
|
3079
|
+
}, pp = ["id"], mp = ["stop-color"], hp = ["stop-color"], gp = ["id"], _p = [
|
|
3079
3080
|
"r",
|
|
3080
3081
|
"stroke-width",
|
|
3081
3082
|
"stroke-dasharray",
|
|
3082
3083
|
"stroke-dashoffset",
|
|
3083
3084
|
"filter",
|
|
3084
3085
|
"stroke"
|
|
3085
|
-
],
|
|
3086
|
+
], vp = [
|
|
3086
3087
|
"d",
|
|
3087
3088
|
"fill",
|
|
3088
3089
|
"filter"
|
|
3089
|
-
],
|
|
3090
|
+
], yp = {
|
|
3090
3091
|
class: "uz-circle__value uz-circle__value--gauge",
|
|
3091
3092
|
x: "35",
|
|
3092
3093
|
y: "36",
|
|
3093
3094
|
width: "50",
|
|
3094
3095
|
height: "30",
|
|
3095
3096
|
"text-anchor": "middle"
|
|
3096
|
-
},
|
|
3097
|
+
}, bp = {
|
|
3097
3098
|
class: "uz-circle__unit",
|
|
3098
3099
|
x: "60",
|
|
3099
3100
|
y: "82",
|
|
3100
3101
|
"text-anchor": "middle"
|
|
3101
|
-
},
|
|
3102
|
+
}, xp = {
|
|
3102
3103
|
key: 1,
|
|
3103
3104
|
viewBox: "0 0 120 120",
|
|
3104
3105
|
"aria-hidden": "true"
|
|
3105
|
-
},
|
|
3106
|
+
}, Sp = ["id"], Cp = ["stop-color"], wp = ["stop-color"], Tp = ["id"], Ep = [
|
|
3106
3107
|
"cy",
|
|
3107
3108
|
"r",
|
|
3108
3109
|
"stroke-width",
|
|
@@ -3110,26 +3111,26 @@ var Gf = /*#__PURE__*/ W(Uf, [["render", Wf]]), Kf = 46, qf = 8, Jf = 2 * Math.P
|
|
|
3110
3111
|
"transform",
|
|
3111
3112
|
"filter",
|
|
3112
3113
|
"stroke"
|
|
3113
|
-
],
|
|
3114
|
+
], Dp = [
|
|
3114
3115
|
"d",
|
|
3115
3116
|
"fill",
|
|
3116
3117
|
"filter"
|
|
3117
|
-
],
|
|
3118
|
+
], Op = {
|
|
3118
3119
|
class: "uz-circle__value uz-circle__value--gauge",
|
|
3119
3120
|
x: "35",
|
|
3120
3121
|
y: "42",
|
|
3121
3122
|
width: "50",
|
|
3122
3123
|
height: "30",
|
|
3123
3124
|
"text-anchor": "middle"
|
|
3124
|
-
},
|
|
3125
|
+
}, kp = {
|
|
3125
3126
|
class: "uz-circle__unit uz-circle__unit--gauge",
|
|
3126
3127
|
x: "60",
|
|
3127
3128
|
y: "90",
|
|
3128
3129
|
"text-anchor": "middle"
|
|
3129
3130
|
};
|
|
3130
|
-
function
|
|
3131
|
+
function Ap(e, t, n, r, s, c) {
|
|
3131
3132
|
let l = O("UzNumberFlow");
|
|
3132
|
-
return S(), a("div",
|
|
3133
|
+
return S(), a("div", dp, [e.mode === 0 ? (S(), a("svg", fp, [
|
|
3133
3134
|
o("defs", null, [o("linearGradient", {
|
|
3134
3135
|
id: `uz-progress-grad-${e.uniqueId}`,
|
|
3135
3136
|
x1: "1",
|
|
@@ -3139,10 +3140,10 @@ function jp(e, t, n, r, s, c) {
|
|
|
3139
3140
|
}, [o("stop", {
|
|
3140
3141
|
offset: "0%",
|
|
3141
3142
|
"stop-color": e.colorA
|
|
3142
|
-
}, null, 8,
|
|
3143
|
+
}, null, 8, mp), o("stop", {
|
|
3143
3144
|
offset: "50%",
|
|
3144
3145
|
"stop-color": e.colorB
|
|
3145
|
-
}, null, 8,
|
|
3146
|
+
}, null, 8, hp)], 8, pp), o("filter", { id: e.blurFilterId }, [...t[0] ||= [
|
|
3146
3147
|
o("feOffset", {
|
|
3147
3148
|
result: "offOut",
|
|
3148
3149
|
in: "SourceGraphic",
|
|
@@ -3159,7 +3160,7 @@ function jp(e, t, n, r, s, c) {
|
|
|
3159
3160
|
in2: "blurOut",
|
|
3160
3161
|
mode: "normal"
|
|
3161
3162
|
}, null, -1)
|
|
3162
|
-
]], 8,
|
|
3163
|
+
]], 8, gp)]),
|
|
3163
3164
|
e.fullActiveLength > 0 ? (S(), a("circle", {
|
|
3164
3165
|
key: 0,
|
|
3165
3166
|
class: "uz-circle__progress",
|
|
@@ -3174,7 +3175,7 @@ function jp(e, t, n, r, s, c) {
|
|
|
3174
3175
|
transform: "rotate(-90 60 60)",
|
|
3175
3176
|
filter: `url(#${e.blurFilterId})`,
|
|
3176
3177
|
stroke: `url(#uz-progress-grad-${e.uniqueId})`
|
|
3177
|
-
}, null, 8,
|
|
3178
|
+
}, null, 8, _p)) : i("", !0),
|
|
3178
3179
|
e.fullRemainingPath ? (S(), a("path", {
|
|
3179
3180
|
key: 1,
|
|
3180
3181
|
class: "uz-circle__progress",
|
|
@@ -3182,10 +3183,10 @@ function jp(e, t, n, r, s, c) {
|
|
|
3182
3183
|
fill: e.color,
|
|
3183
3184
|
"fill-opacity": "0.1",
|
|
3184
3185
|
filter: `url(#${e.blurFilterId})`
|
|
3185
|
-
}, null, 8,
|
|
3186
|
-
(S(), a("foreignObject",
|
|
3187
|
-
o("text",
|
|
3188
|
-
])) : (S(), a("svg",
|
|
3186
|
+
}, null, 8, vp)) : i("", !0),
|
|
3187
|
+
(S(), a("foreignObject", yp, [u(l, { value: e.circle }, null, 8, ["value"])])),
|
|
3188
|
+
o("text", bp, A(e.circleUnit), 1)
|
|
3189
|
+
])) : (S(), a("svg", xp, [
|
|
3189
3190
|
o("defs", null, [o("linearGradient", {
|
|
3190
3191
|
id: `uz-progress-grad-1-${e.uniqueId}`,
|
|
3191
3192
|
x1: "1",
|
|
@@ -3195,10 +3196,10 @@ function jp(e, t, n, r, s, c) {
|
|
|
3195
3196
|
}, [o("stop", {
|
|
3196
3197
|
offset: "0%",
|
|
3197
3198
|
"stop-color": e.colorA
|
|
3198
|
-
}, null, 8,
|
|
3199
|
+
}, null, 8, Cp), o("stop", {
|
|
3199
3200
|
offset: "50%",
|
|
3200
3201
|
"stop-color": e.colorB
|
|
3201
|
-
}, null, 8,
|
|
3202
|
+
}, null, 8, wp)], 8, Sp), o("filter", { id: e.blurFilterId }, [...t[1] ||= [
|
|
3202
3203
|
o("feOffset", {
|
|
3203
3204
|
result: "offOut",
|
|
3204
3205
|
in: "SourceGraphic",
|
|
@@ -3215,7 +3216,7 @@ function jp(e, t, n, r, s, c) {
|
|
|
3215
3216
|
in2: "blurOut",
|
|
3216
3217
|
mode: "normal"
|
|
3217
3218
|
}, null, -1)
|
|
3218
|
-
]], 8,
|
|
3219
|
+
]], 8, Tp)]),
|
|
3219
3220
|
e.gaugeActiveLength > 0 ? (S(), a("circle", {
|
|
3220
3221
|
key: 0,
|
|
3221
3222
|
class: "uz-circle__progress",
|
|
@@ -3229,7 +3230,7 @@ function jp(e, t, n, r, s, c) {
|
|
|
3229
3230
|
transform: e.gaugeTransform,
|
|
3230
3231
|
filter: `url(#${e.blurFilterId})`,
|
|
3231
3232
|
stroke: `url(#uz-progress-grad-1-${e.uniqueId})`
|
|
3232
|
-
}, null, 8,
|
|
3233
|
+
}, null, 8, Ep)) : i("", !0),
|
|
3233
3234
|
e.gaugeRemainingPath ? (S(), a("path", {
|
|
3234
3235
|
key: 1,
|
|
3235
3236
|
class: "uz-circle__progress",
|
|
@@ -3237,12 +3238,12 @@ function jp(e, t, n, r, s, c) {
|
|
|
3237
3238
|
fill: e.color,
|
|
3238
3239
|
"fill-opacity": "0.1",
|
|
3239
3240
|
filter: `url(#${e.blurFilterId})`
|
|
3240
|
-
}, null, 8,
|
|
3241
|
-
(S(), a("foreignObject",
|
|
3242
|
-
o("text",
|
|
3241
|
+
}, null, 8, Dp)) : i("", !0),
|
|
3242
|
+
(S(), a("foreignObject", Op, [u(l, { value: e.circle }, null, 8, ["value"])])),
|
|
3243
|
+
o("text", kp, A(e.circleUnit), 1)
|
|
3243
3244
|
]))]);
|
|
3244
3245
|
}
|
|
3245
|
-
var
|
|
3246
|
+
var jp = /*#__PURE__*/ W(up, [["render", Ap]]), Mp = f({
|
|
3246
3247
|
name: "UzFormItem",
|
|
3247
3248
|
components: {
|
|
3248
3249
|
NIcon: V,
|
|
@@ -3350,7 +3351,7 @@ var Mp = /*#__PURE__*/ W(dp, [["render", jp]]), Np = f({
|
|
|
3350
3351
|
if (e.formValue && e.formValue[t]) {
|
|
3351
3352
|
let r = e.formValue[t].toLocaleLowerCase();
|
|
3352
3353
|
n.forEach((e) => {
|
|
3353
|
-
e.label && e.label.toLocaleLowerCase().indexOf(r) > -1
|
|
3354
|
+
e.show = !!(e.label && e.label.toLocaleLowerCase().indexOf(r) > -1);
|
|
3354
3355
|
});
|
|
3355
3356
|
} else n.forEach((e) => {
|
|
3356
3357
|
e.show = !0;
|
|
@@ -3373,8 +3374,8 @@ var Mp = /*#__PURE__*/ W(dp, [["render", jp]]), Np = f({
|
|
|
3373
3374
|
selectFilter: (e, t) => yd(t.label, e)
|
|
3374
3375
|
};
|
|
3375
3376
|
}
|
|
3376
|
-
}),
|
|
3377
|
-
function
|
|
3377
|
+
}), Np = { class: "uz-flex uz-flex-wrap uz-gap-2" };
|
|
3378
|
+
function Pp(t, n, i, c, d, f) {
|
|
3378
3379
|
let p = O("NInput"), m = O("NDropdown"), h = O("NInputNumber"), g = O("NDatePicker"), v = O("NSelect"), y = O("NCascader"), b = O("NColorPicker"), x = O("NCheckbox"), C = O("NCheckboxGroup"), w = O("NTimePicker"), T = O("UzFormItemTimesPicker"), D = O("NSwitch"), k = O("UzFormItemUpload");
|
|
3379
3380
|
return t.item.input === "input" ? (S(), r(p, {
|
|
3380
3381
|
key: 0,
|
|
@@ -3588,7 +3589,7 @@ function Fp(t, n, i, c, d, f) {
|
|
|
3588
3589
|
maxTagCount: "responsive",
|
|
3589
3590
|
"render-label": t.item.params.renderLabel,
|
|
3590
3591
|
"render-tag": t.item.params.renderTag,
|
|
3591
|
-
loading: t.item.params._fetch,
|
|
3592
|
+
loading: t.item.params._fetch || !1,
|
|
3592
3593
|
"on-focus": async () => {
|
|
3593
3594
|
t.item.params._async && (t.item.params._fetch = !0, t.item.params.options = await t.item.params._asyncFn(), t.item.params._async = !1, t.item.params._fetch = !1);
|
|
3594
3595
|
},
|
|
@@ -3679,7 +3680,7 @@ function Fp(t, n, i, c, d, f) {
|
|
|
3679
3680
|
value: t.formValue[t.item.key],
|
|
3680
3681
|
disabled: t.checkDisabled()
|
|
3681
3682
|
}, {
|
|
3682
|
-
default: P(() => [o("div",
|
|
3683
|
+
default: P(() => [o("div", Np, [(S(!0), a(e, null, E(t.item.params.options, (e) => (S(), r(x, {
|
|
3683
3684
|
key: e.value,
|
|
3684
3685
|
label: e.label,
|
|
3685
3686
|
value: e.value
|
|
@@ -3748,7 +3749,7 @@ function Fp(t, n, i, c, d, f) {
|
|
|
3748
3749
|
"status"
|
|
3749
3750
|
])) : (S(), a(e, { key: 14 }, [], 64));
|
|
3750
3751
|
}
|
|
3751
|
-
var
|
|
3752
|
+
var Fp = /*#__PURE__*/ W(Mp, [["render", Pp]]), Ip = f({
|
|
3752
3753
|
name: "UzForm",
|
|
3753
3754
|
components: {
|
|
3754
3755
|
NForm: me,
|
|
@@ -3756,7 +3757,7 @@ var Ip = /*#__PURE__*/ W(Np, [["render", Fp]]), Lp = f({
|
|
|
3756
3757
|
NDivider: le,
|
|
3757
3758
|
NButton: R,
|
|
3758
3759
|
NIcon: V,
|
|
3759
|
-
UzFormItem:
|
|
3760
|
+
UzFormItem: Fp,
|
|
3760
3761
|
Plus: fc
|
|
3761
3762
|
},
|
|
3762
3763
|
props: {
|
|
@@ -3845,36 +3846,37 @@ var Ip = /*#__PURE__*/ W(Np, [["render", Fp]]), Lp = f({
|
|
|
3845
3846
|
let n = nt(e).startOf("day").diff(nt().startOf("day"), "day");
|
|
3846
3847
|
return n >= 0 ? t ? "success" : `剩余${n}天` : t ? "error" : `逾期${Math.abs(n)}天`;
|
|
3847
3848
|
}, g = (e) => (u.value = [], e.forEach((e) => {
|
|
3848
|
-
if (e.form.defaultValue && !s.value[e.key])
|
|
3849
|
-
|
|
3850
|
-
e.
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
{
|
|
3859
|
-
|
|
3860
|
-
|
|
3849
|
+
if (e.form.defaultValue && !s.value[e.key]) {
|
|
3850
|
+
if (e.input === "number") s.value[e.key] = Number(e.form.defaultValue);
|
|
3851
|
+
else if (e.input === "select" && e.params.options?.length > 0) {
|
|
3852
|
+
e.form.defaultValue === "userId" ? (s.value[e.key] = r.userId, e.params.options = [{
|
|
3853
|
+
label: r.userName,
|
|
3854
|
+
value: r.userId
|
|
3855
|
+
}]) : s.value[e.key] = e.form.defaultValue;
|
|
3856
|
+
let t = e.params.options.find((t) => t.value === s.value[e.key]);
|
|
3857
|
+
t && (s.value[`${e.key}Str`] = t.label);
|
|
3858
|
+
} else if (e.input === "date") {
|
|
3859
|
+
if (e.params.type.indexOf("range") > -1) switch (e.form.defaultValue) {
|
|
3860
|
+
case "now":
|
|
3861
|
+
{
|
|
3862
|
+
let t = nt().startOf("day").valueOf(), n = nt().endOf("day").valueOf();
|
|
3863
|
+
s.value[e.key] = [t, n], s.value[`${e.key}StartStr`] = p(e.params.type, t), s.value[`${e.key}EndStr`] = p(e.params.type, n);
|
|
3864
|
+
}
|
|
3865
|
+
break;
|
|
3866
|
+
default:
|
|
3867
|
+
let t = Number(e.form.defaultValue);
|
|
3868
|
+
s.value[e.key] = Number.isNaN(t) ? null : [t, t], s.value[`${e.key}StartStr`] = p(e.params.type, t), s.value[`${e.key}EndStr`] = p(e.params.type, t);
|
|
3861
3869
|
}
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
break;
|
|
3872
|
-
default:
|
|
3873
|
-
let t = Number(e.form.defaultValue);
|
|
3874
|
-
s.value[e.key] = Number.isNaN(t) ? null : t, s.value[`${e.key}Str`] = p(e.params.type, t);
|
|
3875
|
-
break;
|
|
3870
|
+
else switch (e.form.defaultValue) {
|
|
3871
|
+
case "now":
|
|
3872
|
+
s.value[e.key] = Date.now(), s.value[`${e.key}Str`] = p(e.params.type, Date.now());
|
|
3873
|
+
break;
|
|
3874
|
+
default:
|
|
3875
|
+
let t = Number(e.form.defaultValue);
|
|
3876
|
+
s.value[e.key] = Number.isNaN(t) ? null : t, s.value[`${e.key}Str`] = p(e.params.type, t);
|
|
3877
|
+
}
|
|
3878
|
+
} else s.value[e.key] = e.form.defaultValue;
|
|
3876
3879
|
}
|
|
3877
|
-
else s.value[e.key] = e.form.defaultValue;
|
|
3878
3880
|
if ((e.input === "cascader" || e.input === "select") && e.params.multiple && u.value.push(e.key), e.input === "date" && e.params.type.indexOf("range") > -1 && u.value.push(e.key), e.input === "select" && e.params.multiple && s.value[e.key] && typeof s.value[e.key] == "string") try {
|
|
3879
3881
|
s.value[e.key] = JSON.parse(s.value[e.key]);
|
|
3880
3882
|
} catch {
|
|
@@ -3961,8 +3963,8 @@ var Ip = /*#__PURE__*/ W(Np, [["render", Fp]]), Lp = f({
|
|
|
3961
3963
|
}
|
|
3962
3964
|
};
|
|
3963
3965
|
}
|
|
3964
|
-
}),
|
|
3965
|
-
function
|
|
3966
|
+
}), Lp = ["onClick"];
|
|
3967
|
+
function Rp(t, n, s, c, d, f) {
|
|
3966
3968
|
let p = O("Plus"), m = O("NIcon"), h = O("UzTableChild"), g = O("UzTableQuestChild"), y = O("NDivider"), b = O("UzFormItem"), x = O("NFormItem"), C = O("NForm"), w = O("UzTableDrawer"), T = k("media");
|
|
3967
3969
|
return S(), a(e, null, [u(C, {
|
|
3968
3970
|
ref: "formRef",
|
|
@@ -3990,7 +3992,7 @@ function zp(t, n, s, c, d, f) {
|
|
|
3990
3992
|
}, [u(m, null, {
|
|
3991
3993
|
default: P(() => [u(p)]),
|
|
3992
3994
|
_: 1
|
|
3993
|
-
}), n[0] ||= l(" 新增 ", -1)], 8,
|
|
3995
|
+
}), n[0] ||= l(" 新增 ", -1)], 8, Lp)) : i("", !0),
|
|
3994
3996
|
s.form.showDays ? (S(), a("span", {
|
|
3995
3997
|
key: 1,
|
|
3996
3998
|
class: _(["uz-form-item-add", t.diffDay(t.formValue[s.key], !0)])
|
|
@@ -4051,7 +4053,7 @@ function zp(t, n, s, c, d, f) {
|
|
|
4051
4053
|
onOnSubmit: t.refreshOption
|
|
4052
4054
|
}, null, 8, ["onOnSubmit"])], 64);
|
|
4053
4055
|
}
|
|
4054
|
-
var
|
|
4056
|
+
var zp = /*#__PURE__*/ W(Ip, [["render", Rp]]), Bp = f({
|
|
4055
4057
|
name: "UzDraggableForm",
|
|
4056
4058
|
components: {
|
|
4057
4059
|
NForm: me,
|
|
@@ -4059,7 +4061,7 @@ var Bp = /*#__PURE__*/ W(Lp, [["render", zp]]), Vp = f({
|
|
|
4059
4061
|
NButton: R,
|
|
4060
4062
|
NIcon: V,
|
|
4061
4063
|
NDivider: le,
|
|
4062
|
-
UzFormItem:
|
|
4064
|
+
UzFormItem: Fp,
|
|
4063
4065
|
Trash: Sl,
|
|
4064
4066
|
Plus: fc,
|
|
4065
4067
|
VueDraggable: rt
|
|
@@ -4111,24 +4113,25 @@ var Bp = /*#__PURE__*/ W(Lp, [["render", zp]]), Vp = f({
|
|
|
4111
4113
|
}, l = (e) => {
|
|
4112
4114
|
e && (s.value[1] === -1 ? o.value.splice(s.value[0], 1, e) : o.value[s.value[0]].params.children.splice(s.value[1], 1, e), f()), p();
|
|
4113
4115
|
}, u = (e) => (e.forEach((e) => {
|
|
4114
|
-
if (e.form.defaultValue && !a.value[e.key])
|
|
4115
|
-
|
|
4116
|
-
e.
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4116
|
+
if (e.form.defaultValue && !a.value[e.key]) {
|
|
4117
|
+
if (e.input === "number") a.value[e.key] = Number(e.form.defaultValue);
|
|
4118
|
+
else if (e.input === "select" && e.params.options?.length > 0) {
|
|
4119
|
+
e.form.defaultValue === "userId" ? (a.value[e.key] = r.userId, e.params.options = [{
|
|
4120
|
+
label: r.userName,
|
|
4121
|
+
value: r.userId
|
|
4122
|
+
}]) : a.value[e.key] = e.form.defaultValue;
|
|
4123
|
+
let t = e.params.options.find((t) => t.value === a.value[e.key]);
|
|
4124
|
+
t && (a.value[`${e.key}Str`] = t.label);
|
|
4125
|
+
} else if (e.input === "date") switch (e.form.defaultValue) {
|
|
4126
|
+
case "now":
|
|
4127
|
+
a.value[e.key] = Date.now();
|
|
4128
|
+
break;
|
|
4129
|
+
default:
|
|
4130
|
+
let t = Number(e.form.defaultValue);
|
|
4131
|
+
a.value[e.key] = Number.isNaN(t) ? null : t;
|
|
4132
|
+
}
|
|
4133
|
+
else a.value[e.key] = e.form.defaultValue;
|
|
4130
4134
|
}
|
|
4131
|
-
else a.value[e.key] = e.form.defaultValue;
|
|
4132
4135
|
}), e), d = () => {
|
|
4133
4136
|
if (e.items && Array.isArray(e.items)) {
|
|
4134
4137
|
let t = U(e.items);
|
|
@@ -4158,14 +4161,14 @@ var Bp = /*#__PURE__*/ W(Lp, [["render", zp]]), Vp = f({
|
|
|
4158
4161
|
}
|
|
4159
4162
|
};
|
|
4160
4163
|
}
|
|
4161
|
-
}),
|
|
4164
|
+
}), Vp = {
|
|
4162
4165
|
key: 0,
|
|
4163
4166
|
class: "uz-flex uz-items-center uz-gap-1 uz-form-item-add"
|
|
4164
|
-
},
|
|
4167
|
+
}, Hp = {
|
|
4165
4168
|
key: 1,
|
|
4166
4169
|
class: "uz-form-item-add"
|
|
4167
4170
|
};
|
|
4168
|
-
function
|
|
4171
|
+
function Up(t, n, s, c, d, f) {
|
|
4169
4172
|
let p = O("Plus"), m = O("NIcon"), h = O("Trash"), g = O("NButton"), y = O("UzTableChild"), b = O("UzFormItem"), x = O("NFormItem"), C = O("VueDraggable"), w = O("NDivider"), T = O("NForm");
|
|
4170
4173
|
return S(), r(T, {
|
|
4171
4174
|
ref: "formRef",
|
|
@@ -4203,11 +4206,11 @@ function Wp(t, n, s, c, d, f) {
|
|
|
4203
4206
|
}, {
|
|
4204
4207
|
label: P(() => [
|
|
4205
4208
|
o("div", null, A(typeof s.label == "function" ? s.label() : s.label), 1),
|
|
4206
|
-
s.source && s.form.createButton ? (S(), a("a",
|
|
4209
|
+
s.source && s.form.createButton ? (S(), a("a", Vp, [u(m, null, {
|
|
4207
4210
|
default: P(() => [u(p)]),
|
|
4208
4211
|
_: 1
|
|
4209
4212
|
}), n[1] ||= l(" 新增 ", -1)])) : i("", !0),
|
|
4210
|
-
s.form.showDays ? (S(), a("span",
|
|
4213
|
+
s.form.showDays ? (S(), a("span", Hp, " showDays ")) : i("", !0)
|
|
4211
4214
|
]),
|
|
4212
4215
|
default: P(() => [t.formItemIndex[0] === c && t.formItemIndex[1] === -1 ? (S(), r(g, {
|
|
4213
4216
|
key: 0,
|
|
@@ -4334,7 +4337,7 @@ function Wp(t, n, s, c, d, f) {
|
|
|
4334
4337
|
"onClick"
|
|
4335
4338
|
]);
|
|
4336
4339
|
}
|
|
4337
|
-
var
|
|
4340
|
+
var Wp = /*#__PURE__*/ W(Bp, [["render", Up]]), Gp = f({
|
|
4338
4341
|
name: "UzFormItemUpload",
|
|
4339
4342
|
components: {
|
|
4340
4343
|
NUpload: ze,
|
|
@@ -4378,28 +4381,30 @@ var Gp = /*#__PURE__*/ W(Vp, [["render", Wp]]), Kp = f({
|
|
|
4378
4381
|
let n = Ue(), r = T(!1), i = T([]), a = () => {
|
|
4379
4382
|
t("update:value", it.stringify(i.value.map((e) => e.url)));
|
|
4380
4383
|
}, o = (e) => new Promise((t, o) => {
|
|
4381
|
-
if (e.file.file)
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4384
|
+
if (e.file.file) {
|
|
4385
|
+
if (r.value = !0, e.file.file.size > 10485760) n.error({
|
|
4386
|
+
content: "请上传小于10MB的文件",
|
|
4387
|
+
duration: 3e3
|
|
4388
|
+
}), r.value = !1, o();
|
|
4389
|
+
else {
|
|
4390
|
+
let s = new FormData();
|
|
4391
|
+
s.append("file", e.file.file), s.append("name", e.file.name), vf("file/cos/upload", s).then((o) => {
|
|
4392
|
+
i.value.push({
|
|
4393
|
+
id: e.file.id,
|
|
4394
|
+
name: e.file.name,
|
|
4395
|
+
status: "finished",
|
|
4396
|
+
url: o
|
|
4397
|
+
}), n.success({
|
|
4398
|
+
content: "上传成功",
|
|
4399
|
+
duration: 3e3
|
|
4400
|
+
}), r.value = !1, a(), t();
|
|
4401
|
+
}).catch(() => {
|
|
4402
|
+
r.value = !1, o(), n.error({
|
|
4403
|
+
content: "上传失败",
|
|
4404
|
+
duration: 3e3
|
|
4405
|
+
});
|
|
4401
4406
|
});
|
|
4402
|
-
}
|
|
4407
|
+
}
|
|
4403
4408
|
}
|
|
4404
4409
|
}), s = (e) => {
|
|
4405
4410
|
let t = e.lastIndexOf("."), n = e.substring(t + 1);
|
|
@@ -4450,8 +4455,8 @@ var Gp = /*#__PURE__*/ W(Vp, [["render", Wp]]), Kp = f({
|
|
|
4450
4455
|
}
|
|
4451
4456
|
};
|
|
4452
4457
|
}
|
|
4453
|
-
}),
|
|
4454
|
-
function
|
|
4458
|
+
}), Kp = { class: "uz-form-upload-item-inner" }, qp = ["title"], Jp = { key: 0 };
|
|
4459
|
+
function Yp(t, n, s, c, d, f) {
|
|
4455
4460
|
let p = O("CloudUpload"), m = O("NIcon"), h = O("NUploadDragger"), g = O("NUpload"), _ = O("PhotoOff"), v = O("NImage"), y = O("FileText"), b = O("Trash"), x = O("NButton"), C = O("NPopconfirm"), w = O("CloudDownload"), T = O("NSpin");
|
|
4456
4461
|
return S(), r(T, {
|
|
4457
4462
|
"content-class": "uz-form-upload uz-flex uz-flex-wrap uz-gap-2 uz-items-center",
|
|
@@ -4505,10 +4510,10 @@ function Xp(t, n, s, c, d, f) {
|
|
|
4505
4510
|
}, {
|
|
4506
4511
|
default: P(() => [u(y)]),
|
|
4507
4512
|
_: 1
|
|
4508
|
-
}, 8, ["onClick"])), o("div",
|
|
4513
|
+
}, 8, ["onClick"])), o("div", Kp, [o("div", {
|
|
4509
4514
|
class: "uz-form-upload-title uz-truncate",
|
|
4510
4515
|
title: e.name
|
|
4511
|
-
}, A(e.name), 9,
|
|
4516
|
+
}, A(e.name), 9, qp), t.status === 2 ? i("", !0) : (S(), a("div", Jp, [u(C, { onPositiveClick: (e) => t.doDelete(s) }, {
|
|
4512
4517
|
trigger: P(() => [u(x, {
|
|
4513
4518
|
size: "small",
|
|
4514
4519
|
tertiary: ""
|
|
@@ -4537,7 +4542,7 @@ function Xp(t, n, s, c, d, f) {
|
|
|
4537
4542
|
_: 1
|
|
4538
4543
|
}, 8, ["show"]);
|
|
4539
4544
|
}
|
|
4540
|
-
var
|
|
4545
|
+
var Xp = /*#__PURE__*/ W(Gp, [["render", Yp], ["__scopeId", "data-v-2daf6715"]]), Zp = f({
|
|
4541
4546
|
name: "UzFormItemImage",
|
|
4542
4547
|
components: {
|
|
4543
4548
|
NImageGroup: ye,
|
|
@@ -4583,11 +4588,11 @@ var Zp = /*#__PURE__*/ W(Kp, [["render", Xp], ["__scopeId", "data-v-2daf6715"]])
|
|
|
4583
4588
|
}
|
|
4584
4589
|
};
|
|
4585
4590
|
}
|
|
4586
|
-
}),
|
|
4587
|
-
function
|
|
4591
|
+
}), Qp = { class: "uz-flex uz-gap-2 uz-max-w-sm uz-overflow-y-hidden uz-overflow-x-auto uz-items-center" };
|
|
4592
|
+
function $p(t, n, i, s, c, d) {
|
|
4588
4593
|
let f = O("PhotoOff"), p = O("NIcon"), m = O("NImage"), h = O("FileText"), g = O("NPopover"), _ = O("NImageGroup");
|
|
4589
4594
|
return S(), r(_, null, {
|
|
4590
|
-
default: P(() => [o("div",
|
|
4595
|
+
default: P(() => [o("div", Qp, [(S(!0), a(e, null, E(t.imgs, (n) => (S(), a(e, null, [t.isAssetTypeAnImage(n) ? (S(), r(m, {
|
|
4591
4596
|
key: 0,
|
|
4592
4597
|
width: "40",
|
|
4593
4598
|
src: n
|
|
@@ -4619,7 +4624,7 @@ function em(t, n, i, s, c, d) {
|
|
|
4619
4624
|
_: 1
|
|
4620
4625
|
});
|
|
4621
4626
|
}
|
|
4622
|
-
var
|
|
4627
|
+
var em = /*#__PURE__*/ W(Zp, [["render", $p]]), tm = f({
|
|
4623
4628
|
name: "UzFormItemTimesPicker",
|
|
4624
4629
|
components: { NSelect: Ae },
|
|
4625
4630
|
props: {
|
|
@@ -4669,10 +4674,10 @@ var tm = /*#__PURE__*/ W(Qp, [["render", em]]), nm = f({
|
|
|
4669
4674
|
}
|
|
4670
4675
|
};
|
|
4671
4676
|
}
|
|
4672
|
-
}),
|
|
4673
|
-
function
|
|
4677
|
+
}), nm = { class: "times-picker" };
|
|
4678
|
+
function rm(e, t, n, r, i, o) {
|
|
4674
4679
|
let s = O("NSelect");
|
|
4675
|
-
return S(), a("div",
|
|
4680
|
+
return S(), a("div", nm, [
|
|
4676
4681
|
u(s, {
|
|
4677
4682
|
value: e.h,
|
|
4678
4683
|
options: e.times,
|
|
@@ -4720,7 +4725,7 @@ function im(e, t, n, r, i, o) {
|
|
|
4720
4725
|
])
|
|
4721
4726
|
]);
|
|
4722
4727
|
}
|
|
4723
|
-
var
|
|
4728
|
+
var im = /*#__PURE__*/ W(tm, [["render", rm], ["__scopeId", "data-v-12b4d7e3"]]), am = f({
|
|
4724
4729
|
name: "UzCamera",
|
|
4725
4730
|
components: {
|
|
4726
4731
|
NButton: R,
|
|
@@ -4812,11 +4817,11 @@ var am = /*#__PURE__*/ W(nm, [["render", im], ["__scopeId", "data-v-12b4d7e3"]])
|
|
|
4812
4817
|
closeAll: d
|
|
4813
4818
|
};
|
|
4814
4819
|
}
|
|
4815
|
-
}),
|
|
4820
|
+
}), om = ["width", "height"], sm = ["width", "height"], cm = { class: "uz-scan-video" }, lm = {
|
|
4816
4821
|
ref: "videoRef",
|
|
4817
4822
|
playsInline: ""
|
|
4818
4823
|
};
|
|
4819
|
-
function
|
|
4824
|
+
function um(t, n, s, c, u, d) {
|
|
4820
4825
|
let f = O("NButton"), p = O("NModal");
|
|
4821
4826
|
return S(), a(e, null, [
|
|
4822
4827
|
t.mode === "button" ? (S(), r(f, {
|
|
@@ -4848,7 +4853,7 @@ function dm(t, n, s, c, u, d) {
|
|
|
4848
4853
|
id: "uz-scan-canvas",
|
|
4849
4854
|
width: t.width,
|
|
4850
4855
|
height: t.height
|
|
4851
|
-
}, null, 8,
|
|
4856
|
+
}, null, 8, om)], 4)]),
|
|
4852
4857
|
_: 1
|
|
4853
4858
|
}, 8, [
|
|
4854
4859
|
"show",
|
|
@@ -4866,11 +4871,11 @@ function dm(t, n, s, c, u, d) {
|
|
|
4866
4871
|
id: "uz-scan-canvas",
|
|
4867
4872
|
width: t.width,
|
|
4868
4873
|
height: t.height
|
|
4869
|
-
}, null, 8,
|
|
4870
|
-
o("div",
|
|
4874
|
+
}, null, 8, sm)], 4)) : i("", !0),
|
|
4875
|
+
o("div", cm, [o("video", lm, null, 512)])
|
|
4871
4876
|
], 64);
|
|
4872
4877
|
}
|
|
4873
|
-
var
|
|
4878
|
+
var dm = /*#__PURE__*/ W(am, [["render", um]]), fm = /* @__PURE__ */ new WeakMap(), pm = f({
|
|
4874
4879
|
name: "UzSearchBar",
|
|
4875
4880
|
components: {
|
|
4876
4881
|
NIcon: V,
|
|
@@ -4881,7 +4886,7 @@ var fm = /*#__PURE__*/ W(om, [["render", dm]]), pm = /* @__PURE__ */ new WeakMap
|
|
|
4881
4886
|
NInputGroup: xe,
|
|
4882
4887
|
NInputGroupLabel: Se,
|
|
4883
4888
|
NPopover: De,
|
|
4884
|
-
UzFormItem:
|
|
4889
|
+
UzFormItem: Fp,
|
|
4885
4890
|
CaretDown: Lr,
|
|
4886
4891
|
Refresh: Mc,
|
|
4887
4892
|
Search: Qc,
|
|
@@ -4923,10 +4928,10 @@ var fm = /*#__PURE__*/ W(om, [["render", dm]]), pm = /* @__PURE__ */ new WeakMap
|
|
|
4923
4928
|
e.offsetWidth > 1100 ? (t.instance.gridSpan = 1, t.instance.more = t.instance.moreCache, t.instance.offset = t.instance.offsetCache) : e.offsetWidth <= 1100 && e.offsetWidth > 550 ? (t.instance.gridSpan = 2, t.instance.more = t.instance.moreIndex > 2, t.instance.offset = t.instance.moreIndex === 1 ? 1 : -1) : (t.instance.gridSpan = 4, t.instance.more = t.instance.moreIndex > 1, t.instance.offset = -1);
|
|
4924
4929
|
}
|
|
4925
4930
|
});
|
|
4926
|
-
n.observe(e),
|
|
4931
|
+
n.observe(e), fm.set(e, n);
|
|
4927
4932
|
},
|
|
4928
4933
|
unmounted: (e) => {
|
|
4929
|
-
|
|
4934
|
+
fm.get(e)?.disconnect(), fm.delete(e);
|
|
4930
4935
|
}
|
|
4931
4936
|
} },
|
|
4932
4937
|
emits: ["update:loading", "on-update:value"],
|
|
@@ -4960,29 +4965,29 @@ var fm = /*#__PURE__*/ W(om, [["render", dm]]), pm = /* @__PURE__ */ new WeakMap
|
|
|
4960
4965
|
if (t.length > 0) for (let e = 0; e <= i; e++) t[e]?.search.show && (r += t[e]?.search.span || 1);
|
|
4961
4966
|
let a = i - r >= 0 ? i - r - 1 : -1;
|
|
4962
4967
|
u.value = a, d.value = a, l.value = r, r > i ? (s.value = !0, c.value = !0) : (s.value = !1, c.value = !1);
|
|
4963
|
-
for (let e of t) if (e.search.tab && (m.value = e.params.options, h.value = e.params.multiple, p.value = e.key, e.search.show = !1), e.input === "input" && e.params.type === "textarea" && (e.params.type = "text"), e.search.show = e.search.show ?? !0, e.defaultValue)
|
|
4964
|
-
|
|
4965
|
-
{
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
+
for (let e of t) if (e.search.tab && (m.value = e.params.options, h.value = e.params.multiple, p.value = e.key, e.search.show = !1), e.input === "input" && e.params.type === "textarea" && (e.params.type = "text"), e.search.show = e.search.show ?? !0, e.defaultValue) {
|
|
4969
|
+
if (e.input === "date") {
|
|
4970
|
+
if (e.params.type.indexOf("range") > -1) switch (e.search.defaultValue) {
|
|
4971
|
+
case "now":
|
|
4972
|
+
{
|
|
4973
|
+
let t = nt().startOf("day").valueOf(), r = nt().endOf("day").valueOf();
|
|
4974
|
+
n[e.key] = [t, r];
|
|
4975
|
+
}
|
|
4976
|
+
break;
|
|
4977
|
+
default:
|
|
4978
|
+
let t = Number(e.form.defaultValue);
|
|
4979
|
+
n[e.key] = Number.isNaN(t) ? null : [t, t];
|
|
4968
4980
|
}
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
default:
|
|
4980
|
-
let t = Number(e.form.defaultValue);
|
|
4981
|
-
n[e.key] = Number.isNaN(t) ? null : t;
|
|
4982
|
-
break;
|
|
4983
|
-
}
|
|
4984
|
-
else n[e.key] = e.defaultValue;
|
|
4985
|
-
else n[e.key] = "", (e.input === "number" || e.input === "date" || e.input === "time") && (n[e.key] = null), (e.input === "cascader" || e.input === "select") && (e.params.multiple ? n[e.key] = [] : n[e.key] = null);
|
|
4981
|
+
else switch (e.search.defaultValue) {
|
|
4982
|
+
case "now":
|
|
4983
|
+
n[e.key] = Date.now();
|
|
4984
|
+
break;
|
|
4985
|
+
default:
|
|
4986
|
+
let t = Number(e.form.defaultValue);
|
|
4987
|
+
n[e.key] = Number.isNaN(t) ? null : t;
|
|
4988
|
+
}
|
|
4989
|
+
} else n[e.key] = e.defaultValue;
|
|
4990
|
+
} else n[e.key] = "", (e.input === "number" || e.input === "date" || e.input === "time") && (n[e.key] = null), (e.input === "cascader" || e.input === "select") && (e.params.multiple ? n[e.key] = [] : n[e.key] = null);
|
|
4986
4991
|
return {
|
|
4987
4992
|
data: t,
|
|
4988
4993
|
values: n
|
|
@@ -5041,22 +5046,22 @@ var fm = /*#__PURE__*/ W(om, [["render", dm]]), pm = /* @__PURE__ */ new WeakMap
|
|
|
5041
5046
|
tabButtonType: b
|
|
5042
5047
|
};
|
|
5043
5048
|
}
|
|
5044
|
-
}),
|
|
5049
|
+
}), mm = { class: "uz-flex uz-justify-between uz-gap-2" }, hm = {
|
|
5045
5050
|
key: 0,
|
|
5046
5051
|
class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-w-full"
|
|
5047
|
-
},
|
|
5052
|
+
}, gm = { class: "uz-flex-1" }, _m = {
|
|
5048
5053
|
key: 1,
|
|
5049
5054
|
class: "uz-flex uz-gap-2 uz-flex-1"
|
|
5050
|
-
},
|
|
5055
|
+
}, vm = {
|
|
5051
5056
|
key: 0,
|
|
5052
5057
|
class: "uz-search-fields-collapse"
|
|
5053
5058
|
};
|
|
5054
|
-
function
|
|
5059
|
+
function ym(n, s, c, d, f, p) {
|
|
5055
5060
|
let m = O("NButton"), h = O("NButtonGroup"), g = O("NGridItem"), v = O("NInputGroupLabel"), y = O("NPopover"), b = O("UzFormItem"), x = O("NInputGroup"), C = O("NGrid"), w = O("CaretDown"), T = O("NIcon"), ee = O("Search"), te = O("Refresh"), j = k("media");
|
|
5056
5061
|
return S(), a("div", {
|
|
5057
5062
|
class: "uz-search-bar uz-flex uz-flex-col uz-w-full",
|
|
5058
5063
|
onKeyup: s[1] ||= I((e) => n.doSearch(!1), ["enter"])
|
|
5059
|
-
}, [o("div",
|
|
5064
|
+
}, [o("div", mm, [n.enableHeader ? (S(), a("div", hm, [D(n.$slots, "header"), F((S(), a("div", gm, [u(C, {
|
|
5060
5065
|
"x-gap": "8",
|
|
5061
5066
|
"y-gap": "8",
|
|
5062
5067
|
cols: n.cols,
|
|
@@ -5113,7 +5118,7 @@ function bm(n, s, c, d, f, p) {
|
|
|
5113
5118
|
}, 1032, ["span"]))), 128)) : i("", !0)
|
|
5114
5119
|
]),
|
|
5115
5120
|
_: 1
|
|
5116
|
-
}, 8, ["cols"])])), [[j]])])) : i("", !0), n.enableHeader ? (S(), a("div",
|
|
5121
|
+
}, 8, ["cols"])])), [[j]])])) : i("", !0), n.enableHeader ? (S(), a("div", _m, [
|
|
5117
5122
|
n.more ? (S(), r(m, {
|
|
5118
5123
|
key: 0,
|
|
5119
5124
|
quaternary: "",
|
|
@@ -5163,7 +5168,7 @@ function bm(n, s, c, d, f, p) {
|
|
|
5163
5168
|
})) : i("", !0),
|
|
5164
5169
|
D(n.$slots, "action")
|
|
5165
5170
|
])) : i("", !0)]), u(t, { name: "uz-search-fields" }, {
|
|
5166
|
-
default: P(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (S(), a("div",
|
|
5171
|
+
default: P(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (S(), a("div", vm, [u(C, {
|
|
5167
5172
|
"x-gap": "8",
|
|
5168
5173
|
"y-gap": "8",
|
|
5169
5174
|
cols: 4
|
|
@@ -5198,7 +5203,7 @@ function bm(n, s, c, d, f, p) {
|
|
|
5198
5203
|
_: 1
|
|
5199
5204
|
})], 32);
|
|
5200
5205
|
}
|
|
5201
|
-
var
|
|
5206
|
+
var bm = /*#__PURE__*/ W(pm, [["render", ym]]), xm = f({
|
|
5202
5207
|
name: "UzSearchMobileBar",
|
|
5203
5208
|
components: {
|
|
5204
5209
|
NIcon: V,
|
|
@@ -5211,7 +5216,7 @@ var xm = /*#__PURE__*/ W(mm, [["render", bm]]), Sm = f({
|
|
|
5211
5216
|
NInputGroupLabel: Se,
|
|
5212
5217
|
Refresh: Mc,
|
|
5213
5218
|
Search: Qc,
|
|
5214
|
-
UzFormItem:
|
|
5219
|
+
UzFormItem: Fp
|
|
5215
5220
|
},
|
|
5216
5221
|
props: {
|
|
5217
5222
|
data: {
|
|
@@ -5289,10 +5294,10 @@ var xm = /*#__PURE__*/ W(mm, [["render", bm]]), Sm = f({
|
|
|
5289
5294
|
clearAll: l
|
|
5290
5295
|
};
|
|
5291
5296
|
}
|
|
5292
|
-
}),
|
|
5293
|
-
function
|
|
5297
|
+
}), Sm = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, Cm = { class: "uz-flex uz-gap-2" }, wm = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
|
|
5298
|
+
function Tm(t, n, s, c, d, f) {
|
|
5294
5299
|
let p = O("Search"), m = O("NIcon"), h = O("NButton"), g = O("NInputGroupLabel"), _ = O("UzFormItem"), v = O("NInputGroup"), y = O("NGridItem"), b = O("NGrid"), x = O("Refresh"), C = O("NDrawerContent"), w = O("NDrawer");
|
|
5295
|
-
return S(), a(e, null, [o("div",
|
|
5300
|
+
return S(), a(e, null, [o("div", Sm, [D(t.$slots, "header"), o("div", Cm, [t.itemData && Object.keys(t.itemData).length > 0 ? (S(), r(h, {
|
|
5296
5301
|
key: 0,
|
|
5297
5302
|
secondary: "",
|
|
5298
5303
|
onClick: n[0] ||= (e) => t.drawer = !0
|
|
@@ -5317,7 +5322,7 @@ function Em(t, n, s, c, d, f) {
|
|
|
5317
5322
|
title: "查询",
|
|
5318
5323
|
closable: ""
|
|
5319
5324
|
}, {
|
|
5320
|
-
footer: P(() => [o("div",
|
|
5325
|
+
footer: P(() => [o("div", wm, [u(h, {
|
|
5321
5326
|
secondary: "",
|
|
5322
5327
|
loading: t.loading,
|
|
5323
5328
|
onClick: t.clearAll,
|
|
@@ -5372,10 +5377,10 @@ function Em(t, n, s, c, d, f) {
|
|
|
5372
5377
|
_: 1
|
|
5373
5378
|
}, 8, ["show"])], 64);
|
|
5374
5379
|
}
|
|
5375
|
-
var
|
|
5380
|
+
var Em = /*#__PURE__*/ W(xm, [["render", Tm]]);
|
|
5376
5381
|
//#endregion
|
|
5377
5382
|
//#region components/hooks/useDebounceFn.ts
|
|
5378
|
-
function
|
|
5383
|
+
function Dm(e, t = 1e3) {
|
|
5379
5384
|
let n = et(e, t);
|
|
5380
5385
|
return {
|
|
5381
5386
|
run: n,
|
|
@@ -5385,7 +5390,7 @@ function Om(e, t = 1e3) {
|
|
|
5385
5390
|
}
|
|
5386
5391
|
//#endregion
|
|
5387
5392
|
//#region components/table/factory.ts
|
|
5388
|
-
var
|
|
5393
|
+
var Om = /(?<=\[)(.+?)(?=\])/g, km = {
|
|
5389
5394
|
index: 1,
|
|
5390
5395
|
selection: 0,
|
|
5391
5396
|
pagination: 1,
|
|
@@ -5403,10 +5408,10 @@ var km = /(?<=\[)(.+?)(?=\])/g, Am = {
|
|
|
5403
5408
|
placement: "right",
|
|
5404
5409
|
summary: ""
|
|
5405
5410
|
};
|
|
5406
|
-
function
|
|
5411
|
+
function Am(e) {
|
|
5407
5412
|
return Function("return " + e)();
|
|
5408
5413
|
}
|
|
5409
|
-
var
|
|
5414
|
+
var jm = () => new Promise((e) => {
|
|
5410
5415
|
let t = window.localStorage.getItem("city");
|
|
5411
5416
|
if (t) e(JSON.parse(t));
|
|
5412
5417
|
else {
|
|
@@ -5419,9 +5424,9 @@ var Mm = () => new Promise((e) => {
|
|
|
5419
5424
|
t && (clearInterval(i), e(JSON.parse(t)));
|
|
5420
5425
|
}, 500);
|
|
5421
5426
|
}
|
|
5422
|
-
}),
|
|
5427
|
+
}), Mm = async (e, t, n) => {
|
|
5423
5428
|
if (t && typeof t == "string") {
|
|
5424
|
-
let r = t.match(
|
|
5429
|
+
let r = t.match(Om);
|
|
5425
5430
|
if (r && t.indexOf("return") === -1) {
|
|
5426
5431
|
let t = r[0].split(":");
|
|
5427
5432
|
if (t[0] === "date") return (t) => fd(t[e], r[0].replace("date:", "") || "YYYY-MM-DD");
|
|
@@ -5431,7 +5436,8 @@ var Mm = () => new Promise((e) => {
|
|
|
5431
5436
|
if (t) {
|
|
5432
5437
|
let e = n[t], r = h(d(e));
|
|
5433
5438
|
return (e) => p(r, { rowData: e }, {});
|
|
5434
|
-
}
|
|
5439
|
+
}
|
|
5440
|
+
return p("div", "Module not found");
|
|
5435
5441
|
}
|
|
5436
5442
|
} else try {
|
|
5437
5443
|
let e = Function("rowData", "rowIndex", "h", t);
|
|
@@ -5441,7 +5447,7 @@ var Mm = () => new Promise((e) => {
|
|
|
5441
5447
|
}
|
|
5442
5448
|
}
|
|
5443
5449
|
return t && typeof t == "function" ? (e, n) => t(e, n, p) : "";
|
|
5444
|
-
},
|
|
5450
|
+
}, Nm = (e, t, n) => {
|
|
5445
5451
|
let r = t.map((t) => {
|
|
5446
5452
|
let r = [], i = t.id;
|
|
5447
5453
|
return e.input === "select" && (e.params.labelKeys || e.search.labelKeys) ? ((e.params.labelKeys || e.search.labelKeys || "").split(",").forEach((e) => {
|
|
@@ -5454,35 +5460,35 @@ var Mm = () => new Promise((e) => {
|
|
|
5454
5460
|
};
|
|
5455
5461
|
});
|
|
5456
5462
|
return r.sort((e, t) => Number(e.disabled) - Number(t.disabled)), r;
|
|
5457
|
-
},
|
|
5458
|
-
function
|
|
5459
|
-
|
|
5463
|
+
}, Pm = /* @__PURE__ */ new Map();
|
|
5464
|
+
function Fm() {
|
|
5465
|
+
Pm.clear();
|
|
5460
5466
|
}
|
|
5461
|
-
async function
|
|
5467
|
+
async function Im(e, t = !1) {
|
|
5462
5468
|
let n = e.split("."), r = !1;
|
|
5463
|
-
return n.length > 1 && (
|
|
5469
|
+
return n.length > 1 && (Pm.has(n[0]) && !t ? r = U(Pm.get(n[0])) : (r = await bf({ tableId: n[0] }), Pm.set(n[0], r))), {
|
|
5464
5470
|
sourceData: r,
|
|
5465
5471
|
n
|
|
5466
5472
|
};
|
|
5467
5473
|
}
|
|
5468
|
-
async function
|
|
5474
|
+
async function Lm(e) {
|
|
5469
5475
|
return new Promise((t, n) => {
|
|
5470
5476
|
let r = X(`dynamicTable_${e}`, !1);
|
|
5471
|
-
r &&
|
|
5477
|
+
r && Pm.has(`dynamicTable_${e}`) ? t(r) : yf(e, r ? r.createTime : null).then((n) => {
|
|
5472
5478
|
if (n) {
|
|
5473
5479
|
let r = {
|
|
5474
5480
|
createTime: n.createTime,
|
|
5475
5481
|
tableTitle: n.tableTitle,
|
|
5476
5482
|
viewJson: n.viewJson
|
|
5477
5483
|
};
|
|
5478
|
-
Y(`dynamicTable_${e}`, r, 0),
|
|
5479
|
-
} else
|
|
5484
|
+
Y(`dynamicTable_${e}`, r, 0), Pm.set(`dynamicTable_${e}`, !0), cd("tables_"), t(n);
|
|
5485
|
+
} else Pm.set(`dynamicTable_${e}`, !0), t(r);
|
|
5480
5486
|
}).catch(() => {
|
|
5481
5487
|
n();
|
|
5482
5488
|
});
|
|
5483
5489
|
});
|
|
5484
5490
|
}
|
|
5485
|
-
var
|
|
5491
|
+
var Rm = (e) => e.map((e) => {
|
|
5486
5492
|
let t = {};
|
|
5487
5493
|
return t.z = e.params.placeholder, e.input === "group" ? t.n = e.params.children : t.c = +!!e.params.clearable, e.input === "input" && (e.params.type && (t.t = e.params.type), e.params.minlength && (t.i = e.params.minlength), e.params.maxlength && (t.a = e.params.maxlength), e.params.rows && (t.r = e.params.rows), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "auto" && (t.o = e.params.options, e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "number" && (t.b = +!!e.params.showButton, e.params.min && (t.i = e.params.min), e.params.max && (t.a = e.params.max), e.params.minKey && (t.x = e.params.minKey), e.params.maxKey && (t.y = e.params.maxKey), e.params.step && (t.t = e.params.step), e.params.precision && (t.p = e.params.precision), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "date" && (t.y = e.params.type, e.params.format && (t.f = e.params.format), e.params.isDateDisabled && (t.d = e.params.isDateDisabled), e.params.timePickerProps && (t.t = e.params.timePickerProps)), e.input === "select" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple, t.t = +!!e.params.tag, t.l = (e.params.labelKeys || "").replace(/\s*/g, ""), t.v = (e.params.valueKey || "").replace(/\s*/g, ""), t.r = e.params.renderLabel, t.g = e.params.renderTag), e.input === "cascader" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple), e.input === "checkbox" && (t.o = e.params.options), e.input === "time" && (t.f = e.params.format), e.input === "upload" && (t.s = +!!e.params.small, t.a = e.params.accept, t.m = e.params.max), e.input === "switch" && (t.h = e.params.checked, t.u = e.params.unchecked), e.input === "divider" && (t.p = e.params.placement), e.input === "filling" && (t.k = e.params.parentKey), e.input === "subTable" && (t.i = +!!e.params.init, t.q = +!!e.params.quest, t.k = e.params.searchKey, t.l = e.params.link, t.c = e.params.columns, t.a = e.params.actions, t.b = +!!e.params.addButton, t.g = +!!e.params.draggable, t.h = +!!e.params.childActions, t.x = +!!e.params.expandable, t.n = +!!e.params.showActions, t.d = +!!e.params.showDelete, e.params.optionsType && (t.t = e.params.optionsType), e.params.optionsSource && (t.u = e.params.optionsSource), e.params.options && (t.o = e.params.options), e.params.summary && (t.s = e.params.summary), e.params.merge && (t.m = e.params.merge), e.params.deleteFn && (t.f = e.params.deleteFn)), {
|
|
5488
5494
|
i: e.input,
|
|
@@ -5555,7 +5561,7 @@ var zm = (e) => e.map((e) => {
|
|
|
5555
5561
|
p: { s: +!!e.form.expand.show }
|
|
5556
5562
|
}
|
|
5557
5563
|
};
|
|
5558
|
-
}),
|
|
5564
|
+
}), zm = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
|
|
5559
5565
|
let t = {};
|
|
5560
5566
|
return t.placeholder = e.p.z, e.i === "group" ? t.children = e.p.n : t.clearable = !!e.p.c, e.i === "input" && (e.p.t && (t.type = e.p.t), e.p.i && (t.minlength = e.p.i), e.p.a && (t.maxlength = e.p.a), e.p.r && (t.rows = e.p.r), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "auto" && (t.options = e.p.o, e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "number" && (t.showButton = !!e.p.b, e.p.i && (t.min = e.p.i), e.p.a && (t.max = e.p.a), e.p.x && (t.minKey = e.p.x), e.p.y && (t.maxKey = e.p.y), e.p.t && (t.step = e.p.t), e.p.p && (t.precision = e.p.p), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "date" && (t.type = e.p.y, e.p.f && (t.format = e.p.f), e.p.d && (t.isDateDisabled = e.p.d), e.p.t && (t.timePickerProps = e.p.t)), e.i === "select" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m, t.tag = !!e.p.t, t.labelKeys = e.p.l, t.valueKey = e.p.v, t.renderLabel = e.p.r, t.renderTag = e.p.g), e.i === "cascader" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m), e.i === "checkbox" && (t.options = e.p.o), e.i === "time" && (t.format = e.p.f), e.i === "upload" && (t.small = !!e.p.s, t.accept = e.p.a, t.max = e.p.m), e.i === "switch" && (t.checked = e.p.h, t.unchecked = e.p.u), e.i === "divider" && (t.placement = e.p.p), e.i === "filling" && (t.parentKey = e.p.k), e.i === "subTable" && (t.init = !!e.p.i, t.quest = !!e.p.q, t.searchKey = e.p.k, t.link = e.p.l, t.columns = e.p.c, t.actions = e.p.a, t.addButton = !!e.p.b, t.draggable = !!e.p.g, t.childActions = !!e.p.h, t.showActions = !!e.p.n, t.showDelete = !!(e.p.d ?? !0), t.expandable = !!e.p.x, e.p.t && (t.optionsType = e.p.t), e.p.u && (t.optionsSource = e.p.u), e.p.o && (t.options = e.p.o), e.p.s && (t.summary = e.p.s), e.p.m && (t.merge = e.p.m), e.p.f && (t.deleteFn = e.p.f)), {
|
|
5561
5567
|
input: e.i,
|
|
@@ -5628,11 +5634,11 @@ var zm = (e) => e.map((e) => {
|
|
|
5628
5634
|
expand: { show: e.f && e.f.p ? !!e.f.p.s : !0 }
|
|
5629
5635
|
}
|
|
5630
5636
|
};
|
|
5631
|
-
}),
|
|
5637
|
+
}), Bm = (e) => ({
|
|
5632
5638
|
f: e.fetch,
|
|
5633
5639
|
o: e.when_drawer_open,
|
|
5634
5640
|
b: e.when_before_save
|
|
5635
|
-
}),
|
|
5641
|
+
}), Vm = (e) => e ? e.fetch ? e : {
|
|
5636
5642
|
fetch: e.f,
|
|
5637
5643
|
when_drawer_open: e.o,
|
|
5638
5644
|
when_before_save: e.b
|
|
@@ -5640,7 +5646,7 @@ var zm = (e) => e.map((e) => {
|
|
|
5640
5646
|
fetch: null,
|
|
5641
5647
|
when_drawer_open: "",
|
|
5642
5648
|
when_before_save: ""
|
|
5643
|
-
},
|
|
5649
|
+
}, Hm = (e) => ({
|
|
5644
5650
|
i: e.index,
|
|
5645
5651
|
s: e.selection,
|
|
5646
5652
|
p: e.pagination,
|
|
@@ -5656,7 +5662,7 @@ var zm = (e) => e.map((e) => {
|
|
|
5656
5662
|
h: e.drawerHeight,
|
|
5657
5663
|
l: e.placement,
|
|
5658
5664
|
r: e.summary
|
|
5659
|
-
}),
|
|
5665
|
+
}), Um = (e) => {
|
|
5660
5666
|
let t = {};
|
|
5661
5667
|
return e && (t = e.index !== void 0 || e.selection !== void 0 || e.pagination !== void 0 || e.cache !== void 0 || e.draggable !== void 0 || e.addButton !== void 0 || e.filterButton !== void 0 || e.commonTime !== void 0 || e.asynchronous !== void 0 || e.filePort !== void 0 || e.actionWidth !== void 0 || e.drawerWidth !== void 0 || e.drawerHeight !== void 0 || e.placement !== void 0 || e.summary !== void 0 ? e : {
|
|
5662
5668
|
index: e.i,
|
|
@@ -5674,9 +5680,9 @@ var zm = (e) => e.map((e) => {
|
|
|
5674
5680
|
drawerHeight: e.h,
|
|
5675
5681
|
placement: e.l,
|
|
5676
5682
|
summary: e.r
|
|
5677
|
-
}), Object.assign({},
|
|
5683
|
+
}), Object.assign({}, km, U(t));
|
|
5678
5684
|
};
|
|
5679
|
-
function
|
|
5685
|
+
function Wm(e, t, n, r) {
|
|
5680
5686
|
return new Promise(async (i, a) => {
|
|
5681
5687
|
let o = [], s = {}, c = {}, l = {}, u = [], d = [], f = U(e), p = [];
|
|
5682
5688
|
for (let e of f) e.input === "group" ? p.push(...e.params.children) : p.push(e);
|
|
@@ -5711,25 +5717,32 @@ function Gm(e, t, n, r) {
|
|
|
5711
5717
|
disabled: !0
|
|
5712
5718
|
}];
|
|
5713
5719
|
if (e.params.immediately || r) {
|
|
5714
|
-
let { sourceData: t, n: r } = await
|
|
5715
|
-
if (t && Array.isArray(t))
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5720
|
+
let { sourceData: t, n: r } = await Im(e.source);
|
|
5721
|
+
if (t && Array.isArray(t)) {
|
|
5722
|
+
if (e.sourceFn) {
|
|
5723
|
+
let r = e.sourceFn;
|
|
5724
|
+
n = Function("sourceData", r)(t);
|
|
5725
|
+
} else n = Nm(e, t, r);
|
|
5726
|
+
}
|
|
5719
5727
|
} else e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
|
|
5720
|
-
let { sourceData: t, n } = await
|
|
5721
|
-
if (t && Array.isArray(t))
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5728
|
+
let { sourceData: t, n } = await Im(e.source);
|
|
5729
|
+
if (t && Array.isArray(t)) {
|
|
5730
|
+
if (e.sourceFn) {
|
|
5731
|
+
let n = e.sourceFn;
|
|
5732
|
+
return Function("sourceData", n)(t);
|
|
5733
|
+
}
|
|
5734
|
+
return Nm(e, t, n);
|
|
5735
|
+
}
|
|
5725
5736
|
};
|
|
5726
|
-
if (e.params.options = n, e.form.backfill && t)
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5737
|
+
if (e.params.options = n, e.form.backfill && t) {
|
|
5738
|
+
if (Array.isArray(t)) t.forEach((t, r) => {
|
|
5739
|
+
let i = n.find((n) => n.value === t[e.key]);
|
|
5740
|
+
i && (u[r] || (u[r] = {}), u[r][e.key] = i.params);
|
|
5741
|
+
});
|
|
5742
|
+
else {
|
|
5743
|
+
let r = n.find((n) => n.value === t[e.key]);
|
|
5744
|
+
r && (c[e.key] = r.params);
|
|
5745
|
+
}
|
|
5733
5746
|
}
|
|
5734
5747
|
}
|
|
5735
5748
|
if (e.input === "filling") try {
|
|
@@ -5752,27 +5765,27 @@ function Gm(e, t, n, r) {
|
|
|
5752
5765
|
J(e);
|
|
5753
5766
|
}
|
|
5754
5767
|
if (e.input === "cascader" && e.table.render === "[city]") {
|
|
5755
|
-
let t = await
|
|
5768
|
+
let t = await jm();
|
|
5756
5769
|
e.params.options = t;
|
|
5757
5770
|
}
|
|
5758
5771
|
if (e.input === "subTable" && e.params.link) {
|
|
5759
|
-
let t = await
|
|
5772
|
+
let t = await Lm(e.params.link).catch(() => {
|
|
5760
5773
|
a();
|
|
5761
5774
|
});
|
|
5762
5775
|
if (t) try {
|
|
5763
5776
|
let n = it.parse(t.viewJson);
|
|
5764
5777
|
n.suffix && (e._suffix = Hf(n.suffix));
|
|
5765
|
-
let r =
|
|
5778
|
+
let r = zm(n.table);
|
|
5766
5779
|
r.forEach((e) => {
|
|
5767
5780
|
e.table.sorter = !1;
|
|
5768
5781
|
});
|
|
5769
5782
|
let i = r.filter((e) => e.input === "subTable");
|
|
5770
5783
|
if (i) for await (let e of i) {
|
|
5771
|
-
let t = await
|
|
5784
|
+
let t = await Lm(e.params.link).catch(() => {
|
|
5772
5785
|
a();
|
|
5773
5786
|
});
|
|
5774
5787
|
if (t) try {
|
|
5775
|
-
let n = it.parse(t.viewJson), r =
|
|
5788
|
+
let n = it.parse(t.viewJson), r = zm(n.table);
|
|
5776
5789
|
r.forEach((e) => {
|
|
5777
5790
|
e.table.sorter = !1;
|
|
5778
5791
|
}), e.params.columns = r, e.params.actions = n.action;
|
|
@@ -5806,7 +5819,7 @@ function Gm(e, t, n, r) {
|
|
|
5806
5819
|
});
|
|
5807
5820
|
});
|
|
5808
5821
|
}
|
|
5809
|
-
async function
|
|
5822
|
+
async function Gm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
5810
5823
|
let s = 0, c = [], l = [], u = {
|
|
5811
5824
|
key: "",
|
|
5812
5825
|
link: "",
|
|
@@ -5819,28 +5832,35 @@ async function Km(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5819
5832
|
children: e.params.children.map((e) => e.key)
|
|
5820
5833
|
})) : (m.push(e), h.push(e.key));
|
|
5821
5834
|
for await (let [e, s] of m.entries()) {
|
|
5822
|
-
if (s.source && !s.table.render && (s.input === "select" || s.input === "cascader"))
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
|
|
5835
|
+
if (s.source && !s.table.render && (s.input === "select" || s.input === "cascader")) {
|
|
5836
|
+
if (s.table.render = (e) => e[`${s.key}Str`], t || s.params.immediately || s.search.defaultValue) {
|
|
5837
|
+
let { sourceData: t, n } = await Im(s.source, a && e === 0);
|
|
5838
|
+
if (t && Array.isArray(t)) {
|
|
5839
|
+
if (s.sourceFn) {
|
|
5840
|
+
let e = s.sourceFn, n = Function("sourceData", e);
|
|
5841
|
+
s.params.options = n(t);
|
|
5842
|
+
} else s.params.options = Nm(s, t, n);
|
|
5843
|
+
}
|
|
5844
|
+
} else s.params.options = [{
|
|
5845
|
+
label: "加载中......",
|
|
5846
|
+
value: "loading",
|
|
5847
|
+
disabled: !0
|
|
5848
|
+
}], s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
5849
|
+
let { sourceData: e, n: t } = await Im(s.source);
|
|
5850
|
+
if (e && Array.isArray(e)) {
|
|
5851
|
+
if (s.sourceFn) {
|
|
5852
|
+
let t = s.sourceFn;
|
|
5853
|
+
return Function("sourceData", t)(e);
|
|
5854
|
+
}
|
|
5855
|
+
return Nm(s, e, t);
|
|
5856
|
+
}
|
|
5857
|
+
};
|
|
5858
|
+
}
|
|
5839
5859
|
!s.table.render && !s.source && s.input === "select" && typeof s.params.options != "function" && s.params.options.length > 0 && (s.table.render = (e) => {
|
|
5840
5860
|
let t = s.params.options.find((t) => t.value === e[s.key]);
|
|
5841
5861
|
if (t) return t.label;
|
|
5842
5862
|
}), s.input === "upload" && !s.table.render && (s.table.render = function(e) {
|
|
5843
|
-
return p(
|
|
5863
|
+
return p(em, { value: e[s.key] }, { default: () => null });
|
|
5844
5864
|
});
|
|
5845
5865
|
let f = {
|
|
5846
5866
|
input: s.input,
|
|
@@ -5855,58 +5875,70 @@ async function Km(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5855
5875
|
tooltip: !0,
|
|
5856
5876
|
"line-clamp": s.table.clamp ?? 0
|
|
5857
5877
|
} : !1,
|
|
5858
|
-
render: s.table.render ? await
|
|
5878
|
+
render: s.table.render ? await Mm(s.key, s.table.render, i) : void 0,
|
|
5859
5879
|
show: q.isMobile ? s.table.mobile ?? !1 : s.table.show ?? !0,
|
|
5860
5880
|
pin: !!s.table.fixed,
|
|
5861
5881
|
fixTemp: s.table.fixed
|
|
5862
5882
|
};
|
|
5863
|
-
if (f.resizable && (f.minWidth = 80), t)
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5883
|
+
if (f.resizable && (f.minWidth = 80), t) {
|
|
5884
|
+
if (!f.form.edit.show) f = null;
|
|
5885
|
+
else {
|
|
5886
|
+
if (f.ellipsis = !1, f.resizable = !0, q.isMobile && (f.show = s.table.mobile), s.table.show && (n === 0 && (f.show = s.form.create.show), n === 1 && (f.show = s.form.edit.show), n === 2 && (f.show = s.form.show)), o && (s.form.rule.validator = () => !0), o === !1 && s.form.rule?.required && typeof s.form.rule.validator == "string") {
|
|
5887
|
+
delete s.form.rule.message;
|
|
5888
|
+
let e = s.form.rule.validator, t = Function("rule", "value", "index", "formValues", e);
|
|
5889
|
+
s.form.rule.validator === "" ? s.form.rule.validator = (e, t) => r()[e.index].delete || t ? !0 : Error(s.form.rule.message) : s.form.rule.validator = (e, n) => r()[e.index].delete ? !0 : t(e, n, e.index, () => r());
|
|
5890
|
+
}
|
|
5891
|
+
f.render = function(e, t) {
|
|
5892
|
+
return p(he, {
|
|
5893
|
+
showLabel: !1,
|
|
5894
|
+
showFeedback: !1,
|
|
5895
|
+
path: `child[${t}].${s.key}`,
|
|
5896
|
+
rule: s.form.rule?.required ? {
|
|
5897
|
+
...s.form.rule,
|
|
5898
|
+
index: t
|
|
5899
|
+
} : void 0
|
|
5900
|
+
}, { default: () => p(Fp, {
|
|
5901
|
+
item: s,
|
|
5902
|
+
formValue: e,
|
|
5903
|
+
status: n,
|
|
5904
|
+
itemIndex: t
|
|
5905
|
+
}) });
|
|
5906
|
+
};
|
|
5869
5907
|
}
|
|
5870
|
-
f.render = function(e, t) {
|
|
5871
|
-
return p(he, {
|
|
5872
|
-
showLabel: !1,
|
|
5873
|
-
showFeedback: !1,
|
|
5874
|
-
path: `child[${t}].${s.key}`,
|
|
5875
|
-
rule: s.form.rule?.required ? {
|
|
5876
|
-
...s.form.rule,
|
|
5877
|
-
index: t
|
|
5878
|
-
} : void 0
|
|
5879
|
-
}, { default: () => p(Ip, {
|
|
5880
|
-
item: s,
|
|
5881
|
-
formValue: e,
|
|
5882
|
-
status: n,
|
|
5883
|
-
itemIndex: t
|
|
5884
|
-
}) });
|
|
5885
|
-
};
|
|
5886
5908
|
}
|
|
5887
5909
|
if (f && s.input !== "divider" && s.input !== "subTable" && (o && (f.show = s.form.expand.show), d.push(f)), s.input !== "divider" && s.input !== "switch" && s.input !== "subTable" && s.input !== "upload" && s.search.show) {
|
|
5888
|
-
if (s.search.title && (s.label = s.search.title), s.search.source)
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5910
|
+
if (s.search.title && (s.label = s.search.title), s.search.source) {
|
|
5911
|
+
if (s.input = "select", s.params.type = s.search.type, s.params.valueKey = s.search.valueKey, s.params.valueKey = s.search.valueKey, s.search.source === "from-up") s.params.options = s.params.options;
|
|
5912
|
+
else if (s.params.immediately || s.search.defaultValue) {
|
|
5913
|
+
let { sourceData: e, n: t } = await Im(s.search.source);
|
|
5914
|
+
if (e && Array.isArray(e)) {
|
|
5915
|
+
if (s.sourceFn) {
|
|
5916
|
+
let t = s.sourceFn, n = Function("sourceData", t);
|
|
5917
|
+
s.params.options = n(e);
|
|
5918
|
+
} else s.params.options = Nm(s, e, t);
|
|
5919
|
+
}
|
|
5920
|
+
} else s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
5921
|
+
let { sourceData: e, n: t } = await Im(s.search.source);
|
|
5922
|
+
if (e && Array.isArray(e)) {
|
|
5923
|
+
if (s.sourceFn) {
|
|
5924
|
+
let t = s.sourceFn;
|
|
5925
|
+
return Function("sourceData", t)(e);
|
|
5926
|
+
}
|
|
5927
|
+
return Nm(s, e, t);
|
|
5928
|
+
}
|
|
5929
|
+
};
|
|
5930
|
+
}
|
|
5931
|
+
if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue = Am(s.search.defaultValue))), s.search.show) {
|
|
5903
5932
|
let e = U(s);
|
|
5904
5933
|
e.params._async && (e.params._search = !0, e.params._asyncFn = async () => {
|
|
5905
|
-
let { sourceData: t, n } = await
|
|
5906
|
-
if (t && Array.isArray(t))
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5934
|
+
let { sourceData: t, n } = await Im(e.source || e.search.source);
|
|
5935
|
+
if (t && Array.isArray(t)) {
|
|
5936
|
+
if (e.sourceFn) {
|
|
5937
|
+
let n = e.sourceFn;
|
|
5938
|
+
return Function("sourceData", n)(t);
|
|
5939
|
+
}
|
|
5940
|
+
return Nm(e, t, n);
|
|
5941
|
+
}
|
|
5910
5942
|
}), c.push({
|
|
5911
5943
|
input: e.input,
|
|
5912
5944
|
label: e.label,
|
|
@@ -5959,7 +5991,7 @@ async function Km(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5959
5991
|
}
|
|
5960
5992
|
//#endregion
|
|
5961
5993
|
//#region components/spin/index.vue?vue&type=script&lang.ts
|
|
5962
|
-
var
|
|
5994
|
+
var Km = f({
|
|
5963
5995
|
name: "UzSpin",
|
|
5964
5996
|
components: {
|
|
5965
5997
|
NButton: R,
|
|
@@ -6005,7 +6037,7 @@ var qm = f({
|
|
|
6005
6037
|
});
|
|
6006
6038
|
//#endregion
|
|
6007
6039
|
//#region components/spin/index.vue
|
|
6008
|
-
function
|
|
6040
|
+
function qm(e, t, n, i, a, s) {
|
|
6009
6041
|
let c = O("NEllipsis"), d = O("NButton"), f = O("NSpin");
|
|
6010
6042
|
return S(), r(f, { show: e.value }, {
|
|
6011
6043
|
description: P(() => [
|
|
@@ -6033,7 +6065,7 @@ function Jm(e, t, n, i, a, s) {
|
|
|
6033
6065
|
_: 3
|
|
6034
6066
|
}, 8, ["show"]);
|
|
6035
6067
|
}
|
|
6036
|
-
var
|
|
6068
|
+
var Jm = /*#__PURE__*/ W(Km, [["render", qm]]), Ym = f({
|
|
6037
6069
|
name: "UzTableExpand",
|
|
6038
6070
|
components: {
|
|
6039
6071
|
NDataTable: se,
|
|
@@ -6059,8 +6091,8 @@ var Ym = /*#__PURE__*/ W(qm, [["render", Jm]]), Xm = f({
|
|
|
6059
6091
|
} catch (e) {
|
|
6060
6092
|
J(e);
|
|
6061
6093
|
}
|
|
6062
|
-
|
|
6063
|
-
let { tableColumns: r } = await
|
|
6094
|
+
Lm(e.data.link).then(async (e) => {
|
|
6095
|
+
let { tableColumns: r } = await Gm(zm(it.parse(e.viewJson).table), !0, 2, () => {}, {}, !1, !0), a = 0, o = r.map((e) => ({
|
|
6064
6096
|
...e,
|
|
6065
6097
|
sorter: !1,
|
|
6066
6098
|
resizable: !1
|
|
@@ -6081,7 +6113,7 @@ var Ym = /*#__PURE__*/ W(qm, [["render", Jm]]), Xm = f({
|
|
|
6081
6113
|
});
|
|
6082
6114
|
//#endregion
|
|
6083
6115
|
//#region components/table/components/expand.vue
|
|
6084
|
-
function
|
|
6116
|
+
function Xm(e, t, n, i, a, o) {
|
|
6085
6117
|
let s = O("NDataTable");
|
|
6086
6118
|
return S(), r(s, {
|
|
6087
6119
|
columns: e.columns,
|
|
@@ -6090,10 +6122,7 @@ function Zm(e, t, n, i, a, o) {
|
|
|
6090
6122
|
loading: e.loading,
|
|
6091
6123
|
"scroll-x": e.tableScrollX,
|
|
6092
6124
|
"min-height": 102,
|
|
6093
|
-
"scrollbar-props": {
|
|
6094
|
-
size: 8,
|
|
6095
|
-
trigger: "none"
|
|
6096
|
-
},
|
|
6125
|
+
"scrollbar-props": { trigger: "none" },
|
|
6097
6126
|
size: "small",
|
|
6098
6127
|
remote: ""
|
|
6099
6128
|
}, null, 8, [
|
|
@@ -6103,18 +6132,18 @@ function Zm(e, t, n, i, a, o) {
|
|
|
6103
6132
|
"scroll-x"
|
|
6104
6133
|
]);
|
|
6105
6134
|
}
|
|
6106
|
-
var
|
|
6135
|
+
var Zm = /*#__PURE__*/ W(Ym, [["render", Xm]]), Qm = f({
|
|
6107
6136
|
components: { NSkeleton: je },
|
|
6108
6137
|
setup() {
|
|
6109
6138
|
return {};
|
|
6110
6139
|
}
|
|
6111
|
-
}),
|
|
6112
|
-
function
|
|
6140
|
+
}), $m = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, eh = { class: "uz-flex uz-justify-between" }, th = { class: "uz-flex uz-gap-1" };
|
|
6141
|
+
function nh(e, t, n, r, i, s) {
|
|
6113
6142
|
let c = O("NSkeleton");
|
|
6114
|
-
return S(), a("div",
|
|
6143
|
+
return S(), a("div", $m, [o("div", eh, [u(c, {
|
|
6115
6144
|
width: 120,
|
|
6116
6145
|
size: "medium"
|
|
6117
|
-
}), o("div",
|
|
6146
|
+
}), o("div", th, [
|
|
6118
6147
|
u(c, {
|
|
6119
6148
|
width: 180,
|
|
6120
6149
|
size: "medium"
|
|
@@ -6147,7 +6176,7 @@ function rh(e, t, n, r, i, s) {
|
|
|
6147
6176
|
}
|
|
6148
6177
|
//#endregion
|
|
6149
6178
|
//#region components/table/index.vue?vue&type=script&lang.ts
|
|
6150
|
-
var
|
|
6179
|
+
var rh = f({
|
|
6151
6180
|
name: "UzTable",
|
|
6152
6181
|
components: {
|
|
6153
6182
|
NDataTable: se,
|
|
@@ -6160,10 +6189,10 @@ var ih = f({
|
|
|
6160
6189
|
GridDots: ns,
|
|
6161
6190
|
Plus: fc,
|
|
6162
6191
|
VueDraggable: rt,
|
|
6163
|
-
UzSpin:
|
|
6192
|
+
UzSpin: Jm,
|
|
6164
6193
|
UzIcon: Ru,
|
|
6165
|
-
TableExpand:
|
|
6166
|
-
SkeletonLoading: /* @__PURE__ */ W(
|
|
6194
|
+
TableExpand: Zm,
|
|
6195
|
+
SkeletonLoading: /* @__PURE__ */ W(Qm, [["render", nh]])
|
|
6167
6196
|
},
|
|
6168
6197
|
props: {
|
|
6169
6198
|
id: {
|
|
@@ -6302,7 +6331,7 @@ var ih = f({
|
|
|
6302
6331
|
fetch: null,
|
|
6303
6332
|
when_drawer_open: "",
|
|
6304
6333
|
when_before_save: ""
|
|
6305
|
-
}), L = T(
|
|
6334
|
+
}), L = T(Um()), ne = T(""), re = T(!1), ie = T([]), z = T([]), ae = m("modules"), oe = (e) => e.id, se = (e, n) => {
|
|
6306
6335
|
t("update:rowKeys", {
|
|
6307
6336
|
keys: e,
|
|
6308
6337
|
rows: U(n)
|
|
@@ -6393,7 +6422,7 @@ var ih = f({
|
|
|
6393
6422
|
width: 180,
|
|
6394
6423
|
render: (e) => [p("div", {}, { default: () => e.updateBy }), p("div", {}, { default: () => fd(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
6395
6424
|
}], ve = (t) => a?.remainingDays < 0 && t === "add" ? !0 : !e.ruleFetch || !j.value || j.value && j.value[0] === "*" ? !1 : !j.value?.includes(t), ye = async (e) => {
|
|
6396
|
-
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await
|
|
6425
|
+
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Wm(N.value, e, () => f.value?.getFormValues());
|
|
6397
6426
|
return x.value = t, {
|
|
6398
6427
|
form: t,
|
|
6399
6428
|
fillingDefaultValue: n,
|
|
@@ -6574,8 +6603,8 @@ var ih = f({
|
|
|
6574
6603
|
};
|
|
6575
6604
|
}
|
|
6576
6605
|
}, Ce = async () => {
|
|
6577
|
-
re.value = !1,
|
|
6578
|
-
let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await
|
|
6606
|
+
re.value = !1, Fm();
|
|
6607
|
+
let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await Gm(N.value, e.child, 0, () => ({}), ae);
|
|
6579
6608
|
!l.value && L.value.index && n.unshift({
|
|
6580
6609
|
title: "#",
|
|
6581
6610
|
key: "index",
|
|
@@ -6644,7 +6673,7 @@ var ih = f({
|
|
|
6644
6673
|
filter: "default",
|
|
6645
6674
|
filterOptionValue: null,
|
|
6646
6675
|
renderFilterMenu: () => p("div", { class: "uz-table-filter" }, [p(R, { onClick: Le }, { default: () => s("Common.expand") }), p(R, { onClick: Re }, { default: () => s("Common.contract") })]),
|
|
6647
|
-
renderExpand: (e) => p(
|
|
6676
|
+
renderExpand: (e) => p(Zm, {
|
|
6648
6677
|
data: a,
|
|
6649
6678
|
value: e
|
|
6650
6679
|
})
|
|
@@ -6670,7 +6699,7 @@ var ih = f({
|
|
|
6670
6699
|
data: JSON.stringify(t)
|
|
6671
6700
|
}).catch(() => null);
|
|
6672
6701
|
}
|
|
6673
|
-
}, { run: De } =
|
|
6702
|
+
}, { run: De } = Dm(Ee), { run: Oe } = Dm((e, t) => {
|
|
6674
6703
|
let n = [];
|
|
6675
6704
|
S.value.forEach((r) => {
|
|
6676
6705
|
r.key !== "action" && r.key !== "index" && r.type !== "expand" && n.push({
|
|
@@ -6710,13 +6739,13 @@ var ih = f({
|
|
|
6710
6739
|
fetch: null,
|
|
6711
6740
|
when_drawer_open: "",
|
|
6712
6741
|
when_before_save: ""
|
|
6713
|
-
}, L.value =
|
|
6742
|
+
}, L.value = Um();
|
|
6714
6743
|
}, Me = (t) => {
|
|
6715
6744
|
let n = it.parse(t.viewJson);
|
|
6716
|
-
y.value = t.tableTitle, N.value =
|
|
6745
|
+
y.value = t.tableTitle, N.value = zm(n.table), P.value = Hf(e.actions || n.action);
|
|
6717
6746
|
let r = Hf(n.suffix || []);
|
|
6718
|
-
F.value = r.filter((e) => e.main).map((e) => (Pe(e), e)), I.value =
|
|
6719
|
-
let i =
|
|
6747
|
+
F.value = r.filter((e) => e.main).map((e) => (Pe(e), e)), I.value = Vm(n.trigger);
|
|
6748
|
+
let i = Um(e.options ?? n.option);
|
|
6720
6749
|
t.tableTitle && i.title && pd(t.tableTitle), L.value = i;
|
|
6721
6750
|
}, Ne = async () => {
|
|
6722
6751
|
v.value = !1, je();
|
|
@@ -6734,7 +6763,7 @@ var ih = f({
|
|
|
6734
6763
|
ne.value = s("Notice.network"), re.value = !0;
|
|
6735
6764
|
return;
|
|
6736
6765
|
}
|
|
6737
|
-
Te(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], F.value = e.suffixes || [], L.value =
|
|
6766
|
+
Te(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], F.value = e.suffixes || [], L.value = Um(e.options), await Ce()) : await Lm(t).then(async (e) => {
|
|
6738
6767
|
Me(e), await Ce();
|
|
6739
6768
|
}).catch((e) => {
|
|
6740
6769
|
ne.value = e?.message || s("Notice.network"), re.value = !0;
|
|
@@ -6852,14 +6881,14 @@ var ih = f({
|
|
|
6852
6881
|
}
|
|
6853
6882
|
};
|
|
6854
6883
|
}
|
|
6855
|
-
}),
|
|
6884
|
+
}), ih = { class: "uz-com-title" }, ah = {
|
|
6856
6885
|
ref: "mRef",
|
|
6857
6886
|
class: "uz-table-m-content"
|
|
6858
|
-
},
|
|
6887
|
+
}, oh = {
|
|
6859
6888
|
key: 1,
|
|
6860
6889
|
class: "uz-transform-fade-in"
|
|
6861
|
-
},
|
|
6862
|
-
function
|
|
6890
|
+
}, sh = { class: "uz-com-title" }, ch = ["data-index"];
|
|
6891
|
+
function lh(t, n, c, d, f, p) {
|
|
6863
6892
|
let m = O("SkeletonLoading"), h = O("NButton"), g = O("Plus"), y = O("NIcon"), b = O("UzActionButton"), x = O("UzSearchMobileBar"), C = O("UzTableMobile"), w = O("Filter"), T = O("NCheckbox"), k = O("GridDots"), ee = O("VueDraggable"), te = O("NPopover"), M = O("UzTableFile"), N = O("UzSearchBar"), I = O("NDataTable"), L = O("NSpin"), R = O("UzTableDrawer");
|
|
6864
6893
|
return S(), a("div", {
|
|
6865
6894
|
class: "uz-table",
|
|
@@ -6924,7 +6953,7 @@ function uh(t, n, c, d, f, p) {
|
|
|
6924
6953
|
key: "0"
|
|
6925
6954
|
} : {
|
|
6926
6955
|
name: "header",
|
|
6927
|
-
fn: P(() => [o("div",
|
|
6956
|
+
fn: P(() => [o("div", ih, A(t.title), 1)]),
|
|
6928
6957
|
key: "1"
|
|
6929
6958
|
}]), 1032, [
|
|
6930
6959
|
"data",
|
|
@@ -6932,7 +6961,7 @@ function uh(t, n, c, d, f, p) {
|
|
|
6932
6961
|
"cache",
|
|
6933
6962
|
"loading",
|
|
6934
6963
|
"onOnUpdate:value"
|
|
6935
|
-
]), o("div",
|
|
6964
|
+
]), o("div", ah, [u(C, {
|
|
6936
6965
|
tableColumns: t.tableCols,
|
|
6937
6966
|
tableData: t.tableData,
|
|
6938
6967
|
tableQueries: t.tableQueries,
|
|
@@ -6950,7 +6979,7 @@ function uh(t, n, c, d, f, p) {
|
|
|
6950
6979
|
"minH",
|
|
6951
6980
|
"maxH",
|
|
6952
6981
|
"onUpdate:rowKeys"
|
|
6953
|
-
])], 512)], 2)) : (S(), a("div",
|
|
6982
|
+
])], 512)], 2)) : (S(), a("div", oh, [u(N, {
|
|
6954
6983
|
data: t.searchData,
|
|
6955
6984
|
id: t.id || t.route.params.id,
|
|
6956
6985
|
cache: t.tableOption.cache,
|
|
@@ -7005,7 +7034,7 @@ function uh(t, n, c, d, f, p) {
|
|
|
7005
7034
|
_: 1
|
|
7006
7035
|
})]),
|
|
7007
7036
|
_: 1
|
|
7008
|
-
})], 8,
|
|
7037
|
+
})], 8, ch)), [[j, !e.hide]])), 128)), u(h, {
|
|
7009
7038
|
block: "",
|
|
7010
7039
|
tertiary: "",
|
|
7011
7040
|
loading: t.loading,
|
|
@@ -7059,7 +7088,7 @@ function uh(t, n, c, d, f, p) {
|
|
|
7059
7088
|
key: "0"
|
|
7060
7089
|
} : {
|
|
7061
7090
|
name: "header",
|
|
7062
|
-
fn: P(() => [o("div",
|
|
7091
|
+
fn: P(() => [o("div", sh, A(t.title), 1)]),
|
|
7063
7092
|
key: "1"
|
|
7064
7093
|
}]), 1032, [
|
|
7065
7094
|
"data",
|
|
@@ -7088,10 +7117,7 @@ function uh(t, n, c, d, f, p) {
|
|
|
7088
7117
|
summary: t.summaryFn,
|
|
7089
7118
|
size: "small",
|
|
7090
7119
|
"on-unstable-column-resize": t.handleColumnResize,
|
|
7091
|
-
"scrollbar-props": {
|
|
7092
|
-
size: 8,
|
|
7093
|
-
trigger: "hover"
|
|
7094
|
-
},
|
|
7120
|
+
"scrollbar-props": { trigger: "hover" },
|
|
7095
7121
|
"expanded-row-keys": t.expandedRowKeys,
|
|
7096
7122
|
"onUpdate:checkedRowKeys": t.handleCheckRowKeys,
|
|
7097
7123
|
"onUpdate:expandedRowKeys": t.handleExpandedRowKeys,
|
|
@@ -7123,7 +7149,7 @@ function uh(t, n, c, d, f, p) {
|
|
|
7123
7149
|
u(R, { ref: "drawerRef" }, null, 512)
|
|
7124
7150
|
], 4);
|
|
7125
7151
|
}
|
|
7126
|
-
var
|
|
7152
|
+
var uh = /*#__PURE__*/ W(rh, [["render", lh]]), dh = f({
|
|
7127
7153
|
name: "UzTableChild",
|
|
7128
7154
|
components: {
|
|
7129
7155
|
NSpin: Ne,
|
|
@@ -7152,13 +7178,13 @@ var dh = /*#__PURE__*/ W(ih, [["render", uh]]), fh = f({
|
|
|
7152
7178
|
},
|
|
7153
7179
|
emits: ["update:value"],
|
|
7154
7180
|
setup(e, { emit: t, expose: r }) {
|
|
7155
|
-
let i = m("emitSuffix"), a = m("modules"), o = m("mainFormValue"), s = m("childFormReload"), c = n(() => s ? s() : 0), { t: l } = Ze(), u = T(), d = T(), f = T(), h = T(!
|
|
7156
|
-
let { formDefaultValue: r, fillingDefaultArray: i } = await
|
|
7157
|
-
return
|
|
7158
|
-
},
|
|
7159
|
-
if (
|
|
7160
|
-
|
|
7161
|
-
let n = await
|
|
7181
|
+
let i = m("emitSuffix"), a = m("modules"), o = m("mainFormValue"), s = m("childFormReload"), c = n(() => s ? s() : 0), { t: l } = Ze(), u = T(), d = T(), f = T(), h = T(!1), _ = T(!0), v = T([]), b = T({ child: [] }), x = T(""), S = T({}), C = T([]), w = T(void 0), E = async (t, n) => {
|
|
7182
|
+
let { formDefaultValue: r, fillingDefaultArray: i } = await Wm(U(n ?? e.item.params.columns), t, void 0, !0);
|
|
7183
|
+
return S.value = r, i;
|
|
7184
|
+
}, D = async (t) => {
|
|
7185
|
+
if (h.value) return;
|
|
7186
|
+
h.value = !0;
|
|
7187
|
+
let n = await E(t), r = U(t).map((e, t) => ({
|
|
7162
7188
|
...e,
|
|
7163
7189
|
...n[t]
|
|
7164
7190
|
}));
|
|
@@ -7170,21 +7196,21 @@ var dh = /*#__PURE__*/ W(ih, [["render", uh]]), fh = f({
|
|
|
7170
7196
|
t.forEach((t) => {
|
|
7171
7197
|
e[t] && typeof e[t] == "string" && (e[t] = JSON.parse(e[t]));
|
|
7172
7198
|
});
|
|
7173
|
-
}), e.item.params.init && r.length === 0 && e.status === 0 && (r = [
|
|
7199
|
+
}), e.item.params.init && r.length === 0 && e.status === 0 && (r = [S.value]), e.item.params.merge && typeof e.item.params.merge == "string") try {
|
|
7174
7200
|
let t = e.item.params.merge;
|
|
7175
7201
|
r = await Function("formValue", "mainFormValue", "POST", t)(r, o, Q);
|
|
7176
7202
|
} catch (e) {
|
|
7177
7203
|
J(e);
|
|
7178
7204
|
}
|
|
7179
|
-
|
|
7180
|
-
|
|
7205
|
+
b.value.child = r, h.value = !1, g(() => {
|
|
7206
|
+
P();
|
|
7181
7207
|
});
|
|
7182
7208
|
} else g(() => {
|
|
7183
|
-
|
|
7209
|
+
P();
|
|
7184
7210
|
});
|
|
7185
|
-
},
|
|
7186
|
-
|
|
7187
|
-
let { tableColumns: r, tableWidth: i } = await
|
|
7211
|
+
}, O = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
|
|
7212
|
+
e.item._suffix && (C.value = e.item._suffix.filter((e) => e.sub)), await E(e.value, t);
|
|
7213
|
+
let { tableColumns: r, tableWidth: i } = await Gm(U(t ?? e.item.params.columns), !0, e.status, () => b.value.child, a, n), s = i;
|
|
7188
7214
|
r.unshift({
|
|
7189
7215
|
title: " ",
|
|
7190
7216
|
key: "index",
|
|
@@ -7219,7 +7245,7 @@ var dh = /*#__PURE__*/ W(ih, [["render", uh]]), fh = f({
|
|
|
7219
7245
|
let r = [];
|
|
7220
7246
|
return e.item.params.childActions && e.item.params.actions && Hf(e.item.params.actions).forEach((e) => {
|
|
7221
7247
|
e.disabled && typeof e.disabled == "string" && (e.disabled = Function("rowData", "rowIndex", e.disabled)(t, n)), r.push(e);
|
|
7222
|
-
}), e.item.params.showDelete && e.status !== 2 && (
|
|
7248
|
+
}), e.item.params.showDelete && e.status !== 2 && (b.value.child.length > 1 && e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly) && r.push({
|
|
7223
7249
|
type: "normal",
|
|
7224
7250
|
color: "error",
|
|
7225
7251
|
key: "delete",
|
|
@@ -7238,8 +7264,8 @@ var dh = /*#__PURE__*/ W(ih, [["render", uh]]), fh = f({
|
|
|
7238
7264
|
let c = [];
|
|
7239
7265
|
r.forEach((e) => {
|
|
7240
7266
|
e.show && c.push(e);
|
|
7241
|
-
}),
|
|
7242
|
-
},
|
|
7267
|
+
}), v.value = c, s += 60, w.value = s;
|
|
7268
|
+
}, ee = (t) => {
|
|
7243
7269
|
if (e.item.params.summary) {
|
|
7244
7270
|
if (typeof e.item.params.summary == "function") return e.item.params.summary(t);
|
|
7245
7271
|
try {
|
|
@@ -7250,12 +7276,12 @@ var dh = /*#__PURE__*/ W(ih, [["render", uh]]), fh = f({
|
|
|
7250
7276
|
}
|
|
7251
7277
|
}
|
|
7252
7278
|
return [];
|
|
7253
|
-
},
|
|
7254
|
-
|
|
7255
|
-
|
|
7279
|
+
}, A = async () => {
|
|
7280
|
+
x.value = "", b.value.child.push(U(S.value)), g(() => {
|
|
7281
|
+
P();
|
|
7256
7282
|
});
|
|
7257
|
-
},
|
|
7258
|
-
|
|
7283
|
+
}, te = async () => {
|
|
7284
|
+
x.value = "";
|
|
7259
7285
|
try {
|
|
7260
7286
|
let t = e.item.params.options;
|
|
7261
7287
|
if (t) {
|
|
@@ -7263,52 +7289,52 @@ var dh = /*#__PURE__*/ W(ih, [["render", uh]]), fh = f({
|
|
|
7263
7289
|
e.item.params.optionsType && i({
|
|
7264
7290
|
open: e.item.params.optionsType,
|
|
7265
7291
|
mainFormValue: o,
|
|
7266
|
-
children: () =>
|
|
7292
|
+
children: () => b.value.child,
|
|
7267
7293
|
callback: async (e) => {
|
|
7268
7294
|
let t = await n(e, o, Q);
|
|
7269
|
-
|
|
7270
|
-
|
|
7295
|
+
b.value.child = [...b.value.child, ...t], g(() => {
|
|
7296
|
+
P();
|
|
7271
7297
|
});
|
|
7272
7298
|
}
|
|
7273
7299
|
});
|
|
7274
7300
|
} else e.item.params.optionsType && i({
|
|
7275
7301
|
open: e.item.params.optionsType,
|
|
7276
7302
|
mainFormValue: o,
|
|
7277
|
-
children: () =>
|
|
7303
|
+
children: () => b.value.child,
|
|
7278
7304
|
callback: async (e) => {
|
|
7279
|
-
|
|
7280
|
-
|
|
7305
|
+
b.value.child = [...b.value.child, ...e], g(() => {
|
|
7306
|
+
P();
|
|
7281
7307
|
});
|
|
7282
7308
|
}
|
|
7283
7309
|
});
|
|
7284
7310
|
} catch (e) {
|
|
7285
7311
|
J(e);
|
|
7286
7312
|
}
|
|
7287
|
-
},
|
|
7313
|
+
}, j = () => {
|
|
7288
7314
|
f.value?.restoreValidation();
|
|
7289
|
-
},
|
|
7290
|
-
let r =
|
|
7315
|
+
}, N = () => (x.value = "", new Promise((t, n) => {
|
|
7316
|
+
let r = b.value.child.filter((e) => !e.delete).length;
|
|
7291
7317
|
if (e.item.form.rule.required && r === 0) {
|
|
7292
|
-
|
|
7318
|
+
x.value = e.item.form.rule.message, n();
|
|
7293
7319
|
return;
|
|
7294
7320
|
}
|
|
7295
7321
|
f.value?.validate((r) => {
|
|
7296
|
-
r ? (
|
|
7322
|
+
r ? (x.value = e.item.form.rule.message, n()) : t();
|
|
7297
7323
|
});
|
|
7298
|
-
})),
|
|
7324
|
+
})), P = () => {
|
|
7299
7325
|
if (e.item.params.draggable && e.status !== 2 && u.value && !d.value) {
|
|
7300
7326
|
let e = u.value.$el.querySelector(".n-data-table-tbody");
|
|
7301
7327
|
e && (d.value = ot.create(e, {
|
|
7302
7328
|
handle: ".uz-drag-handle",
|
|
7303
7329
|
onEnd: ({ oldIndex: e, newIndex: t }) => {
|
|
7304
|
-
d.value?.destroy(), d.value = null,
|
|
7305
|
-
let n = U(
|
|
7330
|
+
d.value?.destroy(), d.value = null, _.value = !1;
|
|
7331
|
+
let n = U(b.value.child), r = n.splice(e, 1)[0];
|
|
7306
7332
|
n.splice(t, 0, r), n = n.map((e, t) => ({
|
|
7307
7333
|
...e,
|
|
7308
7334
|
sort_index: t
|
|
7309
|
-
})),
|
|
7310
|
-
|
|
7311
|
-
|
|
7335
|
+
})), b.value.child = n, g(() => {
|
|
7336
|
+
_.value = !0, setTimeout(() => {
|
|
7337
|
+
P();
|
|
7312
7338
|
}, 0);
|
|
7313
7339
|
});
|
|
7314
7340
|
}
|
|
@@ -7318,168 +7344,158 @@ var dh = /*#__PURE__*/ W(ih, [["render", uh]]), fh = f({
|
|
|
7318
7344
|
return y(() => {
|
|
7319
7345
|
d.value?.destroy(), d.value = null;
|
|
7320
7346
|
}), r({
|
|
7321
|
-
validate:
|
|
7322
|
-
restoreValidation:
|
|
7347
|
+
validate: N,
|
|
7348
|
+
restoreValidation: j
|
|
7323
7349
|
}), M(() => e.item.params.columns, (e, t) => {
|
|
7324
|
-
JSON.stringify(e) !== JSON.stringify(t) &&
|
|
7350
|
+
JSON.stringify(e) !== JSON.stringify(t) && k(e);
|
|
7325
7351
|
}, {
|
|
7326
7352
|
deep: !0,
|
|
7327
7353
|
immediate: !0
|
|
7328
7354
|
}), M(() => e.value, (e) => {
|
|
7329
|
-
JSON.stringify(e) !== JSON.stringify(
|
|
7355
|
+
JSON.stringify(e) !== JSON.stringify(b.value.child) && D(e);
|
|
7330
7356
|
}, {
|
|
7331
7357
|
deep: !0,
|
|
7332
7358
|
immediate: !0
|
|
7333
|
-
}), M(() =>
|
|
7359
|
+
}), M(() => b.value.child, (n) => {
|
|
7334
7360
|
e.status !== 2 && t("update:value", n);
|
|
7335
7361
|
}, { deep: !0 }), M(() => c.value, async () => {
|
|
7336
|
-
await
|
|
7362
|
+
await k(void 0, !0);
|
|
7337
7363
|
}), {
|
|
7338
|
-
|
|
7339
|
-
loading: _,
|
|
7364
|
+
loading: h,
|
|
7340
7365
|
formRef: f,
|
|
7341
7366
|
tableRef: u,
|
|
7342
|
-
columns:
|
|
7343
|
-
tableData:
|
|
7344
|
-
summaryData:
|
|
7345
|
-
message:
|
|
7346
|
-
tableScrollX:
|
|
7347
|
-
tableShow:
|
|
7348
|
-
suffixes:
|
|
7349
|
-
onAdd:
|
|
7350
|
-
onAddFormData:
|
|
7351
|
-
rowClassName:
|
|
7367
|
+
columns: v,
|
|
7368
|
+
tableData: b,
|
|
7369
|
+
summaryData: ee,
|
|
7370
|
+
message: x,
|
|
7371
|
+
tableScrollX: w,
|
|
7372
|
+
tableShow: _,
|
|
7373
|
+
suffixes: C,
|
|
7374
|
+
onAdd: A,
|
|
7375
|
+
onAddFormData: te,
|
|
7376
|
+
rowClassName: O,
|
|
7352
7377
|
doSuffixClick: (e) => {
|
|
7353
7378
|
i({
|
|
7354
7379
|
open: e.optionsType,
|
|
7355
7380
|
mainFormValue: o,
|
|
7356
7381
|
onClick: e.onClick,
|
|
7357
7382
|
optionsSource: e.optionsSource,
|
|
7358
|
-
children: () =>
|
|
7383
|
+
children: () => b.value.child,
|
|
7359
7384
|
callback: () => null
|
|
7360
7385
|
});
|
|
7361
7386
|
}
|
|
7362
7387
|
};
|
|
7363
7388
|
}
|
|
7364
|
-
}), ph = { class: "uz-flex uz-justify-between" }, mh = { class: "uz-com-title" }, hh = {
|
|
7389
|
+
}), fh = { class: "uz-flex-1 uz-w-full" }, ph = { class: "uz-flex uz-justify-between" }, mh = { class: "uz-com-title" }, hh = {
|
|
7365
7390
|
key: 0,
|
|
7366
7391
|
class: "uz-table-asterisk"
|
|
7367
7392
|
}, gh = { class: "uz-flex uz-gap-2" }, _h = { class: "uz-flex uz-justify-end uz-gap-2" };
|
|
7368
7393
|
function vh(t, n, c, d, f, p) {
|
|
7369
|
-
let m = O("UzIcon"), h = O("NIcon"), g = O("NButton"), v = O("Plus"), y = O("NDataTable"), b = O("NForm")
|
|
7370
|
-
return S(),
|
|
7371
|
-
|
|
7372
|
-
|
|
7373
|
-
|
|
7374
|
-
|
|
7375
|
-
|
|
7376
|
-
|
|
7377
|
-
|
|
7378
|
-
|
|
7379
|
-
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
|
|
7394
|
+
let m = O("UzIcon"), h = O("NIcon"), g = O("NButton"), v = O("Plus"), y = O("NDataTable"), b = O("NForm");
|
|
7395
|
+
return S(), a("div", fh, [
|
|
7396
|
+
o("div", ph, [o("div", mh, [l(A(t.item.label) + " ", 1), t.item.form.rule.required ? (S(), a("span", hh, " \xA0* ")) : i("", !0)]), o("div", gh, [
|
|
7397
|
+
t.status === 2 ? i("", !0) : (S(!0), a(e, { key: 0 }, E(t.suffixes, (e) => (S(), r(g, {
|
|
7398
|
+
key: e.key,
|
|
7399
|
+
type: e.color,
|
|
7400
|
+
secondary: "",
|
|
7401
|
+
onClick: (n) => t.doSuffixClick(e)
|
|
7402
|
+
}, s({
|
|
7403
|
+
default: P(() => [l(" " + A(e.buttonText), 1)]),
|
|
7404
|
+
_: 2
|
|
7405
|
+
}, [e.icon ? {
|
|
7406
|
+
name: "icon",
|
|
7407
|
+
fn: P(() => [u(h, null, {
|
|
7408
|
+
default: P(() => [u(m, { icon: e.icon }, null, 8, ["icon"])]),
|
|
7383
7409
|
_: 2
|
|
7384
|
-
},
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
secondary: "",
|
|
7396
|
-
onClick: t.onAddFormData
|
|
7397
|
-
}, {
|
|
7398
|
-
icon: P(() => [u(h, null, {
|
|
7399
|
-
default: P(() => [u(v)]),
|
|
7400
|
-
_: 1
|
|
7401
|
-
})]),
|
|
7402
|
-
default: P(() => [n[0] ||= l(" 从数据新增 ", -1)]),
|
|
7410
|
+
}, 1024)]),
|
|
7411
|
+
key: "0"
|
|
7412
|
+
} : void 0]), 1032, ["type", "onClick"]))), 128)),
|
|
7413
|
+
t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (S(), r(g, {
|
|
7414
|
+
key: 1,
|
|
7415
|
+
type: "success",
|
|
7416
|
+
secondary: "",
|
|
7417
|
+
onClick: t.onAddFormData
|
|
7418
|
+
}, {
|
|
7419
|
+
icon: P(() => [u(h, null, {
|
|
7420
|
+
default: P(() => [u(v)]),
|
|
7403
7421
|
_: 1
|
|
7404
|
-
}
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
default: P(() => [
|
|
7422
|
+
})]),
|
|
7423
|
+
default: P(() => [n[0] ||= l(" 从数据新增 ", -1)]),
|
|
7424
|
+
_: 1
|
|
7425
|
+
}, 8, ["onClick"])) : i("", !0),
|
|
7426
|
+
t.item.params.addButton && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (S(), r(g, {
|
|
7427
|
+
key: 2,
|
|
7428
|
+
type: "success",
|
|
7429
|
+
secondary: "",
|
|
7430
|
+
onClick: t.onAdd
|
|
7431
|
+
}, {
|
|
7432
|
+
icon: P(() => [u(h, null, {
|
|
7433
|
+
default: P(() => [u(v)]),
|
|
7416
7434
|
_: 1
|
|
7417
|
-
}
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7435
|
+
})]),
|
|
7436
|
+
default: P(() => [n[1] ||= l(" 新增 ", -1)]),
|
|
7437
|
+
_: 1
|
|
7438
|
+
}, 8, ["onClick"])) : i("", !0)
|
|
7439
|
+
])]),
|
|
7440
|
+
n[4] ||= o("div", { class: "uz-br" }, null, -1),
|
|
7441
|
+
u(b, {
|
|
7442
|
+
ref: "formRef",
|
|
7443
|
+
"label-width": 80,
|
|
7444
|
+
model: t.tableData,
|
|
7445
|
+
class: "uz-flex uz-flex-col uz-gap-2"
|
|
7446
|
+
}, {
|
|
7447
|
+
default: P(() => [t.tableShow ? (S(), r(y, {
|
|
7448
|
+
key: 0,
|
|
7449
|
+
ref: "tableRef",
|
|
7450
|
+
columns: t.columns,
|
|
7451
|
+
data: t.tableData.child,
|
|
7452
|
+
pagination: !1,
|
|
7453
|
+
loading: t.loading,
|
|
7454
|
+
summary: t.summaryData,
|
|
7455
|
+
"scroll-x": t.tableScrollX,
|
|
7456
|
+
class: _([t.message ? "error-border" : void 0, "uz-table-child"]),
|
|
7457
|
+
size: "small",
|
|
7458
|
+
"row-class-name": t.rowClassName,
|
|
7459
|
+
"scrollbar-props": { trigger: "none" },
|
|
7460
|
+
remote: ""
|
|
7461
|
+
}, null, 8, [
|
|
7462
|
+
"columns",
|
|
7463
|
+
"data",
|
|
7464
|
+
"loading",
|
|
7465
|
+
"summary",
|
|
7466
|
+
"scroll-x",
|
|
7467
|
+
"class",
|
|
7468
|
+
"row-class-name"
|
|
7469
|
+
])) : i("", !0), o("div", _h, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (S(), r(g, {
|
|
7470
|
+
key: 0,
|
|
7471
|
+
type: "success",
|
|
7472
|
+
secondary: "",
|
|
7473
|
+
onClick: t.onAddFormData
|
|
7425
7474
|
}, {
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
ref: "tableRef",
|
|
7429
|
-
columns: t.columns,
|
|
7430
|
-
data: t.tableData.child,
|
|
7431
|
-
pagination: !1,
|
|
7432
|
-
loading: t.loading,
|
|
7433
|
-
summary: t.summaryData,
|
|
7434
|
-
"scroll-x": t.tableScrollX,
|
|
7435
|
-
class: _([t.message ? "error-border" : void 0, "uz-table-child"]),
|
|
7436
|
-
size: "small",
|
|
7437
|
-
"row-class-name": t.rowClassName,
|
|
7438
|
-
"scrollbar-props": {
|
|
7439
|
-
size: 8,
|
|
7440
|
-
trigger: "none"
|
|
7441
|
-
},
|
|
7442
|
-
remote: ""
|
|
7443
|
-
}, null, 8, [
|
|
7444
|
-
"columns",
|
|
7445
|
-
"data",
|
|
7446
|
-
"loading",
|
|
7447
|
-
"summary",
|
|
7448
|
-
"scroll-x",
|
|
7449
|
-
"class",
|
|
7450
|
-
"row-class-name"
|
|
7451
|
-
])) : i("", !0), o("div", _h, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (S(), r(g, {
|
|
7452
|
-
key: 0,
|
|
7453
|
-
type: "success",
|
|
7454
|
-
secondary: "",
|
|
7455
|
-
onClick: t.onAddFormData
|
|
7456
|
-
}, {
|
|
7457
|
-
icon: P(() => [u(h, null, {
|
|
7458
|
-
default: P(() => [u(v)]),
|
|
7459
|
-
_: 1
|
|
7460
|
-
})]),
|
|
7461
|
-
default: P(() => [n[2] ||= l(" 从数据新增 ", -1)]),
|
|
7475
|
+
icon: P(() => [u(h, null, {
|
|
7476
|
+
default: P(() => [u(v)]),
|
|
7462
7477
|
_: 1
|
|
7463
|
-
}
|
|
7464
|
-
|
|
7465
|
-
|
|
7466
|
-
|
|
7467
|
-
|
|
7468
|
-
|
|
7469
|
-
|
|
7470
|
-
|
|
7471
|
-
|
|
7472
|
-
|
|
7473
|
-
default: P(() => [
|
|
7478
|
+
})]),
|
|
7479
|
+
default: P(() => [n[2] ||= l(" 从数据新增 ", -1)]),
|
|
7480
|
+
_: 1
|
|
7481
|
+
}, 8, ["onClick"])) : i("", !0), t.item.params.addButton && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (S(), r(g, {
|
|
7482
|
+
key: 1,
|
|
7483
|
+
type: "success",
|
|
7484
|
+
secondary: "",
|
|
7485
|
+
onClick: t.onAdd
|
|
7486
|
+
}, {
|
|
7487
|
+
icon: P(() => [u(h, null, {
|
|
7488
|
+
default: P(() => [u(v)]),
|
|
7474
7489
|
_: 1
|
|
7475
|
-
}
|
|
7490
|
+
})]),
|
|
7491
|
+
default: P(() => [n[3] ||= l(" 新增 ", -1)]),
|
|
7476
7492
|
_: 1
|
|
7477
|
-
}, 8, ["
|
|
7478
|
-
|
|
7479
|
-
|
|
7480
|
-
|
|
7493
|
+
}, 8, ["onClick"])) : i("", !0)])]),
|
|
7494
|
+
_: 1
|
|
7495
|
+
}, 8, ["model"])
|
|
7496
|
+
]);
|
|
7481
7497
|
}
|
|
7482
|
-
var yh = /*#__PURE__*/ W(
|
|
7498
|
+
var yh = /*#__PURE__*/ W(dh, [["render", vh]]), bh = f({
|
|
7483
7499
|
name: "UzTableQuestChild",
|
|
7484
7500
|
components: { NDataTable: se },
|
|
7485
7501
|
props: {
|
|
@@ -7507,7 +7523,7 @@ var yh = /*#__PURE__*/ W(fh, [["render", vh]]), bh = f({
|
|
|
7507
7523
|
}), o.value = t, i.value = !1;
|
|
7508
7524
|
}
|
|
7509
7525
|
}, l = async (i) => {
|
|
7510
|
-
let { tableColumns: c, tableWidth: l } = await
|
|
7526
|
+
let { tableColumns: c, tableWidth: l } = await Gm(U(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
|
|
7511
7527
|
c.unshift({
|
|
7512
7528
|
title: " ",
|
|
7513
7529
|
key: "index",
|
|
@@ -7596,10 +7612,7 @@ function wh(e, t, n, r, i, s) {
|
|
|
7596
7612
|
class: "uz-table-child",
|
|
7597
7613
|
size: "small",
|
|
7598
7614
|
"max-height": "600px",
|
|
7599
|
-
"scrollbar-props": {
|
|
7600
|
-
size: 8,
|
|
7601
|
-
trigger: "none"
|
|
7602
|
-
},
|
|
7615
|
+
"scrollbar-props": { trigger: "none" },
|
|
7603
7616
|
remote: ""
|
|
7604
7617
|
}, null, 8, [
|
|
7605
7618
|
"columns",
|
|
@@ -7681,11 +7694,11 @@ var Th = /*#__PURE__*/ W(bh, [["render", wh]]), Eh = f({
|
|
|
7681
7694
|
linkFn: t
|
|
7682
7695
|
};
|
|
7683
7696
|
let r = e.split(".")[0];
|
|
7684
|
-
|
|
7697
|
+
Lm(r).then((e) => {
|
|
7685
7698
|
g(async () => {
|
|
7686
7699
|
let t = it.parse(e.viewJson);
|
|
7687
|
-
d.value =
|
|
7688
|
-
let { form: i } = await
|
|
7700
|
+
d.value = Um(t.option), u.value = !0;
|
|
7701
|
+
let { form: i } = await Wm(zm(t.table), n);
|
|
7689
7702
|
y.value = t.trigger, n && w(n);
|
|
7690
7703
|
let a = X(`tables_cache_link_${r}`, !1);
|
|
7691
7704
|
a && (c.value = a), g(() => {
|
|
@@ -7739,13 +7752,14 @@ var Th = /*#__PURE__*/ W(bh, [["render", wh]]), Eh = f({
|
|
|
7739
7752
|
_.value = 1, h.value = e;
|
|
7740
7753
|
});
|
|
7741
7754
|
return;
|
|
7742
|
-
}
|
|
7755
|
+
}
|
|
7756
|
+
{
|
|
7743
7757
|
let n = l.value.link.split(".")[0];
|
|
7744
7758
|
xf({
|
|
7745
7759
|
tableId: n,
|
|
7746
7760
|
...e
|
|
7747
7761
|
}).then(() => {
|
|
7748
|
-
|
|
7762
|
+
Fm(), bf({ tableId: n }).then((e) => {
|
|
7749
7763
|
let r = l.value.link.split("."), i;
|
|
7750
7764
|
if (l.value.linkFn) {
|
|
7751
7765
|
let t = l.value.linkFn;
|
|
@@ -8415,7 +8429,9 @@ function qh(t, n, i, s, c, d) {
|
|
|
8415
8429
|
u(v, {
|
|
8416
8430
|
columns: t.columns,
|
|
8417
8431
|
data: t.coldata,
|
|
8418
|
-
loading: t.loading
|
|
8432
|
+
loading: t.loading,
|
|
8433
|
+
"min-height": "160",
|
|
8434
|
+
"max-height": "500"
|
|
8419
8435
|
}, null, 8, [
|
|
8420
8436
|
"columns",
|
|
8421
8437
|
"data",
|
|
@@ -8425,7 +8441,7 @@ function qh(t, n, i, s, c, d) {
|
|
|
8425
8441
|
_: 1
|
|
8426
8442
|
}, 8, ["show", "on-after-leave"])], 64);
|
|
8427
8443
|
}
|
|
8428
|
-
var Jh = /*#__PURE__*/ W(Uh, [["render", qh], ["__scopeId", "data-v-
|
|
8444
|
+
var Jh = /*#__PURE__*/ W(Uh, [["render", qh], ["__scopeId", "data-v-669e3267"]]), $ = w({
|
|
8429
8445
|
page: {
|
|
8430
8446
|
label: "首页",
|
|
8431
8447
|
key: "/",
|
|
@@ -8553,7 +8569,10 @@ function ng(t, n, i, o, c, d) {
|
|
|
8553
8569
|
name: e.key,
|
|
8554
8570
|
tab: e.label,
|
|
8555
8571
|
closable: e.closable
|
|
8556
|
-
},
|
|
8572
|
+
}, {
|
|
8573
|
+
default: P(() => [l(A(e.label), 1)]),
|
|
8574
|
+
_: 2
|
|
8575
|
+
}, 1032, [
|
|
8557
8576
|
"name",
|
|
8558
8577
|
"tab",
|
|
8559
8578
|
"closable"
|
|
@@ -8570,7 +8589,7 @@ function ng(t, n, i, o, c, d) {
|
|
|
8570
8589
|
]);
|
|
8571
8590
|
}
|
|
8572
8591
|
var rg = /*#__PURE__*/ W(tg, [["render", ng]]), ig = "#007AFF", ag = "#0A84FF", og = "#FF9500", sg = "#FF9F0A", cg = "#28CD41", lg = "#32D74B", ug = "#FFCC00", dg = "#FFD60A", fg = "#FF3B30", pg = "#FF453A";
|
|
8573
|
-
H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover = ag, H.common.infoColor = "#FF9F0A", H.common.infoColorHover = sg, H.common.successColor = "#32D74B", H.common.successColorHover = lg, H.common.warningColor = "#FFD60A", H.common.successColorHover = dg, H.common.errorColor = "#FF453A", H.common.errorColorHover = pg, H.common.borderRadius = "var(--borderRadius)", H.common.inputColor = "rgba(var(--input))", H.common.borderColor = "rgba(var(--border), 0.7)", H.DataTable.tdColor = "#2d2d31";
|
|
8592
|
+
H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover = ag, H.common.infoColor = "#FF9F0A", H.common.infoColorHover = sg, H.common.successColor = "#32D74B", H.common.successColorHover = lg, H.common.warningColor = "#FFD60A", H.common.successColorHover = dg, H.common.errorColor = "#FF453A", H.common.errorColorHover = pg, H.common.borderRadius = "var(--borderRadius)", H.common.inputColor = "rgba(var(--input))", H.common.borderColor = "rgba(var(--border), 0.7)", H.DataTable.tdColor = "#2d2d31", H.Scrollbar.width = "8px", H.Scrollbar.height = "8px", H.Scrollbar.borderRadius = "8px", H.Scrollbar.color = "#686873";
|
|
8574
8593
|
var mg = {
|
|
8575
8594
|
common: {
|
|
8576
8595
|
inputColor: "rgba(var(--input))",
|
|
@@ -8602,7 +8621,13 @@ var mg = {
|
|
|
8602
8621
|
Tag: { borderRadius: "var(--borderRadius)" },
|
|
8603
8622
|
DatePicker: { itemBorderRadius: "var(--borderRadius)" },
|
|
8604
8623
|
Notification: { borderRadius: "var(--borderRadius)" },
|
|
8605
|
-
Radio: { boxShadow: "inset 0 0 0 1px rgb(var(--primary))" }
|
|
8624
|
+
Radio: { boxShadow: "inset 0 0 0 1px rgb(var(--primary))" },
|
|
8625
|
+
Scrollbar: {
|
|
8626
|
+
width: "8px",
|
|
8627
|
+
height: "8px",
|
|
8628
|
+
borderRadius: "8px",
|
|
8629
|
+
color: "#c0c0c0"
|
|
8630
|
+
}
|
|
8606
8631
|
}, hg = H, gg = f({
|
|
8607
8632
|
name: "UzWrap",
|
|
8608
8633
|
components: { NConfigProvider: oe },
|
|
@@ -9081,20 +9106,20 @@ var qg = /*#__PURE__*/ W(xg, [["render", Kg], ["__scopeId", "data-v-c7224ff5"]])
|
|
|
9081
9106
|
Users: () => Rl,
|
|
9082
9107
|
UzActionButton: () => ft,
|
|
9083
9108
|
UzBack: () => Gf,
|
|
9084
|
-
UzCamera: () =>
|
|
9085
|
-
UzCircle: () =>
|
|
9086
|
-
UzDraggableForm: () =>
|
|
9087
|
-
UzForm: () =>
|
|
9088
|
-
UzFormItem: () =>
|
|
9089
|
-
UzFormItemImage: () =>
|
|
9090
|
-
UzFormItemTimesPicker: () =>
|
|
9091
|
-
UzFormItemUpload: () =>
|
|
9109
|
+
UzCamera: () => dm,
|
|
9110
|
+
UzCircle: () => jp,
|
|
9111
|
+
UzDraggableForm: () => Wp,
|
|
9112
|
+
UzForm: () => zp,
|
|
9113
|
+
UzFormItem: () => Fp,
|
|
9114
|
+
UzFormItemImage: () => em,
|
|
9115
|
+
UzFormItemTimesPicker: () => im,
|
|
9116
|
+
UzFormItemUpload: () => Xp,
|
|
9092
9117
|
UzIcon: () => Ru,
|
|
9093
9118
|
UzOcr: () => qg,
|
|
9094
|
-
UzSearchBar: () =>
|
|
9095
|
-
UzSearchMobileBar: () =>
|
|
9096
|
-
UzSpin: () =>
|
|
9097
|
-
UzTable: () =>
|
|
9119
|
+
UzSearchBar: () => bm,
|
|
9120
|
+
UzSearchMobileBar: () => Em,
|
|
9121
|
+
UzSpin: () => Jm,
|
|
9122
|
+
UzTable: () => uh,
|
|
9098
9123
|
UzTableChild: () => yh,
|
|
9099
9124
|
UzTableDrawer: () => Mh,
|
|
9100
9125
|
UzTableFile: () => Jh,
|
|
@@ -9109,19 +9134,19 @@ var qg = /*#__PURE__*/ W(xg, [["render", Kg], ["__scopeId", "data-v-c7224ff5"]])
|
|
|
9109
9134
|
fnAddThumbnail: () => Qh,
|
|
9110
9135
|
fnClearAllThumbnail: () => eg,
|
|
9111
9136
|
fnDeleteThumbnail: () => $h,
|
|
9112
|
-
fnGetTableData: () =>
|
|
9113
|
-
fnOptionReduction: () =>
|
|
9114
|
-
fnOptionSimplify: () =>
|
|
9115
|
-
fnPrepareFormData: () =>
|
|
9116
|
-
fnPrepareTableData: () =>
|
|
9137
|
+
fnGetTableData: () => Lm,
|
|
9138
|
+
fnOptionReduction: () => Um,
|
|
9139
|
+
fnOptionSimplify: () => Hm,
|
|
9140
|
+
fnPrepareFormData: () => Wm,
|
|
9141
|
+
fnPrepareTableData: () => Gm,
|
|
9117
9142
|
fnRenderAction: () => Pf,
|
|
9118
9143
|
fnSetLang: () => Hu,
|
|
9119
9144
|
fnSetTheme: () => Uu,
|
|
9120
9145
|
fnSetThumbnail: () => Xh,
|
|
9121
|
-
fnTableReduction: () =>
|
|
9122
|
-
fnTableSimplify: () =>
|
|
9123
|
-
fnTriggersReduction: () =>
|
|
9124
|
-
fnTriggersSimplify: () =>
|
|
9146
|
+
fnTableReduction: () => zm,
|
|
9147
|
+
fnTableSimplify: () => Rm,
|
|
9148
|
+
fnTriggersReduction: () => Vm,
|
|
9149
|
+
fnTriggersSimplify: () => Bm,
|
|
9125
9150
|
i18n: () => K
|
|
9126
9151
|
}), Yg = 3840, Xg = 2160, Zg = w({ scale: 1 });
|
|
9127
9152
|
function Qg(e, t) {
|
|
@@ -9209,7 +9234,7 @@ function r_(e, t, n) {
|
|
|
9209
9234
|
p();
|
|
9210
9235
|
}, n?.pollingInterval));
|
|
9211
9236
|
};
|
|
9212
|
-
if (n?.retry && n.pollingInterval === void 0 && (u.value = n.retry.retryCount || 3, d.value = n.retry.retryInterval ||
|
|
9237
|
+
if (n?.retry && n.pollingInterval === void 0 && (u.value = n.retry.retryCount || 3, d.value = n.retry.retryInterval || 8e3), n?.initialData && m(n.initialData()), n === void 0 || n.initialData === void 0 || n.cache === void 0 || n.cache === !0) try {
|
|
9213
9238
|
let e = X(r, !1);
|
|
9214
9239
|
e && m(e);
|
|
9215
9240
|
} catch {
|
|
@@ -9231,7 +9256,7 @@ function r_(e, t, n) {
|
|
|
9231
9256
|
}
|
|
9232
9257
|
//#endregion
|
|
9233
9258
|
//#region package.json
|
|
9234
|
-
var i_ = "0.1.
|
|
9259
|
+
var i_ = "0.1.99", a_;
|
|
9235
9260
|
async function o_() {
|
|
9236
9261
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
9237
9262
|
method: "HEAD",
|
|
@@ -9246,7 +9271,7 @@ async function s_() {
|
|
|
9246
9271
|
async function c_() {
|
|
9247
9272
|
a_ = await o_(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
|
|
9248
9273
|
s_();
|
|
9249
|
-
},
|
|
9274
|
+
}, 6e4);
|
|
9250
9275
|
}
|
|
9251
9276
|
//#endregion
|
|
9252
9277
|
//#region components/create.ts
|
|
@@ -9275,4 +9300,4 @@ function l_({ components: e = [] } = {}) {
|
|
|
9275
9300
|
//#region components/preset.ts
|
|
9276
9301
|
var u_ = l_({ components: Object.keys(Jg).map((e) => Jg[e]) }), d_ = u_.install;
|
|
9277
9302
|
//#endregion
|
|
9278
|
-
export { gt as AccessPoint, bt as Activity, wt as Adjustments, Ot as AdjustmentsHorizontal, Mt as Affiliate, It as Alarm, Bt as AlertCircle, Wt as ApiApp, Qt as AppWindow, Jt as Apps, nn as Archive, sn as ArrowNarrowLeft, dn as AspectRatio, hn as Atom, yn as Atom2, Cn as Award, gf as BLOB, Dn as Barcode, jn as Basket, Fn as Bell, zn as Bluetooth, Un as Book2, wu as Books, qn as Box, Zn as BrandAsana, Iu as BrandStackoverflow, tr as Briefcase, ar as Building, lr as BuildingArch, cu as BuildingWarehouse, _f as CUSTOM, _r as Calculator, xr as Calendar, Tr as CalendarPlus, kr as CalendarStats, Nr as Camera, Lr as CaretDown, Vr as CaretUp, Gr as ChartArea, Yr as ChartBar, $r as ChartBubble, ri as ChartDonut, si as ChartLine, di as ChartPie, hi as ChartRadar, eu as CheckMark, yi as Checkbox, Ci as CheckupList, Xl as CircleMinus, Di as Clipboard, ji as ClipboardCheck, Fi as ClipboardList, zi as ClipboardPlus, Ui as Clock, qi as Cloud, Zi as CloudDownload, ta as CloudUpload, aa as Command, Ou as Confetti, gu as Container, la as Copy, pr as Cpu, pa as CreditCard, _a as Crosshair, xa as CurrencyYen, bu as Dashboard, Ta as Database, ka as DatabaseExport, Na as DatabaseImport, La as DeviceAnalytics, Va as DeviceDesktop, Ga as DeviceDesktopAnalytics, Ya as DeviceLaptop, $a as DeviceMobile, ro as Diamond, so as Dots, fo as DotsVertical, go as Edit, bo as Eraser, wo as Eye, vf as FILE, Oo as File, Mo as FileAlert, Io as FileAnalytics, Bo as FileText, Wo as Filter, hf as GET, Jo as GitCompare, Qo as GitPullRequest, ns as GridDots, os as Home, zu as IconList, us as Id, ms as LayoutSidebarLeftCollapse, vs as LayoutSidebarLeftExpand, Ss as Link, Es as List, As as ListCheck, Ps as ListDetails, Rs as Mail, Hs as Map, Ks as MapPin, fu as Menu2, iu as Message2, Mu as MinusRound, Xs as MoonStars, Q as POST, ec as Paperclip, ic as Photo, cc as PhotoOff, fc as Plus, gc as Presentation, bc as PresentationAnalytics, wc as Printer, Oc as Qrcode, Mc as Refresh, Ic as Report, Bc as ReportAnalytics, Wc as ReportMoney, Jc as ReportSearch, Qc as Search, nl as Settings, ol as SmartHome, ul as Sun, ml as TransferIn, vl as TransferOut, Sl as Trash, El as User, Kl as UserCircle, Al as UserMinus, Pl as UserPlus, Rl as Users, ft as UzActionButton, Gf as UzBack,
|
|
9303
|
+
export { gt as AccessPoint, bt as Activity, wt as Adjustments, Ot as AdjustmentsHorizontal, Mt as Affiliate, It as Alarm, Bt as AlertCircle, Wt as ApiApp, Qt as AppWindow, Jt as Apps, nn as Archive, sn as ArrowNarrowLeft, dn as AspectRatio, hn as Atom, yn as Atom2, Cn as Award, gf as BLOB, Dn as Barcode, jn as Basket, Fn as Bell, zn as Bluetooth, Un as Book2, wu as Books, qn as Box, Zn as BrandAsana, Iu as BrandStackoverflow, tr as Briefcase, ar as Building, lr as BuildingArch, cu as BuildingWarehouse, _f as CUSTOM, _r as Calculator, xr as Calendar, Tr as CalendarPlus, kr as CalendarStats, Nr as Camera, Lr as CaretDown, Vr as CaretUp, Gr as ChartArea, Yr as ChartBar, $r as ChartBubble, ri as ChartDonut, si as ChartLine, di as ChartPie, hi as ChartRadar, eu as CheckMark, yi as Checkbox, Ci as CheckupList, Xl as CircleMinus, Di as Clipboard, ji as ClipboardCheck, Fi as ClipboardList, zi as ClipboardPlus, Ui as Clock, qi as Cloud, Zi as CloudDownload, ta as CloudUpload, aa as Command, Ou as Confetti, gu as Container, la as Copy, pr as Cpu, pa as CreditCard, _a as Crosshair, xa as CurrencyYen, bu as Dashboard, Ta as Database, ka as DatabaseExport, Na as DatabaseImport, La as DeviceAnalytics, Va as DeviceDesktop, Ga as DeviceDesktopAnalytics, Ya as DeviceLaptop, $a as DeviceMobile, ro as Diamond, so as Dots, fo as DotsVertical, go as Edit, bo as Eraser, wo as Eye, vf as FILE, Oo as File, Mo as FileAlert, Io as FileAnalytics, Bo as FileText, Wo as Filter, hf as GET, Jo as GitCompare, Qo as GitPullRequest, ns as GridDots, os as Home, zu as IconList, us as Id, ms as LayoutSidebarLeftCollapse, vs as LayoutSidebarLeftExpand, Ss as Link, Es as List, As as ListCheck, Ps as ListDetails, Rs as Mail, Hs as Map, Ks as MapPin, fu as Menu2, iu as Message2, Mu as MinusRound, Xs as MoonStars, Q as POST, ec as Paperclip, ic as Photo, cc as PhotoOff, fc as Plus, gc as Presentation, bc as PresentationAnalytics, wc as Printer, Oc as Qrcode, Mc as Refresh, Ic as Report, Bc as ReportAnalytics, Wc as ReportMoney, Jc as ReportSearch, Qc as Search, nl as Settings, ol as SmartHome, ul as Sun, ml as TransferIn, vl as TransferOut, Sl as Trash, El as User, Kl as UserCircle, Al as UserMinus, Pl as UserPlus, Rl as Users, ft as UzActionButton, Gf as UzBack, dm as UzCamera, jp as UzCircle, Wp as UzDraggableForm, zp as UzForm, Fp as UzFormItem, em as UzFormItemImage, im as UzFormItemTimesPicker, Xp as UzFormItemUpload, Ru as UzIcon, qg as UzOcr, bm as UzSearchBar, Em as UzSearchMobileBar, Jm as UzSpin, uh as UzTable, yh as UzTableChild, Mh as UzTableDrawer, Jh as UzTableFile, Hh as UzTableMobile, Th as UzTableQuestChild, rg as UzThumbnail, vg as UzWrap, Hl as X, q as commonStore, l_ as create, hg as darkTheme, u_ as default, Hf as fnActionReduction, Vf as fnActionSimplify, Qh as fnAddThumbnail, mf as fnCancelFetch, eg as fnClearAllThumbnail, $g as fnComputedScale, Bu as fnCreateRouter, sd as fnDelStorage, ld as fnDelStorageAll, cd as fnDelStorageByPrefix, $h as fnDeleteThumbnail, od as fnDialog, J as fnErrorLog, yd as fnFilterByPinyinInitials, fd as fnFormatTime, gd as fnFormatUnits, hd as fnFullScreen, X as fnGetStorage, Lm as fnGetTableData, e_ as fnListenerScale, ad as fnNotification, Um as fnOptionReduction, Hm as fnOptionSimplify, dd as fnPageModel2Naive, Wm as fnPrepareFormData, Gm as fnPrepareTableData, Pf as fnRenderAction, ud as fnScrollTop, Hu as fnSetLang, Qg as fnSetNormalWidthAndHeight, Y as fnSetStorage, Uu as fnSetTheme, Xh as fnSetThumbnail, zm as fnTableReduction, Rm as fnTableSimplify, md as fnThrottle, pd as fnTitle, Vm as fnTriggersReduction, Bm as fnTriggersSimplify, K as i18n, d_ as install, mg as lightTheme, bd as mergeColumns, G as router, Zg as scaleStore, Dm as useDebounceFn, n_ as useLocalStorage, r_ as useQuery, t_ as useThrottleFn };
|