yc-vep-ui 0.3.3 → 0.3.4
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/dist/components/utils/render.d.ts +2 -2
- package/dist/{entry-CJubrrlY.js → entry-CvyIhp3N.js} +85 -93
- package/dist/hooks/index.js +1 -1
- package/dist/index.css +6 -6
- package/dist/utils/index.d.ts +1 -1
- package/dist/vep-ui.js +1 -1
- package/package.json +1 -1
- package/dist/components/utils/index.d.ts +0 -5
|
@@ -33,8 +33,8 @@ declare function inputTag(props: InputTagProps): any;
|
|
|
33
33
|
declare function editor(props: any): any;
|
|
34
34
|
declare function radio(props: RadioGroupProps): any;
|
|
35
35
|
declare function text(props: TextProps & {
|
|
36
|
-
prop
|
|
37
|
-
}): any;
|
|
36
|
+
prop?: string;
|
|
37
|
+
} | string): any;
|
|
38
38
|
declare function staffSelect(props: any): any;
|
|
39
39
|
declare function upload(props: IUploadProps & {
|
|
40
40
|
modelValue?: any[];
|
|
@@ -283,7 +283,7 @@ function ye(e) {
|
|
|
283
283
|
}
|
|
284
284
|
function be(e) {
|
|
285
285
|
let t = K();
|
|
286
|
-
return t ? t(G.Text, e, () => e.prop) : null;
|
|
286
|
+
return t ? t(G.Text, e, () => typeof e == "string" ? e : e.prop ?? "") : null;
|
|
287
287
|
}
|
|
288
288
|
function xe(e) {
|
|
289
289
|
let t = K();
|
|
@@ -301,7 +301,7 @@ function Se(e) {
|
|
|
301
301
|
"onUpdate:fileList": (t, n) => e.onChange?.(n, t)
|
|
302
302
|
}) : null;
|
|
303
303
|
}
|
|
304
|
-
var
|
|
304
|
+
var Ce = {
|
|
305
305
|
button: se,
|
|
306
306
|
link: ce,
|
|
307
307
|
tag: le,
|
|
@@ -318,7 +318,7 @@ var q = {
|
|
|
318
318
|
text: be,
|
|
319
319
|
staffSelect: xe,
|
|
320
320
|
upload: Se
|
|
321
|
-
},
|
|
321
|
+
}, we = /* @__PURE__ */ u({
|
|
322
322
|
name: "UiColumn",
|
|
323
323
|
__name: "UiColumn",
|
|
324
324
|
props: {
|
|
@@ -333,7 +333,7 @@ var q = {
|
|
|
333
333
|
let a = r, o = t;
|
|
334
334
|
function s(e, t, n) {
|
|
335
335
|
let r = {};
|
|
336
|
-
Object.keys(
|
|
336
|
+
Object.keys(Ce).forEach((i) => {
|
|
337
337
|
let o = i;
|
|
338
338
|
r[o] = (r) => {
|
|
339
339
|
let i = Array.isArray(r) ? r : {
|
|
@@ -345,7 +345,7 @@ var q = {
|
|
|
345
345
|
onChange: r?.onChange || ((e) => a("update:data", t, n.prop, e)),
|
|
346
346
|
onInput: r?.onInput || ((e) => a("update:data", t, n.prop, e))
|
|
347
347
|
};
|
|
348
|
-
return
|
|
348
|
+
return Ce[o](i);
|
|
349
349
|
};
|
|
350
350
|
});
|
|
351
351
|
let i = n.render ? n.render({
|
|
@@ -403,7 +403,7 @@ var q = {
|
|
|
403
403
|
]));
|
|
404
404
|
};
|
|
405
405
|
}
|
|
406
|
-
}),
|
|
406
|
+
}), Te = /* @__PURE__ */ u({
|
|
407
407
|
__name: "index",
|
|
408
408
|
props: {
|
|
409
409
|
loading: {
|
|
@@ -494,7 +494,7 @@ var q = {
|
|
|
494
494
|
"column-key": "index_1",
|
|
495
495
|
align: a.align
|
|
496
496
|
}, null, 8, ["align"])) : r("", !0),
|
|
497
|
-
(x(!0), i(e, null, w(p.value, (e, t) => (x(), n(
|
|
497
|
+
(x(!0), i(e, null, w(p.value, (e, t) => (x(), n(we, {
|
|
498
498
|
key: t + "column_" + e?.prop?.toString(),
|
|
499
499
|
column: e,
|
|
500
500
|
data: a.data,
|
|
@@ -538,7 +538,7 @@ var q = {
|
|
|
538
538
|
]);
|
|
539
539
|
};
|
|
540
540
|
}
|
|
541
|
-
}),
|
|
541
|
+
}), Ee = /* @__PURE__ */ U({ default: () => De }), De = /* @__PURE__ */ W(Te, [["__scopeId", "data-v-adf869c1"]]), Oe = ["src"], ke = /* @__PURE__ */ u({
|
|
542
542
|
__name: "Icon",
|
|
543
543
|
props: {
|
|
544
544
|
name: {},
|
|
@@ -556,9 +556,9 @@ var q = {
|
|
|
556
556
|
width: e.size,
|
|
557
557
|
height: e.size
|
|
558
558
|
})
|
|
559
|
-
}, null, 12,
|
|
559
|
+
}, null, 12, Oe)) : r("", !0);
|
|
560
560
|
}
|
|
561
|
-
}),
|
|
561
|
+
}), Ae = {
|
|
562
562
|
style: {
|
|
563
563
|
width: "100%",
|
|
564
564
|
height: "100%"
|
|
@@ -569,30 +569,30 @@ var q = {
|
|
|
569
569
|
version: "1.1",
|
|
570
570
|
xmlns: "http://www.w3.org/2000/svg",
|
|
571
571
|
"p-id": "8979"
|
|
572
|
-
},
|
|
572
|
+
}, je = /* @__PURE__ */ u({
|
|
573
573
|
__name: "Search",
|
|
574
574
|
setup(e) {
|
|
575
|
-
return (e, t) => (x(), i("svg",
|
|
575
|
+
return (e, t) => (x(), i("svg", Ae, [...t[0] ||= [a("path", {
|
|
576
576
|
d: "M896 870.4l-128-128c55.467-68.267 89.6-149.333 89.6-238.933 0-98.134-38.4-192-110.933-264.534-149.334-149.333-384-149.333-533.334-4.266-145.066 145.066-145.066 384 0 529.066 72.534 72.534 166.4 110.934 264.534 110.934 89.6 0 174.933-29.867 238.933-89.6l128 128c4.267 4.266 12.8 8.533 21.333 8.533s17.067-4.267 21.334-8.533c17.066-8.534 17.066-29.867 8.533-42.667zM260.267 721.067c-119.467-123.734-119.467-320 0-439.467 59.733-59.733 140.8-89.6 217.6-89.6 81.066 0 157.866 29.867 217.6 89.6 59.733 59.733 89.6 136.533 89.6 217.6 0 81.067-34.134 162.133-89.6 217.6-55.467 59.733-132.267 93.867-217.6 93.867-81.067 0-157.867-34.134-217.6-89.6z",
|
|
577
577
|
"p-id": "8980"
|
|
578
578
|
}, null, -1)]]));
|
|
579
579
|
}
|
|
580
|
-
}),
|
|
580
|
+
}), Me = {
|
|
581
581
|
style: {
|
|
582
582
|
width: "100%",
|
|
583
583
|
height: "100%"
|
|
584
584
|
},
|
|
585
585
|
viewBox: "0 0 1024 1024",
|
|
586
586
|
xmlns: "http://www.w3.org/2000/svg"
|
|
587
|
-
},
|
|
587
|
+
}, Ne = /* @__PURE__ */ u({
|
|
588
588
|
__name: "CloseBold",
|
|
589
589
|
setup(e) {
|
|
590
|
-
return (e, t) => (x(), i("svg",
|
|
590
|
+
return (e, t) => (x(), i("svg", Me, [...t[0] ||= [a("path", {
|
|
591
591
|
d: "M512 476.25l256-256 33.75 33.75-256 256 256 256-33.75 33.75-256-256-256 256-33.75-33.75 256-256-256-256L256 220.25l256 256z",
|
|
592
592
|
fill: "currentColor"
|
|
593
593
|
}, null, -1)]]));
|
|
594
594
|
}
|
|
595
|
-
}),
|
|
595
|
+
}), Pe = {
|
|
596
596
|
style: {
|
|
597
597
|
width: "100%",
|
|
598
598
|
height: "100%"
|
|
@@ -603,10 +603,10 @@ var q = {
|
|
|
603
603
|
version: "1.1",
|
|
604
604
|
xmlns: "http://www.w3.org/2000/svg",
|
|
605
605
|
"p-id": "10092"
|
|
606
|
-
},
|
|
606
|
+
}, Fe = /* @__PURE__ */ u({
|
|
607
607
|
__name: "User",
|
|
608
608
|
setup(e) {
|
|
609
|
-
return (e, t) => (x(), i("svg",
|
|
609
|
+
return (e, t) => (x(), i("svg", Pe, [...t[0] ||= [a("path", {
|
|
610
610
|
d: "M512 512c141.385 0 256-114.615 256-256S653.385 0 512 0 256 114.615 256 256s114.615 256 256 256zM366.336 110.336C405.244 71.428 456.976 50 512 50s106.756 21.428 145.664 60.336S718 200.976 718 256s-21.428 106.756-60.336 145.664S567.024 462 512 462s-106.756-21.428-145.664-60.336S306 311.024 306 256s21.428-106.756 60.336-145.664z",
|
|
611
611
|
fill: "#999999",
|
|
612
612
|
"p-id": "10093"
|
|
@@ -616,7 +616,7 @@ var q = {
|
|
|
616
616
|
"p-id": "10094"
|
|
617
617
|
}, null, -1)]]));
|
|
618
618
|
}
|
|
619
|
-
}),
|
|
619
|
+
}), Ie = {
|
|
620
620
|
style: {
|
|
621
621
|
width: "100%",
|
|
622
622
|
height: "100%"
|
|
@@ -627,16 +627,16 @@ var q = {
|
|
|
627
627
|
version: "1.1",
|
|
628
628
|
xmlns: "http://www.w3.org/2000/svg",
|
|
629
629
|
"p-id": "11055"
|
|
630
|
-
},
|
|
630
|
+
}, Le = /* @__PURE__ */ u({
|
|
631
631
|
__name: "Plus",
|
|
632
632
|
setup(e) {
|
|
633
|
-
return (e, t) => (x(), i("svg",
|
|
633
|
+
return (e, t) => (x(), i("svg", Ie, [...t[0] ||= [a("path", {
|
|
634
634
|
d: "M489.244444 489.244444v295.822223c0 18.850702-15.282631 34.133333-34.133333 34.133333s-34.133333-15.282631-34.133333-34.133333v-295.822223h-295.822222c-18.850702 0-34.133333-15.282631-34.133334-34.133333s15.282631-34.133333 34.133334-34.133333h295.822222v-295.822222c0-18.850702 15.282631-34.133333 34.133333-34.133334s34.133333 15.282631 34.133333 34.133334v295.822222h295.822223c18.850702 0 34.133333 15.282631 34.133333 34.133333s-15.282631 34.133333-34.133333 34.133333h-295.822223z",
|
|
635
635
|
fill: "#323233",
|
|
636
636
|
"p-id": "11056"
|
|
637
637
|
}, null, -1)]]));
|
|
638
638
|
}
|
|
639
|
-
}),
|
|
639
|
+
}), Re = {}, ze = {
|
|
640
640
|
style: {
|
|
641
641
|
width: "100%",
|
|
642
642
|
height: "100%"
|
|
@@ -648,14 +648,14 @@ var q = {
|
|
|
648
648
|
xmlns: "http://www.w3.org/2000/svg",
|
|
649
649
|
"p-id": "4859"
|
|
650
650
|
};
|
|
651
|
-
function
|
|
652
|
-
return x(), i("svg",
|
|
651
|
+
function Be(e, t) {
|
|
652
|
+
return x(), i("svg", ze, [...t[0] ||= [a("path", {
|
|
653
653
|
d: "M731.733333 480l-384-341.333333c-17.066667-14.933333-44.8-14.933333-59.733333 4.266666-14.933333 17.066667-14.933333 44.8 4.266667 59.733334L640 512 292.266667 821.333333c-17.066667 14.933333-19.2 42.666667-4.266667 59.733334 8.533333 8.533333 19.2 14.933333 32 14.933333 10.666667 0 19.2-4.266667 27.733333-10.666667l384-341.333333c8.533333-8.533333 14.933333-19.2 14.933334-32s-4.266667-23.466667-14.933334-32z",
|
|
654
654
|
fill: "#666666",
|
|
655
655
|
"p-id": "4860"
|
|
656
656
|
}, null, -1)]]);
|
|
657
657
|
}
|
|
658
|
-
var
|
|
658
|
+
var Ve = /* @__PURE__ */ W(Re, [["render", Be]]), He = {}, Ue = {
|
|
659
659
|
style: {
|
|
660
660
|
width: "100%",
|
|
661
661
|
height: "100%"
|
|
@@ -667,13 +667,13 @@ var Be = /* @__PURE__ */ W(Le, [["render", ze]]), Ve = {}, He = {
|
|
|
667
667
|
xmlns: "http://www.w3.org/2000/svg",
|
|
668
668
|
"p-id": "6029"
|
|
669
669
|
};
|
|
670
|
-
function
|
|
671
|
-
return x(), i("svg",
|
|
670
|
+
function We(e, t) {
|
|
671
|
+
return x(), i("svg", Ue, [...t[0] ||= [a("path", {
|
|
672
672
|
d: "M897.96 728.3c-18.8 18.8-49.1 18.801-67.901 0l-318-318-318 318c-18.8 18.8-49.2 18.8-67.901 0-18.8-18.8-18.801-49.1 0-67.901l352-352c18.8-18.8 49.2-18.8 67.901 0l352 352c9.4 9.4 14 21.7 14 34-0.1 12.2-4.7 24.501-14.1 33.9z",
|
|
673
673
|
"p-id": "6030"
|
|
674
674
|
}, null, -1)]]);
|
|
675
675
|
}
|
|
676
|
-
var
|
|
676
|
+
var Ge = /* @__PURE__ */ W(He, [["render", We]]), Ke = {}, qe = {
|
|
677
677
|
style: {
|
|
678
678
|
width: "100%",
|
|
679
679
|
height: "100%"
|
|
@@ -685,8 +685,8 @@ var We = /* @__PURE__ */ W(Ve, [["render", Ue]]), Ge = {}, Ke = {
|
|
|
685
685
|
xmlns: "http://www.w3.org/2000/svg",
|
|
686
686
|
"p-id": "6997"
|
|
687
687
|
};
|
|
688
|
-
function
|
|
689
|
-
return x(), i("svg",
|
|
688
|
+
function Je(e, t) {
|
|
689
|
+
return x(), i("svg", qe, [...t[0] ||= [a("path", {
|
|
690
690
|
d: "M512.34133333 931.38488889c-49.94844445 0-98.87288889-8.64711111-145.29422222-25.82755556-44.94222222-16.61155555-86.35733333-40.61866667-123.22133333-71.45244444-74.29688889-61.89511111-125.15555555-148.02488889-143.24622223-242.34666667l71.45244445-13.76711111c31.28888889 162.58844445 174.42133333 280.576 340.30933333 280.576 70.08711111 0 137.55733333-20.82133333 195.12888889-60.07466666 56.32-38.45688889 99.66933333-91.93244445 125.49688889-154.73777778l67.35644444 27.648c-31.28888889 76.00355555-83.74044445 140.74311111-151.77955555 187.16444444-69.85955555 47.67288889-151.43822222 72.81777778-236.20266667 72.81777778zM846.848 421.43288889C827.392 349.29777778 783.92888889 284.33066667 724.65066667 238.13688889c-61.21244445-47.55911111-134.59911111-72.704-212.30933334-72.704-69.97333333 0-137.44355555 20.70755555-194.90133333 59.96088889-56.32 38.57066667-99.78311111 91.93244445-125.61066667 154.624l-67.35644444-27.76177778c31.28888889-75.88977778 83.74044445-140.40177778 151.77955556-186.82311111 69.74577778-47.55911111 151.32444445-72.704 235.9751111-72.704 47.33155555 0 93.86666667 7.85066667 138.12622223 23.32444444 42.89422222 14.90488889 82.83022222 36.75022222 118.784 64.62577778 35.61244445 27.648 66.33244445 60.64355555 91.47733333 98.07644444 25.48622222 38.00177778 44.48711111 79.64444445 56.32 123.67644445l-70.08711111 19.00088889z",
|
|
691
691
|
"p-id": "6998"
|
|
692
692
|
}, null, -1), a("path", {
|
|
@@ -694,7 +694,7 @@ function qe(e, t) {
|
|
|
694
694
|
"p-id": "6999"
|
|
695
695
|
}, null, -1)]]);
|
|
696
696
|
}
|
|
697
|
-
var
|
|
697
|
+
var q = /* @__PURE__ */ W(Ke, [["render", Je]]), Ye = {}, Xe = {
|
|
698
698
|
style: {
|
|
699
699
|
width: "100%",
|
|
700
700
|
height: "100%"
|
|
@@ -713,50 +713,42 @@ function Ze(e, t) {
|
|
|
713
713
|
}, null, -1)]]);
|
|
714
714
|
}
|
|
715
715
|
var Qe = /* @__PURE__ */ W(Ye, [["render", Ze]]), $e = /* @__PURE__ */ U({
|
|
716
|
-
ArrowRight: () =>
|
|
717
|
-
ArrowUp: () =>
|
|
718
|
-
CloseBold: () =>
|
|
719
|
-
Plus: () =>
|
|
716
|
+
ArrowRight: () => Ve,
|
|
717
|
+
ArrowUp: () => Ge,
|
|
718
|
+
CloseBold: () => Ne,
|
|
719
|
+
Plus: () => Le,
|
|
720
720
|
Promotion: () => Qe,
|
|
721
|
-
Refresh: () =>
|
|
722
|
-
Search: () =>
|
|
723
|
-
User: () =>
|
|
724
|
-
YcIcon: () =>
|
|
721
|
+
Refresh: () => q,
|
|
722
|
+
Search: () => je,
|
|
723
|
+
User: () => Fe,
|
|
724
|
+
YcIcon: () => ke
|
|
725
725
|
});
|
|
726
726
|
//#endregion
|
|
727
727
|
//#region src/components/utils/tools.ts
|
|
728
728
|
function et(e) {
|
|
729
729
|
return typeof e == "number" ? e + "px" : e || "100px";
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function J(e) {
|
|
732
732
|
return typeof e == "number" ? e + "px" : e || "180px";
|
|
733
733
|
}
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
"onUpdate:modelValue": (n) => t[e.prop] = n,
|
|
743
|
-
onChange: (r) => n.onChange?.(r) || (t[e.prop] = r)
|
|
744
|
-
},
|
|
745
|
-
type: i,
|
|
746
|
-
component: q[i]
|
|
747
|
-
});
|
|
748
|
-
}), ((n) => typeof e.render == "function" ? e.render({
|
|
749
|
-
h: n,
|
|
734
|
+
var tt = Object.fromEntries(Object.entries(Ce).map(([e, t]) => [e, (n = {}) => ({
|
|
735
|
+
props: n,
|
|
736
|
+
type: e,
|
|
737
|
+
component: t
|
|
738
|
+
})]));
|
|
739
|
+
function Y(e, t) {
|
|
740
|
+
return typeof e.render == "function" ? e.render({
|
|
741
|
+
h: tt,
|
|
750
742
|
data: t
|
|
751
|
-
}) :
|
|
743
|
+
}) : tt.input({ prop: e.prop });
|
|
752
744
|
}
|
|
753
|
-
function
|
|
745
|
+
function X(e, t, n) {
|
|
754
746
|
n && typeof t == "object" && t && t[n];
|
|
755
|
-
let r =
|
|
756
|
-
return typeof r
|
|
747
|
+
let r = Y(e, t);
|
|
748
|
+
return typeof r != "object" || !r ? r ?? "" : r.component ? r : r.type ? {
|
|
757
749
|
component: r.type,
|
|
758
750
|
props: r.props
|
|
759
|
-
} : r
|
|
751
|
+
} : r;
|
|
760
752
|
}
|
|
761
753
|
//#endregion
|
|
762
754
|
//#region src/components/Filter/index.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -801,7 +793,7 @@ var nt = { style: {
|
|
|
801
793
|
}), m = S({}), g = t(() => s.fields.slice(0, p.expand ? s.fields.length : p.expandNum)), _ = t(() => 24 - g.value?.reduce((e, t) => e + (t.span || 24 / s.column), 0) % 24 - 24 / s.column);
|
|
802
794
|
y(() => {
|
|
803
795
|
p.expandNum = f?.expandNum ?? 2 * s.column - 1, s.fields.forEach((e) => {
|
|
804
|
-
let t =
|
|
796
|
+
let t = Y(e, m)?.props?.defaultValue;
|
|
805
797
|
t !== void 0 && (m[e.prop] = t);
|
|
806
798
|
});
|
|
807
799
|
});
|
|
@@ -841,15 +833,15 @@ var nt = { style: {
|
|
|
841
833
|
key: e.prop,
|
|
842
834
|
label: e.label,
|
|
843
835
|
"label-width": P(et)(e?.labelWidth || s.labelWidth),
|
|
844
|
-
"value-width": P(
|
|
836
|
+
"value-width": P(J)(e?.valueWidth || s.valueWidth)
|
|
845
837
|
}, {
|
|
846
|
-
default: z(() => [e.render ? (x(), n(O(P(
|
|
838
|
+
default: z(() => [e.render ? (x(), n(O(P(Y)(e, m).component), h({
|
|
847
839
|
key: 0,
|
|
848
840
|
modelValue: m[e.prop],
|
|
849
841
|
"onUpdate:modelValue": (t) => m[e.prop] = t
|
|
850
|
-
}, { ref_for: !0 }, P(
|
|
842
|
+
}, { ref_for: !0 }, P(Y)(e, m).props, {
|
|
851
843
|
clearable: !0,
|
|
852
|
-
style: { width: P(
|
|
844
|
+
style: { width: P(J)(e?.valueWidth || s.valueWidth) }
|
|
853
845
|
}), null, 16, [
|
|
854
846
|
"modelValue",
|
|
855
847
|
"onUpdate:modelValue",
|
|
@@ -860,7 +852,7 @@ var nt = { style: {
|
|
|
860
852
|
"onUpdate:modelValue": (t) => m[e.prop] = t,
|
|
861
853
|
placeholder: "请输入",
|
|
862
854
|
clearable: !0,
|
|
863
|
-
style: v({ width: P(
|
|
855
|
+
style: v({ width: P(J)(e?.valueWidth || s.valueWidth) })
|
|
864
856
|
}, null, 8, [
|
|
865
857
|
"modelValue",
|
|
866
858
|
"onUpdate:modelValue",
|
|
@@ -886,14 +878,14 @@ var nt = { style: {
|
|
|
886
878
|
s.fields.length >= 2 * s.column ? (x(), n(y, {
|
|
887
879
|
key: 0,
|
|
888
880
|
text: "",
|
|
889
|
-
icon: p.expand ? P(
|
|
881
|
+
icon: p.expand ? P(Ge) : P(Ve),
|
|
890
882
|
onClick: o[0] ||= (e) => p.expand = !p.expand
|
|
891
883
|
}, {
|
|
892
884
|
default: z(() => [c(j(p.expand ? "收起" : "展开"), 1)]),
|
|
893
885
|
_: 1
|
|
894
886
|
}, 8, ["icon"])) : r("", !0),
|
|
895
887
|
l(y, {
|
|
896
|
-
icon: P(
|
|
888
|
+
icon: P(je),
|
|
897
889
|
type: "primary",
|
|
898
890
|
onClick: b
|
|
899
891
|
}, {
|
|
@@ -901,7 +893,7 @@ var nt = { style: {
|
|
|
901
893
|
_: 1
|
|
902
894
|
}, 8, ["icon"]),
|
|
903
895
|
l(y, {
|
|
904
|
-
icon: P(
|
|
896
|
+
icon: P(q),
|
|
905
897
|
onClick: C
|
|
906
898
|
}, {
|
|
907
899
|
default: z(() => [...o[2] ||= [c("重置", -1)]]),
|
|
@@ -1027,11 +1019,11 @@ var nt = { style: {
|
|
|
1027
1019
|
gridColumn: `span ${(r?.span || P(D)) / 2 || 1}`
|
|
1028
1020
|
})
|
|
1029
1021
|
}, {
|
|
1030
|
-
default: z(() => [r.render ? (x(), i(e, { key: 0 }, [P(
|
|
1022
|
+
default: z(() => [r.render ? (x(), i(e, { key: 0 }, [P(X)(r, B.value, r.prop).component ? (x(), n(O(P(X)(r, B.value, r.prop).component), h({
|
|
1031
1023
|
key: 1,
|
|
1032
1024
|
modelValue: B.value[r.prop],
|
|
1033
1025
|
"onUpdate:modelValue": (e) => B.value[r.prop] = e
|
|
1034
|
-
}, { ref_for: !0 }, P(
|
|
1026
|
+
}, { ref_for: !0 }, P(X)(r, B.value, r.prop).props, {
|
|
1035
1027
|
clearable: !0,
|
|
1036
1028
|
key: `${r.prop}-${N.value}`,
|
|
1037
1029
|
style: { display: "inline-block" },
|
|
@@ -1040,13 +1032,13 @@ var nt = { style: {
|
|
|
1040
1032
|
"modelValue",
|
|
1041
1033
|
"onUpdate:modelValue",
|
|
1042
1034
|
"class"
|
|
1043
|
-
])) : (x(), i("span", ot, j(P(
|
|
1035
|
+
])) : (x(), i("span", ot, j(P(X)(r, B.value, r.prop) || "-"), 1)), (x(!0), i(e, null, w(r.slots, (e) => T(t.$slots, "default", { form: B.value }, () => [P(X)(e, B.value, e.prop).component ? (x(), n(O(P(X)(e, B.value, e.prop).component), h({
|
|
1044
1036
|
key: 1,
|
|
1045
1037
|
modelValue: B.value[e.prop],
|
|
1046
1038
|
"onUpdate:modelValue": (t) => B.value[e.prop] = t,
|
|
1047
1039
|
"default-value": e.defaultValue,
|
|
1048
1040
|
placeholder: e.placeholder
|
|
1049
|
-
}, { ref_for: !0 }, P(
|
|
1041
|
+
}, { ref_for: !0 }, P(X)(e, B.value, e.prop).props, {
|
|
1050
1042
|
style: {
|
|
1051
1043
|
display: "inline-block",
|
|
1052
1044
|
marginLeft: "10px",
|
|
@@ -1062,7 +1054,7 @@ var nt = { style: {
|
|
|
1062
1054
|
"placeholder",
|
|
1063
1055
|
"style",
|
|
1064
1056
|
"class"
|
|
1065
|
-
])) : (x(), i("span", st, j(P(
|
|
1057
|
+
])) : (x(), i("span", st, j(P(X)(e, B.value, e.prop) || "-"), 1))], !0)), 256))], 64)) : (x(), n(o, {
|
|
1066
1058
|
key: 1,
|
|
1067
1059
|
modelValue: B.value[r.prop],
|
|
1068
1060
|
"onUpdate:modelValue": (e) => B.value[r.prop] = e,
|
|
@@ -1092,7 +1084,7 @@ var nt = { style: {
|
|
|
1092
1084
|
]), t.$attrs?.hideHandle ? r("", !0) : (x(), i("div", ct, [
|
|
1093
1085
|
T(t.$slots, "handle", { form: B.value }, void 0, !0),
|
|
1094
1086
|
l(d, {
|
|
1095
|
-
icon: P(
|
|
1087
|
+
icon: P(q),
|
|
1096
1088
|
onClick: H,
|
|
1097
1089
|
size: t.$props.size
|
|
1098
1090
|
}, {
|
|
@@ -1392,11 +1384,11 @@ var nt = { style: {
|
|
|
1392
1384
|
label: e.label,
|
|
1393
1385
|
span: e.span || 2
|
|
1394
1386
|
}, {
|
|
1395
|
-
default: z(() => [e.render ? (x(), n(O(P(
|
|
1387
|
+
default: z(() => [e.render ? (x(), n(O(P(Y)(e, t.data).component), h({
|
|
1396
1388
|
key: 0,
|
|
1397
1389
|
modelValue: t.data[e.prop],
|
|
1398
1390
|
"onUpdate:modelValue": (n) => t.data[e.prop] = n
|
|
1399
|
-
}, { ref_for: !0 }, P(
|
|
1391
|
+
}, { ref_for: !0 }, P(Y)(e, t.data).props, {
|
|
1400
1392
|
clearable: !0,
|
|
1401
1393
|
key: e.prop,
|
|
1402
1394
|
style: { display: "inline-block" }
|
|
@@ -1473,7 +1465,7 @@ var nt = { style: {
|
|
|
1473
1465
|
]);
|
|
1474
1466
|
};
|
|
1475
1467
|
}
|
|
1476
|
-
}), Bt = /* @__PURE__ */ U({ default: () => Vt }), Vt = zt,
|
|
1468
|
+
}), Bt = /* @__PURE__ */ U({ default: () => Vt }), Vt = zt, Z = window.origin?.includes("localhost") || window.origin?.includes("127.0.0.1") ? "/api" : "/intellicit-service";
|
|
1477
1469
|
function Ht(e) {
|
|
1478
1470
|
return Array.from(new Set(e));
|
|
1479
1471
|
}
|
|
@@ -1510,7 +1502,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1510
1502
|
o.modelValue && p(o.modelValue);
|
|
1511
1503
|
});
|
|
1512
1504
|
async function p(e = "") {
|
|
1513
|
-
f.value = ((await fetch(
|
|
1505
|
+
f.value = ((await fetch(Z + "/user/pageQueryUser", {
|
|
1514
1506
|
method: "POST",
|
|
1515
1507
|
headers: u,
|
|
1516
1508
|
body: JSON.stringify({
|
|
@@ -1540,7 +1532,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1540
1532
|
"remote-method": m
|
|
1541
1533
|
}, t.$attrs), {
|
|
1542
1534
|
prefix: z(() => [l(a, null, {
|
|
1543
|
-
default: z(() => [l(P(
|
|
1535
|
+
default: z(() => [l(P(Fe))]),
|
|
1544
1536
|
_: 1
|
|
1545
1537
|
})]),
|
|
1546
1538
|
default: z(() => [(x(!0), i(e, null, w(f.value, (e) => (x(), n(o, {
|
|
@@ -1603,14 +1595,14 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1603
1595
|
_.value && k();
|
|
1604
1596
|
});
|
|
1605
1597
|
async function k() {
|
|
1606
|
-
let e = await fetch(
|
|
1598
|
+
let e = await fetch(Z + "/department/queryDepartmentTree", {
|
|
1607
1599
|
method: "GET",
|
|
1608
1600
|
headers: v
|
|
1609
1601
|
}).then((e) => e.json());
|
|
1610
1602
|
y.staffData = e.data || [], e.data?.[0] && M(e.data?.[0]);
|
|
1611
1603
|
}
|
|
1612
1604
|
async function A(e) {
|
|
1613
|
-
return fetch(
|
|
1605
|
+
return fetch(Z + "/user/pageQueryUser", {
|
|
1614
1606
|
method: "POST",
|
|
1615
1607
|
headers: v,
|
|
1616
1608
|
body: JSON.stringify(e)
|
|
@@ -1636,7 +1628,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1636
1628
|
return t?.account ? e("div", { style: { display: "flex" } }, [e("el-icon", { style: {
|
|
1637
1629
|
width: "14px",
|
|
1638
1630
|
height: "14px"
|
|
1639
|
-
} }, e(
|
|
1631
|
+
} }, e(Fe)), n ? t.fullName : t.name]) : n ? t.fullName : t.name;
|
|
1640
1632
|
}
|
|
1641
1633
|
function ee(e) {
|
|
1642
1634
|
if (T.value = T.value.filter((t) => t !== e), m.value) {
|
|
@@ -1722,7 +1714,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1722
1714
|
modelValue: y.filterText,
|
|
1723
1715
|
"onUpdate:modelValue": n[2] ||= (e) => y.filterText = e,
|
|
1724
1716
|
clearable: "",
|
|
1725
|
-
"prefix-icon": P(
|
|
1717
|
+
"prefix-icon": P(je),
|
|
1726
1718
|
onKeydown: te(I, ["enter"])
|
|
1727
1719
|
}, null, 8, ["modelValue", "prefix-icon"]), l(u, {
|
|
1728
1720
|
loading: y.loading,
|
|
@@ -1746,7 +1738,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1746
1738
|
color: "red",
|
|
1747
1739
|
onClick: ne((t) => ee(e), ["stop"])
|
|
1748
1740
|
}, {
|
|
1749
|
-
default: z(() => [l(P(
|
|
1741
|
+
default: z(() => [l(P(Ne))]),
|
|
1750
1742
|
_: 1
|
|
1751
1743
|
}, 8, ["onClick"])]))), 128))])])]), a("div", Zt, [l(p, { onClick: V }, {
|
|
1752
1744
|
default: z(() => [...n[5] ||= [c("取消", -1)]]),
|
|
@@ -1762,7 +1754,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1762
1754
|
}, 8, ["modelValue"])], 64);
|
|
1763
1755
|
};
|
|
1764
1756
|
}
|
|
1765
|
-
}), [["__scopeId", "data-v-
|
|
1757
|
+
}), [["__scopeId", "data-v-6c972882"]]), $t = /* @__PURE__ */ u({
|
|
1766
1758
|
__name: "index",
|
|
1767
1759
|
props: {
|
|
1768
1760
|
multiple: { type: Boolean },
|
|
@@ -1867,7 +1859,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1867
1859
|
"on-preview": s
|
|
1868
1860
|
}), {
|
|
1869
1861
|
default: z(() => [l(u, null, {
|
|
1870
|
-
default: z(() => [l(P(
|
|
1862
|
+
default: z(() => [l(P(Le))]),
|
|
1871
1863
|
_: 1
|
|
1872
1864
|
})]),
|
|
1873
1865
|
_: 1
|
|
@@ -1915,7 +1907,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1915
1907
|
"fileList",
|
|
1916
1908
|
"limit",
|
|
1917
1909
|
"action"
|
|
1918
|
-
]), s =
|
|
1910
|
+
]), s = Z + "/attachment/uploadAttachment", c = e.action || s, l = C(), u = C(0), d = { token: localStorage.getItem("TOKEN") || "" }, f = t({
|
|
1919
1911
|
get: () => N(e.fileList) || [],
|
|
1920
1912
|
set: (e) => i("update:fileList", e)
|
|
1921
1913
|
});
|
|
@@ -1935,7 +1927,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1935
1927
|
function _(e, t) {
|
|
1936
1928
|
let n = N(f);
|
|
1937
1929
|
if (e?.code !== "ok") return G.Message.error(e?.message);
|
|
1938
|
-
let r =
|
|
1930
|
+
let r = Z + `/attachment/downloadAttachment?objectKey=${e.data?.objectKey}&fileName=${e.data?.fileName}&token=${d.token}`;
|
|
1939
1931
|
n?.some((t) => t?.objectKey === e.data?.objectKey) || n.push({
|
|
1940
1932
|
name: t.name,
|
|
1941
1933
|
uid: t.uid,
|
|
@@ -1999,7 +1991,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1999
1991
|
} }, dn = /* @__PURE__ */ U({
|
|
2000
1992
|
card: () => un,
|
|
2001
1993
|
sticky: () => ln
|
|
2002
|
-
})
|
|
1994
|
+
});
|
|
2003
1995
|
//#endregion
|
|
2004
1996
|
//#region src/hooks/useFetch.ts
|
|
2005
1997
|
function fn(e, t = {}) {
|
|
@@ -2241,7 +2233,7 @@ var bn = /* @__PURE__ */ U({
|
|
|
2241
2233
|
useTable: () => yn
|
|
2242
2234
|
}), xn = "Yc", Sn = {
|
|
2243
2235
|
UiCard: ae,
|
|
2244
|
-
UiTable:
|
|
2236
|
+
UiTable: Ee,
|
|
2245
2237
|
UiFilter: it,
|
|
2246
2238
|
UiForm: ut,
|
|
2247
2239
|
UiEditor: mt,
|
|
@@ -2276,4 +2268,4 @@ var Tn = { install(e, t) {
|
|
|
2276
2268
|
for (let [t, n] of Object.entries(dn)) (typeof n == "function" || typeof n == "object") && e.directive(t, n);
|
|
2277
2269
|
} };
|
|
2278
2270
|
//#endregion
|
|
2279
|
-
export { ae as _, yn as a, en as c, jt as d, Ct as f,
|
|
2271
|
+
export { ae as _, yn as a, en as c, jt as d, Ct as f, Ee as g, it as h, bn as i, Bt as l, ut as m, wn as n, fn as o, mt as p, Tn as r, sn as s, $ as t, It as u };
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, o as t } from "../entry-
|
|
1
|
+
import { a as e, o as t } from "../entry-CvyIhp3N.js";
|
|
2
2
|
export { t as useFetch, e as useTable };
|
package/dist/index.css
CHANGED
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
.staff-tree[data-v-
|
|
144
|
+
.staff-tree[data-v-6c972882] {
|
|
145
145
|
position: relative;
|
|
146
146
|
height: 90%;
|
|
147
147
|
overflow-y: auto;
|
|
@@ -149,28 +149,28 @@
|
|
|
149
149
|
border-radius: 4px;
|
|
150
150
|
margin-top: 8px;
|
|
151
151
|
}
|
|
152
|
-
.staff-select-trigger[data-v-
|
|
152
|
+
.staff-select-trigger[data-v-6c972882] {
|
|
153
153
|
width: 100%;
|
|
154
154
|
cursor: pointer;
|
|
155
155
|
}
|
|
156
|
-
.staff-select-trigger[data-v-
|
|
156
|
+
.staff-select-trigger[data-v-6c972882] .el-select {
|
|
157
157
|
width: 100%;
|
|
158
158
|
pointer-events: none;
|
|
159
159
|
}
|
|
160
160
|
.staff-item {
|
|
161
|
-
&[data-v-
|
|
161
|
+
&[data-v-6c972882] {
|
|
162
162
|
line-height: 28px;
|
|
163
163
|
padding: 0% 20px 0% 10px;
|
|
164
164
|
display: flex;
|
|
165
165
|
justify-content: space-between;
|
|
166
166
|
align-items: center;
|
|
167
167
|
}
|
|
168
|
-
&[data-v-
|
|
168
|
+
&[data-v-6c972882]:hover {
|
|
169
169
|
background-color: rgba(102, 177, 255, 0.5);
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
.is-required {
|
|
173
|
-
&[data-v-
|
|
173
|
+
&[data-v-6c972882] .el-select__wrapper {
|
|
174
174
|
border: 1px solid red;
|
|
175
175
|
}
|
|
176
176
|
}
|
package/dist/utils/index.d.ts
CHANGED
package/dist/vep-ui.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, p as u, r as d, s as f, t as p, u as m } from "./entry-
|
|
1
|
+
import { _ as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, p as u, r as d, s as f, t as p, u as m } from "./entry-CvyIhp3N.js";
|
|
2
2
|
export { e as UiCard, m as UiDescriptions, s as UiDialog, u as UiEditor, a as UiFilter, c as UiForm, n as UiInfiniteScroll, t as UiStaffSelect, i as UiTable, r as UiTree, f as UiUpload, d as default, d as ycPlugin, p as getHostVue, o as hooks, l as setHostVue };
|
package/package.json
CHANGED