@unizhen/ui 0.1.97 → 0.1.98
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 -8459
- 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 +577 -545
- 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,
|
|
@@ -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,
|
|
@@ -7153,7 +7179,7 @@ var dh = /*#__PURE__*/ W(ih, [["render", uh]]), fh = f({
|
|
|
7153
7179
|
emits: ["update:value"],
|
|
7154
7180
|
setup(e, { emit: t, expose: r }) {
|
|
7155
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(!0), _ = T(!1), v = T(!0), b = T([]), x = T({ child: [] }), S = T(""), C = T({}), w = T([]), E = T(void 0), D = async (t, n) => {
|
|
7156
|
-
let { formDefaultValue: r, fillingDefaultArray: i } = await
|
|
7182
|
+
let { formDefaultValue: r, fillingDefaultArray: i } = await Wm(U(n ?? e.item.params.columns), t, void 0, !0);
|
|
7157
7183
|
return C.value = r, i;
|
|
7158
7184
|
}, O = async (t) => {
|
|
7159
7185
|
if (_.value) return;
|
|
@@ -7184,7 +7210,7 @@ var dh = /*#__PURE__*/ W(ih, [["render", uh]]), fh = f({
|
|
|
7184
7210
|
});
|
|
7185
7211
|
}, k = (e) => e.delete ? "uz-table-child-delete" : "", ee = async (t, n = !1) => {
|
|
7186
7212
|
h.value = !0, e.item._suffix && (w.value = e.item._suffix.filter((e) => e.sub)), await D(e.value, t);
|
|
7187
|
-
let { tableColumns: r, tableWidth: i } = await
|
|
7213
|
+
let { tableColumns: r, tableWidth: i } = await Gm(U(t ?? e.item.params.columns), !0, e.status, () => x.value.child, a, n), s = i;
|
|
7188
7214
|
r.unshift({
|
|
7189
7215
|
title: " ",
|
|
7190
7216
|
key: "index",
|
|
@@ -7361,18 +7387,18 @@ var dh = /*#__PURE__*/ W(ih, [["render", uh]]), fh = f({
|
|
|
7361
7387
|
}
|
|
7362
7388
|
};
|
|
7363
7389
|
}
|
|
7364
|
-
}),
|
|
7390
|
+
}), fh = { class: "uz-flex uz-justify-between" }, ph = { class: "uz-com-title" }, mh = {
|
|
7365
7391
|
key: 0,
|
|
7366
7392
|
class: "uz-table-asterisk"
|
|
7367
|
-
},
|
|
7368
|
-
function
|
|
7393
|
+
}, hh = { class: "uz-flex uz-gap-2" }, gh = { class: "uz-flex uz-justify-end uz-gap-2" };
|
|
7394
|
+
function _h(t, n, c, d, f, p) {
|
|
7369
7395
|
let m = O("UzIcon"), h = O("NIcon"), g = O("NButton"), v = O("Plus"), y = O("NDataTable"), b = O("NForm"), x = O("NSpin");
|
|
7370
7396
|
return S(), r(x, {
|
|
7371
7397
|
show: t.spin,
|
|
7372
7398
|
class: "uz-flex-1 uz-w-full"
|
|
7373
7399
|
}, {
|
|
7374
7400
|
default: P(() => [
|
|
7375
|
-
o("div",
|
|
7401
|
+
o("div", fh, [o("div", ph, [l(A(t.item.label) + " ", 1), t.item.form.rule.required ? (S(), a("span", mh, " \xA0* ")) : i("", !0)]), o("div", hh, [
|
|
7376
7402
|
t.status === 2 ? i("", !0) : (S(!0), a(e, { key: 0 }, E(t.suffixes, (e) => (S(), r(g, {
|
|
7377
7403
|
key: e.key,
|
|
7378
7404
|
type: e.color,
|
|
@@ -7435,10 +7461,7 @@ function vh(t, n, c, d, f, p) {
|
|
|
7435
7461
|
class: _([t.message ? "error-border" : void 0, "uz-table-child"]),
|
|
7436
7462
|
size: "small",
|
|
7437
7463
|
"row-class-name": t.rowClassName,
|
|
7438
|
-
"scrollbar-props": {
|
|
7439
|
-
size: 8,
|
|
7440
|
-
trigger: "none"
|
|
7441
|
-
},
|
|
7464
|
+
"scrollbar-props": { trigger: "none" },
|
|
7442
7465
|
remote: ""
|
|
7443
7466
|
}, null, 8, [
|
|
7444
7467
|
"columns",
|
|
@@ -7448,7 +7471,7 @@ function vh(t, n, c, d, f, p) {
|
|
|
7448
7471
|
"scroll-x",
|
|
7449
7472
|
"class",
|
|
7450
7473
|
"row-class-name"
|
|
7451
|
-
])) : i("", !0), o("div",
|
|
7474
|
+
])) : i("", !0), o("div", gh, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (S(), r(g, {
|
|
7452
7475
|
key: 0,
|
|
7453
7476
|
type: "success",
|
|
7454
7477
|
secondary: "",
|
|
@@ -7479,7 +7502,7 @@ function vh(t, n, c, d, f, p) {
|
|
|
7479
7502
|
_: 1
|
|
7480
7503
|
}, 8, ["show"]);
|
|
7481
7504
|
}
|
|
7482
|
-
var
|
|
7505
|
+
var vh = /*#__PURE__*/ W(dh, [["render", _h]]), yh = f({
|
|
7483
7506
|
name: "UzTableQuestChild",
|
|
7484
7507
|
components: { NDataTable: se },
|
|
7485
7508
|
props: {
|
|
@@ -7507,7 +7530,7 @@ var yh = /*#__PURE__*/ W(fh, [["render", vh]]), bh = f({
|
|
|
7507
7530
|
}), o.value = t, i.value = !1;
|
|
7508
7531
|
}
|
|
7509
7532
|
}, l = async (i) => {
|
|
7510
|
-
let { tableColumns: c, tableWidth: l } = await
|
|
7533
|
+
let { tableColumns: c, tableWidth: l } = await Gm(U(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
|
|
7511
7534
|
c.unshift({
|
|
7512
7535
|
title: " ",
|
|
7513
7536
|
key: "index",
|
|
@@ -7581,11 +7604,11 @@ var yh = /*#__PURE__*/ W(fh, [["render", vh]]), bh = f({
|
|
|
7581
7604
|
tableScrollX: s
|
|
7582
7605
|
};
|
|
7583
7606
|
}
|
|
7584
|
-
}),
|
|
7585
|
-
function
|
|
7607
|
+
}), bh = { class: "uz-flex-1 uz-w-full" }, xh = { class: "uz-flex uz-justify-between" }, Sh = { class: "uz-com-title" };
|
|
7608
|
+
function Ch(e, t, n, r, i, s) {
|
|
7586
7609
|
let c = O("NDataTable"), l = O("UzTableDrawer");
|
|
7587
|
-
return S(), a("div",
|
|
7588
|
-
o("div",
|
|
7610
|
+
return S(), a("div", bh, [
|
|
7611
|
+
o("div", xh, [o("div", Sh, A(e.item.label), 1)]),
|
|
7589
7612
|
t[0] ||= o("div", { class: "uz-br" }, null, -1),
|
|
7590
7613
|
u(c, {
|
|
7591
7614
|
columns: e.columns,
|
|
@@ -7596,10 +7619,7 @@ function wh(e, t, n, r, i, s) {
|
|
|
7596
7619
|
class: "uz-table-child",
|
|
7597
7620
|
size: "small",
|
|
7598
7621
|
"max-height": "600px",
|
|
7599
|
-
"scrollbar-props": {
|
|
7600
|
-
size: 8,
|
|
7601
|
-
trigger: "none"
|
|
7602
|
-
},
|
|
7622
|
+
"scrollbar-props": { trigger: "none" },
|
|
7603
7623
|
remote: ""
|
|
7604
7624
|
}, null, 8, [
|
|
7605
7625
|
"columns",
|
|
@@ -7610,7 +7630,7 @@ function wh(e, t, n, r, i, s) {
|
|
|
7610
7630
|
u(l, { ref: "drawerRef" }, null, 512)
|
|
7611
7631
|
]);
|
|
7612
7632
|
}
|
|
7613
|
-
var
|
|
7633
|
+
var wh = /*#__PURE__*/ W(yh, [["render", Ch]]), Th = f({
|
|
7614
7634
|
name: "UzTableDrawer",
|
|
7615
7635
|
components: {
|
|
7616
7636
|
NButton: R,
|
|
@@ -7681,11 +7701,11 @@ var Th = /*#__PURE__*/ W(bh, [["render", wh]]), Eh = f({
|
|
|
7681
7701
|
linkFn: t
|
|
7682
7702
|
};
|
|
7683
7703
|
let r = e.split(".")[0];
|
|
7684
|
-
|
|
7704
|
+
Lm(r).then((e) => {
|
|
7685
7705
|
g(async () => {
|
|
7686
7706
|
let t = it.parse(e.viewJson);
|
|
7687
|
-
d.value =
|
|
7688
|
-
let { form: i } = await
|
|
7707
|
+
d.value = Um(t.option), u.value = !0;
|
|
7708
|
+
let { form: i } = await Wm(zm(t.table), n);
|
|
7689
7709
|
y.value = t.trigger, n && w(n);
|
|
7690
7710
|
let a = X(`tables_cache_link_${r}`, !1);
|
|
7691
7711
|
a && (c.value = a), g(() => {
|
|
@@ -7739,13 +7759,14 @@ var Th = /*#__PURE__*/ W(bh, [["render", wh]]), Eh = f({
|
|
|
7739
7759
|
_.value = 1, h.value = e;
|
|
7740
7760
|
});
|
|
7741
7761
|
return;
|
|
7742
|
-
}
|
|
7762
|
+
}
|
|
7763
|
+
{
|
|
7743
7764
|
let n = l.value.link.split(".")[0];
|
|
7744
7765
|
xf({
|
|
7745
7766
|
tableId: n,
|
|
7746
7767
|
...e
|
|
7747
7768
|
}).then(() => {
|
|
7748
|
-
|
|
7769
|
+
Fm(), bf({ tableId: n }).then((e) => {
|
|
7749
7770
|
let r = l.value.link.split("."), i;
|
|
7750
7771
|
if (l.value.linkFn) {
|
|
7751
7772
|
let t = l.value.linkFn;
|
|
@@ -7778,11 +7799,11 @@ var Th = /*#__PURE__*/ W(bh, [["render", wh]]), Eh = f({
|
|
|
7778
7799
|
}
|
|
7779
7800
|
};
|
|
7780
7801
|
}
|
|
7781
|
-
}),
|
|
7802
|
+
}), Eh = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, Dh = {
|
|
7782
7803
|
key: 0,
|
|
7783
7804
|
class: "uz-grid uz-grid-cols-2 uz-gap-2"
|
|
7784
|
-
},
|
|
7785
|
-
function
|
|
7805
|
+
}, Oh = { class: "uz-flex uz-justify-between uz-gap-2 uz-w-full" }, kh = { class: "uz-flex uz-gap-2" };
|
|
7806
|
+
function Ah(t, n, c, d, f, p) {
|
|
7786
7807
|
let m = O("NSkeleton"), h = O("UzForm"), g = O("UzSpin"), _ = O("NSpin"), v = O("NButton"), y = O("NPopover"), b = O("NDrawerContent"), x = O("NDrawer"), C = O("UzOcr"), w = O("NModal");
|
|
7787
7808
|
return S(), a(e, null, [u(x, {
|
|
7788
7809
|
show: t.drawer,
|
|
@@ -7808,7 +7829,7 @@ function jh(t, n, c, d, f, p) {
|
|
|
7808
7829
|
message: t.spinMsg,
|
|
7809
7830
|
status: t.spinStatus
|
|
7810
7831
|
}, {
|
|
7811
|
-
default: P(() => [o("div",
|
|
7832
|
+
default: P(() => [o("div", Eh, [t.skeletonShow ? (S(), a("div", Dh, [
|
|
7812
7833
|
u(m, {
|
|
7813
7834
|
size: "large",
|
|
7814
7835
|
style: { height: "156px" }
|
|
@@ -7871,7 +7892,7 @@ function jh(t, n, c, d, f, p) {
|
|
|
7871
7892
|
_: 2
|
|
7872
7893
|
}, [t.formStatus === 2 ? void 0 : {
|
|
7873
7894
|
name: "footer",
|
|
7874
|
-
fn: P(() => [o("div",
|
|
7895
|
+
fn: P(() => [o("div", Oh, [t.isMobile ? i("", !0) : (S(), r(v, {
|
|
7875
7896
|
key: 0,
|
|
7876
7897
|
loading: t.spinShow,
|
|
7877
7898
|
type: "success",
|
|
@@ -7880,7 +7901,7 @@ function jh(t, n, c, d, f, p) {
|
|
|
7880
7901
|
}, {
|
|
7881
7902
|
default: P(() => [l(A(t.$t("OCR.ocr")), 1)]),
|
|
7882
7903
|
_: 1
|
|
7883
|
-
}, 8, ["loading"])), o("div",
|
|
7904
|
+
}, 8, ["loading"])), o("div", kh, [
|
|
7884
7905
|
u(v, {
|
|
7885
7906
|
loading: t.spinShow,
|
|
7886
7907
|
class: "uz-drawer-button",
|
|
@@ -7948,7 +7969,7 @@ function jh(t, n, c, d, f, p) {
|
|
|
7948
7969
|
_: 1
|
|
7949
7970
|
}, 8, ["show"])], 64);
|
|
7950
7971
|
}
|
|
7951
|
-
var
|
|
7972
|
+
var jh = /*#__PURE__*/ W(Th, [["render", Ah]]), Mh = f({
|
|
7952
7973
|
name: "UzTableMobileList",
|
|
7953
7974
|
props: {
|
|
7954
7975
|
tableData: {
|
|
@@ -7966,12 +7987,12 @@ var Mh = /*#__PURE__*/ W(Eh, [["render", jh]]), Nh = f({
|
|
|
7966
7987
|
},
|
|
7967
7988
|
emits: ["update:row-keys"],
|
|
7968
7989
|
setup() {}
|
|
7969
|
-
}),
|
|
7990
|
+
}), Nh = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, Ph = {
|
|
7970
7991
|
key: 1,
|
|
7971
7992
|
class: "uz-table-mobile-group-txt"
|
|
7972
7993
|
};
|
|
7973
|
-
function
|
|
7974
|
-
return S(), a("div",
|
|
7994
|
+
function Fh(t, n, s, c, l, u) {
|
|
7995
|
+
return S(), a("div", Nh, [(S(!0), a(e, null, E(t.tableColumns, (n) => (S(), a("div", {
|
|
7975
7996
|
key: n.key,
|
|
7976
7997
|
class: _(["uz-flex uz-overflow-hidden", n.lineBreak ? "uz-flex-col" : ""]),
|
|
7977
7998
|
style: v(`grid-column: span ${n.lineCol || 2} / span ${n.lineCol || 2}`)
|
|
@@ -7982,11 +8003,11 @@ function Ih(t, n, s, c, l, u) {
|
|
|
7982
8003
|
class: "mobile"
|
|
7983
8004
|
})) : i("", !0)], 64)) : (S(), a(e, { key: 1 }, [o("div", { class: _(["uz-table-mobile-group-title", n.lineBreak ? "line-break" : ""]) }, [o("div", null, A(typeof n.title == "string" ? n.title : n.title()), 1)], 2), o("div", { class: _(["uz-table-mobile-group-content", n.lineBreak ? "line-break" : ""]) }, [n.render ? (S(), r(ee(() => {
|
|
7984
8005
|
if (t.tableData) return n.render(t.tableData, t.tableIndex);
|
|
7985
|
-
}), { key: 0 })) : (S(), a("div",
|
|
8006
|
+
}), { key: 0 })) : (S(), a("div", Ph, A(t.tableData[n.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
|
|
7986
8007
|
}
|
|
7987
8008
|
//#endregion
|
|
7988
8009
|
//#region components/table/mobile.vue?vue&type=script&lang.ts
|
|
7989
|
-
var
|
|
8010
|
+
var Ih = f({
|
|
7990
8011
|
name: "UzTableMobile",
|
|
7991
8012
|
components: {
|
|
7992
8013
|
NCheckbox: ie,
|
|
@@ -7994,7 +8015,7 @@ var Lh = f({
|
|
|
7994
8015
|
NPagination: Te,
|
|
7995
8016
|
NCheckboxGroup: z,
|
|
7996
8017
|
NRadioGroup: ke,
|
|
7997
|
-
UzTableMobileList: /* @__PURE__ */ W(
|
|
8018
|
+
UzTableMobileList: /* @__PURE__ */ W(Mh, [["render", Fh], ["__scopeId", "data-v-84c394fe"]])
|
|
7998
8019
|
},
|
|
7999
8020
|
props: {
|
|
8000
8021
|
tableData: {
|
|
@@ -8041,17 +8062,17 @@ var Lh = f({
|
|
|
8041
8062
|
}
|
|
8042
8063
|
};
|
|
8043
8064
|
}
|
|
8044
|
-
}),
|
|
8065
|
+
}), Lh = {
|
|
8045
8066
|
key: 0,
|
|
8046
8067
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
8047
|
-
},
|
|
8068
|
+
}, Rh = {
|
|
8048
8069
|
key: 0,
|
|
8049
8070
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
8050
|
-
},
|
|
8071
|
+
}, zh = {
|
|
8051
8072
|
key: 0,
|
|
8052
8073
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
8053
8074
|
};
|
|
8054
|
-
function
|
|
8075
|
+
function Bh(t, n, o, s, c, l) {
|
|
8055
8076
|
let d = O("UzTableMobileList"), f = O("NCheckbox"), p = O("NPagination"), m = O("NCheckboxGroup"), h = O("NRadio"), g = O("NRadioGroup");
|
|
8056
8077
|
return t.selection === 2 ? (S(), r(m, {
|
|
8057
8078
|
key: 0,
|
|
@@ -8078,7 +8099,7 @@ function Vh(t, n, o, s, c, l) {
|
|
|
8078
8099
|
"tableColumns"
|
|
8079
8100
|
])]),
|
|
8080
8101
|
_: 2
|
|
8081
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div",
|
|
8102
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div", Lh, [u(p, {
|
|
8082
8103
|
page: t.tableQueries.query.page,
|
|
8083
8104
|
"onUpdate:page": [n[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
8084
8105
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -8120,7 +8141,7 @@ function Vh(t, n, o, s, c, l) {
|
|
|
8120
8141
|
"tableColumns"
|
|
8121
8142
|
])]),
|
|
8122
8143
|
_: 2
|
|
8123
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div",
|
|
8144
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div", Rh, [u(p, {
|
|
8124
8145
|
page: t.tableQueries.query.page,
|
|
8125
8146
|
"onUpdate:page": [n[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
8126
8147
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -8155,7 +8176,7 @@ function Vh(t, n, o, s, c, l) {
|
|
|
8155
8176
|
"tableData",
|
|
8156
8177
|
"tableIndex",
|
|
8157
8178
|
"tableColumns"
|
|
8158
|
-
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div",
|
|
8179
|
+
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (S(), a("div", zh, [u(p, {
|
|
8159
8180
|
page: t.tableQueries.query.page,
|
|
8160
8181
|
"onUpdate:page": [n[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
8161
8182
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -8168,7 +8189,7 @@ function Vh(t, n, o, s, c, l) {
|
|
|
8168
8189
|
"onUpdate:page"
|
|
8169
8190
|
])])) : i("", !0)], 4));
|
|
8170
8191
|
}
|
|
8171
|
-
var
|
|
8192
|
+
var Vh = /*#__PURE__*/ W(Ih, [["render", Bh], ["__scopeId", "data-v-70b54e3b"]]), Hh = f({
|
|
8172
8193
|
name: "UzTableFile",
|
|
8173
8194
|
components: {
|
|
8174
8195
|
NDropdown: de,
|
|
@@ -8317,11 +8338,11 @@ var Hh = /*#__PURE__*/ W(Lh, [["render", Vh], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
8317
8338
|
}
|
|
8318
8339
|
};
|
|
8319
8340
|
}
|
|
8320
|
-
}),
|
|
8341
|
+
}), Uh = { class: "uz-file-port-modal" }, Wh = {
|
|
8321
8342
|
key: 1,
|
|
8322
8343
|
class: "uz-file-port-panel"
|
|
8323
|
-
},
|
|
8324
|
-
function
|
|
8344
|
+
}, Gh = { class: "uz-flex uz-justify-between" };
|
|
8345
|
+
function Kh(t, n, i, s, c, d) {
|
|
8325
8346
|
let f = O("FileText"), p = O("NIcon"), m = O("NButton"), h = O("NDropdown"), g = O("NUpload"), _ = O("NSpace"), v = O("NDataTable"), y = O("NModal");
|
|
8326
8347
|
return S(), a(e, null, [u(h, {
|
|
8327
8348
|
trigger: "hover",
|
|
@@ -8356,8 +8377,8 @@ function qh(t, n, i, s, c, d) {
|
|
|
8356
8377
|
default: P(() => [...n[1] ||= [l(" 下载模板 ", -1)]]),
|
|
8357
8378
|
_: 1
|
|
8358
8379
|
}, 8, ["onClick"])]),
|
|
8359
|
-
default: P(() => [o("div",
|
|
8360
|
-
t.rawFile ? (S(), a("div",
|
|
8380
|
+
default: P(() => [o("div", Uh, [
|
|
8381
|
+
t.rawFile ? (S(), a("div", Wh, [
|
|
8361
8382
|
n[5] ||= o("div", { class: "uz-file-port-icon" }, [o("svg", {
|
|
8362
8383
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8363
8384
|
viewBox: "0 0 24 24",
|
|
@@ -8404,7 +8425,7 @@ function qh(t, n, i, s, c, d) {
|
|
|
8404
8425
|
}, [o("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])]), o("div", { class: "uz-file-port-subtitle" }, "拖拽或点击上传Excel文件")], -1)]]),
|
|
8405
8426
|
_: 1
|
|
8406
8427
|
}, 8, ["on-before-upload"])),
|
|
8407
|
-
o("div",
|
|
8428
|
+
o("div", Gh, [n[8] ||= o("div", { class: "uz-com-title" }, "导入历史", -1), u(m, {
|
|
8408
8429
|
onClick: t.init,
|
|
8409
8430
|
loading: t.loading,
|
|
8410
8431
|
secondary: ""
|
|
@@ -8415,7 +8436,9 @@ function qh(t, n, i, s, c, d) {
|
|
|
8415
8436
|
u(v, {
|
|
8416
8437
|
columns: t.columns,
|
|
8417
8438
|
data: t.coldata,
|
|
8418
|
-
loading: t.loading
|
|
8439
|
+
loading: t.loading,
|
|
8440
|
+
"min-height": "160",
|
|
8441
|
+
"max-height": "500"
|
|
8419
8442
|
}, null, 8, [
|
|
8420
8443
|
"columns",
|
|
8421
8444
|
"data",
|
|
@@ -8425,7 +8448,7 @@ function qh(t, n, i, s, c, d) {
|
|
|
8425
8448
|
_: 1
|
|
8426
8449
|
}, 8, ["show", "on-after-leave"])], 64);
|
|
8427
8450
|
}
|
|
8428
|
-
var
|
|
8451
|
+
var qh = /*#__PURE__*/ W(Hh, [["render", Kh], ["__scopeId", "data-v-669e3267"]]), $ = w({
|
|
8429
8452
|
page: {
|
|
8430
8453
|
label: "首页",
|
|
8431
8454
|
key: "/",
|
|
@@ -8436,7 +8459,7 @@ var Jh = /*#__PURE__*/ W(Uh, [["render", qh], ["__scopeId", "data-v-fad3cce7"]])
|
|
|
8436
8459
|
active: "/",
|
|
8437
8460
|
thumbnail: []
|
|
8438
8461
|
});
|
|
8439
|
-
function
|
|
8462
|
+
function Jh(e) {
|
|
8440
8463
|
$.cache = e.cache, $.page = {
|
|
8441
8464
|
label: e.label,
|
|
8442
8465
|
key: e.key,
|
|
@@ -8451,14 +8474,14 @@ function Yh(e) {
|
|
|
8451
8474
|
closable: !1
|
|
8452
8475
|
}];
|
|
8453
8476
|
}
|
|
8454
|
-
function
|
|
8477
|
+
function Yh(e) {
|
|
8455
8478
|
$.active = e, G.push(e), Y($.cache, $, 0);
|
|
8456
8479
|
}
|
|
8457
|
-
function
|
|
8480
|
+
function Xh(e, t) {
|
|
8458
8481
|
let n = $.thumbnail.find((t) => t.key === e);
|
|
8459
8482
|
n && (n.key = t, $.active = t, Y($.cache, $, 0));
|
|
8460
8483
|
}
|
|
8461
|
-
function
|
|
8484
|
+
function Zh(e) {
|
|
8462
8485
|
let t = $.thumbnail.find((t) => t.path === e.key);
|
|
8463
8486
|
t ? ($.active = t.key, Y($.cache, $, 0), G.push(t.key)) : ($.active = e.key, $.thumbnail.push({
|
|
8464
8487
|
...e,
|
|
@@ -8466,7 +8489,7 @@ function Qh(e) {
|
|
|
8466
8489
|
closable: !0
|
|
8467
8490
|
}), G.push(e.key));
|
|
8468
8491
|
}
|
|
8469
|
-
function
|
|
8492
|
+
function Qh(e) {
|
|
8470
8493
|
let t = $.thumbnail.findIndex((t) => t.key === e);
|
|
8471
8494
|
if ($.thumbnail.splice(t, 1), $.active === e) {
|
|
8472
8495
|
let e = $.thumbnail[t - 1]?.key || "";
|
|
@@ -8474,12 +8497,12 @@ function $h(e) {
|
|
|
8474
8497
|
}
|
|
8475
8498
|
Y($.cache, $, 0);
|
|
8476
8499
|
}
|
|
8477
|
-
function
|
|
8500
|
+
function $h() {
|
|
8478
8501
|
$.active = $.page.path, $.thumbnail = [$.page], G.push($.page.path), Y($.cache, $, 0);
|
|
8479
8502
|
}
|
|
8480
8503
|
//#endregion
|
|
8481
8504
|
//#region components/thumbnail/index.vue?vue&type=script&lang.ts
|
|
8482
|
-
var
|
|
8505
|
+
var eg = f({
|
|
8483
8506
|
name: "UzThumbnail",
|
|
8484
8507
|
components: {
|
|
8485
8508
|
NTabs: Ie,
|
|
@@ -8501,29 +8524,29 @@ var tg = f({
|
|
|
8501
8524
|
setup(e, { slots: t }) {
|
|
8502
8525
|
let n = T(!!t.prefix), r = Je();
|
|
8503
8526
|
return b(() => {
|
|
8504
|
-
|
|
8527
|
+
Jh(e.option), $.active !== r.path && Xh(r.path, r.fullPath);
|
|
8505
8528
|
}), M(() => r, (e) => {
|
|
8506
|
-
$.active === r.path &&
|
|
8529
|
+
$.active === r.path && Xh(e.path, e.fullPath);
|
|
8507
8530
|
}, { deep: !0 }), M(() => e.option, (e) => {
|
|
8508
|
-
|
|
8531
|
+
Jh(e);
|
|
8509
8532
|
}, { deep: !0 }), {
|
|
8510
8533
|
thumbnailStore: $,
|
|
8511
8534
|
isSlotPrefix: n,
|
|
8512
8535
|
handleClose: (e) => {
|
|
8513
|
-
|
|
8536
|
+
Qh(e);
|
|
8514
8537
|
},
|
|
8515
8538
|
handleChange: (e) => {
|
|
8516
|
-
|
|
8539
|
+
Yh(e);
|
|
8517
8540
|
},
|
|
8518
8541
|
handleClear: () => {
|
|
8519
|
-
|
|
8542
|
+
$h();
|
|
8520
8543
|
}
|
|
8521
8544
|
};
|
|
8522
8545
|
}
|
|
8523
8546
|
});
|
|
8524
8547
|
//#endregion
|
|
8525
8548
|
//#region components/thumbnail/index.vue
|
|
8526
|
-
function
|
|
8549
|
+
function tg(t, n, i, o, c, d) {
|
|
8527
8550
|
let f = O("NTabPane"), p = O("Trash"), m = O("NIcon"), h = O("NButton"), g = O("NPopconfirm"), _ = O("NFlex"), v = O("NTabs");
|
|
8528
8551
|
return S(), r(v, {
|
|
8529
8552
|
value: t.thumbnailStore.active,
|
|
@@ -8553,7 +8576,10 @@ function ng(t, n, i, o, c, d) {
|
|
|
8553
8576
|
name: e.key,
|
|
8554
8577
|
tab: e.label,
|
|
8555
8578
|
closable: e.closable
|
|
8556
|
-
},
|
|
8579
|
+
}, {
|
|
8580
|
+
default: P(() => [l(A(e.label), 1)]),
|
|
8581
|
+
_: 2
|
|
8582
|
+
}, 1032, [
|
|
8557
8583
|
"name",
|
|
8558
8584
|
"tab",
|
|
8559
8585
|
"closable"
|
|
@@ -8569,41 +8595,47 @@ function ng(t, n, i, o, c, d) {
|
|
|
8569
8595
|
"on-update:value"
|
|
8570
8596
|
]);
|
|
8571
8597
|
}
|
|
8572
|
-
var
|
|
8573
|
-
H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover =
|
|
8574
|
-
var
|
|
8598
|
+
var ng = /*#__PURE__*/ W(eg, [["render", tg]]), rg = "#007AFF", ig = "#0A84FF", ag = "#FF9500", og = "#FF9F0A", sg = "#28CD41", cg = "#32D74B", lg = "#FFCC00", ug = "#FFD60A", dg = "#FF3B30", fg = "#FF453A";
|
|
8599
|
+
H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover = ig, H.common.infoColor = "#FF9F0A", H.common.infoColorHover = og, H.common.successColor = "#32D74B", H.common.successColorHover = cg, H.common.warningColor = "#FFD60A", H.common.successColorHover = ug, H.common.errorColor = "#FF453A", H.common.errorColorHover = fg, 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", console.log(H);
|
|
8600
|
+
var pg = {
|
|
8575
8601
|
common: {
|
|
8576
8602
|
inputColor: "rgba(var(--input))",
|
|
8577
8603
|
borderColor: "rgba(var(--border), 0.7)",
|
|
8578
8604
|
borderRadius: "var(--borderRadius)",
|
|
8579
|
-
primaryColor:
|
|
8580
|
-
primaryColorHover:
|
|
8581
|
-
primaryColorPressed:
|
|
8582
|
-
primaryColorSuppl:
|
|
8583
|
-
infoColor:
|
|
8584
|
-
infoColorHover:
|
|
8585
|
-
infoColorPressed:
|
|
8586
|
-
infoColorSuppl:
|
|
8587
|
-
successColor:
|
|
8588
|
-
successColorHover:
|
|
8589
|
-
successColorPressed:
|
|
8590
|
-
successColorSuppl:
|
|
8591
|
-
warningColor:
|
|
8592
|
-
warningColorHover:
|
|
8593
|
-
warningColorPressed:
|
|
8594
|
-
warningColorSuppl:
|
|
8595
|
-
errorColor:
|
|
8596
|
-
errorColorHover:
|
|
8597
|
-
errorColorPressed:
|
|
8598
|
-
errorColorSuppl:
|
|
8605
|
+
primaryColor: rg,
|
|
8606
|
+
primaryColorHover: ig,
|
|
8607
|
+
primaryColorPressed: rg,
|
|
8608
|
+
primaryColorSuppl: rg,
|
|
8609
|
+
infoColor: ag,
|
|
8610
|
+
infoColorHover: og,
|
|
8611
|
+
infoColorPressed: ag,
|
|
8612
|
+
infoColorSuppl: ag,
|
|
8613
|
+
successColor: sg,
|
|
8614
|
+
successColorHover: cg,
|
|
8615
|
+
successColorPressed: sg,
|
|
8616
|
+
successColorSuppl: sg,
|
|
8617
|
+
warningColor: lg,
|
|
8618
|
+
warningColorHover: ug,
|
|
8619
|
+
warningColorPressed: lg,
|
|
8620
|
+
warningColorSuppl: lg,
|
|
8621
|
+
errorColor: dg,
|
|
8622
|
+
errorColorHover: fg,
|
|
8623
|
+
errorColorPressed: dg,
|
|
8624
|
+
errorColorSuppl: dg,
|
|
8599
8625
|
cardColor: "#fff"
|
|
8600
8626
|
},
|
|
8601
8627
|
Button: { textColor: "rgb(var(--font))" },
|
|
8602
8628
|
Tag: { borderRadius: "var(--borderRadius)" },
|
|
8603
8629
|
DatePicker: { itemBorderRadius: "var(--borderRadius)" },
|
|
8604
8630
|
Notification: { borderRadius: "var(--borderRadius)" },
|
|
8605
|
-
Radio: { boxShadow: "inset 0 0 0 1px rgb(var(--primary))" }
|
|
8606
|
-
|
|
8631
|
+
Radio: { boxShadow: "inset 0 0 0 1px rgb(var(--primary))" },
|
|
8632
|
+
Scrollbar: {
|
|
8633
|
+
width: "8px",
|
|
8634
|
+
height: "8px",
|
|
8635
|
+
borderRadius: "8px",
|
|
8636
|
+
color: "#c0c0c0"
|
|
8637
|
+
}
|
|
8638
|
+
}, mg = H, hg = f({
|
|
8607
8639
|
name: "UzWrap",
|
|
8608
8640
|
components: { NConfigProvider: oe },
|
|
8609
8641
|
setup() {
|
|
@@ -8611,14 +8643,14 @@ var mg = {
|
|
|
8611
8643
|
zhCN: We,
|
|
8612
8644
|
dateZhCN: He,
|
|
8613
8645
|
commonStore: q,
|
|
8614
|
-
lightTheme:
|
|
8615
|
-
darkTheme:
|
|
8646
|
+
lightTheme: pg,
|
|
8647
|
+
darkTheme: mg
|
|
8616
8648
|
};
|
|
8617
8649
|
}
|
|
8618
8650
|
});
|
|
8619
8651
|
//#endregion
|
|
8620
8652
|
//#region components/wrap/index.vue
|
|
8621
|
-
function
|
|
8653
|
+
function gg(e, t, n, i, a, o) {
|
|
8622
8654
|
let s = O("NConfigProvider");
|
|
8623
8655
|
return S(), r(s, {
|
|
8624
8656
|
theme: e.commonStore.theme ? { name: "darkTheme" } : null,
|
|
@@ -8637,10 +8669,10 @@ function _g(e, t, n, i, a, o) {
|
|
|
8637
8669
|
"date-locale"
|
|
8638
8670
|
]);
|
|
8639
8671
|
}
|
|
8640
|
-
var
|
|
8672
|
+
var _g = /*#__PURE__*/ W(hg, [["render", gg]]);
|
|
8641
8673
|
//#endregion
|
|
8642
8674
|
//#region components/ocr/preprocess.ts
|
|
8643
|
-
function
|
|
8675
|
+
function vg(e) {
|
|
8644
8676
|
let t = /* @__PURE__ */ new Int32Array(256), n = e.length;
|
|
8645
8677
|
for (let r = 0; r < n; r++) t[e[r]]++;
|
|
8646
8678
|
let r = 0;
|
|
@@ -8655,7 +8687,7 @@ function yg(e) {
|
|
|
8655
8687
|
}
|
|
8656
8688
|
return c;
|
|
8657
8689
|
}
|
|
8658
|
-
function
|
|
8690
|
+
function yg(e, t) {
|
|
8659
8691
|
return new Promise((n, r) => {
|
|
8660
8692
|
let i = new Image();
|
|
8661
8693
|
i.crossOrigin = "anonymous", i.onload = () => {
|
|
@@ -8688,7 +8720,7 @@ function bg(e, t) {
|
|
|
8688
8720
|
}
|
|
8689
8721
|
let u = t.threshold;
|
|
8690
8722
|
if (t.binarize) {
|
|
8691
|
-
t.autoThreshold && (u =
|
|
8723
|
+
t.autoThreshold && (u = vg(l));
|
|
8692
8724
|
for (let e = 0, t = 0; e < s.length; e += 4, t++) {
|
|
8693
8725
|
let n = l[t] < u ? 0 : 255;
|
|
8694
8726
|
s[e] = n, s[e + 1] = n, s[e + 2] = n;
|
|
@@ -8711,7 +8743,7 @@ function bg(e, t) {
|
|
|
8711
8743
|
}
|
|
8712
8744
|
//#endregion
|
|
8713
8745
|
//#region components/ocr/index.vue?vue&type=script&lang.ts
|
|
8714
|
-
var
|
|
8746
|
+
var bg = f({
|
|
8715
8747
|
name: "UzOcr",
|
|
8716
8748
|
components: {
|
|
8717
8749
|
NButton: R,
|
|
@@ -8748,7 +8780,7 @@ var xg = f({
|
|
|
8748
8780
|
tessedit_char_blacklist: "|"
|
|
8749
8781
|
}), a.value), v = async () => {
|
|
8750
8782
|
if (f.value) try {
|
|
8751
|
-
let e = await
|
|
8783
|
+
let e = await yg(f.value, {
|
|
8752
8784
|
enabled: o.value,
|
|
8753
8785
|
scale: s.value,
|
|
8754
8786
|
grayscale: !0,
|
|
@@ -8785,7 +8817,7 @@ var xg = f({
|
|
|
8785
8817
|
t.value = !0, r.value = e("OCR.analysis");
|
|
8786
8818
|
let a = n;
|
|
8787
8819
|
if (o.value || s.value > 1) try {
|
|
8788
|
-
let e = await
|
|
8820
|
+
let e = await yg(n, {
|
|
8789
8821
|
enabled: o.value,
|
|
8790
8822
|
scale: s.value,
|
|
8791
8823
|
grayscale: !0,
|
|
@@ -8847,25 +8879,25 @@ var xg = f({
|
|
|
8847
8879
|
t: e
|
|
8848
8880
|
};
|
|
8849
8881
|
}
|
|
8850
|
-
}),
|
|
8882
|
+
}), xg = { class: "uz-ocr" }, Sg = { class: "uz-ocr-left-col" }, Cg = { class: "uz-ocr-upload-card" }, wg = { class: "uz-ocr-upload-title" }, Tg = {
|
|
8851
8883
|
key: 1,
|
|
8852
8884
|
class: "uz-ocr-preview-panel"
|
|
8853
|
-
},
|
|
8885
|
+
}, Eg = { class: "uz-ocr-preview-box" }, Dg = ["src"], Og = {
|
|
8854
8886
|
key: 0,
|
|
8855
8887
|
class: "uz-ocr-threshold-badge"
|
|
8856
|
-
},
|
|
8888
|
+
}, kg = { class: "uz-ocr-preview-box" }, Ag = ["src"], jg = { class: "uz-ocr-settings-form" }, Mg = { class: "uz-settings-row" }, Ng = { class: "uz-settings-label" }, Pg = {
|
|
8857
8889
|
key: 0,
|
|
8858
8890
|
class: "uz-ocr-nested-settings animate-fade-in"
|
|
8859
|
-
},
|
|
8891
|
+
}, Fg = { class: "uz-settings-row" }, Ig = { class: "uz-settings-label" }, Lg = { class: "uz-settings-row" }, Rg = { class: "uz-settings-label" }, zg = { class: "uz-ocr-right-col" }, Bg = { class: "uz-ocr-result-header" }, Vg = { class: "uz-result-title" }, Hg = {
|
|
8860
8892
|
key: 0,
|
|
8861
8893
|
class: "uz-ocr-empty-state"
|
|
8862
|
-
},
|
|
8894
|
+
}, Ug = { class: "uz-empty-text" }, Wg = {
|
|
8863
8895
|
key: 1,
|
|
8864
8896
|
class: "uz-ocr-result-tabs"
|
|
8865
8897
|
};
|
|
8866
|
-
function
|
|
8898
|
+
function Gg(e, t, n, s, c, d) {
|
|
8867
8899
|
let f = O("NUpload"), p = O("NTabPane"), m = O("NTabs"), h = O("NButton"), g = O("NSpace"), _ = O("NSwitch"), v = O("NSelect");
|
|
8868
|
-
return S(), a("div",
|
|
8900
|
+
return S(), a("div", xg, [o("div", Sg, [e.rawImage ? (S(), a("div", Tg, [u(m, {
|
|
8869
8901
|
value: e.imagePreviewTab,
|
|
8870
8902
|
"onUpdate:value": t[0] ||= (t) => e.imagePreviewTab = t,
|
|
8871
8903
|
type: "segment",
|
|
@@ -8875,21 +8907,21 @@ function Kg(e, t, n, s, c, d) {
|
|
|
8875
8907
|
name: "processed",
|
|
8876
8908
|
tab: e.t("OCR.previewProcessed")
|
|
8877
8909
|
}, {
|
|
8878
|
-
default: P(() => [o("div",
|
|
8910
|
+
default: P(() => [o("div", Eg, [o("img", {
|
|
8879
8911
|
src: e.processedImage,
|
|
8880
8912
|
alt: "Processed Preview",
|
|
8881
8913
|
class: "uz-ocr-preview-img"
|
|
8882
|
-
}, null, 8,
|
|
8914
|
+
}, null, 8, Dg), e.preEnabled && e.preBinarize ? (S(), a("div", Og, A(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + A(e.thresholdUsed), 1)) : i("", !0)])]),
|
|
8883
8915
|
_: 1
|
|
8884
8916
|
}, 8, ["tab"]), u(p, {
|
|
8885
8917
|
name: "raw",
|
|
8886
8918
|
tab: e.t("OCR.previewRaw")
|
|
8887
8919
|
}, {
|
|
8888
|
-
default: P(() => [o("div",
|
|
8920
|
+
default: P(() => [o("div", kg, [o("img", {
|
|
8889
8921
|
src: e.rawImage,
|
|
8890
8922
|
alt: "Raw Preview",
|
|
8891
8923
|
class: "uz-ocr-preview-img"
|
|
8892
|
-
}, null, 8,
|
|
8924
|
+
}, null, 8, Ag)])]),
|
|
8893
8925
|
_: 1
|
|
8894
8926
|
}, 8, ["tab"])]),
|
|
8895
8927
|
_: 1
|
|
@@ -8923,7 +8955,7 @@ function Kg(e, t, n, s, c, d) {
|
|
|
8923
8955
|
"directory-dnd": "",
|
|
8924
8956
|
class: "uz-w-full"
|
|
8925
8957
|
}, {
|
|
8926
|
-
default: P(() => [o("div",
|
|
8958
|
+
default: P(() => [o("div", Cg, [
|
|
8927
8959
|
t[4] ||= o("div", { class: "uz-ocr-upload-icon" }, [o("svg", {
|
|
8928
8960
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8929
8961
|
viewBox: "0 0 24 24",
|
|
@@ -8931,27 +8963,27 @@ function Kg(e, t, n, s, c, d) {
|
|
|
8931
8963
|
height: "40",
|
|
8932
8964
|
fill: "currentColor"
|
|
8933
8965
|
}, [o("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])], -1),
|
|
8934
|
-
o("div",
|
|
8966
|
+
o("div", wg, A(e.t("OCR.scan")), 1),
|
|
8935
8967
|
t[5] ||= o("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
|
|
8936
8968
|
])]),
|
|
8937
8969
|
_: 1
|
|
8938
|
-
}, 8, ["on-before-upload"])), o("div",
|
|
8970
|
+
}, 8, ["on-before-upload"])), o("div", jg, [o("div", Mg, [o("span", Ng, A(e.t("OCR.preprocess")), 1), u(_, {
|
|
8939
8971
|
value: e.preEnabled,
|
|
8940
8972
|
"onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
|
|
8941
8973
|
size: "small"
|
|
8942
|
-
}, null, 8, ["value"])]), e.preEnabled ? (S(), a("div",
|
|
8974
|
+
}, null, 8, ["value"])]), e.preEnabled ? (S(), a("div", Pg, [o("div", Fg, [o("span", Ig, A(e.t("OCR.scale")), 1), u(v, {
|
|
8943
8975
|
value: e.preScale,
|
|
8944
8976
|
"onUpdate:value": t[2] ||= (t) => e.preScale = t,
|
|
8945
8977
|
options: e.scaleOptions,
|
|
8946
8978
|
size: "small",
|
|
8947
8979
|
class: "uz-settings-select"
|
|
8948
|
-
}, null, 8, ["value", "options"])]), o("div",
|
|
8980
|
+
}, null, 8, ["value", "options"])]), o("div", Lg, [o("span", Rg, A(e.t("OCR.contrast")), 1), u(_, {
|
|
8949
8981
|
value: e.preContrast,
|
|
8950
8982
|
"onUpdate:value": t[3] ||= (t) => e.preContrast = t,
|
|
8951
8983
|
size: "small"
|
|
8952
|
-
}, null, 8, ["value"])])])) : i("", !0)])]), o("div",
|
|
8984
|
+
}, null, 8, ["value"])])])) : i("", !0)])]), o("div", zg, [o("div", Bg, [o("span", Vg, "识别结果 (" + A(e.text.length) + " 行)", 1)]), e.text.length ? (S(), a("div", Wg, A(e.fullText), 1)) : (S(), a("div", Hg, [t[7] ||= o("div", { class: "uz-empty-icon" }, "📝", -1), o("div", Ug, A(e.ocrLoading ? "正在读取图像解析文字,请稍候..." : "暂无识别数据,请上传图像"), 1)]))])]);
|
|
8953
8985
|
}
|
|
8954
|
-
var
|
|
8986
|
+
var Kg = /*#__PURE__*/ W(bg, [["render", Gg], ["__scopeId", "data-v-c7224ff5"]]), qg = /* @__PURE__ */ dt({
|
|
8955
8987
|
AccessPoint: () => gt,
|
|
8956
8988
|
Activity: () => bt,
|
|
8957
8989
|
Adjustments: () => wt,
|
|
@@ -9081,54 +9113,54 @@ var qg = /*#__PURE__*/ W(xg, [["render", Kg], ["__scopeId", "data-v-c7224ff5"]])
|
|
|
9081
9113
|
Users: () => Rl,
|
|
9082
9114
|
UzActionButton: () => ft,
|
|
9083
9115
|
UzBack: () => Gf,
|
|
9084
|
-
UzCamera: () =>
|
|
9085
|
-
UzCircle: () =>
|
|
9086
|
-
UzDraggableForm: () =>
|
|
9087
|
-
UzForm: () =>
|
|
9088
|
-
UzFormItem: () =>
|
|
9089
|
-
UzFormItemImage: () =>
|
|
9090
|
-
UzFormItemTimesPicker: () =>
|
|
9091
|
-
UzFormItemUpload: () =>
|
|
9116
|
+
UzCamera: () => dm,
|
|
9117
|
+
UzCircle: () => jp,
|
|
9118
|
+
UzDraggableForm: () => Wp,
|
|
9119
|
+
UzForm: () => zp,
|
|
9120
|
+
UzFormItem: () => Fp,
|
|
9121
|
+
UzFormItemImage: () => em,
|
|
9122
|
+
UzFormItemTimesPicker: () => im,
|
|
9123
|
+
UzFormItemUpload: () => Xp,
|
|
9092
9124
|
UzIcon: () => Ru,
|
|
9093
|
-
UzOcr: () =>
|
|
9094
|
-
UzSearchBar: () =>
|
|
9095
|
-
UzSearchMobileBar: () =>
|
|
9096
|
-
UzSpin: () =>
|
|
9097
|
-
UzTable: () =>
|
|
9098
|
-
UzTableChild: () =>
|
|
9099
|
-
UzTableDrawer: () =>
|
|
9100
|
-
UzTableFile: () =>
|
|
9101
|
-
UzTableMobile: () =>
|
|
9102
|
-
UzTableQuestChild: () =>
|
|
9103
|
-
UzThumbnail: () =>
|
|
9104
|
-
UzWrap: () =>
|
|
9125
|
+
UzOcr: () => Kg,
|
|
9126
|
+
UzSearchBar: () => bm,
|
|
9127
|
+
UzSearchMobileBar: () => Em,
|
|
9128
|
+
UzSpin: () => Jm,
|
|
9129
|
+
UzTable: () => uh,
|
|
9130
|
+
UzTableChild: () => vh,
|
|
9131
|
+
UzTableDrawer: () => jh,
|
|
9132
|
+
UzTableFile: () => qh,
|
|
9133
|
+
UzTableMobile: () => Vh,
|
|
9134
|
+
UzTableQuestChild: () => wh,
|
|
9135
|
+
UzThumbnail: () => ng,
|
|
9136
|
+
UzWrap: () => _g,
|
|
9105
9137
|
X: () => Hl,
|
|
9106
9138
|
commonStore: () => q,
|
|
9107
9139
|
fnActionReduction: () => Hf,
|
|
9108
9140
|
fnActionSimplify: () => Vf,
|
|
9109
|
-
fnAddThumbnail: () =>
|
|
9110
|
-
fnClearAllThumbnail: () =>
|
|
9111
|
-
fnDeleteThumbnail: () =>
|
|
9112
|
-
fnGetTableData: () =>
|
|
9113
|
-
fnOptionReduction: () =>
|
|
9114
|
-
fnOptionSimplify: () =>
|
|
9115
|
-
fnPrepareFormData: () =>
|
|
9116
|
-
fnPrepareTableData: () =>
|
|
9141
|
+
fnAddThumbnail: () => Zh,
|
|
9142
|
+
fnClearAllThumbnail: () => $h,
|
|
9143
|
+
fnDeleteThumbnail: () => Qh,
|
|
9144
|
+
fnGetTableData: () => Lm,
|
|
9145
|
+
fnOptionReduction: () => Um,
|
|
9146
|
+
fnOptionSimplify: () => Hm,
|
|
9147
|
+
fnPrepareFormData: () => Wm,
|
|
9148
|
+
fnPrepareTableData: () => Gm,
|
|
9117
9149
|
fnRenderAction: () => Pf,
|
|
9118
9150
|
fnSetLang: () => Hu,
|
|
9119
9151
|
fnSetTheme: () => Uu,
|
|
9120
|
-
fnSetThumbnail: () =>
|
|
9121
|
-
fnTableReduction: () =>
|
|
9122
|
-
fnTableSimplify: () =>
|
|
9123
|
-
fnTriggersReduction: () =>
|
|
9124
|
-
fnTriggersSimplify: () =>
|
|
9152
|
+
fnSetThumbnail: () => Yh,
|
|
9153
|
+
fnTableReduction: () => zm,
|
|
9154
|
+
fnTableSimplify: () => Rm,
|
|
9155
|
+
fnTriggersReduction: () => Vm,
|
|
9156
|
+
fnTriggersSimplify: () => Bm,
|
|
9125
9157
|
i18n: () => K
|
|
9126
|
-
}),
|
|
9127
|
-
function
|
|
9128
|
-
|
|
9158
|
+
}), Jg = 3840, Yg = 2160, Xg = w({ scale: 1 });
|
|
9159
|
+
function Zg(e, t) {
|
|
9160
|
+
Jg = e, Yg = t;
|
|
9129
9161
|
}
|
|
9130
|
-
function
|
|
9131
|
-
let e = 1, t = window.innerWidth, n = window.innerHeight, r =
|
|
9162
|
+
function Qg() {
|
|
9163
|
+
let e = 1, t = window.innerWidth, n = window.innerHeight, r = Jg, i = Yg, a = parseFloat((r / i).toFixed(5));
|
|
9132
9164
|
if (parseFloat((t / n).toFixed(5)) > a) {
|
|
9133
9165
|
let t = parseFloat((n * a / r).toFixed(5));
|
|
9134
9166
|
e = t > 1 ? 1 : t;
|
|
@@ -9136,17 +9168,17 @@ function $g() {
|
|
|
9136
9168
|
let n = parseFloat((t / a / i).toFixed(5));
|
|
9137
9169
|
e = n > 1 ? 1 : n;
|
|
9138
9170
|
}
|
|
9139
|
-
|
|
9171
|
+
Xg.scale = e;
|
|
9140
9172
|
}
|
|
9141
|
-
function
|
|
9142
|
-
let e = et(
|
|
9173
|
+
function $g() {
|
|
9174
|
+
let e = et(Qg, 200);
|
|
9143
9175
|
return e(), window.addEventListener("resize", e), () => {
|
|
9144
|
-
|
|
9176
|
+
Jg = 3840, Yg = 2160, window.removeEventListener("resize", e);
|
|
9145
9177
|
};
|
|
9146
9178
|
}
|
|
9147
9179
|
//#endregion
|
|
9148
9180
|
//#region components/hooks/useThrottleFn.ts
|
|
9149
|
-
function
|
|
9181
|
+
function e_(e, t = 1e3) {
|
|
9150
9182
|
let r = T(e), i = n(() => tt((...e) => r.value([...e]), t));
|
|
9151
9183
|
return x(() => {
|
|
9152
9184
|
i.value.cancel();
|
|
@@ -9158,14 +9190,14 @@ function t_(e, t = 1e3) {
|
|
|
9158
9190
|
}
|
|
9159
9191
|
//#endregion
|
|
9160
9192
|
//#region components/hooks/useLocalStorage.ts
|
|
9161
|
-
function
|
|
9193
|
+
function t_(e, t) {
|
|
9162
9194
|
return [T(X(e, t?.defaultValue)), (n) => {
|
|
9163
9195
|
n === void 0 ? sd(e) : Y(e, n, t?.expired || "1 Day");
|
|
9164
9196
|
}];
|
|
9165
9197
|
}
|
|
9166
9198
|
//#endregion
|
|
9167
9199
|
//#region components/hooks/useQuery.ts
|
|
9168
|
-
function
|
|
9200
|
+
function n_(e, t, n) {
|
|
9169
9201
|
let r = `useQuery-${e}`, i = T(), a = T(), o = T(), s = T(!1), c = T("idle"), l = T(), u = T(0), d = T(0), f = () => {
|
|
9170
9202
|
mf(), clearInterval(o.value), o.value = null;
|
|
9171
9203
|
}, p = async () => {
|
|
@@ -9209,7 +9241,7 @@ function r_(e, t, n) {
|
|
|
9209
9241
|
p();
|
|
9210
9242
|
}, n?.pollingInterval));
|
|
9211
9243
|
};
|
|
9212
|
-
if (n?.retry && n.pollingInterval === void 0 && (u.value = n.retry.retryCount || 3, d.value = n.retry.retryInterval ||
|
|
9244
|
+
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
9245
|
let e = X(r, !1);
|
|
9214
9246
|
e && m(e);
|
|
9215
9247
|
} catch {
|
|
@@ -9231,26 +9263,26 @@ function r_(e, t, n) {
|
|
|
9231
9263
|
}
|
|
9232
9264
|
//#endregion
|
|
9233
9265
|
//#region package.json
|
|
9234
|
-
var
|
|
9235
|
-
async function
|
|
9266
|
+
var r_ = "0.1.98", i_;
|
|
9267
|
+
async function a_() {
|
|
9236
9268
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
9237
9269
|
method: "HEAD",
|
|
9238
9270
|
cache: "no-cache"
|
|
9239
9271
|
});
|
|
9240
9272
|
return e.headers.get("etag") || e.headers.get("last-modified");
|
|
9241
9273
|
}
|
|
9242
|
-
async function
|
|
9243
|
-
let e = await
|
|
9244
|
-
|
|
9274
|
+
async function o_() {
|
|
9275
|
+
let e = await a_();
|
|
9276
|
+
i_ !== e && Wu(!0);
|
|
9245
9277
|
}
|
|
9246
|
-
async function
|
|
9247
|
-
|
|
9248
|
-
|
|
9249
|
-
},
|
|
9278
|
+
async function s_() {
|
|
9279
|
+
i_ = await a_(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
|
|
9280
|
+
o_();
|
|
9281
|
+
}, 6e4);
|
|
9250
9282
|
}
|
|
9251
9283
|
//#endregion
|
|
9252
9284
|
//#region components/create.ts
|
|
9253
|
-
function
|
|
9285
|
+
function c_({ components: e = [] } = {}) {
|
|
9254
9286
|
let t = [];
|
|
9255
9287
|
function n(e, t, n) {
|
|
9256
9288
|
e.component(t) || e.component(t, n);
|
|
@@ -9263,16 +9295,16 @@ function l_({ components: e = [] } = {}) {
|
|
|
9263
9295
|
});
|
|
9264
9296
|
}), i)) {
|
|
9265
9297
|
let { title: e = "杭州宇臻智能", monitor: t = !1, monitorInfo: n, version: a = !0, language: o = !1, local: s = "zh-CN" } = i, c = X("theme", !1), l = X("lang", s);
|
|
9266
|
-
Gu(e), Vu(o), Hu(l), Uu(c), K.global.locale.value = l, a &&
|
|
9298
|
+
Gu(e), Vu(o), Hu(l), Uu(c), K.global.locale.value = l, a && s_(), t && rf(r, t, n);
|
|
9267
9299
|
}
|
|
9268
9300
|
}
|
|
9269
9301
|
return {
|
|
9270
|
-
version:
|
|
9302
|
+
version: r_,
|
|
9271
9303
|
install: r
|
|
9272
9304
|
};
|
|
9273
9305
|
}
|
|
9274
9306
|
//#endregion
|
|
9275
9307
|
//#region components/preset.ts
|
|
9276
|
-
var
|
|
9308
|
+
var l_ = c_({ components: Object.keys(qg).map((e) => qg[e]) }), u_ = l_.install;
|
|
9277
9309
|
//#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,
|
|
9310
|
+
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, Kg as UzOcr, bm as UzSearchBar, Em as UzSearchMobileBar, Jm as UzSpin, uh as UzTable, vh as UzTableChild, jh as UzTableDrawer, qh as UzTableFile, Vh as UzTableMobile, wh as UzTableQuestChild, ng as UzThumbnail, _g as UzWrap, Hl as X, q as commonStore, c_ as create, mg as darkTheme, l_ as default, Hf as fnActionReduction, Vf as fnActionSimplify, Zh as fnAddThumbnail, mf as fnCancelFetch, $h as fnClearAllThumbnail, Qg as fnComputedScale, Bu as fnCreateRouter, sd as fnDelStorage, ld as fnDelStorageAll, cd as fnDelStorageByPrefix, Qh 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, $g 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, Zg as fnSetNormalWidthAndHeight, Y as fnSetStorage, Uu as fnSetTheme, Yh as fnSetThumbnail, zm as fnTableReduction, Rm as fnTableSimplify, md as fnThrottle, pd as fnTitle, Vm as fnTriggersReduction, Bm as fnTriggersSimplify, K as i18n, u_ as install, pg as lightTheme, bd as mergeColumns, G as router, Xg as scaleStore, Dm as useDebounceFn, t_ as useLocalStorage, n_ as useQuery, e_ as useThrottleFn };
|