yc-vep-ui 0.3.3 → 0.3.5

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.
@@ -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: string;
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 q = {
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
- }, Ce = /* @__PURE__ */ u({
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(q).forEach((i) => {
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 q[o](i);
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
- }), we = /* @__PURE__ */ u({
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(Ce, {
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
- }), Te = /* @__PURE__ */ U({ default: () => Ee }), Ee = /* @__PURE__ */ W(we, [["__scopeId", "data-v-adf869c1"]]), De = ["src"], Oe = /* @__PURE__ */ u({
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, De)) : r("", !0);
559
+ }, null, 12, Oe)) : r("", !0);
560
560
  }
561
- }), ke = {
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
- }, Ae = /* @__PURE__ */ u({
572
+ }, je = /* @__PURE__ */ u({
573
573
  __name: "Search",
574
574
  setup(e) {
575
- return (e, t) => (x(), i("svg", ke, [...t[0] ||= [a("path", {
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
- }), je = {
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
- }, Me = /* @__PURE__ */ u({
587
+ }, Ne = /* @__PURE__ */ u({
588
588
  __name: "CloseBold",
589
589
  setup(e) {
590
- return (e, t) => (x(), i("svg", je, [...t[0] ||= [a("path", {
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
- }), Ne = {
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
- }, Pe = /* @__PURE__ */ u({
606
+ }, Fe = /* @__PURE__ */ u({
607
607
  __name: "User",
608
608
  setup(e) {
609
- return (e, t) => (x(), i("svg", Ne, [...t[0] ||= [a("path", {
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
- }), Fe = {
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
- }, Ie = /* @__PURE__ */ u({
630
+ }, Le = /* @__PURE__ */ u({
631
631
  __name: "Plus",
632
632
  setup(e) {
633
- return (e, t) => (x(), i("svg", Fe, [...t[0] ||= [a("path", {
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
- }), Le = {}, Re = {
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 ze(e, t) {
652
- return x(), i("svg", Re, [...t[0] ||= [a("path", {
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 Be = /* @__PURE__ */ W(Le, [["render", ze]]), Ve = {}, He = {
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 Ue(e, t) {
671
- return x(), i("svg", He, [...t[0] ||= [a("path", {
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 We = /* @__PURE__ */ W(Ve, [["render", Ue]]), Ge = {}, Ke = {
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 qe(e, t) {
689
- return x(), i("svg", Ke, [...t[0] ||= [a("path", {
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 Je = /* @__PURE__ */ W(Ge, [["render", qe]]), Ye = {}, Xe = {
697
+ var q = /* @__PURE__ */ W(Ke, [["render", Je]]), Ye = {}, Xe = {
698
698
  style: {
699
699
  width: "100%",
700
700
  height: "100%"
@@ -713,50 +713,39 @@ function Ze(e, t) {
713
713
  }, null, -1)]]);
714
714
  }
715
715
  var Qe = /* @__PURE__ */ W(Ye, [["render", Ze]]), $e = /* @__PURE__ */ U({
716
- ArrowRight: () => Be,
717
- ArrowUp: () => We,
718
- CloseBold: () => Me,
719
- Plus: () => Ie,
716
+ ArrowRight: () => Ve,
717
+ ArrowUp: () => Ge,
718
+ CloseBold: () => Ne,
719
+ Plus: () => Le,
720
720
  Promotion: () => Qe,
721
- Refresh: () => Je,
722
- Search: () => Ae,
723
- User: () => Pe,
724
- YcIcon: () => Oe
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 tt(e) {
731
+ function J(e) {
732
732
  return typeof e == "number" ? e + "px" : e || "180px";
733
733
  }
734
- function J(e, t) {
735
- let n = {};
736
- return Object.keys(q).forEach((r) => {
737
- let i = r;
738
- n[i] = (n = {}) => ({
739
- props: {
740
- prop: e.prop,
741
- ...n,
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
- }) : n.input(n.props || {}))(n);
743
+ }) : tt.input({ prop: e.prop });
752
744
  }
753
- function Y(e, t, n) {
745
+ function X(e, t, n) {
754
746
  n && typeof t == "object" && t && t[n];
755
- let r = J(e, t);
756
- return typeof r == "object" && r ? r.component ? r : r.type ? {
757
- component: r.type,
758
- props: r.props
759
- } : r : r;
747
+ let r = Y(e, t);
748
+ return typeof r != "object" || !r ? r ?? "" : (r.component, r);
760
749
  }
761
750
  //#endregion
762
751
  //#region src/components/Filter/index.vue?vue&type=script&setup=true&lang.ts
@@ -801,7 +790,7 @@ var nt = { style: {
801
790
  }), 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
791
  y(() => {
803
792
  p.expandNum = f?.expandNum ?? 2 * s.column - 1, s.fields.forEach((e) => {
804
- let t = J(e, m)?.props?.defaultValue;
793
+ let t = Y(e, m)?.props?.defaultValue;
805
794
  t !== void 0 && (m[e.prop] = t);
806
795
  });
807
796
  });
@@ -841,15 +830,15 @@ var nt = { style: {
841
830
  key: e.prop,
842
831
  label: e.label,
843
832
  "label-width": P(et)(e?.labelWidth || s.labelWidth),
844
- "value-width": P(tt)(e?.valueWidth || s.valueWidth)
833
+ "value-width": P(J)(e?.valueWidth || s.valueWidth)
845
834
  }, {
846
- default: z(() => [e.render ? (x(), n(O(P(J)(e, m).component), h({
835
+ default: z(() => [e.render ? (x(), n(O(P(Y)(e, m).component), h({
847
836
  key: 0,
848
837
  modelValue: m[e.prop],
849
838
  "onUpdate:modelValue": (t) => m[e.prop] = t
850
- }, { ref_for: !0 }, P(J)(e, m).props, {
839
+ }, { ref_for: !0 }, P(Y)(e, m).props, {
851
840
  clearable: !0,
852
- style: { width: P(tt)(e?.valueWidth || s.valueWidth) }
841
+ style: { width: P(J)(e?.valueWidth || s.valueWidth) }
853
842
  }), null, 16, [
854
843
  "modelValue",
855
844
  "onUpdate:modelValue",
@@ -860,7 +849,7 @@ var nt = { style: {
860
849
  "onUpdate:modelValue": (t) => m[e.prop] = t,
861
850
  placeholder: "请输入",
862
851
  clearable: !0,
863
- style: v({ width: P(tt)(e?.valueWidth || s.valueWidth) })
852
+ style: v({ width: P(J)(e?.valueWidth || s.valueWidth) })
864
853
  }, null, 8, [
865
854
  "modelValue",
866
855
  "onUpdate:modelValue",
@@ -886,14 +875,14 @@ var nt = { style: {
886
875
  s.fields.length >= 2 * s.column ? (x(), n(y, {
887
876
  key: 0,
888
877
  text: "",
889
- icon: p.expand ? P(We) : P(Be),
878
+ icon: p.expand ? P(Ge) : P(Ve),
890
879
  onClick: o[0] ||= (e) => p.expand = !p.expand
891
880
  }, {
892
881
  default: z(() => [c(j(p.expand ? "收起" : "展开"), 1)]),
893
882
  _: 1
894
883
  }, 8, ["icon"])) : r("", !0),
895
884
  l(y, {
896
- icon: P(Ae),
885
+ icon: P(je),
897
886
  type: "primary",
898
887
  onClick: b
899
888
  }, {
@@ -901,7 +890,7 @@ var nt = { style: {
901
890
  _: 1
902
891
  }, 8, ["icon"]),
903
892
  l(y, {
904
- icon: P(Je),
893
+ icon: P(q),
905
894
  onClick: C
906
895
  }, {
907
896
  default: z(() => [...o[2] ||= [c("重置", -1)]]),
@@ -1027,11 +1016,11 @@ var nt = { style: {
1027
1016
  gridColumn: `span ${(r?.span || P(D)) / 2 || 1}`
1028
1017
  })
1029
1018
  }, {
1030
- default: z(() => [r.render ? (x(), i(e, { key: 0 }, [P(Y)(r, B.value, r.prop).component ? (x(), n(O(P(Y)(r, B.value, r.prop).component), h({
1019
+ 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
1020
  key: 1,
1032
1021
  modelValue: B.value[r.prop],
1033
1022
  "onUpdate:modelValue": (e) => B.value[r.prop] = e
1034
- }, { ref_for: !0 }, P(Y)(r, B.value, r.prop).props, {
1023
+ }, { ref_for: !0 }, P(X)(r, B.value, r.prop).props, {
1035
1024
  clearable: !0,
1036
1025
  key: `${r.prop}-${N.value}`,
1037
1026
  style: { display: "inline-block" },
@@ -1040,13 +1029,13 @@ var nt = { style: {
1040
1029
  "modelValue",
1041
1030
  "onUpdate:modelValue",
1042
1031
  "class"
1043
- ])) : (x(), i("span", ot, j(P(Y)(r, B.value, r.prop) || "-"), 1)), (x(!0), i(e, null, w(r.slots, (e) => T(t.$slots, "default", { form: B.value }, () => [P(Y)(e, B.value, e.prop).component ? (x(), n(O(P(Y)(e, B.value, e.prop).component), h({
1032
+ ])) : (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
1033
  key: 1,
1045
1034
  modelValue: B.value[e.prop],
1046
1035
  "onUpdate:modelValue": (t) => B.value[e.prop] = t,
1047
1036
  "default-value": e.defaultValue,
1048
1037
  placeholder: e.placeholder
1049
- }, { ref_for: !0 }, P(Y)(e, B.value, e.prop).props, {
1038
+ }, { ref_for: !0 }, P(X)(e, B.value, e.prop).props, {
1050
1039
  style: {
1051
1040
  display: "inline-block",
1052
1041
  marginLeft: "10px",
@@ -1062,7 +1051,7 @@ var nt = { style: {
1062
1051
  "placeholder",
1063
1052
  "style",
1064
1053
  "class"
1065
- ])) : (x(), i("span", st, j(P(Y)(e, B.value, e.prop) || "-"), 1))], !0)), 256))], 64)) : (x(), n(o, {
1054
+ ])) : (x(), i("span", st, j(P(X)(e, B.value, e.prop) || "-"), 1))], !0)), 256))], 64)) : (x(), n(o, {
1066
1055
  key: 1,
1067
1056
  modelValue: B.value[r.prop],
1068
1057
  "onUpdate:modelValue": (e) => B.value[r.prop] = e,
@@ -1092,7 +1081,7 @@ var nt = { style: {
1092
1081
  ]), t.$attrs?.hideHandle ? r("", !0) : (x(), i("div", ct, [
1093
1082
  T(t.$slots, "handle", { form: B.value }, void 0, !0),
1094
1083
  l(d, {
1095
- icon: P(Je),
1084
+ icon: P(q),
1096
1085
  onClick: H,
1097
1086
  size: t.$props.size
1098
1087
  }, {
@@ -1392,11 +1381,11 @@ var nt = { style: {
1392
1381
  label: e.label,
1393
1382
  span: e.span || 2
1394
1383
  }, {
1395
- default: z(() => [e.render ? (x(), n(O(P(J)(e, t.data).component), h({
1384
+ default: z(() => [e.render ? (x(), n(O(P(Y)(e, t.data).component), h({
1396
1385
  key: 0,
1397
1386
  modelValue: t.data[e.prop],
1398
1387
  "onUpdate:modelValue": (n) => t.data[e.prop] = n
1399
- }, { ref_for: !0 }, P(J)(e, t.data).props, {
1388
+ }, { ref_for: !0 }, P(Y)(e, t.data).props, {
1400
1389
  clearable: !0,
1401
1390
  key: e.prop,
1402
1391
  style: { display: "inline-block" }
@@ -1473,7 +1462,7 @@ var nt = { style: {
1473
1462
  ]);
1474
1463
  };
1475
1464
  }
1476
- }), Bt = /* @__PURE__ */ U({ default: () => Vt }), Vt = zt, X = window.origin?.includes("localhost") || window.origin?.includes("127.0.0.1") ? "/api" : "/intellicit-service";
1465
+ }), Bt = /* @__PURE__ */ U({ default: () => Vt }), Vt = zt, Z = window.origin?.includes("localhost") || window.origin?.includes("127.0.0.1") ? "/api" : "/intellicit-service";
1477
1466
  function Ht(e) {
1478
1467
  return Array.from(new Set(e));
1479
1468
  }
@@ -1510,7 +1499,7 @@ var Wt = /* @__PURE__ */ u({
1510
1499
  o.modelValue && p(o.modelValue);
1511
1500
  });
1512
1501
  async function p(e = "") {
1513
- f.value = ((await fetch(X + "/user/pageQueryUser", {
1502
+ f.value = ((await fetch(Z + "/user/pageQueryUser", {
1514
1503
  method: "POST",
1515
1504
  headers: u,
1516
1505
  body: JSON.stringify({
@@ -1540,7 +1529,7 @@ var Wt = /* @__PURE__ */ u({
1540
1529
  "remote-method": m
1541
1530
  }, t.$attrs), {
1542
1531
  prefix: z(() => [l(a, null, {
1543
- default: z(() => [l(P(Pe))]),
1532
+ default: z(() => [l(P(Fe))]),
1544
1533
  _: 1
1545
1534
  })]),
1546
1535
  default: z(() => [(x(!0), i(e, null, w(f.value, (e) => (x(), n(o, {
@@ -1603,14 +1592,14 @@ var Wt = /* @__PURE__ */ u({
1603
1592
  _.value && k();
1604
1593
  });
1605
1594
  async function k() {
1606
- let e = await fetch(X + "/department/queryDepartmentTree", {
1595
+ let e = await fetch(Z + "/department/queryDepartmentTree", {
1607
1596
  method: "GET",
1608
1597
  headers: v
1609
1598
  }).then((e) => e.json());
1610
1599
  y.staffData = e.data || [], e.data?.[0] && M(e.data?.[0]);
1611
1600
  }
1612
1601
  async function A(e) {
1613
- return fetch(X + "/user/pageQueryUser", {
1602
+ return fetch(Z + "/user/pageQueryUser", {
1614
1603
  method: "POST",
1615
1604
  headers: v,
1616
1605
  body: JSON.stringify(e)
@@ -1636,7 +1625,7 @@ var Wt = /* @__PURE__ */ u({
1636
1625
  return t?.account ? e("div", { style: { display: "flex" } }, [e("el-icon", { style: {
1637
1626
  width: "14px",
1638
1627
  height: "14px"
1639
- } }, e(Pe)), n ? t.fullName : t.name]) : n ? t.fullName : t.name;
1628
+ } }, e(Fe)), n ? t.fullName : t.name]) : n ? t.fullName : t.name;
1640
1629
  }
1641
1630
  function ee(e) {
1642
1631
  if (T.value = T.value.filter((t) => t !== e), m.value) {
@@ -1722,7 +1711,7 @@ var Wt = /* @__PURE__ */ u({
1722
1711
  modelValue: y.filterText,
1723
1712
  "onUpdate:modelValue": n[2] ||= (e) => y.filterText = e,
1724
1713
  clearable: "",
1725
- "prefix-icon": P(Ae),
1714
+ "prefix-icon": P(je),
1726
1715
  onKeydown: te(I, ["enter"])
1727
1716
  }, null, 8, ["modelValue", "prefix-icon"]), l(u, {
1728
1717
  loading: y.loading,
@@ -1746,7 +1735,7 @@ var Wt = /* @__PURE__ */ u({
1746
1735
  color: "red",
1747
1736
  onClick: ne((t) => ee(e), ["stop"])
1748
1737
  }, {
1749
- default: z(() => [l(P(Me))]),
1738
+ default: z(() => [l(P(Ne))]),
1750
1739
  _: 1
1751
1740
  }, 8, ["onClick"])]))), 128))])])]), a("div", Zt, [l(p, { onClick: V }, {
1752
1741
  default: z(() => [...n[5] ||= [c("取消", -1)]]),
@@ -1762,7 +1751,7 @@ var Wt = /* @__PURE__ */ u({
1762
1751
  }, 8, ["modelValue"])], 64);
1763
1752
  };
1764
1753
  }
1765
- }), [["__scopeId", "data-v-a381ac50"]]), $t = /* @__PURE__ */ u({
1754
+ }), [["__scopeId", "data-v-6c972882"]]), $t = /* @__PURE__ */ u({
1766
1755
  __name: "index",
1767
1756
  props: {
1768
1757
  multiple: { type: Boolean },
@@ -1867,7 +1856,7 @@ var Wt = /* @__PURE__ */ u({
1867
1856
  "on-preview": s
1868
1857
  }), {
1869
1858
  default: z(() => [l(u, null, {
1870
- default: z(() => [l(P(Ie))]),
1859
+ default: z(() => [l(P(Le))]),
1871
1860
  _: 1
1872
1861
  })]),
1873
1862
  _: 1
@@ -1915,7 +1904,7 @@ var Wt = /* @__PURE__ */ u({
1915
1904
  "fileList",
1916
1905
  "limit",
1917
1906
  "action"
1918
- ]), s = X + "/attachment/uploadAttachment", c = e.action || s, l = C(), u = C(0), d = { token: localStorage.getItem("TOKEN") || "" }, f = t({
1907
+ ]), s = Z + "/attachment/uploadAttachment", c = e.action || s, l = C(), u = C(0), d = { token: localStorage.getItem("TOKEN") || "" }, f = t({
1919
1908
  get: () => N(e.fileList) || [],
1920
1909
  set: (e) => i("update:fileList", e)
1921
1910
  });
@@ -1935,7 +1924,7 @@ var Wt = /* @__PURE__ */ u({
1935
1924
  function _(e, t) {
1936
1925
  let n = N(f);
1937
1926
  if (e?.code !== "ok") return G.Message.error(e?.message);
1938
- let r = X + `/attachment/downloadAttachment?objectKey=${e.data?.objectKey}&fileName=${e.data?.fileName}&token=${d.token}`;
1927
+ let r = Z + `/attachment/downloadAttachment?objectKey=${e.data?.objectKey}&fileName=${e.data?.fileName}&token=${d.token}`;
1939
1928
  n?.some((t) => t?.objectKey === e.data?.objectKey) || n.push({
1940
1929
  name: t.name,
1941
1930
  uid: t.uid,
@@ -1999,7 +1988,7 @@ var Wt = /* @__PURE__ */ u({
1999
1988
  } }, dn = /* @__PURE__ */ U({
2000
1989
  card: () => un,
2001
1990
  sticky: () => ln
2002
- }), Z = window.origin?.includes("localhost") || window.origin?.includes("127.0.0.1") ? "/api" : "/intellicit-service";
1991
+ });
2003
1992
  //#endregion
2004
1993
  //#region src/hooks/useFetch.ts
2005
1994
  function fn(e, t = {}) {
@@ -2241,7 +2230,7 @@ var bn = /* @__PURE__ */ U({
2241
2230
  useTable: () => yn
2242
2231
  }), xn = "Yc", Sn = {
2243
2232
  UiCard: ae,
2244
- UiTable: Te,
2233
+ UiTable: Ee,
2245
2234
  UiFilter: it,
2246
2235
  UiForm: ut,
2247
2236
  UiEditor: mt,
@@ -2276,4 +2265,4 @@ var Tn = { install(e, t) {
2276
2265
  for (let [t, n] of Object.entries(dn)) (typeof n == "function" || typeof n == "object") && e.directive(t, n);
2277
2266
  } };
2278
2267
  //#endregion
2279
- export { ae as _, yn as a, en as c, jt as d, Ct as f, Te 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 };
2268
+ 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 };
@@ -1,2 +1,2 @@
1
- import { a as e, o as t } from "../entry-CJubrrlY.js";
1
+ import { a as e, o as t } from "../entry-Dqeegao9.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-a381ac50] {
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-a381ac50] {
152
+ .staff-select-trigger[data-v-6c972882] {
153
153
  width: 100%;
154
154
  cursor: pointer;
155
155
  }
156
- .staff-select-trigger[data-v-a381ac50] .el-select {
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-a381ac50] {
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-a381ac50]:hover {
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-a381ac50] .el-select__wrapper {
173
+ &[data-v-6c972882] .el-select__wrapper {
174
174
  border: 1px solid red;
175
175
  }
176
176
  }
@@ -1,4 +1,4 @@
1
- export declare const urlPre: string;
1
+ export declare const baseUrl: string;
2
2
  /** 去重数组(基于 SameValueZero 比较)*/
3
3
  export declare function uniq<T>(arr: T[]): T[];
4
4
  /** 根据指定 key 去重数组 */
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-CJubrrlY.js";
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-Dqeegao9.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yc-vep-ui",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "type": "module",
5
5
  "description": "基于 Vue 3 + Element Plus 的企业级 UI 组件库",
6
6
  "keywords": [
@@ -1,5 +0,0 @@
1
- export declare const baseUrl: string;
2
- /** 去重数组(基于 SameValueZero 比较)*/
3
- export declare function uniq<T>(arr: T[]): T[];
4
- /** 根据指定 key 去重数组 */
5
- export declare function uniqBy<T>(arr: T[], key: keyof T | ((item: T) => unknown)): T[];