yc-vep-ui 0.3.2 → 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.
@@ -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[];
@@ -2,4 +2,4 @@ import { IField } from '../type';
2
2
  export declare function getLabelWidth(width?: string | number): string;
3
3
  export declare function getValueWidth(width: number | string): string;
4
4
  export declare function getRenderAttr<T>(field: IField<T>, data: T): any;
5
- export declare function renderNode<T>(field: IField<T>, data: T): any;
5
+ export declare function renderNode<T>(field: IField<T>, data: T, prop?: string): 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,49 +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: () => 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) {
754
- let n = J(e, t);
755
- return typeof n == "object" ? n.type && typeof n.type == "object" ? {
756
- component: n.type,
757
- props: n.props
758
- } : (n.component ||= n, n) : n;
745
+ function X(e, t, n) {
746
+ n && typeof t == "object" && t && t[n];
747
+ let r = Y(e, t);
748
+ return typeof r != "object" || !r ? r ?? "" : r.component ? r : r.type ? {
749
+ component: r.type,
750
+ props: r.props
751
+ } : r;
759
752
  }
760
753
  //#endregion
761
754
  //#region src/components/Filter/index.vue?vue&type=script&setup=true&lang.ts
@@ -800,7 +793,7 @@ var nt = { style: {
800
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);
801
794
  y(() => {
802
795
  p.expandNum = f?.expandNum ?? 2 * s.column - 1, s.fields.forEach((e) => {
803
- let t = J(e, m)?.props?.defaultValue;
796
+ let t = Y(e, m)?.props?.defaultValue;
804
797
  t !== void 0 && (m[e.prop] = t);
805
798
  });
806
799
  });
@@ -840,15 +833,15 @@ var nt = { style: {
840
833
  key: e.prop,
841
834
  label: e.label,
842
835
  "label-width": P(et)(e?.labelWidth || s.labelWidth),
843
- "value-width": P(tt)(e?.valueWidth || s.valueWidth)
836
+ "value-width": P(J)(e?.valueWidth || s.valueWidth)
844
837
  }, {
845
- default: z(() => [e.render ? (x(), n(O(P(J)(e, m).component), h({
838
+ default: z(() => [e.render ? (x(), n(O(P(Y)(e, m).component), h({
846
839
  key: 0,
847
840
  modelValue: m[e.prop],
848
841
  "onUpdate:modelValue": (t) => m[e.prop] = t
849
- }, { ref_for: !0 }, P(J)(e, m).props, {
842
+ }, { ref_for: !0 }, P(Y)(e, m).props, {
850
843
  clearable: !0,
851
- style: { width: P(tt)(e?.valueWidth || s.valueWidth) }
844
+ style: { width: P(J)(e?.valueWidth || s.valueWidth) }
852
845
  }), null, 16, [
853
846
  "modelValue",
854
847
  "onUpdate:modelValue",
@@ -859,7 +852,7 @@ var nt = { style: {
859
852
  "onUpdate:modelValue": (t) => m[e.prop] = t,
860
853
  placeholder: "请输入",
861
854
  clearable: !0,
862
- style: v({ width: P(tt)(e?.valueWidth || s.valueWidth) })
855
+ style: v({ width: P(J)(e?.valueWidth || s.valueWidth) })
863
856
  }, null, 8, [
864
857
  "modelValue",
865
858
  "onUpdate:modelValue",
@@ -885,14 +878,14 @@ var nt = { style: {
885
878
  s.fields.length >= 2 * s.column ? (x(), n(y, {
886
879
  key: 0,
887
880
  text: "",
888
- icon: p.expand ? P(We) : P(Be),
881
+ icon: p.expand ? P(Ge) : P(Ve),
889
882
  onClick: o[0] ||= (e) => p.expand = !p.expand
890
883
  }, {
891
884
  default: z(() => [c(j(p.expand ? "收起" : "展开"), 1)]),
892
885
  _: 1
893
886
  }, 8, ["icon"])) : r("", !0),
894
887
  l(y, {
895
- icon: P(Ae),
888
+ icon: P(je),
896
889
  type: "primary",
897
890
  onClick: b
898
891
  }, {
@@ -900,7 +893,7 @@ var nt = { style: {
900
893
  _: 1
901
894
  }, 8, ["icon"]),
902
895
  l(y, {
903
- icon: P(Je),
896
+ icon: P(q),
904
897
  onClick: C
905
898
  }, {
906
899
  default: z(() => [...o[2] ||= [c("重置", -1)]]),
@@ -953,7 +946,7 @@ var nt = { style: {
953
946
  "update:modelValue"
954
947
  ],
955
948
  setup(a, { expose: o, emit: s }) {
956
- ee((e) => ({ v7a27e328: P(D) / 2 }));
949
+ ee((e) => ({ v008b8157: P(D) / 2 }));
957
950
  let u = s, { fields: d, labelWidth: f = "100px", valueWidth: p = "auto", omitFields: m = [], rules: g = S({}), labelPosition: y = "top", valueModel: b = "default", column: D = 24, model: k, modelValue: A } = a, N = C(0), F = C(), I = t(() => A !== void 0), L = S({}), R = t(() => I.value ? A : k || L), B = t({
958
951
  get: () => R.value,
959
952
  set: (e) => {
@@ -1026,11 +1019,11 @@ var nt = { style: {
1026
1019
  gridColumn: `span ${(r?.span || P(D)) / 2 || 1}`
1027
1020
  })
1028
1021
  }, {
1029
- default: z(() => [r.render ? (x(), i(e, { key: 0 }, [P(Y)(r, B.value).component ? (x(), n(O(P(Y)(r, B.value).component), h({
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({
1030
1023
  key: 1,
1031
1024
  modelValue: B.value[r.prop],
1032
1025
  "onUpdate:modelValue": (e) => B.value[r.prop] = e
1033
- }, { ref_for: !0 }, P(Y)(r, B.value).props, {
1026
+ }, { ref_for: !0 }, P(X)(r, B.value, r.prop).props, {
1034
1027
  clearable: !0,
1035
1028
  key: `${r.prop}-${N.value}`,
1036
1029
  style: { display: "inline-block" },
@@ -1039,13 +1032,13 @@ var nt = { style: {
1039
1032
  "modelValue",
1040
1033
  "onUpdate:modelValue",
1041
1034
  "class"
1042
- ])) : (x(), i("span", ot, j(P(Y)(r, B.value) || "-"), 1)), (x(!0), i(e, null, w(r.slots, (e) => T(t.$slots, "default", { form: B.value }, () => [P(Y)(e, B.value).component ? (x(), n(O(P(Y)(e, B.value).component), h({
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({
1043
1036
  key: 1,
1044
1037
  modelValue: B.value[e.prop],
1045
1038
  "onUpdate:modelValue": (t) => B.value[e.prop] = t,
1046
1039
  "default-value": e.defaultValue,
1047
1040
  placeholder: e.placeholder
1048
- }, { ref_for: !0 }, P(Y)(e, B.value).props, {
1041
+ }, { ref_for: !0 }, P(X)(e, B.value, e.prop).props, {
1049
1042
  style: {
1050
1043
  display: "inline-block",
1051
1044
  marginLeft: "10px",
@@ -1061,7 +1054,7 @@ var nt = { style: {
1061
1054
  "placeholder",
1062
1055
  "style",
1063
1056
  "class"
1064
- ])) : (x(), i("span", st, j(P(Y)(e, B.value) || "-"), 1))], !0)), 256))], 64)) : (x(), n(o, {
1057
+ ])) : (x(), i("span", st, j(P(X)(e, B.value, e.prop) || "-"), 1))], !0)), 256))], 64)) : (x(), n(o, {
1065
1058
  key: 1,
1066
1059
  modelValue: B.value[r.prop],
1067
1060
  "onUpdate:modelValue": (e) => B.value[r.prop] = e,
@@ -1091,7 +1084,7 @@ var nt = { style: {
1091
1084
  ]), t.$attrs?.hideHandle ? r("", !0) : (x(), i("div", ct, [
1092
1085
  T(t.$slots, "handle", { form: B.value }, void 0, !0),
1093
1086
  l(d, {
1094
- icon: P(Je),
1087
+ icon: P(q),
1095
1088
  onClick: H,
1096
1089
  size: t.$props.size
1097
1090
  }, {
@@ -1110,7 +1103,7 @@ var nt = { style: {
1110
1103
  ]))], 64);
1111
1104
  };
1112
1105
  }
1113
- }), ut = /* @__PURE__ */ U({ default: () => dt }), dt = /* @__PURE__ */ W(lt, [["__scopeId", "data-v-21628f1c"]]), ft = ["disabled"], pt = /* @__PURE__ */ u({
1106
+ }), ut = /* @__PURE__ */ U({ default: () => dt }), dt = /* @__PURE__ */ W(lt, [["__scopeId", "data-v-4113cce0"]]), ft = ["disabled"], pt = /* @__PURE__ */ u({
1114
1107
  __name: "index",
1115
1108
  props: /* @__PURE__ */ m({
1116
1109
  defaultValue: { default: "" },
@@ -1391,11 +1384,11 @@ var nt = { style: {
1391
1384
  label: e.label,
1392
1385
  span: e.span || 2
1393
1386
  }, {
1394
- default: z(() => [e.render ? (x(), n(O(P(J)(e, t.data).component), h({
1387
+ default: z(() => [e.render ? (x(), n(O(P(Y)(e, t.data).component), h({
1395
1388
  key: 0,
1396
1389
  modelValue: t.data[e.prop],
1397
1390
  "onUpdate:modelValue": (n) => t.data[e.prop] = n
1398
- }, { ref_for: !0 }, P(J)(e, t.data).props, {
1391
+ }, { ref_for: !0 }, P(Y)(e, t.data).props, {
1399
1392
  clearable: !0,
1400
1393
  key: e.prop,
1401
1394
  style: { display: "inline-block" }
@@ -1472,7 +1465,7 @@ var nt = { style: {
1472
1465
  ]);
1473
1466
  };
1474
1467
  }
1475
- }), Bt = /* @__PURE__ */ U({ default: () => Vt }), Vt = zt, X = window.origin?.includes("localhost") || window.origin?.includes("127.0.0.1") ? "/api" : "/intellicit-service";
1468
+ }), Bt = /* @__PURE__ */ U({ default: () => Vt }), Vt = zt, Z = window.origin?.includes("localhost") || window.origin?.includes("127.0.0.1") ? "/api" : "/intellicit-service";
1476
1469
  function Ht(e) {
1477
1470
  return Array.from(new Set(e));
1478
1471
  }
@@ -1509,7 +1502,7 @@ var Wt = /* @__PURE__ */ u({
1509
1502
  o.modelValue && p(o.modelValue);
1510
1503
  });
1511
1504
  async function p(e = "") {
1512
- f.value = ((await fetch(X + "/user/pageQueryUser", {
1505
+ f.value = ((await fetch(Z + "/user/pageQueryUser", {
1513
1506
  method: "POST",
1514
1507
  headers: u,
1515
1508
  body: JSON.stringify({
@@ -1539,7 +1532,7 @@ var Wt = /* @__PURE__ */ u({
1539
1532
  "remote-method": m
1540
1533
  }, t.$attrs), {
1541
1534
  prefix: z(() => [l(a, null, {
1542
- default: z(() => [l(P(Pe))]),
1535
+ default: z(() => [l(P(Fe))]),
1543
1536
  _: 1
1544
1537
  })]),
1545
1538
  default: z(() => [(x(!0), i(e, null, w(f.value, (e) => (x(), n(o, {
@@ -1602,14 +1595,14 @@ var Wt = /* @__PURE__ */ u({
1602
1595
  _.value && k();
1603
1596
  });
1604
1597
  async function k() {
1605
- let e = await fetch(X + "/department/queryDepartmentTree", {
1598
+ let e = await fetch(Z + "/department/queryDepartmentTree", {
1606
1599
  method: "GET",
1607
1600
  headers: v
1608
1601
  }).then((e) => e.json());
1609
1602
  y.staffData = e.data || [], e.data?.[0] && M(e.data?.[0]);
1610
1603
  }
1611
1604
  async function A(e) {
1612
- return fetch(X + "/user/pageQueryUser", {
1605
+ return fetch(Z + "/user/pageQueryUser", {
1613
1606
  method: "POST",
1614
1607
  headers: v,
1615
1608
  body: JSON.stringify(e)
@@ -1635,7 +1628,7 @@ var Wt = /* @__PURE__ */ u({
1635
1628
  return t?.account ? e("div", { style: { display: "flex" } }, [e("el-icon", { style: {
1636
1629
  width: "14px",
1637
1630
  height: "14px"
1638
- } }, e(Pe)), n ? t.fullName : t.name]) : n ? t.fullName : t.name;
1631
+ } }, e(Fe)), n ? t.fullName : t.name]) : n ? t.fullName : t.name;
1639
1632
  }
1640
1633
  function ee(e) {
1641
1634
  if (T.value = T.value.filter((t) => t !== e), m.value) {
@@ -1721,7 +1714,7 @@ var Wt = /* @__PURE__ */ u({
1721
1714
  modelValue: y.filterText,
1722
1715
  "onUpdate:modelValue": n[2] ||= (e) => y.filterText = e,
1723
1716
  clearable: "",
1724
- "prefix-icon": P(Ae),
1717
+ "prefix-icon": P(je),
1725
1718
  onKeydown: te(I, ["enter"])
1726
1719
  }, null, 8, ["modelValue", "prefix-icon"]), l(u, {
1727
1720
  loading: y.loading,
@@ -1745,7 +1738,7 @@ var Wt = /* @__PURE__ */ u({
1745
1738
  color: "red",
1746
1739
  onClick: ne((t) => ee(e), ["stop"])
1747
1740
  }, {
1748
- default: z(() => [l(P(Me))]),
1741
+ default: z(() => [l(P(Ne))]),
1749
1742
  _: 1
1750
1743
  }, 8, ["onClick"])]))), 128))])])]), a("div", Zt, [l(p, { onClick: V }, {
1751
1744
  default: z(() => [...n[5] ||= [c("取消", -1)]]),
@@ -1761,7 +1754,7 @@ var Wt = /* @__PURE__ */ u({
1761
1754
  }, 8, ["modelValue"])], 64);
1762
1755
  };
1763
1756
  }
1764
- }), [["__scopeId", "data-v-a381ac50"]]), $t = /* @__PURE__ */ u({
1757
+ }), [["__scopeId", "data-v-6c972882"]]), $t = /* @__PURE__ */ u({
1765
1758
  __name: "index",
1766
1759
  props: {
1767
1760
  multiple: { type: Boolean },
@@ -1866,7 +1859,7 @@ var Wt = /* @__PURE__ */ u({
1866
1859
  "on-preview": s
1867
1860
  }), {
1868
1861
  default: z(() => [l(u, null, {
1869
- default: z(() => [l(P(Ie))]),
1862
+ default: z(() => [l(P(Le))]),
1870
1863
  _: 1
1871
1864
  })]),
1872
1865
  _: 1
@@ -1914,7 +1907,7 @@ var Wt = /* @__PURE__ */ u({
1914
1907
  "fileList",
1915
1908
  "limit",
1916
1909
  "action"
1917
- ]), s = X + "/attachment/uploadAttachment", c = e.action || s, l = C(), u = C(0), d = { token: localStorage.getItem("TOKEN") || "" }, f = t({
1910
+ ]), s = Z + "/attachment/uploadAttachment", c = e.action || s, l = C(), u = C(0), d = { token: localStorage.getItem("TOKEN") || "" }, f = t({
1918
1911
  get: () => N(e.fileList) || [],
1919
1912
  set: (e) => i("update:fileList", e)
1920
1913
  });
@@ -1934,7 +1927,7 @@ var Wt = /* @__PURE__ */ u({
1934
1927
  function _(e, t) {
1935
1928
  let n = N(f);
1936
1929
  if (e?.code !== "ok") return G.Message.error(e?.message);
1937
- let r = X + `/attachment/downloadAttachment?objectKey=${e.data?.objectKey}&fileName=${e.data?.fileName}&token=${d.token}`;
1930
+ let r = Z + `/attachment/downloadAttachment?objectKey=${e.data?.objectKey}&fileName=${e.data?.fileName}&token=${d.token}`;
1938
1931
  n?.some((t) => t?.objectKey === e.data?.objectKey) || n.push({
1939
1932
  name: t.name,
1940
1933
  uid: t.uid,
@@ -1998,7 +1991,7 @@ var Wt = /* @__PURE__ */ u({
1998
1991
  } }, dn = /* @__PURE__ */ U({
1999
1992
  card: () => un,
2000
1993
  sticky: () => ln
2001
- }), Z = window.origin?.includes("localhost") || window.origin?.includes("127.0.0.1") ? "/api" : "/intellicit-service";
1994
+ });
2002
1995
  //#endregion
2003
1996
  //#region src/hooks/useFetch.ts
2004
1997
  function fn(e, t = {}) {
@@ -2240,7 +2233,7 @@ var bn = /* @__PURE__ */ U({
2240
2233
  useTable: () => yn
2241
2234
  }), xn = "Yc", Sn = {
2242
2235
  UiCard: ae,
2243
- UiTable: Te,
2236
+ UiTable: Ee,
2244
2237
  UiFilter: it,
2245
2238
  UiForm: ut,
2246
2239
  UiEditor: mt,
@@ -2275,4 +2268,4 @@ var Tn = { install(e, t) {
2275
2268
  for (let [t, n] of Object.entries(dn)) (typeof n == "function" || typeof n == "object") && e.directive(t, n);
2276
2269
  } };
2277
2270
  //#endregion
2278
- 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 };
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 };
@@ -1,2 +1,2 @@
1
- import { a as e, o as t } from "../entry-CXdpP5iS.js";
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
@@ -42,24 +42,24 @@
42
42
  }
43
43
  }
44
44
 
45
- .ui-form-buttons[data-v-21628f1c] {
45
+ .ui-form-buttons[data-v-4113cce0] {
46
46
  display: flex;
47
47
  justify-content: flex-start;
48
48
  align-items: center;
49
49
  }
50
50
  .ui-form {
51
- &[data-v-21628f1c] {
51
+ &[data-v-4113cce0] {
52
52
  display: grid;
53
- grid-template-columns: repeat(var(--v7a27e328), minmax(0, 1fr));
53
+ grid-template-columns: repeat(var(--v008b8157), minmax(0, 1fr));
54
54
  gap: 0px 40px;
55
55
  }
56
- &[data-v-21628f1c] .el-form-item__label {
56
+ &[data-v-4113cce0] .el-form-item__label {
57
57
  margin-bottom: 0;
58
58
  font-weight: bold;
59
59
  font-size: 0.8em;
60
60
  color: #6b7280;
61
61
  }
62
- &[data-v-21628f1c] .el-form-item__content {
62
+ &[data-v-4113cce0] .el-form-item__content {
63
63
  display: flex;
64
64
  flex-wrap: inherit;
65
65
  width: 100%;
@@ -77,8 +77,8 @@
77
77
 
78
78
  /* 下划线样式 */
79
79
  .underline {
80
- &[data-v-21628f1c] .el-input__wrapper,
81
- &[data-v-21628f1c] .el-textarea__inner {
80
+ &[data-v-4113cce0] .el-input__wrapper,
81
+ &[data-v-4113cce0] .el-textarea__inner {
82
82
  box-shadow: 0px 1px 0px var(--el-input-border-color, var(--el-border-color));
83
83
  }
84
84
  }
@@ -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-CXdpP5iS.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-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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yc-vep-ui",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
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[];