cingta-component-ant 0.1.1 → 0.1.2

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.
@@ -218,17 +218,17 @@ function st(e, s, u = {}) {
218
218
  function r() {
219
219
  return e.value !== void 0 ? e.value : e.modelValue;
220
220
  }
221
- function t(S) {
221
+ function t(_) {
222
222
  const v = {
223
223
  label: Hn(e),
224
224
  value: e.param || e.paras,
225
- content: S
225
+ content: _
226
226
  };
227
227
  return typeof u.getContent == "function" && (v.content = u.getContent(v.content)), v;
228
228
  }
229
- function l(S) {
229
+ function l(_) {
230
230
  if (e.buried === !1) return;
231
- const v = t(S);
231
+ const v = t(_);
232
232
  !v.label || !v.value || s(a, v);
233
233
  }
234
234
  function h() {
@@ -252,33 +252,33 @@ function Wn(e, s = {}) {
252
252
  const u = ne(!!$t(e));
253
253
  let a = u.value ? Date.now() : 0, r = 0, t = 0;
254
254
  function l() {
255
- const k = $t(s.minMs ?? Vt);
256
- return Number.isFinite(k) && k >= 0 ? k : Vt;
255
+ const x = $t(s.minMs ?? Vt);
256
+ return Number.isFinite(x) && x >= 0 ? x : Vt;
257
257
  }
258
258
  function h() {
259
259
  r && (window.clearTimeout(r), r = 0);
260
260
  }
261
- function S() {
261
+ function _() {
262
262
  h(), t += 1, a = Date.now(), u.value = !0;
263
263
  }
264
264
  function v() {
265
- const k = t, D = a ? Date.now() - a : l(), j = Math.max(0, l() - D);
266
- if (h(), j === 0) {
265
+ const x = t, D = a ? Date.now() - a : l(), O = Math.max(0, l() - D);
266
+ if (h(), O === 0) {
267
267
  u.value = !1;
268
268
  return;
269
269
  }
270
270
  r = window.setTimeout(() => {
271
- k === t && (r = 0, u.value = !1);
272
- }, j);
271
+ x === t && (r = 0, u.value = !1);
272
+ }, O);
273
273
  }
274
274
  function c() {
275
275
  h(), t += 1, u.value = !1;
276
276
  }
277
277
  return ye(
278
278
  () => !!$t(e),
279
- (k) => {
280
- if (k) {
281
- S();
279
+ (x) => {
280
+ if (x) {
281
+ _();
282
282
  return;
283
283
  }
284
284
  u.value && v();
@@ -301,11 +301,11 @@ function Ct(e = {}) {
301
301
  /** 非宿主场景下的默认值(年份选择历史为 false) */
302
302
  defaultMatchSelectWidth: l = !0,
303
303
  minWidth: h,
304
- offsetY: S = 10,
304
+ offsetY: _ = 10,
305
305
  viewportPadding: v = 8,
306
306
  placement: c
307
307
  } = e;
308
- function k() {
308
+ function x() {
309
309
  return typeof c == "function" ? c() : c;
310
310
  }
311
311
  function D() {
@@ -314,21 +314,21 @@ function Ct(e = {}) {
314
314
  const Y = Number(M);
315
315
  return Number.isFinite(Y) && Y > 0 ? Y : null;
316
316
  }
317
- const j = ne(l), I = ne({}), C = ne(void 0), B = ne(0), E = ne(!1);
318
- let x = null;
317
+ const O = ne(l), j = ne({}), S = ne(void 0), E = ne(0), I = ne(!1);
318
+ let C = null;
319
319
  const F = f(
320
- () => B.value > 0 ? u : ""
320
+ () => E.value > 0 ? u : ""
321
321
  );
322
322
  function ee() {
323
323
  return typeof t == "function" ? !!t() : !!t;
324
324
  }
325
- function O() {
326
- x != null && (clearTimeout(x), x = null);
325
+ function B() {
326
+ C != null && (clearTimeout(C), C = null);
327
327
  }
328
328
  function L() {
329
- O(), j.value = l, I.value = {}, C.value = void 0, B.value = 0;
329
+ B(), O.value = l, j.value = {}, S.value = void 0, E.value = 0;
330
330
  }
331
- function W(M = B.value) {
331
+ function W(M = E.value) {
332
332
  !ee() || !M || typeof document > "u" || document.querySelectorAll(`${a}.${u}`).forEach((Y) => {
333
333
  r && Y.classList.contains(r) || (Y.style.setProperty("width", `${M}px`, "important"), Y.style.setProperty("min-width", `${M}px`, "important"), Y.style.setProperty("box-sizing", "border-box", "important"));
334
334
  });
@@ -340,11 +340,11 @@ function Ct(e = {}) {
340
340
  return;
341
341
  const Y = Math.max(0, Number(v) || 0), y = window.innerWidth || 0;
342
342
  if (!y) return;
343
- const V = M.getBoundingClientRect(), U = ee() && u ? `${a}.${u}` : a, { isTop: le } = Wt(k());
343
+ const V = M.getBoundingClientRect(), U = ee() && u ? `${a}.${u}` : a, { isTop: le } = Wt(x());
344
344
  document.querySelectorAll(U).forEach((ce) => {
345
345
  if (r && ce.classList.contains(r)) return;
346
346
  const ge = ce.getBoundingClientRect();
347
- if (!ge.width || ge.height <= 0 || !(le ? Math.abs(ge.bottom - (V.top - S)) < 48 || Math.abs(ge.bottom - V.top) < 48 : Math.abs(ge.top - (V.bottom + S)) < 48 || Math.abs(ge.top - V.bottom) < 48)) return;
347
+ if (!ge.width || ge.height <= 0 || !(le ? Math.abs(ge.bottom - (V.top - _)) < 48 || Math.abs(ge.bottom - V.top) < 48 : Math.abs(ge.top - (V.bottom + _)) < 48 || Math.abs(ge.top - V.bottom) < 48)) return;
348
348
  const g = ge.right - (y - Y);
349
349
  if (g <= 0) return;
350
350
  const z = window.getComputedStyle(ce), J = Number.parseFloat(z.left);
@@ -363,30 +363,30 @@ function Ct(e = {}) {
363
363
  const le = D();
364
364
  if (le != null && (U = Math.max(U, Math.round(le))), !U)
365
365
  return L(), !1;
366
- const ce = Math.round(y.left - V.left), { points: ge, isTop: $e } = Wt(k());
367
- return C.value = {
366
+ const ce = Math.round(y.left - V.left), { points: ge, isTop: $e } = Wt(x());
367
+ return S.value = {
368
368
  points: ge,
369
369
  // 上方展开时 offsetY 取负,保持与下方相同的视觉间距
370
- offset: [ce, $e ? -S : S],
370
+ offset: [ce, $e ? -_ : _],
371
371
  // adjustX:同宽下几乎不触发;自然宽/minWidth 超出视口时左移,避免右裁切
372
372
  overflow: { adjustX: 1, adjustY: 1 }
373
- }, ee() ? (j.value = U, B.value = U, I.value = {
373
+ }, ee() ? (O.value = U, E.value = U, j.value = {
374
374
  width: `${U}px`,
375
375
  minWidth: `${U}px`,
376
376
  boxSizing: "border-box"
377
- }, W(U)) : (j.value = l, B.value = 0, I.value = {}), !0;
377
+ }, W(U)) : (O.value = l, E.value = 0, j.value = {}), !0;
378
378
  }
379
379
  async function be(M) {
380
- if (E.value = M, M) {
381
- if (O(), ke(), await He(), !E.value) return;
380
+ if (I.value = M, M) {
381
+ if (B(), ke(), await He(), !I.value) return;
382
382
  ke(), requestAnimationFrame(() => {
383
- E.value && (ke(), W(), G(), requestAnimationFrame(() => {
384
- E.value && G();
383
+ I.value && (ke(), W(), G(), requestAnimationFrame(() => {
384
+ I.value && G();
385
385
  }));
386
386
  });
387
387
  } else
388
- O(), x = setTimeout(() => {
389
- x = null, E.value || L();
388
+ B(), C = setTimeout(() => {
389
+ C = null, I.value || L();
390
390
  }, 320);
391
391
  }
392
392
  function N(M = 160) {
@@ -405,21 +405,21 @@ function Ct(e = {}) {
405
405
  }
406
406
  return {
407
407
  position: "fixed",
408
- top: `${V.bottom + S}px`,
408
+ top: `${V.bottom + _}px`,
409
409
  left: `${$e}px`,
410
410
  width: `${U}px`,
411
411
  zIndex: 1050
412
412
  };
413
413
  }
414
414
  return bt(() => {
415
- O();
415
+ B();
416
416
  }), {
417
- dropdownMatchSelectWidth: j,
418
- dropdownStyle: I,
419
- dropdownAlign: C,
417
+ dropdownMatchSelectWidth: O,
418
+ dropdownStyle: j,
419
+ dropdownAlign: S,
420
420
  hostPopupClass: F,
421
- hostPopupWidth: B,
422
- dropdownOpen: E,
421
+ hostPopupWidth: E,
422
+ dropdownOpen: I,
423
423
  syncDropdownToHostItem: ke,
424
424
  onHostDropdownVisibleChange: be,
425
425
  resetDropdownHostSync: L,
@@ -506,15 +506,15 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
506
506
  u("update:activeIndex", l), u("handleButton", t, l);
507
507
  }
508
508
  return (t, l) => {
509
- const h = ie("a-radio-button"), S = ie("a-radio-group");
510
- return T(), he(S, {
509
+ const h = ie("a-radio-button"), _ = ie("a-radio-group");
510
+ return T(), he(_, {
511
511
  class: we(R(a).b())
512
512
  }, {
513
513
  default: re(() => [
514
514
  (T(!0), H(Le, null, rt(e.buttonList, (v, c) => (T(), he(h, {
515
515
  key: c,
516
516
  class: we({ active: e.activeIndex === c }),
517
- onClick: (k) => r(v, c)
517
+ onClick: (x) => r(v, c)
518
518
  }, {
519
519
  default: re(() => [
520
520
  Ve(_e(v), 1)
@@ -571,20 +571,20 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
571
571
  onUpdate: (l) => a("update:label", [l])
572
572
  });
573
573
  return st(u, a), (l, h) => {
574
- const S = ie("ct-icon"), v = ie("a-input"), c = ie("a-input-password");
574
+ const _ = ie("ct-icon"), v = ie("a-input"), c = ie("a-input-password");
575
575
  return T(), H("div", {
576
576
  class: we(R(r).b())
577
577
  }, [
578
578
  e.password ? (T(), he(c, Se({ key: 1 }, l.$attrs, {
579
579
  value: R(t),
580
- "onUpdate:value": h[1] || (h[1] = (k) => jt(t) ? t.value = k : null),
580
+ "onUpdate:value": h[1] || (h[1] = (x) => jt(t) ? t.value = x : null),
581
581
  placeholder: e.placeholder,
582
582
  status: e.status,
583
583
  allowClear: !1
584
584
  }), {
585
585
  prefix: re(() => [
586
586
  ae(l.$slots, "prefix", {}, () => [
587
- e.prefixIcon ? (T(), he(S, {
587
+ e.prefixIcon ? (T(), he(_, {
588
588
  key: 0,
589
589
  class: "ant-input-prefix-icon",
590
590
  name: e.prefixIcon,
@@ -594,7 +594,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
594
594
  ]),
595
595
  suffix: re(() => [
596
596
  ae(l.$slots, "suffix", {}, () => [
597
- e.suffixIcon ? (T(), he(S, {
597
+ e.suffixIcon ? (T(), he(_, {
598
598
  key: 0,
599
599
  class: "ant-input-suffix-icon",
600
600
  name: e.suffixIcon,
@@ -606,14 +606,14 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
606
606
  _: 3
607
607
  }, 16, ["value", "placeholder", "status"])) : (T(), he(v, Se({ key: 0 }, l.$attrs, {
608
608
  value: R(t),
609
- "onUpdate:value": h[0] || (h[0] = (k) => jt(t) ? t.value = k : null),
609
+ "onUpdate:value": h[0] || (h[0] = (x) => jt(t) ? t.value = x : null),
610
610
  placeholder: e.placeholder,
611
611
  status: e.status,
612
612
  allowClear: e.allowClear
613
613
  }), {
614
614
  prefix: re(() => [
615
615
  ae(l.$slots, "prefix", {}, () => [
616
- e.prefixIcon ? (T(), he(S, {
616
+ e.prefixIcon ? (T(), he(_, {
617
617
  key: 0,
618
618
  class: "ant-input-prefix-icon",
619
619
  name: e.prefixIcon,
@@ -623,7 +623,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
623
623
  ]),
624
624
  suffix: re(() => [
625
625
  ae(l.$slots, "suffix", {}, () => [
626
- e.suffixIcon ? (T(), he(S, {
626
+ e.suffixIcon ? (T(), he(_, {
627
627
  key: 0,
628
628
  class: "ant-input-suffix-icon",
629
629
  name: e.suffixIcon,
@@ -674,7 +674,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
674
674
  });
675
675
  return ot(() => {
676
676
  }), (l, h) => {
677
- const S = ie("ct-icon"), v = ie("a-select"), c = ie("a-input");
677
+ const _ = ie("ct-icon"), v = ie("a-select"), c = ie("a-input");
678
678
  return T(), H("div", {
679
679
  class: we(["ct-phone-prefix-input", {
680
680
  "is-disabled": u.disabled
@@ -682,7 +682,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
682
682
  }, [
683
683
  me(v, Se({
684
684
  value: t.value,
685
- "onUpdate:value": h[0] || (h[0] = (k) => t.value = k)
685
+ "onUpdate:value": h[0] || (h[0] = (x) => t.value = x)
686
686
  }, e.selectAttrs, {
687
687
  options: u.options,
688
688
  bordered: !1,
@@ -690,7 +690,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
690
690
  dropdownMatchSelectWidth: !1
691
691
  }), {
692
692
  suffixIcon: re(() => [
693
- u.showArrow ? (T(), he(S, {
693
+ u.showArrow ? (T(), he(_, {
694
694
  key: 0,
695
695
  name: "down-fill_line",
696
696
  size: "8",
@@ -701,7 +701,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
701
701
  }, 16, ["value", "options", "disabled"]),
702
702
  me(c, Se({
703
703
  value: r.value,
704
- "onUpdate:value": h[1] || (h[1] = (k) => r.value = k),
704
+ "onUpdate:value": h[1] || (h[1] = (x) => r.value = x),
705
705
  size: "small",
706
706
  bordered: !1,
707
707
  disabled: u.disabled,
@@ -753,83 +753,83 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
753
753
  ],
754
754
  setup(e, { expose: s, emit: u }) {
755
755
  const a = e, r = u, t = lt("number-input-range"), l = ne(null), h = ne(null);
756
- function S(O) {
757
- return O ? O === "medium" ? "middle" : O : "";
756
+ function _(B) {
757
+ return B ? B === "medium" ? "middle" : B : "";
758
758
  }
759
759
  const v = f(() => {
760
- const O = S(a.size);
761
- return O ? t.m(O) : "";
760
+ const B = _(a.size);
761
+ return B ? t.m(B) : "";
762
762
  });
763
763
  function c() {
764
764
  return a.value !== void 0 ? a.value : a.modelValue;
765
765
  }
766
- function k(O) {
767
- r("update:value", O), r("update:modelValue", O), r("update:label", D(O));
766
+ function x(B) {
767
+ r("update:value", B), r("update:modelValue", B), r("update:label", D(B));
768
768
  }
769
- function D(O) {
770
- if (!K(O)) return [];
771
- const [L, W] = O, G = L == null || L === "" ? "" : String(L), ke = W == null || W === "" ? "" : String(W);
769
+ function D(B) {
770
+ if (!K(B)) return [];
771
+ const [L, W] = B, G = L == null || L === "" ? "" : String(L), ke = W == null || W === "" ? "" : String(W);
772
772
  return !G && !ke ? [] : [`${G}${a.separator}${ke}`];
773
773
  }
774
- const j = f({
774
+ const O = f({
775
775
  get() {
776
- const O = c();
777
- return K(O) ? O[0] : void 0;
776
+ const B = c();
777
+ return K(B) ? B[0] : void 0;
778
778
  },
779
- set(O) {
779
+ set(B) {
780
780
  const L = c(), W = K(L) ? L[1] : void 0;
781
- k([O, W]);
781
+ x([B, W]);
782
782
  }
783
- }), I = f({
783
+ }), j = f({
784
784
  get() {
785
- const O = c();
786
- return K(O) ? O[1] : void 0;
785
+ const B = c();
786
+ return K(B) ? B[1] : void 0;
787
787
  },
788
- set(O) {
788
+ set(B) {
789
789
  const L = c(), W = K(L) ? L[0] : void 0;
790
- k([W, O]);
790
+ x([W, B]);
791
791
  }
792
- }), C = f(() => {
793
- const O = a.placeholder;
794
- return K(O) ? O[0] : O;
795
- }), B = f(() => {
796
- const O = a.placeholder;
797
- return K(O) ? O[1] ?? O[0] : O;
792
+ }), S = f(() => {
793
+ const B = a.placeholder;
794
+ return K(B) ? B[0] : B;
798
795
  }), E = f(() => {
799
- const O = Be(a.rawAttr) ? a.rawAttr : {}, L = Be(a.rawAttrs) ? a.rawAttrs : {};
800
- return { ...O, ...L };
796
+ const B = a.placeholder;
797
+ return K(B) ? B[1] ?? B[0] : B;
798
+ }), I = f(() => {
799
+ const B = Be(a.rawAttr) ? a.rawAttr : {}, L = Be(a.rawAttrs) ? a.rawAttrs : {};
800
+ return { ...B, ...L };
801
801
  });
802
- function x(O, L) {
803
- r("change", c(), L, O);
802
+ function C(B, L) {
803
+ r("change", c(), L, B);
804
804
  }
805
805
  function F() {
806
- const O = c();
807
- if (!K(O) || O.length !== 2) return;
808
- const [L, W] = O;
806
+ const B = c();
807
+ if (!K(B) || B.length !== 2) return;
808
+ const [L, W] = B;
809
809
  if (typeof L != "number" || typeof W != "number" || L <= W) return;
810
810
  const G = [W, L];
811
- k(G), r("change", G);
811
+ x(G), r("change", G);
812
812
  }
813
- function ee(O) {
813
+ function ee(B) {
814
814
  var W;
815
- const L = O.currentTarget;
816
- (W = L == null ? void 0 : L.contains) != null && W.call(L, O.relatedTarget) || F();
815
+ const L = B.currentTarget;
816
+ (W = L == null ? void 0 : L.contains) != null && W.call(L, B.relatedTarget) || F();
817
817
  }
818
818
  return ye(
819
819
  c,
820
- (O) => {
821
- r("update:label", D(O));
820
+ (B) => {
821
+ r("update:label", D(B));
822
822
  },
823
823
  { immediate: !0, deep: !0 }
824
824
  ), st(a, r, {
825
- getContent: (O) => {
826
- if (!K(O)) return "";
827
- const [L, W] = O;
825
+ getContent: (B) => {
826
+ if (!K(B)) return "";
827
+ const [L, W] = B;
828
828
  return L == null && W == null ? "" : `${L ?? ""}${a.separator}${W ?? ""}`;
829
829
  }
830
830
  }), s({
831
831
  ref: [l, h]
832
- }), (O, L) => {
832
+ }), (B, L) => {
833
833
  const W = ie("a-input-number");
834
834
  return T(), H("div", {
835
835
  class: we([
@@ -846,10 +846,10 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
846
846
  me(W, Se({
847
847
  ref_key: "inputRef1",
848
848
  ref: l,
849
- value: j.value,
850
- "onUpdate:value": L[0] || (L[0] = (G) => j.value = G)
851
- }, E.value, {
852
- placeholder: C.value,
849
+ value: O.value,
850
+ "onUpdate:value": L[0] || (L[0] = (G) => O.value = G)
851
+ }, I.value, {
852
+ placeholder: S.value,
853
853
  min: e.min,
854
854
  max: e.max,
855
855
  step: e.step,
@@ -858,22 +858,22 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
858
858
  size: e.size,
859
859
  bordered: !1,
860
860
  controls: e.controls,
861
- onChange: L[1] || (L[1] = (G) => x(G, 0))
861
+ onChange: L[1] || (L[1] = (G) => C(G, 0))
862
862
  }), null, 16, ["value", "placeholder", "min", "max", "step", "precision", "disabled", "size", "controls"]),
863
863
  ue("span", {
864
864
  class: we([R(t).e("separator")])
865
865
  }, [
866
- ae(O.$slots, "separator", {}, () => [
866
+ ae(B.$slots, "separator", {}, () => [
867
867
  Ve(_e(e.separator), 1)
868
868
  ], !0)
869
869
  ], 2),
870
870
  me(W, Se({
871
871
  ref_key: "inputRef2",
872
872
  ref: h,
873
- value: I.value,
874
- "onUpdate:value": L[2] || (L[2] = (G) => I.value = G)
875
- }, E.value, {
876
- placeholder: B.value,
873
+ value: j.value,
874
+ "onUpdate:value": L[2] || (L[2] = (G) => j.value = G)
875
+ }, I.value, {
876
+ placeholder: E.value,
877
877
  min: e.min,
878
878
  max: e.max,
879
879
  step: e.step,
@@ -882,7 +882,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
882
882
  size: e.size,
883
883
  bordered: !1,
884
884
  controls: e.controls,
885
- onChange: L[3] || (L[3] = (G) => x(G, 1))
885
+ onChange: L[3] || (L[3] = (G) => C(G, 1))
886
886
  }), null, 16, ["value", "placeholder", "min", "max", "step", "precision", "disabled", "size", "controls"])
887
887
  ], 34)
888
888
  ], 2);
@@ -943,7 +943,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
943
943
  "changeBuriedParams"
944
944
  ],
945
945
  setup(e, { emit: s }) {
946
- const u = On.PRESENTED_IMAGE_SIMPLE, a = We("$open", null), r = We("$ctBaseDao", null) || We("$gjBaseDao", null), t = e, l = s, h = ne(null), S = ne({}), { getHostFixedDropdownStyle: v } = Ct({
946
+ const u = On.PRESENTED_IMAGE_SIMPLE, a = We("$open", null), r = We("$ctBaseDao", null) || We("$gjBaseDao", null), t = e, l = s, h = ne(null), _ = ne({}), { getHostFixedDropdownStyle: v } = Ct({
947
947
  getTriggerEl: () => h.value
948
948
  }), c = en({
949
949
  searchText: "",
@@ -959,15 +959,15 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
959
959
  /** compositionend 同步双发去重:同 keyword 在同一微任务窗口内只请求一次 */
960
960
  lastQueryKeyword: null,
961
961
  querySyncLock: !1
962
- }), k = f(() => Array.isArray(t.preVal) && t.preVal.length ? t.preVal : Array.isArray(t.prevalue) && t.prevalue.length ? t.prevalue : []), D = f(() => t.api || t.apiUrl), j = f(() => ({
962
+ }), x = f(() => Array.isArray(t.preVal) && t.preVal.length ? t.preVal : Array.isArray(t.prevalue) && t.prevalue.length ? t.prevalue : []), D = f(() => t.api || t.apiUrl), O = f(() => ({
963
963
  ...t.mapObj || {},
964
964
  ...t.fieldNames || {}
965
- })), I = f(() => j.value.label || ""), C = f(() => t.paras || t.param), B = f(
965
+ })), j = f(() => O.value.label || ""), S = f(() => t.paras || t.param), E = f(
966
966
  () => t.modelValue !== void 0 ? t.modelValue : t.value
967
- ), E = f(
967
+ ), I = f(
968
968
  () => !!c.searchText && !t.disabled && (c.isFocus || c.isShowClear)
969
969
  );
970
- function x(n) {
970
+ function C(n) {
971
971
  l("update:modelValue", n), l("update:value", n);
972
972
  }
973
973
  function F(n) {
@@ -978,7 +978,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
978
978
  new Error("[cingta-component-ant] CtAutoComplete 需要注入 baseDao(app.use 时传入)")
979
979
  );
980
980
  }
981
- function O(n) {
981
+ function B(n) {
982
982
  if (Array.isArray(n)) return n;
983
983
  if (!n || typeof n != "object") return [];
984
984
  if (Array.isArray(n.list)) return n.list;
@@ -987,7 +987,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
987
987
  }
988
988
  function L(n) {
989
989
  if (!n || typeof n != "object") return n;
990
- const i = j.value.value;
990
+ const i = O.value.value;
991
991
  return !i || n.id != null || n[i] == null ? n : { ...n, id: n[i] };
992
992
  }
993
993
  function W(n) {
@@ -997,20 +997,20 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
997
997
  const p = n[t.filterType];
998
998
  return p === void 0 ? "" : p;
999
999
  }
1000
- const i = j.value.value;
1000
+ const i = O.value.value;
1001
1001
  return i != null && i !== "" && n[i] !== void 0 ? n[i] : n.value;
1002
1002
  }
1003
1003
  function G(n) {
1004
1004
  if (!n || typeof n != "object") return "";
1005
- if (I.value) {
1006
- const _ = n[I.value];
1007
- if (_ != null && _ !== "")
1008
- return String(_);
1005
+ if (j.value) {
1006
+ const k = n[j.value];
1007
+ if (k != null && k !== "")
1008
+ return String(k);
1009
1009
  }
1010
1010
  const i = W(n), p = [n.label, n.name, n.univ_name, n.school_name];
1011
- for (const _ of p)
1012
- if (_ != null && String(_) !== "")
1013
- return String(_);
1011
+ for (const k of p)
1012
+ if (k != null && String(k) !== "")
1013
+ return String(k);
1014
1014
  return n.value !== void 0 && n.value !== null && String(n.value) !== "" && !(i != null && String(n.value) === String(i)) ? String(n.value) : i != null && i !== "" ? String(i) : "";
1015
1015
  }
1016
1016
  function ke(n) {
@@ -1023,12 +1023,12 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1023
1023
  function N(n) {
1024
1024
  l("changeBuriedParams", {
1025
1025
  label: t.label,
1026
- value: C.value,
1026
+ value: S.value,
1027
1027
  content: c.searchText
1028
- }), l("listenToChild", { para: C.value, value: n }), l("listenToChild", {
1028
+ }), l("listenToChild", { para: S.value, value: n }), l("listenToChild", {
1029
1029
  para: "buriedPointParam",
1030
1030
  value: {
1031
- [C.value]: {
1031
+ [S.value]: {
1032
1032
  label: t.label,
1033
1033
  value: c.searchText
1034
1034
  }
@@ -1038,13 +1038,13 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1038
1038
  function M() {
1039
1039
  const n = v(160);
1040
1040
  if (n) {
1041
- S.value = n;
1041
+ _.value = n;
1042
1042
  return;
1043
1043
  }
1044
1044
  const i = h.value;
1045
1045
  if (!i) return;
1046
1046
  const p = i.getBoundingClientRect();
1047
- S.value = {
1047
+ _.value = {
1048
1048
  position: "fixed",
1049
1049
  top: `${p.bottom + 4}px`,
1050
1050
  left: `${p.left}px`,
@@ -1062,11 +1062,11 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1062
1062
  c.dropdownVisible && M();
1063
1063
  }
1064
1064
  ye(
1065
- () => B.value,
1065
+ () => E.value,
1066
1066
  (n) => {
1067
1067
  if (!c.isFocus) {
1068
1068
  if (n == null || n === "") {
1069
- const i = k.value;
1069
+ const i = x.value;
1070
1070
  if (i.length > 0 && i[0] && i[1]) return;
1071
1071
  c.searchText = "", c.currVal = "";
1072
1072
  return;
@@ -1080,7 +1080,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1080
1080
  n && (c.searchText = "");
1081
1081
  }
1082
1082
  ), ye(
1083
- () => k.value,
1083
+ () => x.value,
1084
1084
  () => oe(),
1085
1085
  { deep: !0 }
1086
1086
  ), ye(
@@ -1091,7 +1091,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1091
1091
  ), ye(
1092
1092
  () => c.currVal,
1093
1093
  (n, i) => {
1094
- n !== i && (x(n), N(n));
1094
+ n !== i && (C(n), N(n));
1095
1095
  }
1096
1096
  );
1097
1097
  const U = (n) => {
@@ -1099,7 +1099,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1099
1099
  }, le = () => {
1100
1100
  c.searchSeq += 1, c.lastQueryKeyword = null, c.querySyncLock = !1, c.searchText = "", c.currVal = "", c.isSelect = !0, F(""), c.filterArr = [], c.isEmpty = !1, y();
1101
1101
  }, ce = () => {
1102
- const n = k.value;
1102
+ const n = x.value;
1103
1103
  if (n.length > 0 && n[0] && n[1]) {
1104
1104
  c.searchText = String(n[0]), c.currVal = n[1], F(String(n[0]));
1105
1105
  return;
@@ -1132,20 +1132,20 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1132
1132
  c.lastQueryKeyword = i, c.querySyncLock = !0, queueMicrotask(() => {
1133
1133
  c.querySyncLock = !1;
1134
1134
  });
1135
- const p = ++c.searchSeq, _ = { keyword: i };
1136
- t.userflag && (_.userflag = !0), Promise.resolve(ee(D.value, _)).then((q) => {
1137
- p === c.searchSeq && (c.filterArr = O(q).map(L), c.isEmpty = c.filterArr.length === 0, c.activeIndex = 0, c.isFocus && Y());
1135
+ const p = ++c.searchSeq, k = { keyword: i };
1136
+ t.userflag && (k.userflag = !0), Promise.resolve(ee(D.value, k)).then((q) => {
1137
+ p === c.searchSeq && (c.filterArr = B(q).map(L), c.isEmpty = c.filterArr.length === 0, c.activeIndex = 0, c.isFocus && Y());
1138
1138
  }).catch((q) => {
1139
1139
  console.error(q), typeof a == "function" && a(`查询${t.label || ""}`);
1140
1140
  });
1141
1141
  }, oe = () => {
1142
- const n = k.value;
1142
+ const n = x.value;
1143
1143
  n.length > 0 && n[0] && n[1] ? (c.searchText = String(n[0]), c.currVal = n[1], F(String(n[0]))) : (c.searchText = "", c.currVal = "", F(""));
1144
1144
  };
1145
1145
  return oe(), typeof window < "u" && (window.addEventListener("scroll", V, !0), window.addEventListener("resize", V)), bt(() => {
1146
1146
  typeof window < "u" && (window.removeEventListener("scroll", V, !0), window.removeEventListener("resize", V));
1147
1147
  }), (n, i) => {
1148
- const p = ie("ct-icon"), _ = ie("a-input"), q = ie("a-empty");
1148
+ const p = ie("ct-icon"), k = ie("a-input"), q = ie("a-empty");
1149
1149
  return T(), H("div", {
1150
1150
  class: "ct-autocomplete search-component",
1151
1151
  ref_key: "rootRef",
@@ -1153,7 +1153,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1153
1153
  onMouseenter: i[2] || (i[2] = (X) => c.isShowClear = !0),
1154
1154
  onMouseleave: i[3] || (i[3] = (X) => c.isShowClear = !1)
1155
1155
  }, [
1156
- me(_, {
1156
+ me(k, {
1157
1157
  value: c.searchText,
1158
1158
  class: "ct-autocomplete__input",
1159
1159
  placeholder: e.placeholder || "请输入内容",
@@ -1175,7 +1175,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1175
1175
  class: "ct-autocomplete__icon ct-autocomplete__clear",
1176
1176
  onMousedown: Bt(le, ["prevent"])
1177
1177
  }, null, 512), [
1178
- [Ot, E.value]
1178
+ [Ot, I.value]
1179
1179
  ]),
1180
1180
  Nt(me(p, {
1181
1181
  name: "search_line",
@@ -1191,7 +1191,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1191
1191
  (T(), he($n, { to: "body" }, [
1192
1192
  Nt(ue("div", {
1193
1193
  class: "ct-autocomplete__dropdown",
1194
- style: Je(S.value),
1194
+ style: Je(_.value),
1195
1195
  onMousedown: i[1] || (i[1] = Bt(() => {
1196
1196
  }, ["prevent"]))
1197
1197
  }, [
@@ -1353,16 +1353,16 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1353
1353
  self: !1,
1354
1354
  ...r.mapObj || {},
1355
1355
  ...r.fieldNames || {}
1356
- })), S = ne(null), v = ne(!1), c = ne("");
1357
- let k = 0;
1358
- const D = ne(""), j = ne(!1), I = ne([]), C = ne([]), B = f(() => {
1356
+ })), _ = ne(null), v = ne(!1), c = ne("");
1357
+ let x = 0;
1358
+ const D = ne(""), O = ne(!1), j = ne([]), S = ne([]), E = f(() => {
1359
1359
  if (r.mode) return r.mode;
1360
1360
  if (r.multiple) return "multiple";
1361
- }), E = f(() => B.value === "multiple"), x = f(() => B.value === "tags"), F = f(() => E.value || x.value), ee = f(() => r.options ?? []), O = f(
1361
+ }), I = f(() => E.value === "multiple"), C = f(() => E.value === "tags"), F = f(() => I.value || C.value), ee = f(() => r.options ?? []), B = f(
1362
1362
  () => r.allowClear !== void 0 ? r.allowClear : F.value
1363
- ), L = f(() => E.value), W = f(() => E.value ? !1 : x.value ? !0 : r.remote || r.showSearch), G = f(
1363
+ ), L = f(() => I.value), W = f(() => I.value ? !1 : C.value ? !0 : r.remote || r.showSearch), G = f(
1364
1364
  () => W.value ? { search: Tt } : {}
1365
- ), ke = f(() => r.remote ? !1 : x.value ? !0 : te), be = ne(!1), N = f(() => W.value && be.value ? "search_line" : "arrow-down_line"), {
1365
+ ), ke = f(() => r.remote ? !1 : C.value ? !0 : te), be = ne(!1), N = f(() => W.value && be.value ? "search_line" : "arrow-down_line"), {
1366
1366
  dropdownMatchSelectWidth: M,
1367
1367
  dropdownStyle: Y,
1368
1368
  dropdownAlign: y,
@@ -1371,7 +1371,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1371
1371
  } = Ct({
1372
1372
  getTriggerEl: () => {
1373
1373
  var m;
1374
- return (m = S.value) == null ? void 0 : m.$el;
1374
+ return (m = _.value) == null ? void 0 : m.$el;
1375
1375
  },
1376
1376
  popupClass: "ct-select-host-width",
1377
1377
  minWidth: () => r.minWidth
@@ -1381,12 +1381,12 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1381
1381
  le.forEach((m) => clearTimeout(m)), le = [];
1382
1382
  }
1383
1383
  function ge() {
1384
- if (!E.value) return;
1384
+ if (!I.value) return;
1385
1385
  ce();
1386
1386
  const m = () => {
1387
1387
  var d, w;
1388
- if (!be.value || !E.value) return;
1389
- (w = (d = S.value) == null ? void 0 : d.scrollTo) == null || w.call(d, 0);
1388
+ if (!be.value || !I.value) return;
1389
+ (w = (d = _.value) == null ? void 0 : d.scrollTo) == null || w.call(d, 0);
1390
1390
  const P = document.querySelector(
1391
1391
  ".ant-select-dropdown.ct-select-dropdown:not(.ant-select-dropdown-hidden)"
1392
1392
  );
@@ -1398,11 +1398,11 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1398
1398
  }
1399
1399
  async function $e(m) {
1400
1400
  var P, o;
1401
- if (be.value = m, m ? E.value && (Qe(), ge()) : ce(), await U(m), m) {
1402
- E.value && ge();
1401
+ if (be.value = m, m ? I.value && (Qe(), ge()) : ce(), await U(m), m) {
1402
+ I.value && ge();
1403
1403
  return;
1404
1404
  }
1405
- E.value && ((o = (P = S.value) == null ? void 0 : P.blur) == null || o.call(P), D.value = ""), r.remote && (c.value = "", je(""));
1405
+ I.value && ((o = (P = _.value) == null ? void 0 : P.blur) == null || o.call(P), D.value = ""), r.remote && (c.value = "", je(""));
1406
1406
  }
1407
1407
  const g = Ke(), z = f(() => {
1408
1408
  const m = { ...g };
@@ -1433,7 +1433,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1433
1433
  () => [
1434
1434
  "ct-select-dropdown",
1435
1435
  r.popupClassName,
1436
- E.value ? "ct-select-search-dropdown" : "",
1436
+ I.value ? "ct-select-search-dropdown" : "",
1437
1437
  V.value
1438
1438
  ].filter(Boolean).join(" ")
1439
1439
  ), n = f({
@@ -1442,7 +1442,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1442
1442
  t("update:value", m), t("update:modelValue", m);
1443
1443
  }
1444
1444
  });
1445
- function i(m = C.value) {
1445
+ function i(m = S.value) {
1446
1446
  return (m || []).some((P) => P && P.value === "");
1447
1447
  }
1448
1448
  function p(m) {
@@ -1451,14 +1451,14 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1451
1451
  if (m != null)
1452
1452
  return m === "" ? i() ? et : void 0 : m;
1453
1453
  }
1454
- function _(m) {
1454
+ function k(m) {
1455
1455
  return m === pt ? !0 : m === mt ? !1 : m == null || m === et ? "" : m;
1456
1456
  }
1457
1457
  function q(m) {
1458
1458
  return m && (m.value === "" ? { ...m, value: et } : m.value === !0 ? { ...m, value: pt } : m.value === !1 ? { ...m, value: mt } : m);
1459
1459
  }
1460
1460
  const X = f(
1461
- () => (I.value || []).map((m) => q(m))
1461
+ () => (j.value || []).map((m) => q(m))
1462
1462
  ), Ae = f({
1463
1463
  get: () => {
1464
1464
  const m = n.value;
@@ -1467,10 +1467,10 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1467
1467
  set: (m) => {
1468
1468
  if (F.value) {
1469
1469
  const P = Array.isArray(m) ? m : [];
1470
- n.value = P.map((o) => _(o));
1470
+ n.value = P.map((o) => k(o));
1471
1471
  return;
1472
1472
  }
1473
- n.value = _(m);
1473
+ n.value = k(m);
1474
1474
  }
1475
1475
  }), Te = ne();
1476
1476
  function Fe(m) {
@@ -1480,34 +1480,34 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1480
1480
  return m === P || P === et && m === "" || m === et && P === "" || P === pt && m === !0 || P === mt && m === !1 || m === pt && P === !0 || m === mt && P === !1 ? !0 : Fe(P) || Fe(m) ? !1 : String(m) === String(P);
1481
1481
  }
1482
1482
  function Qe() {
1483
- const m = Array.isArray(n.value) ? n.value : [], P = I.value || [];
1483
+ const m = Array.isArray(n.value) ? n.value : [], P = j.value || [];
1484
1484
  if (m.length && P.length) {
1485
1485
  const o = [], d = [];
1486
1486
  for (const w of P)
1487
1487
  m.some(($) => Ie(w.value, $)) ? o.push(w) : d.push(w);
1488
- I.value = [...o, ...d];
1488
+ j.value = [...o, ...d];
1489
1489
  }
1490
1490
  }
1491
1491
  function ve(m) {
1492
1492
  const P = m === et ? "" : m;
1493
- return (C.value || []).find((o) => Ie(o.value, P));
1493
+ return (S.value || []).find((o) => Ie(o.value, P));
1494
1494
  }
1495
1495
  function Ne(m) {
1496
1496
  if (m === et || m === "") {
1497
1497
  if (!i()) return;
1498
- const d = (C.value || []).find((w) => w && w.value === "");
1498
+ const d = (S.value || []).find((w) => w && w.value === "");
1499
1499
  return d == null ? void 0 : d.label;
1500
1500
  }
1501
1501
  if (Fe(m)) return;
1502
1502
  const P = ve(m);
1503
1503
  if (P) return P.label;
1504
- const o = (C.value || []).find(
1504
+ const o = (S.value || []).find(
1505
1505
  (d) => d.label === m || String(d.label) === String(m)
1506
1506
  );
1507
1507
  return o == null ? void 0 : o.label;
1508
1508
  }
1509
1509
  function Ge() {
1510
- const m = C.value || [], P = Array.isArray(n.value) ? n.value : [];
1510
+ const m = S.value || [], P = Array.isArray(n.value) ? n.value : [];
1511
1511
  return !m.length || !P.length ? !1 : m.every(
1512
1512
  (o) => P.some((d) => Ie(o.value, d))
1513
1513
  );
@@ -1520,7 +1520,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1520
1520
  }
1521
1521
  );
1522
1522
  function b(m) {
1523
- const P = I.value.map((d) => d.value), o = Array.isArray(n.value) ? n.value : [];
1523
+ const P = j.value.map((d) => d.value), o = Array.isArray(n.value) ? n.value : [];
1524
1524
  m.target.checked ? n.value = In(o.concat(P)) : n.value = o.filter((d) => !P.includes(d));
1525
1525
  }
1526
1526
  function te(m, P) {
@@ -1530,13 +1530,13 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1530
1530
  const o = String(P || "").trim();
1531
1531
  if (r.remote && o) {
1532
1532
  const d = /* @__PURE__ */ new Map();
1533
- (C.value || []).forEach((w) => {
1533
+ (S.value || []).forEach((w) => {
1534
1534
  w && w.value !== void 0 && w.value !== null && d.set(w.value, w);
1535
1535
  }), m.forEach((w) => {
1536
1536
  w && w.value !== void 0 && w.value !== null && d.set(w.value, w);
1537
- }), C.value = Array.from(d.values()), I.value = m;
1537
+ }), S.value = Array.from(d.values()), j.value = m;
1538
1538
  } else
1539
- C.value = m, I.value = m;
1539
+ S.value = m, j.value = m;
1540
1540
  Pe(), pe();
1541
1541
  }
1542
1542
  function Pe() {
@@ -1548,7 +1548,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1548
1548
  }).filter((P) => P != null && P !== "") : Te.value = void 0, t("update:label", Te.value);
1549
1549
  return;
1550
1550
  }
1551
- if (C.value && C.value.length) {
1551
+ if (S.value && S.value.length) {
1552
1552
  if (Fe(n.value))
1553
1553
  Te.value = void 0;
1554
1554
  else {
@@ -1578,7 +1578,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1578
1578
  }
1579
1579
  });
1580
1580
  ye(
1581
- () => C.value.length,
1581
+ () => S.value.length,
1582
1582
  () => {
1583
1583
  Pe(), pe();
1584
1584
  }
@@ -1604,7 +1604,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1604
1604
  console.warn("[CtSelect] missing baseDao, skip api fetch");
1605
1605
  return;
1606
1606
  }
1607
- const P = ++k, o = String(r.method || "post").toLowerCase(), d = {
1607
+ const P = ++x, o = String(r.method || "post").toLowerCase(), d = {
1608
1608
  ...R(r.searchParas) || R(r.serviceParams) || R(r.params) || {}
1609
1609
  };
1610
1610
  r.remote && (d[r.keywordParam] = m ?? "");
@@ -1621,27 +1621,27 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1621
1621
  v.value = !0;
1622
1622
  try {
1623
1623
  const fe = await (o === "post" && typeof u.post == "function" ? u.post(r.api, w) : u.get(r.api, w));
1624
- if (P !== k) return;
1624
+ if (P !== x) return;
1625
1625
  const Z = Ye(fe);
1626
- de(Z, m), (se = (A = r.cbs) == null ? void 0 : A.afterSearch) == null || se.call(A, fe, C);
1626
+ de(Z, m), (se = (A = r.cbs) == null ? void 0 : A.afterSearch) == null || se.call(A, fe, S);
1627
1627
  } catch (Q) {
1628
- P === k && console.error("[CtSelect] api fetch failed", Q);
1628
+ P === x && console.error("[CtSelect] api fetch failed", Q);
1629
1629
  } finally {
1630
- P === k && (v.value = !1);
1630
+ P === x && (v.value = !1);
1631
1631
  }
1632
1632
  }
1633
1633
  const De = a((m) => {
1634
1634
  je(m);
1635
1635
  }, r.remoteDebounce);
1636
1636
  function Tt(m) {
1637
- if (!r.remote || E.value) return;
1637
+ if (!r.remote || I.value) return;
1638
1638
  const P = m == null ? "" : String(m);
1639
1639
  c.value = P, De(P);
1640
1640
  }
1641
1641
  return ye(
1642
1642
  ee,
1643
1643
  (m) => {
1644
- C.value = Ye(m || []), I.value = gt(C.value), Pe(), pe();
1644
+ S.value = Ye(m || []), j.value = gt(S.value), Pe(), pe();
1645
1645
  },
1646
1646
  {
1647
1647
  immediate: !0,
@@ -1658,7 +1658,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1658
1658
  ],
1659
1659
  () => {
1660
1660
  if (!r.api) return;
1661
- const m = r.remote ? E.value ? D.value : c.value : "";
1661
+ const m = r.remote ? I.value ? D.value : c.value : "";
1662
1662
  je(m || "");
1663
1663
  },
1664
1664
  {
@@ -1672,37 +1672,37 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1672
1672
  De(m || "");
1673
1673
  return;
1674
1674
  }
1675
- I.value = C.value.filter((P) => Ft(P.label, m));
1675
+ j.value = S.value.filter((P) => Ft(P.label, m));
1676
1676
  }
1677
1677
  ), Bn(() => {
1678
- if (!E.value) return;
1678
+ if (!I.value) return;
1679
1679
  const m = Array.isArray(n.value) ? n.value : [];
1680
- j.value = m.length > 0 && I.value.length > 0 && m.length >= I.value.length && I.value.every((P) => m.includes(P.value));
1680
+ O.value = m.length > 0 && j.value.length > 0 && m.length >= j.value.length && j.value.every((P) => m.includes(P.value));
1681
1681
  }), ot(() => {
1682
1682
  }), (m, P) => {
1683
1683
  const o = ie("ct-icon"), d = ie("a-checkbox"), w = ie("a-select");
1684
1684
  return T(), H("div", {
1685
1685
  class: we(["ct-select", {
1686
- "ct-select--summary": E.value,
1687
- "ct-select--tags": x.value
1686
+ "ct-select--summary": I.value,
1687
+ "ct-select--tags": C.value
1688
1688
  }])
1689
1689
  }, [
1690
1690
  me(w, Se(z.value, {
1691
1691
  value: Ae.value,
1692
1692
  "onUpdate:value": P[1] || (P[1] = ($) => Ae.value = $),
1693
1693
  ref_key: "selectRef",
1694
- ref: S,
1694
+ ref: _,
1695
1695
  popupClassName: oe.value,
1696
1696
  placeholder: r.placeholder,
1697
1697
  options: X.value,
1698
- mode: B.value,
1698
+ mode: E.value,
1699
1699
  showSearch: W.value,
1700
- allowClear: O.value,
1700
+ allowClear: B.value,
1701
1701
  fieldNames: r.fieldNames,
1702
1702
  showArrow: !0,
1703
1703
  "filter-option": ke.value,
1704
1704
  loading: v.value,
1705
- "max-tag-count": E.value ? 0 : void 0,
1705
+ "max-tag-count": I.value ? 0 : void 0,
1706
1706
  virtual: !F.value,
1707
1707
  dropdownMatchSelectWidth: R(M),
1708
1708
  dropdownStyle: J.value,
@@ -1732,7 +1732,7 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1732
1732
  ]),
1733
1733
  key: "0"
1734
1734
  } : void 0,
1735
- E.value ? {
1735
+ I.value ? {
1736
1736
  name: "dropdownRender",
1737
1737
  fn: re(({ menuNode: $ }) => [
1738
1738
  L.value ? (T(), he(R(At), {
@@ -1743,9 +1743,9 @@ const nt = Oe(qn, "CtButton"), Ee = (e, s) => {
1743
1743
  "allow-clear": !0
1744
1744
  }, null, 8, ["value", "suffix-icon"])) : xe("", !0),
1745
1745
  ue("div", mr, [
1746
- L.value && D.value ? (T(), H("span", vr, _e(I.value.length) + "条检索数据", 1)) : (T(), H("span", hr, "已选" + _e(Array.isArray(n.value) ? n.value.length : 0) + "项", 1)),
1746
+ L.value && D.value ? (T(), H("span", vr, _e(j.value.length) + "条检索数据", 1)) : (T(), H("span", hr, "已选" + _e(Array.isArray(n.value) ? n.value.length : 0) + "项", 1)),
1747
1747
  me(d, {
1748
- checked: j.value,
1748
+ checked: O.value,
1749
1749
  onChange: b
1750
1750
  }, {
1751
1751
  default: re(() => [...P[2] || (P[2] = [
@@ -1820,7 +1820,7 @@ function Yt({
1820
1820
  width: t = 520,
1821
1821
  centered: l = !1,
1822
1822
  zIndex: h = 3e3,
1823
- closable: S = !0,
1823
+ closable: _ = !0,
1824
1824
  ...v
1825
1825
  } = {}) {
1826
1826
  Pn.confirm({
@@ -1836,7 +1836,7 @@ function Yt({
1836
1836
  width: t,
1837
1837
  zIndex: h,
1838
1838
  centered: l,
1839
- closable: S,
1839
+ closable: _,
1840
1840
  autoFocusButton: null,
1841
1841
  onOk: e,
1842
1842
  onCancel: s,
@@ -1914,7 +1914,7 @@ const Sr = {
1914
1914
  ],
1915
1915
  setup(e, { expose: s, emit: u }) {
1916
1916
  const a = e, r = u, t = ne(null), l = f(() => !!a.multiple), h = ne(0);
1917
- function S() {
1917
+ function _() {
1918
1918
  const g = h.value;
1919
1919
  !g || typeof document > "u" || document.querySelectorAll(".ant-select-dropdown.ct-year-select-host-width").forEach((z) => {
1920
1920
  z.classList.contains("ant-select-dropdown-hidden") || (z.style.setProperty("width", `${g}px`, "important"), z.style.setProperty("min-width", `${g}px`, "important"), z.style.setProperty("box-sizing", "border-box", "important"));
@@ -1926,7 +1926,7 @@ const Sr = {
1926
1926
  dropdownStyle: n,
1927
1927
  dropdownAlign: i,
1928
1928
  hostPopupClass: p,
1929
- syncDropdownToHostItem: _,
1929
+ syncDropdownToHostItem: k,
1930
1930
  onHostDropdownVisibleChange: q
1931
1931
  } = Ct({
1932
1932
  getTriggerEl: () => z.value || t.value,
@@ -1966,10 +1966,10 @@ const Sr = {
1966
1966
  });
1967
1967
  function Ie() {
1968
1968
  var ve, Ne;
1969
- z.value = ((Ne = (ve = t.value) == null ? void 0 : ve.querySelector) == null ? void 0 : Ne.call(ve, `.ct-year-select__select${J}`)) || t.value, _(), X();
1969
+ z.value = ((Ne = (ve = t.value) == null ? void 0 : ve.querySelector) == null ? void 0 : Ne.call(ve, `.ct-year-select__select${J}`)) || t.value, k(), X();
1970
1970
  }
1971
1971
  async function Qe(ve) {
1972
- ve && Ie(), await q(ve), ve && (X(), await He(), S(), requestAnimationFrame(() => S())), r("visible-change", ve);
1972
+ ve && Ie(), await q(ve), ve && (X(), await He(), _(), requestAnimationFrame(() => _())), r("visible-change", ve);
1973
1973
  }
1974
1974
  return en({
1975
1975
  dropdownAlign: i,
@@ -1980,44 +1980,44 @@ const Sr = {
1980
1980
  onVisibleChange: Qe
1981
1981
  });
1982
1982
  }
1983
- const c = v("start"), k = v("end"), D = f(() => a.startPlaceholder ? a.startPlaceholder : l.value ? "开始" : a.placeholder || "请选择"), j = f(() => a.endPlaceholder || "结束");
1984
- function I(g) {
1983
+ const c = v("start"), x = v("end"), D = f(() => a.startPlaceholder ? a.startPlaceholder : l.value ? "开始" : a.placeholder || "请选择"), O = f(() => a.endPlaceholder || "结束");
1984
+ function j(g) {
1985
1985
  if (g === "" || g == null) return "";
1986
1986
  if (typeof g == "number") return g;
1987
1987
  const z = Number(g);
1988
1988
  return Number.isNaN(z) ? "" : z;
1989
1989
  }
1990
- function C(g) {
1990
+ function S(g) {
1991
1991
  if (g === "") return a.haveEmpty ? "" : void 0;
1992
1992
  if (g == null) return;
1993
- const z = I(g);
1993
+ const z = j(g);
1994
1994
  return z === "" ? void 0 : z;
1995
1995
  }
1996
- function B(g) {
1996
+ function E(g) {
1997
1997
  if (!K(g) || g.length < 2)
1998
1998
  return [1950, (/* @__PURE__ */ new Date()).getFullYear()];
1999
1999
  let z = Number(g[0]), J = Number(g[1]);
2000
2000
  return Number.isNaN(z) || Number.isNaN(J) ? [1950, (/* @__PURE__ */ new Date()).getFullYear()] : (J < z && ([z, J] = [J, z]), [z, J]);
2001
2001
  }
2002
- const E = f(() => {
2002
+ const I = f(() => {
2003
2003
  const g = a.range;
2004
- return K(g) && K(g[0]) ? B(g[0]) : B(g);
2005
- }), x = f(() => {
2004
+ return K(g) && K(g[0]) ? E(g[0]) : E(g);
2005
+ }), C = f(() => {
2006
2006
  const g = a.range;
2007
- return K(g) && K(g[1]) ? B(g[1]) : B(g);
2007
+ return K(g) && K(g[1]) ? E(g[1]) : E(g);
2008
2008
  });
2009
2009
  function F(g, { disableBefore: z, disableAfter: J } = {}) {
2010
2010
  const [oe, n] = g, i = [];
2011
2011
  for (let p = n; p >= oe; p--) {
2012
- let _ = !1;
2013
- J != null && J !== "" && p > Number(J) && (_ = !0), z != null && z !== "" && p < Number(z) && (_ = !0), i.push({ label: String(p), value: p, disabled: _ });
2012
+ let k = !1;
2013
+ J != null && J !== "" && p > Number(J) && (k = !0), z != null && z !== "" && p < Number(z) && (k = !0), i.push({ label: String(p), value: p, disabled: k });
2014
2014
  }
2015
2015
  return a.haveEmpty && i.unshift({ label: " ", value: "", disabled: !1 }), i;
2016
2016
  }
2017
- const ee = f(() => a.value !== void 0 ? a.value : a.modelValue), O = f({
2017
+ const ee = f(() => a.value !== void 0 ? a.value : a.modelValue), B = f({
2018
2018
  get() {
2019
2019
  const g = ee.value;
2020
- return l.value ? K(g) ? C(g[0]) : void 0 : C(g);
2020
+ return l.value ? K(g) ? S(g[0]) : void 0 : S(g);
2021
2021
  },
2022
2022
  set(g) {
2023
2023
  be(g, L.value, "start");
@@ -2026,25 +2026,25 @@ const Sr = {
2026
2026
  get() {
2027
2027
  const g = ee.value;
2028
2028
  if (l.value)
2029
- return K(g) ? C(g[1]) : void 0;
2029
+ return K(g) ? S(g[1]) : void 0;
2030
2030
  },
2031
2031
  set(g) {
2032
- be(O.value, g, "end");
2032
+ be(B.value, g, "end");
2033
2033
  }
2034
2034
  }), W = f(
2035
- () => F(E.value, {
2035
+ () => F(I.value, {
2036
2036
  disableAfter: l.value ? L.value : void 0
2037
2037
  })
2038
2038
  ), G = f(
2039
- () => F(x.value, {
2040
- disableBefore: l.value ? O.value : void 0
2039
+ () => F(C.value, {
2040
+ disableBefore: l.value ? B.value : void 0
2041
2041
  })
2042
2042
  );
2043
2043
  function ke(g, z) {
2044
2044
  return !a.countVal || g === "" || z === "" || g == null || z == null ? !1 : Math.abs(Number(g) - Number(z)) > Number(a.countVal);
2045
2045
  }
2046
2046
  function be(g, z, J) {
2047
- let oe = I(g), n = I(z);
2047
+ let oe = j(g), n = j(z);
2048
2048
  if (!l.value) {
2049
2049
  N(oe);
2050
2050
  return;
@@ -2068,8 +2068,8 @@ const Sr = {
2068
2068
  }
2069
2069
  function V(g, z) {
2070
2070
  if (!a.showSearch || !Y(g)) return;
2071
- const J = Number(g), oe = z === "end" ? x.value : E.value;
2072
- y(J, oe) && (z === "end" ? L.value = J : O.value = J);
2071
+ const J = Number(g), oe = z === "end" ? C.value : I.value;
2072
+ y(J, oe) && (z === "end" ? L.value = J : B.value = J);
2073
2073
  }
2074
2074
  const U = f(
2075
2075
  () => a.showSearch ? { search: (g) => V(g, "start") } : {}
@@ -2118,8 +2118,8 @@ const Sr = {
2118
2118
  ae(g.$slots, "prefix", {}, void 0, !0)
2119
2119
  ])) : xe("", !0),
2120
2120
  me(J, Se({
2121
- value: O.value,
2122
- "onUpdate:value": z[0] || (z[0] = (oe) => O.value = oe),
2121
+ value: B.value,
2122
+ "onUpdate:value": z[0] || (z[0] = (oe) => B.value = oe),
2123
2123
  class: ["ct-year-select__select is-start", { "is-single": !l.value }],
2124
2124
  bordered: !1,
2125
2125
  disabled: a.disabled,
@@ -2153,20 +2153,20 @@ const Sr = {
2153
2153
  class: "ct-year-select__select is-end",
2154
2154
  bordered: !1,
2155
2155
  disabled: a.disabled,
2156
- placeholder: j.value,
2156
+ placeholder: O.value,
2157
2157
  options: G.value,
2158
2158
  "show-arrow": !1,
2159
2159
  "show-search": a.showSearch,
2160
2160
  "allow-clear": a.allowClear,
2161
2161
  "filter-option": ce,
2162
- "dropdown-match-select-width": R(k).stableMatchWidth,
2163
- "dropdown-style": R(k).stableStyle,
2164
- "dropdown-align": R(k).dropdownAlign,
2162
+ "dropdown-match-select-width": R(x).stableMatchWidth,
2163
+ "dropdown-style": R(x).stableStyle,
2164
+ "dropdown-align": R(x).dropdownAlign,
2165
2165
  "get-popup-container": ge,
2166
- "popup-class-name": R(k).popupClassName
2166
+ "popup-class-name": R(x).popupClassName
2167
2167
  }, _t(le.value), {
2168
- onMousedown: z[4] || (z[4] = () => R(k).prepare()),
2169
- onDropdownVisibleChange: R(k).onVisibleChange,
2168
+ onMousedown: z[4] || (z[4] = () => R(x).prepare()),
2169
+ onDropdownVisibleChange: R(x).onVisibleChange,
2170
2170
  onChange: z[5] || (z[5] = (oe) => M(oe, 1))
2171
2171
  }), null, 16, ["value", "disabled", "placeholder", "options", "show-search", "allow-clear", "dropdown-match-select-width", "dropdown-style", "dropdown-align", "popup-class-name", "onDropdownVisibleChange"])
2172
2172
  ], 64)) : xe("", !0),
@@ -2240,7 +2240,7 @@ const Sr = {
2240
2240
  }
2241
2241
  return o;
2242
2242
  }
2243
- function S(o, d) {
2243
+ function _(o, d) {
2244
2244
  if (o === d) return !0;
2245
2245
  if (o == null || o === "" || d === void 0 || d === null || d === "")
2246
2246
  return !1;
@@ -2253,20 +2253,20 @@ const Sr = {
2253
2253
  function v(o) {
2254
2254
  return o == null || o === "" ? o : K(o) ? o.map((d) => v(d)) : h(o);
2255
2255
  }
2256
- const c = s, k = f(() => {
2256
+ const c = s, x = f(() => {
2257
2257
  const o = { ...r };
2258
2258
  return delete o.popupClassName, delete o["popup-class-name"], delete o.dropdownClassName, delete o["dropdown-class-name"], delete o.dropdownRender, delete o["dropdown-render"], delete o.dropdownAlign, delete o["dropdown-align"], delete o.dropdownMatchSelectWidth, delete o["dropdown-match-select-width"], delete o.dropdownStyle, delete o["dropdown-style"], delete o.showCheckedStrategy, delete o["show-checked-strategy"], delete o.showSearch, delete o["show-search"], delete o.onSearch, delete o.search, delete o.searchValue, delete o["search-value"], delete o.displayRender, delete o["display-render"], delete o.filterable, delete o.clearable, delete o.props, o;
2259
2259
  }), D = f(() => {
2260
2260
  var o;
2261
2261
  return !!(t.multiple || (o = r.props) != null && o.multiple);
2262
- }), j = ne([]), I = ne([]), C = ne(""), B = ne(!1);
2263
- let E = null;
2264
- const x = ne(null), F = ne(!1);
2265
- let ee = !1, O = [];
2262
+ }), O = ne([]), j = ne([]), S = ne(""), E = ne(!1);
2263
+ let I = null;
2264
+ const C = ne(null), F = ne(!1);
2265
+ let ee = !1, B = [];
2266
2266
  const { dropdownAlign: L, hostPopupClass: W, onHostDropdownVisibleChange: G } = Ct({
2267
2267
  getTriggerEl: () => {
2268
2268
  var o, d;
2269
- return ((d = (o = x.value) == null ? void 0 : o.querySelector) == null ? void 0 : d.call(o, ".ant-select")) || x.value;
2269
+ return ((d = (o = C.value) == null ? void 0 : o.querySelector) == null ? void 0 : d.call(o, ".ant-select")) || C.value;
2270
2270
  },
2271
2271
  popupClass: "ct-cascader-host-width",
2272
2272
  // 级联多列需自然撑开,只与宿主左对齐,不强行同宽
@@ -2282,8 +2282,8 @@ const Sr = {
2282
2282
  d,
2283
2283
  be.value ? "ct-cascader-search-dropdown" : "",
2284
2284
  // 有关键词时走扁平路径列表,藏展开箭头/右侧子列(见下方 CSS)
2285
- C.value.trim() ? "ct-cascader-dropdown--searching" : "",
2286
- B.value ? "ct-cascader-dropdown--force-hide" : "",
2285
+ S.value.trim() ? "ct-cascader-dropdown--searching" : "",
2286
+ E.value ? "ct-cascader-dropdown--force-hide" : "",
2287
2287
  W.value
2288
2288
  ].filter(Boolean).join(" ");
2289
2289
  });
@@ -2297,12 +2297,12 @@ const Sr = {
2297
2297
  },
2298
2298
  [
2299
2299
  tt(At, {
2300
- value: C.value,
2300
+ value: S.value,
2301
2301
  "onUpdate:value": (d) => {
2302
- C.value = d == null ? "" : String(d);
2302
+ S.value = d == null ? "" : String(d);
2303
2303
  },
2304
2304
  placeholder: "请输入关键词",
2305
- suffixIcon: C.value ? void 0 : "search_line",
2305
+ suffixIcon: S.value ? void 0 : "search_line",
2306
2306
  allowClear: !0
2307
2307
  })
2308
2308
  ]
@@ -2362,9 +2362,9 @@ const Sr = {
2362
2362
  function z(o) {
2363
2363
  if (!K(o) || !o.length) return [];
2364
2364
  const d = V.value, w = le.value, $ = U.value, A = [];
2365
- let se = j.value;
2365
+ let se = O.value;
2366
2366
  for (const Q of o) {
2367
- const fe = (se || []).find((Z) => Z && S(Z[d], Q));
2367
+ const fe = (se || []).find((Z) => Z && _(Z[d], Q));
2368
2368
  if (!fe) {
2369
2369
  A.push(h(Q));
2370
2370
  break;
@@ -2424,7 +2424,7 @@ const Sr = {
2424
2424
  const Lt = () => {
2425
2425
  Q || (Q = !0, $.removeEventListener("scroll", Z, !0), Ue.disconnect(), window.clearInterval(kn), A().forEach(Me), fe());
2426
2426
  };
2427
- O.push(Lt), window.setTimeout(Lt, w);
2427
+ B.push(Lt), window.setTimeout(Lt, w);
2428
2428
  }
2429
2429
  function p(o) {
2430
2430
  var $, A;
@@ -2433,11 +2433,11 @@ const Sr = {
2433
2433
  const w = d.closest(".ant-cascader-menu");
2434
2434
  w && i(w, w.scrollTop);
2435
2435
  }
2436
- function _() {
2436
+ function k() {
2437
2437
  ee || typeof document > "u" || (document.addEventListener("mousedown", p, !0), ee = !0);
2438
2438
  }
2439
2439
  function q() {
2440
- ee && typeof document < "u" && document.removeEventListener("mousedown", p, !0), ee = !1, O.splice(0).forEach((o) => {
2440
+ ee && typeof document < "u" && document.removeEventListener("mousedown", p, !0), ee = !1, B.splice(0).forEach((o) => {
2441
2441
  try {
2442
2442
  o();
2443
2443
  } catch {
@@ -2446,11 +2446,11 @@ const Sr = {
2446
2446
  }
2447
2447
  async function X(o) {
2448
2448
  if (await G(o), o) {
2449
- E != null && (clearTimeout(E), E = null), B.value = !1;
2449
+ I != null && (clearTimeout(I), I = null), E.value = !1;
2450
2450
  return;
2451
2451
  }
2452
- E = window.setTimeout(() => {
2453
- C.value = "", B.value = !1, E = null;
2452
+ I = window.setTimeout(() => {
2453
+ S.value = "", E.value = !1, I = null;
2454
2454
  }, 300);
2455
2455
  }
2456
2456
  function Ae(o, d, w = []) {
@@ -2463,7 +2463,7 @@ const Sr = {
2463
2463
  const Z = Ae(fe, d, Q);
2464
2464
  if (Z) return Z;
2465
2465
  }
2466
- if (S(se[$], d))
2466
+ if (_(se[$], d))
2467
2467
  return Q;
2468
2468
  }
2469
2469
  return null;
@@ -2478,7 +2478,7 @@ const Sr = {
2478
2478
  const Q = Te(se, d);
2479
2479
  if (Q) return Q;
2480
2480
  }
2481
- if (S(A[w], d))
2481
+ if (_(A[w], d))
2482
2482
  return A;
2483
2483
  }
2484
2484
  return null;
@@ -2487,7 +2487,7 @@ const Sr = {
2487
2487
  () => t.value !== void 0 ? t.value : t.modelValue
2488
2488
  ), Ie = ne(Fe.value);
2489
2489
  function Qe(o, d) {
2490
- return o === d ? !0 : K(o) && K(d) ? o.length !== d.length ? !1 : o.every((w, $) => S(w, d[$])) : S(o, d);
2490
+ return o === d ? !0 : K(o) && K(d) ? o.length !== d.length ? !1 : o.every((w, $) => _(w, d[$])) : _(o, d);
2491
2491
  }
2492
2492
  ye(
2493
2493
  Fe,
@@ -2498,7 +2498,7 @@ const Sr = {
2498
2498
  );
2499
2499
  const ve = f(() => {
2500
2500
  const o = Ie.value;
2501
- return o == null || o === "" ? D.value ? [] : void 0 : t.returnLast ? D.value ? (K(o) ? o : [o]).map((w) => Ae(j.value, w)).filter(Boolean) : Ae(j.value, o) || void 0 : o;
2501
+ return o == null || o === "" ? D.value ? [] : void 0 : t.returnLast ? D.value ? (K(o) ? o : [o]).map((w) => Ae(O.value, w)).filter(Boolean) : Ae(O.value, o) || void 0 : o;
2502
2502
  });
2503
2503
  function Ne(o) {
2504
2504
  if (!o || K(o) && !o.length)
@@ -2514,8 +2514,8 @@ const Sr = {
2514
2514
  return D.value ? d.map((A) => K(A) ? A[A.length - 1] : A).filter(Boolean) : [d[d.length - 1]].filter(Boolean);
2515
2515
  const w = Ne(o);
2516
2516
  if (D.value)
2517
- return (K(w) ? w : []).map((A) => Te(j.value, A)).filter(Boolean);
2518
- const $ = Te(j.value, w);
2517
+ return (K(w) ? w : []).map((A) => Te(O.value, A)).filter(Boolean);
2518
+ const $ = Te(O.value, w);
2519
2519
  return $ ? [$] : [];
2520
2520
  }
2521
2521
  function Ze(o, d) {
@@ -2538,10 +2538,10 @@ const Sr = {
2538
2538
  const d = le.value;
2539
2539
  if (D.value)
2540
2540
  return (K(o) ? o : [o]).map((Q) => {
2541
- const fe = K(Q) ? Q[Q.length - 1] : Q, Z = Te(j.value, fe);
2541
+ const fe = K(Q) ? Q[Q.length - 1] : Q, Z = Te(O.value, fe);
2542
2542
  return (Z == null ? void 0 : Z[d]) != null && Z[d] !== "" ? Z[d] : Be(fe) ? "" : h(fe);
2543
2543
  }).filter((Q) => Q != null && Q !== "");
2544
- const w = K(o) ? o[o.length - 1] : o, $ = Te(j.value, w), A = ($ == null ? void 0 : $[d]) ?? (Be(w) ? "" : h(w));
2544
+ const w = K(o) ? o[o.length - 1] : o, $ = Te(O.value, w), A = ($ == null ? void 0 : $[d]) ?? (Be(w) ? "" : h(w));
2545
2545
  return A != null && A !== "" ? [A] : [];
2546
2546
  }
2547
2547
  function te() {
@@ -2552,10 +2552,10 @@ const Sr = {
2552
2552
  const d = le.value;
2553
2553
  if (o) {
2554
2554
  const $ = o.map((A) => A == null ? void 0 : A[d]).filter(Boolean);
2555
- return I.value = $, $;
2555
+ return j.value = $, $;
2556
2556
  }
2557
2557
  const w = b();
2558
- return !w.length && I.value.length && te() || (I.value = w), I.value;
2558
+ return !w.length && j.value.length && te() || (j.value = w), j.value;
2559
2559
  }
2560
2560
  function Pe(o) {
2561
2561
  const d = de(o);
@@ -2565,23 +2565,23 @@ const Sr = {
2565
2565
  return !Array.isArray(o) || !o.length ? [] : o.map((d) => {
2566
2566
  if (d == null) return "";
2567
2567
  if (typeof d == "string" || typeof d == "number") {
2568
- const A = Te(j.value, d);
2568
+ const A = Te(O.value, d);
2569
2569
  return (A == null ? void 0 : A[le.value]) != null && A[le.value] !== "" ? A[le.value] : typeof d == "string" && d.startsWith(vt) ? "" : String(d);
2570
2570
  }
2571
2571
  if (d.label != null && d.label !== "") return d.label;
2572
- const w = K(d.value) ? d.value[d.value.length - 1] : d.value, $ = Te(j.value, w);
2572
+ const w = K(d.value) ? d.value[d.value.length - 1] : d.value, $ = Te(O.value, w);
2573
2573
  return ($ == null ? void 0 : $[le.value]) ?? "";
2574
2574
  }).filter((d) => d != null && d !== "");
2575
2575
  }
2576
2576
  function Ye(o) {
2577
- if (Array.isArray(I.value) && I.value.length)
2578
- return I.value.join("、");
2577
+ if (Array.isArray(j.value) && j.value.length)
2578
+ return j.value.join("、");
2579
2579
  const d = pe(o);
2580
- return d.length ? (I.value = d, d.join("、")) : b().join("、");
2580
+ return d.length ? (j.value = d, d.join("、")) : b().join("、");
2581
2581
  }
2582
2582
  function je(o, d) {
2583
2583
  var se;
2584
- D.value || C.value && (B.value = !0);
2584
+ D.value || S.value && (E.value = !0);
2585
2585
  const w = Ne(o);
2586
2586
  Ie.value = w, c("update:value", w), c("update:modelValue", w);
2587
2587
  const $ = Ge(o, d);
@@ -2592,8 +2592,8 @@ const Sr = {
2592
2592
  const { emitBuriedParams: De } = st(t, c, {
2593
2593
  getContent: () => {
2594
2594
  const o = Ie.value, d = D.value ? K(o) ? o : o != null && o !== "" ? [o] : [] : [o];
2595
- let w = Ze(j.value, d);
2596
- return w.length || (w = I.value.length > 0 ? I.value : b()), D.value ? w : w.length ? w[0] : "";
2595
+ let w = Ze(O.value, d);
2596
+ return w.length || (w = j.value.length > 0 ? j.value : b()), D.value ? w : w.length ? w[0] : "";
2597
2597
  }
2598
2598
  });
2599
2599
  function Tt(o) {
@@ -2609,7 +2609,7 @@ const Sr = {
2609
2609
  async function P() {
2610
2610
  var w, $;
2611
2611
  if (!t.api) {
2612
- j.value = g(t.options || []), de(), De();
2612
+ O.value = g(t.options || []), de(), De();
2613
2613
  return;
2614
2614
  }
2615
2615
  if (!a) {
@@ -2629,13 +2629,13 @@ const Sr = {
2629
2629
  se = Z || se;
2630
2630
  }
2631
2631
  const Q = await d(t.api, se || {}), fe = g(Tt(Q));
2632
- j.value = fe, de(), De(), u(A.afterSearch) && (A.afterSearch(K(Q) ? Q : fe, j, ve), j.value = g(j.value), de(), De());
2632
+ O.value = fe, de(), De(), u(A.afterSearch) && (A.afterSearch(K(Q) ? Q : fe, O, ve), O.value = g(O.value), de(), De());
2633
2633
  } catch (A) {
2634
2634
  console.error("[CtCascader] api fetch failed", A);
2635
2635
  }
2636
2636
  }
2637
2637
  return ye(
2638
- () => [Ie.value, j.value],
2638
+ () => [Ie.value, O.value],
2639
2639
  () => {
2640
2640
  de(), De();
2641
2641
  },
@@ -2649,34 +2649,34 @@ const Sr = {
2649
2649
  ), ye(
2650
2650
  () => t.options,
2651
2651
  (o) => {
2652
- !t.api && o && (j.value = g(o), de(), De());
2652
+ !t.api && o && (O.value = g(o), de(), De());
2653
2653
  },
2654
2654
  { immediate: !0, deep: !0 }
2655
2655
  ), ot(() => {
2656
2656
  var o, d;
2657
- F.value = !!((d = (o = x.value) == null ? void 0 : o.closest) != null && d.call(
2657
+ F.value = !!((d = (o = C.value) == null ? void 0 : o.closest) != null && d.call(
2658
2658
  o,
2659
2659
  ".ct-filter-field-host, .ct-search-box__item-component, .filter-item__input"
2660
- )), _();
2660
+ )), k();
2661
2661
  }), bt(() => {
2662
- q(), E != null && (clearTimeout(E), E = null);
2662
+ q(), I != null && (clearTimeout(I), I = null);
2663
2663
  }), (o, d) => {
2664
2664
  const w = ie("ct-icon"), $ = ie("a-cascader");
2665
2665
  return T(), H("div", {
2666
2666
  ref_key: "rootRef",
2667
- ref: x,
2667
+ ref: C,
2668
2668
  class: we(["ct-cascader", {
2669
2669
  "ct-cascader--dropdown-search": be.value,
2670
2670
  "ct-cascader--hosted": F.value
2671
2671
  }])
2672
2672
  }, [
2673
- me($, Se({ value: ve.value }, { ...k.value, ...ke.value }, {
2674
- options: j.value,
2673
+ me($, Se({ value: ve.value }, { ...x.value, ...ke.value }, {
2674
+ options: O.value,
2675
2675
  fieldNames: y.value,
2676
2676
  placeholder: t.placeholder,
2677
2677
  showArrow: !0,
2678
2678
  "show-search": $e.value,
2679
- "search-value": be.value ? C.value : void 0,
2679
+ "search-value": be.value ? S.value : void 0,
2680
2680
  "display-render": J,
2681
2681
  multiple: D.value,
2682
2682
  showCheckedStrategy: D.value ? "SHOW_CHILD" : void 0,
@@ -2738,69 +2738,69 @@ const Sr = {
2738
2738
  },
2739
2739
  emits: ["scroll"],
2740
2740
  setup(e, { expose: s, emit: u }) {
2741
- const a = e, r = u, t = ne(null), l = ne(0), h = ne(0), S = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
2742
- let k = null, D = null, j = 0;
2743
- const I = f(() => {
2741
+ const a = e, r = u, t = ne(null), l = ne(0), h = ne(0), _ = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
2742
+ let x = null, D = null, O = 0;
2743
+ const j = f(() => {
2744
2744
  const n = a.estimatedItemHeight;
2745
2745
  return typeof n == "number" && n > 0 ? n : a.itemHeight;
2746
- }), C = f(() => !!a.dynamic), B = f(() => {
2746
+ }), S = f(() => !!a.dynamic), E = f(() => {
2747
2747
  var n;
2748
2748
  return a.virtual === !0 ? !0 : a.virtual === !1 ? !1 : (((n = a.items) == null ? void 0 : n.length) || 0) > a.threshold;
2749
- }), E = f(() => {
2749
+ }), I = f(() => {
2750
2750
  var n;
2751
2751
  return ((n = a.items) == null ? void 0 : n.length) || 0;
2752
- }), x = f(() => {
2752
+ }), C = f(() => {
2753
2753
  h.value;
2754
2754
  const n = a.items || [], i = n.length, p = new Array(i + 1);
2755
- if (p[0] = 0, !C.value) {
2755
+ if (p[0] = 0, !S.value) {
2756
2756
  const q = a.itemHeight;
2757
2757
  for (let X = 0; X < i; X += 1) p[X + 1] = p[X] + q;
2758
2758
  return p;
2759
2759
  }
2760
- const _ = I.value;
2760
+ const k = j.value;
2761
2761
  for (let q = 0; q < i; q += 1)
2762
- p[q + 1] = p[q] + (S.get(M(n[q], q)) ?? _);
2762
+ p[q + 1] = p[q] + (_.get(M(n[q], q)) ?? k);
2763
2763
  return p;
2764
2764
  }), F = f(() => {
2765
- const n = x.value;
2765
+ const n = C.value;
2766
2766
  return n[n.length - 1] || 0;
2767
2767
  });
2768
2768
  function ee(n, i) {
2769
2769
  const p = i.length - 1;
2770
2770
  if (p <= 0) return 0;
2771
- let _ = 0, q = p - 1;
2771
+ let k = 0, q = p - 1;
2772
2772
  const X = Math.max(0, n);
2773
- for (; _ <= q; ) {
2774
- const Ae = _ + q >> 1;
2775
- if (i[Ae + 1] <= X) _ = Ae + 1;
2773
+ for (; k <= q; ) {
2774
+ const Ae = k + q >> 1;
2775
+ if (i[Ae + 1] <= X) k = Ae + 1;
2776
2776
  else if (i[Ae] > X) q = Ae - 1;
2777
2777
  else return Ae;
2778
2778
  }
2779
- return Math.max(0, Math.min(_, p - 1));
2779
+ return Math.max(0, Math.min(k, p - 1));
2780
2780
  }
2781
- const O = f(() => {
2782
- if (!B.value || !E.value) return 0;
2783
- if (!C.value)
2781
+ const B = f(() => {
2782
+ if (!E.value || !I.value) return 0;
2783
+ if (!S.value)
2784
2784
  return Math.max(
2785
2785
  0,
2786
2786
  Math.floor(l.value / a.itemHeight) - a.overscan
2787
2787
  );
2788
- const i = ee(l.value, x.value);
2788
+ const i = ee(l.value, C.value);
2789
2789
  return Math.max(0, i - a.overscan);
2790
2790
  }), L = f(() => {
2791
- if (!B.value) return E.value;
2792
- const n = E.value;
2791
+ if (!E.value) return I.value;
2792
+ const n = I.value;
2793
2793
  if (!n) return 0;
2794
- if (!C.value) {
2794
+ if (!S.value) {
2795
2795
  const q = Math.ceil(a.height / a.itemHeight) + a.overscan * 2;
2796
- return Math.min(n, O.value + q);
2796
+ return Math.min(n, B.value + q);
2797
2797
  }
2798
- const i = x.value, p = l.value + a.height;
2799
- let _ = ee(p, i) + 1;
2800
- return _ = Math.min(n, _ + a.overscan), Math.max(_, Math.min(n, O.value + 1));
2801
- }), W = f(() => B.value && x.value[O.value] || 0), G = f(() => {
2798
+ const i = C.value, p = l.value + a.height;
2799
+ let k = ee(p, i) + 1;
2800
+ return k = Math.min(n, k + a.overscan), Math.max(k, Math.min(n, B.value + 1));
2801
+ }), W = f(() => E.value && C.value[B.value] || 0), G = f(() => {
2802
2802
  const n = a.items || [], i = [];
2803
- for (let p = O.value; p < L.value; p += 1)
2803
+ for (let p = B.value; p < L.value; p += 1)
2804
2804
  i.push({
2805
2805
  item: n[p],
2806
2806
  index: p,
@@ -2815,7 +2815,7 @@ const Sr = {
2815
2815
  position: "relative",
2816
2816
  ...a.extraStyle || {}
2817
2817
  })), be = f(() => {
2818
- if (!C.value)
2818
+ if (!S.value)
2819
2819
  return { height: `${a.itemHeight}px` };
2820
2820
  });
2821
2821
  function N(n, i) {
@@ -2826,53 +2826,53 @@ const Sr = {
2826
2826
  }
2827
2827
  function Y(n) {
2828
2828
  if (!n) return 0;
2829
- const i = n.getBoundingClientRect(), p = window.getComputedStyle(n), _ = parseFloat(p.marginTop) || 0, q = parseFloat(p.marginBottom) || 0;
2830
- return Math.ceil(i.height + _ + q);
2829
+ const i = n.getBoundingClientRect(), p = window.getComputedStyle(n), k = parseFloat(p.marginTop) || 0, q = parseFloat(p.marginBottom) || 0;
2830
+ return Math.ceil(i.height + k + q);
2831
2831
  }
2832
2832
  function y(n, i, p) {
2833
2833
  if (!(p > 0)) return;
2834
- const _ = S.has(n) ? S.get(n) : I.value;
2835
- if (_ !== p && (S.set(n, p), h.value += 1, C.value && B.value && typeof i == "number" && i < O.value)) {
2836
- const q = p - _;
2834
+ const k = _.has(n) ? _.get(n) : j.value;
2835
+ if (k !== p && (_.set(n, p), h.value += 1, S.value && E.value && typeof i == "number" && i < B.value)) {
2836
+ const q = p - k;
2837
2837
  q && g(l.value + q);
2838
2838
  }
2839
2839
  }
2840
2840
  function V() {
2841
- k || typeof ResizeObserver > "u" || (k = new ResizeObserver((n) => {
2841
+ x || typeof ResizeObserver > "u" || (x = new ResizeObserver((n) => {
2842
2842
  var i;
2843
- if (!(!C.value || !B.value))
2843
+ if (!(!S.value || !E.value))
2844
2844
  for (const p of n) {
2845
- const _ = p.target, q = (i = _ == null ? void 0 : _.dataset) == null ? void 0 : i.vKey;
2845
+ const k = p.target, q = (i = k == null ? void 0 : k.dataset) == null ? void 0 : i.vKey;
2846
2846
  if (q == null || q === "") continue;
2847
2847
  const X = c.has(q) ? c.get(q) : void 0;
2848
- y(q, X, Y(_));
2848
+ y(q, X, Y(k));
2849
2849
  }
2850
2850
  }));
2851
2851
  }
2852
2852
  function U(n, i, p) {
2853
- const _ = String(n);
2853
+ const k = String(n);
2854
2854
  if (!p) {
2855
- const X = v.get(_);
2856
- X && k && k.unobserve(X), v.delete(_), c.delete(_);
2855
+ const X = v.get(k);
2856
+ X && x && x.unobserve(X), v.delete(k), c.delete(k);
2857
2857
  return;
2858
2858
  }
2859
- if (!C.value || !B.value) return;
2860
- p.dataset.vKey = _;
2861
- const q = v.get(_);
2862
- q && q !== p && k && k.unobserve(q), v.set(_, p), c.set(_, i), V(), k && k.observe(p), y(_, i, Y(p));
2859
+ if (!S.value || !E.value) return;
2860
+ p.dataset.vKey = k;
2861
+ const q = v.get(k);
2862
+ q && q !== p && x && x.unobserve(q), v.set(k, p), c.set(k, i), V(), x && x.observe(p), y(k, i, Y(p));
2863
2863
  }
2864
2864
  function le() {
2865
- if (!C.value) return;
2865
+ if (!S.value) return;
2866
2866
  const n = a.items || [], i = /* @__PURE__ */ new Set();
2867
- for (let _ = 0; _ < n.length; _ += 1)
2868
- i.add(M(n[_], _));
2867
+ for (let k = 0; k < n.length; k += 1)
2868
+ i.add(M(n[k], k));
2869
2869
  let p = !1;
2870
- for (const _ of S.keys())
2871
- i.has(_) || (S.delete(_), p = !0);
2870
+ for (const k of _.keys())
2871
+ i.has(k) || (_.delete(k), p = !0);
2872
2872
  p && (h.value += 1);
2873
2873
  }
2874
2874
  function ce() {
2875
- S.size && (S.clear(), h.value += 1);
2875
+ _.size && (_.clear(), h.value += 1);
2876
2876
  }
2877
2877
  function ge(n) {
2878
2878
  var p;
@@ -2888,10 +2888,10 @@ const Sr = {
2888
2888
  l.value = i, t.value && (t.value.scrollTop = i);
2889
2889
  }
2890
2890
  function z(n) {
2891
- const i = E.value;
2891
+ const i = I.value;
2892
2892
  if (!i) return;
2893
2893
  const p = Math.max(0, Math.min(Number(n) || 0, i - 1));
2894
- g(x.value[p] || 0);
2894
+ g(C.value[p] || 0);
2895
2895
  }
2896
2896
  function J() {
2897
2897
  const n = Math.max(0, F.value - a.height);
@@ -2899,44 +2899,44 @@ const Sr = {
2899
2899
  }
2900
2900
  function oe() {
2901
2901
  typeof ResizeObserver > "u" || !t.value || (D == null || D.disconnect(), D = new ResizeObserver((n) => {
2902
- var _;
2903
- if (!C.value) return;
2904
- const i = n[0], p = (_ = i == null ? void 0 : i.contentRect) == null ? void 0 : _.width;
2905
- typeof p == "number" && (j && Math.abs(p - j) > 0.5 && (ce(), He(() => {
2902
+ var k;
2903
+ if (!S.value) return;
2904
+ const i = n[0], p = (k = i == null ? void 0 : i.contentRect) == null ? void 0 : k.width;
2905
+ typeof p == "number" && (O && Math.abs(p - O) > 0.5 && (ce(), He(() => {
2906
2906
  v.forEach((q, X) => {
2907
2907
  y(X, c.get(X), Y(q));
2908
2908
  });
2909
- })), j = p);
2910
- }), D.observe(t.value), j = t.value.getBoundingClientRect().width);
2909
+ })), O = p);
2910
+ }), D.observe(t.value), O = t.value.getBoundingClientRect().width);
2911
2911
  }
2912
2912
  return ye(
2913
2913
  () => a.items,
2914
2914
  async () => {
2915
2915
  le(), await He(), J();
2916
2916
  }
2917
- ), ye(C, (n) => {
2917
+ ), ye(S, (n) => {
2918
2918
  if (!n) {
2919
- k == null || k.disconnect(), k = null, v.clear(), c.clear();
2919
+ x == null || x.disconnect(), x = null, v.clear(), c.clear();
2920
2920
  return;
2921
2921
  }
2922
2922
  He(() => {
2923
2923
  oe(), v.forEach((i, p) => {
2924
- V(), k == null || k.observe(i), y(p, c.get(p), Y(i));
2924
+ V(), x == null || x.observe(i), y(p, c.get(p), Y(i));
2925
2925
  });
2926
2926
  });
2927
2927
  }), ye(F, () => {
2928
2928
  J();
2929
2929
  }), ot(() => {
2930
- t.value && (l.value = t.value.scrollTop || 0), C.value && oe();
2930
+ t.value && (l.value = t.value.scrollTop || 0), S.value && oe();
2931
2931
  }), bt(() => {
2932
- k == null || k.disconnect(), k = null, D == null || D.disconnect(), D = null, v.clear(), c.clear(), S.clear();
2932
+ x == null || x.disconnect(), x = null, D == null || D.disconnect(), D = null, v.clear(), c.clear(), _.clear();
2933
2933
  }), s({
2934
2934
  rootRef: t,
2935
2935
  getScrollTop: $e,
2936
2936
  setScrollTop: g,
2937
2937
  scrollToIndex: z,
2938
- virtualEnabled: B,
2939
- dynamicEnabled: C,
2938
+ virtualEnabled: E,
2939
+ dynamicEnabled: S,
2940
2940
  invalidateAllSizes: ce
2941
2941
  }), (n, i) => (T(), H("div", {
2942
2942
  ref_key: "rootRef",
@@ -2944,14 +2944,14 @@ const Sr = {
2944
2944
  class: we(["ct-virtual-list", [
2945
2945
  e.rootClass,
2946
2946
  {
2947
- "ct-virtual-list--enabled": B.value,
2948
- "ct-virtual-list--dynamic": C.value
2947
+ "ct-virtual-list--enabled": E.value,
2948
+ "ct-virtual-list--dynamic": S.value
2949
2949
  }
2950
2950
  ]]),
2951
2951
  style: Je(ke.value),
2952
2952
  onScrollPassive: ge
2953
2953
  }, [
2954
- B.value ? (T(), H("div", {
2954
+ E.value ? (T(), H("div", {
2955
2955
  key: 0,
2956
2956
  class: "ct-virtual-list__phantom",
2957
2957
  style: Je({ height: `${F.value}px` })
@@ -2963,7 +2963,7 @@ const Sr = {
2963
2963
  (T(!0), H(Le, null, rt(G.value, (p) => (T(), H("div", {
2964
2964
  key: p.key,
2965
2965
  ref_for: !0,
2966
- ref: (_) => U(p.key, p.index, _),
2966
+ ref: (k) => U(p.key, p.index, k),
2967
2967
  class: "ct-virtual-list__item",
2968
2968
  style: Je(be.value)
2969
2969
  }, [
@@ -2973,13 +2973,13 @@ const Sr = {
2973
2973
  }, void 0, !0)
2974
2974
  ], 4))), 128))
2975
2975
  ], 4)
2976
- ], 4)) : (T(!0), H(Le, { key: 1 }, rt(e.items, (p, _) => (T(), H("div", {
2977
- key: N(p, _),
2976
+ ], 4)) : (T(!0), H(Le, { key: 1 }, rt(e.items, (p, k) => (T(), H("div", {
2977
+ key: N(p, k),
2978
2978
  class: "ct-virtual-list__item"
2979
2979
  }, [
2980
2980
  ae(n.$slots, "default", {
2981
2981
  item: p,
2982
- index: _
2982
+ index: k
2983
2983
  }, void 0, !0)
2984
2984
  ]))), 128))
2985
2985
  ], 38));
@@ -3124,41 +3124,41 @@ const Sr = {
3124
3124
  // 内部已 @openChange 处理并 emit,禁止再透传以免合并成 Array
3125
3125
  "onOpenChange",
3126
3126
  "on-open-change"
3127
- ]), r = e, t = s, l = Ke(), h = ne(!1), S = ne(null), { dropdownAlign: v, onHostDropdownVisibleChange: c } = Ct({
3127
+ ]), r = e, t = s, l = Ke(), h = ne(!1), _ = ne(null), { dropdownAlign: v, onHostDropdownVisibleChange: c } = Ct({
3128
3128
  getTriggerEl: () => {
3129
3129
  var n, i;
3130
- return ((i = (n = S.value) == null ? void 0 : n.querySelector) == null ? void 0 : i.call(n, ".ant-picker")) || S.value;
3130
+ return ((i = (n = _.value) == null ? void 0 : n.querySelector) == null ? void 0 : i.call(n, ".ant-picker")) || _.value;
3131
3131
  },
3132
3132
  // 日期面板保持自然尺寸,只与宿主左对齐
3133
3133
  matchWidth: !1,
3134
3134
  dropdownSelector: ".ant-picker-dropdown",
3135
3135
  hiddenClass: "ant-picker-dropdown-hidden"
3136
- }), k = f(
3136
+ }), x = f(
3137
3137
  () => v.value ? { dropdownAlign: v.value } : {}
3138
3138
  );
3139
3139
  function D(n) {
3140
3140
  c(n), t("openChange", n);
3141
3141
  }
3142
- const j = f(() => r.rawAttr && typeof r.rawAttr == "object" ? r.rawAttr : {}), I = f(() => {
3143
- const n = j.value.type ?? l.type;
3142
+ const O = f(() => r.rawAttr && typeof r.rawAttr == "object" ? r.rawAttr : {}), j = f(() => {
3143
+ const n = O.value.type ?? l.type;
3144
3144
  return typeof n == "string" ? n : void 0;
3145
- }), C = f(() => {
3146
- const n = I.value;
3145
+ }), S = f(() => {
3146
+ const n = j.value;
3147
3147
  return n && u[n] || {};
3148
- }), B = f(() => {
3148
+ }), E = f(() => {
3149
3149
  if (r.pickerType) return r.pickerType;
3150
- if (C.value.pickerType) return C.value.pickerType;
3150
+ if (S.value.pickerType) return S.value.pickerType;
3151
3151
  const n = r.value !== void 0 ? r.value : r.modelValue;
3152
3152
  return K(n) ? "range" : "common";
3153
- }), E = f(() => l.picker || j.value.picker || C.value.picker || void 0), x = f(() => l.showTime != null || l["show-time"] != null ? l.showTime ?? l["show-time"] : j.value.showTime != null ? j.value.showTime : C.value.showTime || !1), F = f(() => r.format || C.value.format || (x.value ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD")), ee = f(() => l.separator || j.value.separator || r.rangeSeparator || "至"), O = f(() => r.showNow && E.value === "month" ? "至今" : l.placeholder || j.value.placeholder || (B.value === "range" ? void 0 : "选择日期")), L = f(() => `ct-date-picker ${r.showNow && E.value === "month" ? "ct-date-picker-now" : ""}`), W = f(() => {
3154
- const n = r.showNow && E.value === "month" ? "ct-date-picker-show-now" : "";
3153
+ }), I = f(() => l.picker || O.value.picker || S.value.picker || void 0), C = f(() => l.showTime != null || l["show-time"] != null ? l.showTime ?? l["show-time"] : O.value.showTime != null ? O.value.showTime : S.value.showTime || !1), F = f(() => r.format || S.value.format || (C.value ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD")), ee = f(() => l.separator || O.value.separator || r.rangeSeparator || "至"), B = f(() => r.showNow && I.value === "month" ? "至今" : l.placeholder || O.value.placeholder || (E.value === "range" ? void 0 : "选择日期")), L = f(() => `ct-date-picker ${r.showNow && I.value === "month" ? "ct-date-picker-now" : ""}`), W = f(() => {
3154
+ const n = r.showNow && I.value === "month" ? "ct-date-picker-show-now" : "";
3155
3155
  return `ct-date-picker-popper ${r.popupClassName || ""} ${l.popupClassName || l["popup-class-name"] || ""} ${n}`.trim();
3156
3156
  });
3157
3157
  function G(n) {
3158
3158
  return n == null || typeof n != "object" ? !1 : typeof Re.isDayjs == "function" && Re.isDayjs(n) ? !0 : typeof n.format == "function" && n.$d instanceof Date;
3159
3159
  }
3160
3160
  function ke() {
3161
- return r.valueFormat === "x" && !x.value;
3161
+ return r.valueFormat === "x" && !C.value;
3162
3162
  }
3163
3163
  function be(n) {
3164
3164
  return Re(Number(n)).startOf("day").valueOf();
@@ -3167,10 +3167,10 @@ const Sr = {
3167
3167
  return be(n) + qt;
3168
3168
  }
3169
3169
  function M(n, i) {
3170
- var _;
3170
+ var k;
3171
3171
  if (n == null || n === "") return null;
3172
3172
  let p;
3173
- return G(n) ? p = n : n instanceof Date ? p = Re(n) : typeof n == "number" ? p = Re(n) : typeof n == "string" ? /^\d+$/.test(n) ? p = Re(Number(n)) : p = Re(n) : p = Re(n), ke() && p && typeof p.startOf == "function" && ((_ = p.isValid) == null ? void 0 : _.call(p)) !== !1 && (p = p.startOf("day")), V(p, i);
3173
+ return G(n) ? p = n : n instanceof Date ? p = Re(n) : typeof n == "number" ? p = Re(n) : typeof n == "string" ? /^\d+$/.test(n) ? p = Re(Number(n)) : p = Re(n) : p = Re(n), ke() && p && typeof p.startOf == "function" && ((k = p.isValid) == null ? void 0 : k.call(p)) !== !1 && (p = p.startOf("day")), V(p, i);
3174
3174
  }
3175
3175
  function Y(n) {
3176
3176
  return n == null || n === "" ? null : K(n) ? n.map(
@@ -3180,7 +3180,7 @@ const Sr = {
3180
3180
  function y(n) {
3181
3181
  var p;
3182
3182
  if (n == null) return n;
3183
- const i = I.value;
3183
+ const i = j.value;
3184
3184
  try {
3185
3185
  if (typeof r.addTimestamp == "function")
3186
3186
  return r.addTimestamp(n);
@@ -3190,16 +3190,16 @@ const Sr = {
3190
3190
  const q = [...n];
3191
3191
  return K(r.addTimestamp) ? q.map((X, Ae) => X == null ? X : Number(X) + Number(r.addTimestamp[Ae] || 0)) : i !== "dates" ? (q[0] != null && (q[0] = be(q[0])), q[1] != null && (q[1] = N(q[1])), q) : q.map((X) => X == null ? X : N(X));
3192
3192
  }
3193
- const _ = Number(r.addTimestamp ?? qt);
3194
- return be(n) + _;
3195
- } catch (_) {
3196
- return console.error(_), n;
3193
+ const k = Number(r.addTimestamp ?? qt);
3194
+ return be(n) + k;
3195
+ } catch (k) {
3196
+ return console.error(k), n;
3197
3197
  }
3198
3198
  }
3199
3199
  function V(n, i) {
3200
3200
  if (n == null || typeof n.startOf != "function") return n;
3201
- const p = E.value, _ = B.value === "range";
3202
- return p === "month" ? _ && i === 1 ? n.endOf("month") : n.startOf("month") : p === "year" ? _ && i === 1 ? n.endOf("year") : n.startOf("year") : n;
3201
+ const p = I.value, k = E.value === "range";
3202
+ return p === "month" ? k && i === 1 ? n.endOf("month") : n.startOf("month") : p === "year" ? k && i === 1 ? n.endOf("year") : n.startOf("year") : n;
3203
3203
  }
3204
3204
  function U(n) {
3205
3205
  if (n == null) return null;
@@ -3216,7 +3216,7 @@ const Sr = {
3216
3216
  if (n == null) return null;
3217
3217
  if (K(n)) {
3218
3218
  let p = n.map(
3219
- (_, q) => _ == null ? null : U(V(_, q))
3219
+ (k, q) => k == null ? null : U(V(k, q))
3220
3220
  );
3221
3221
  return r.valueFormat === "x" && (p = y(p)), p;
3222
3222
  }
@@ -3236,9 +3236,9 @@ const Sr = {
3236
3236
  function ge(n) {
3237
3237
  if (typeof n == "function")
3238
3238
  return (i) => {
3239
- var _;
3239
+ var k;
3240
3240
  if (!i) return !1;
3241
- const p = typeof i.toDate == "function" ? i.toDate() : new Date(((_ = i.valueOf) == null ? void 0 : _.call(i)) ?? i);
3241
+ const p = typeof i.toDate == "function" ? i.toDate() : new Date(((k = i.valueOf) == null ? void 0 : k.call(i)) ?? i);
3242
3242
  try {
3243
3243
  return !!n(p);
3244
3244
  } catch {
@@ -3251,13 +3251,13 @@ const Sr = {
3251
3251
  };
3252
3252
  }
3253
3253
  const $e = f(() => {
3254
- const n = l.disabledDate || l["disabled-date"] || j.value.disabledDate || j.value["disabled-date"];
3254
+ const n = l.disabledDate || l["disabled-date"] || O.value.disabledDate || O.value["disabled-date"];
3255
3255
  return ge(n);
3256
3256
  }), g = f(() => {
3257
3257
  const n = {};
3258
- if ([l, j.value].forEach((p) => {
3259
- !p || typeof p != "object" || Object.keys(p).forEach((_) => {
3260
- a.has(_) || n[_] === void 0 && (n[_] = p[_]);
3258
+ if ([l, O.value].forEach((p) => {
3259
+ !p || typeof p != "object" || Object.keys(p).forEach((k) => {
3260
+ a.has(k) || n[k] === void 0 && (n[k] = p[k]);
3261
3261
  });
3262
3262
  }), n.getPopupContainer == null) {
3263
3263
  const p = n.popupContainer ?? n["popup-container"];
@@ -3265,14 +3265,14 @@ const Sr = {
3265
3265
  }
3266
3266
  return n.allowClear == null && n.clearable != null && (n.allowClear = n.clearable, delete n.clearable), n;
3267
3267
  }), z = f(() => {
3268
- const n = l.presets || j.value.presets;
3268
+ const n = l.presets || O.value.presets;
3269
3269
  return oe(n);
3270
3270
  });
3271
3271
  ye(
3272
3272
  () => ce.value,
3273
3273
  (n) => {
3274
3274
  let i;
3275
- n ? B.value === "range" && K(n) ? i = n.map(
3275
+ n ? E.value === "range" && K(n) ? i = n.map(
3276
3276
  (p) => p ? Re(p).format(F.value) : void 0
3277
3277
  ) : K(n) || (i = [Re(n).format(F.value)]) : i = void 0, t("update:label", i);
3278
3278
  },
@@ -3284,8 +3284,8 @@ const Sr = {
3284
3284
  if (p == null || p === "") return "";
3285
3285
  try {
3286
3286
  return new Date(p).toLocaleString();
3287
- } catch (_) {
3288
- return console.error(_), p;
3287
+ } catch (k) {
3288
+ return console.error(k), p;
3289
3289
  }
3290
3290
  };
3291
3291
  return K(n) ? n.map(i) : i(n);
@@ -3298,7 +3298,7 @@ const Sr = {
3298
3298
  return !n || K(n) && n.length === 0 ? [] : n.some((i) => i && i.value != null && i.time == null) ? n.map((i) => ({
3299
3299
  label: i.label,
3300
3300
  value: Y(i.value)
3301
- })) : B.value === "range" ? n.map((i) => ({
3301
+ })) : E.value === "range" ? n.map((i) => ({
3302
3302
  label: i.label,
3303
3303
  value: [Re().add(i.time, i.type), Re()]
3304
3304
  })) : n.map((i) => ({
@@ -3307,21 +3307,21 @@ const Sr = {
3307
3307
  }));
3308
3308
  }
3309
3309
  return (n, i) => {
3310
- const p = ie("ct-icon"), _ = ie("a-range-picker"), q = ie("a-date-picker");
3310
+ const p = ie("ct-icon"), k = ie("a-range-picker"), q = ie("a-date-picker");
3311
3311
  return T(), H("div", {
3312
3312
  ref_key: "rootRef",
3313
- ref: S,
3313
+ ref: _,
3314
3314
  class: "ct-date-picker-wrapper"
3315
3315
  }, [
3316
- B.value === "range" ? (T(), he(_, Se({ key: 0 }, { ...g.value, ...k.value }, {
3316
+ E.value === "range" ? (T(), he(k, Se({ key: 0 }, { ...g.value, ...x.value }, {
3317
3317
  value: ce.value,
3318
3318
  "onUpdate:value": i[0] || (i[0] = (X) => ce.value = X),
3319
3319
  class: ["ct-date-picker", { "ct-separator-text": r.separatorText }],
3320
3320
  popupClassName: W.value,
3321
3321
  presets: z.value,
3322
3322
  format: F.value,
3323
- picker: E.value,
3324
- "show-time": x.value,
3323
+ picker: I.value,
3324
+ "show-time": C.value,
3325
3325
  separator: ee.value,
3326
3326
  "disabled-date": $e.value,
3327
3327
  onOpenChange: D
@@ -3334,18 +3334,18 @@ const Sr = {
3334
3334
  })
3335
3335
  ]),
3336
3336
  _: 1
3337
- }, 16, ["value", "class", "popupClassName", "presets", "format", "picker", "show-time", "separator", "disabled-date"])) : (T(), he(q, Se({ key: 1 }, { ...g.value, ...k.value }, {
3337
+ }, 16, ["value", "class", "popupClassName", "presets", "format", "picker", "show-time", "separator", "disabled-date"])) : (T(), he(q, Se({ key: 1 }, { ...g.value, ...x.value }, {
3338
3338
  value: ce.value,
3339
3339
  "onUpdate:value": i[1] || (i[1] = (X) => ce.value = X),
3340
3340
  open: h.value,
3341
3341
  "onUpdate:open": i[2] || (i[2] = (X) => h.value = X),
3342
3342
  class: L.value,
3343
3343
  presets: z.value,
3344
- placeholder: O.value,
3344
+ placeholder: B.value,
3345
3345
  popupClassName: W.value,
3346
3346
  format: F.value,
3347
- picker: E.value,
3348
- "show-time": x.value,
3347
+ picker: I.value,
3348
+ "show-time": C.value,
3349
3349
  "disabled-date": $e.value,
3350
3350
  onOpenChange: D
3351
3351
  }), wt({
@@ -3358,7 +3358,7 @@ const Sr = {
3358
3358
  ]),
3359
3359
  _: 2
3360
3360
  }, [
3361
- r.showNow && E.value === "month" ? {
3361
+ r.showNow && I.value === "month" ? {
3362
3362
  name: "renderExtraFooter",
3363
3363
  fn: re(() => [
3364
3364
  ue("div", {
@@ -3479,7 +3479,7 @@ const Sr = {
3479
3479
  "onUpdate:pageSize",
3480
3480
  "onUpdate:page-size"
3481
3481
  ]), a = e, r = s, t = Ke(), l = f(() => {
3482
- const C = t.class;
3482
+ const S = t.class;
3483
3483
  return [
3484
3484
  "ct-pagination",
3485
3485
  a.type,
@@ -3487,42 +3487,42 @@ const Sr = {
3487
3487
  "have-border": !a.background && a.border,
3488
3488
  "is-background": a.background
3489
3489
  },
3490
- C
3490
+ S
3491
3491
  ];
3492
3492
  }), h = f(() => {
3493
- const C = {};
3494
- return Object.keys(t).forEach((B) => {
3495
- u.has(B) || (C[B] = t[B]);
3496
- }), t.style && (C.style = t.style), C;
3497
- }), S = (C) => a.layout ? a.layout.split(",").map((B) => B.trim()).includes(C) : !1, v = f(() => a.showQuickJumper !== void 0 ? a.showQuickJumper : a.showJump ? !0 : S("jumper")), c = f(() => a.showSizeChanger !== void 0 ? a.showSizeChanger : S("sizes")), k = f({
3493
+ const S = {};
3494
+ return Object.keys(t).forEach((E) => {
3495
+ u.has(E) || (S[E] = t[E]);
3496
+ }), t.style && (S.style = t.style), S;
3497
+ }), _ = (S) => a.layout ? a.layout.split(",").map((E) => E.trim()).includes(S) : !1, v = f(() => a.showQuickJumper !== void 0 ? a.showQuickJumper : a.showJump ? !0 : _("jumper")), c = f(() => a.showSizeChanger !== void 0 ? a.showSizeChanger : _("sizes")), x = f({
3498
3498
  get: () => a.currentPage !== void 0 && a.currentPage !== null ? a.currentPage : a.current !== void 0 && a.current !== null ? a.current : 1,
3499
- set: (C) => {
3500
- r("update:currentPage", C), r("update:current", C);
3499
+ set: (S) => {
3500
+ r("update:currentPage", S), r("update:current", S);
3501
3501
  }
3502
3502
  }), D = f({
3503
3503
  get: () => a.pageSize ?? 10,
3504
- set: (C) => {
3505
- r("update:pageSize", C);
3504
+ set: (S) => {
3505
+ r("update:pageSize", S);
3506
3506
  }
3507
3507
  });
3508
- function j(C, B) {
3509
- k.value = C, B != null && B !== D.value && (D.value = B, r("size-change", B)), r("current-change", C), r("change", C, B);
3508
+ function O(S, E) {
3509
+ x.value = S, E != null && E !== D.value && (D.value = E, r("size-change", E)), r("current-change", S), r("change", S, E);
3510
3510
  }
3511
- function I(C, B) {
3512
- D.value = B, C != null && C !== k.value && (k.value = C), r("size-change", B), r("showSizeChange", C, B);
3511
+ function j(S, E) {
3512
+ D.value = E, S != null && S !== x.value && (x.value = S), r("size-change", E), r("showSizeChange", S, E);
3513
3513
  }
3514
- return (C, B) => {
3515
- const E = ie("a-pagination");
3516
- return T(), he(E, Se({ class: l.value }, h.value, {
3517
- current: k.value,
3518
- "onUpdate:current": B[0] || (B[0] = (x) => k.value = x),
3514
+ return (S, E) => {
3515
+ const I = ie("a-pagination");
3516
+ return T(), he(I, Se({ class: l.value }, h.value, {
3517
+ current: x.value,
3518
+ "onUpdate:current": E[0] || (E[0] = (C) => x.value = C),
3519
3519
  "page-size": D.value,
3520
3520
  total: a.total,
3521
3521
  "show-size-changer": c.value,
3522
3522
  "show-quick-jumper": v.value,
3523
3523
  "hide-on-single-page": e.hideOnSinglePage,
3524
- onChange: j,
3525
- onShowSizeChange: I
3524
+ onChange: O,
3525
+ onShowSizeChange: j
3526
3526
  }), null, 16, ["class", "current", "page-size", "total", "show-size-changer", "show-quick-jumper", "hide-on-single-page"]);
3527
3527
  };
3528
3528
  }
@@ -3537,14 +3537,14 @@ const Sr = {
3537
3537
  prop: "checked",
3538
3538
  event: "update:checked"
3539
3539
  });
3540
- function l(h, S) {
3541
- a("change", h, S);
3540
+ function l(h, _) {
3541
+ a("change", h, _);
3542
3542
  }
3543
- return (h, S) => {
3543
+ return (h, _) => {
3544
3544
  const v = ie("a-switch");
3545
3545
  return T(), he(v, Se(h.$attrs, {
3546
3546
  checked: R(t),
3547
- "onUpdate:checked": S[0] || (S[0] = (c) => jt(t) ? t.value = c : null),
3547
+ "onUpdate:checked": _[0] || (_[0] = (c) => jt(t) ? t.value = c : null),
3548
3548
  class: [R(r).b(), "ct-hover-opacity"],
3549
3549
  onChange: l
3550
3550
  }), wt({ _: 2 }, [
@@ -3613,67 +3613,67 @@ const Sr = {
3613
3613
  "changeBuriedParams"
3614
3614
  ],
3615
3615
  setup(e, { expose: s, emit: u }) {
3616
- const a = We("$ctBaseDao", null) || We("$gjBaseDao", null), r = We("$ctServiceConfig", null), t = e, l = u, h = lt("radio"), S = ne(null), v = ne([]), c = f(() => ({
3616
+ const a = We("$ctBaseDao", null) || We("$gjBaseDao", null), r = We("$ctServiceConfig", null), t = e, l = u, h = lt("radio"), _ = ne(null), v = ne([]), c = f(() => ({
3617
3617
  label: "label",
3618
3618
  value: "value",
3619
3619
  list: "",
3620
3620
  self: !1,
3621
3621
  ...t.mapObj || {},
3622
3622
  ...t.fieldNames || {}
3623
- })), k = f({
3623
+ })), x = f({
3624
3624
  get() {
3625
3625
  return t.value !== void 0 ? t.value : t.modelValue;
3626
3626
  },
3627
- set(x) {
3628
- l("update:value", x), l("update:modelValue", x);
3627
+ set(C) {
3628
+ l("update:value", C), l("update:modelValue", C);
3629
3629
  }
3630
3630
  });
3631
- function D(x) {
3631
+ function D(C) {
3632
3632
  var F;
3633
- l("change", ((F = x == null ? void 0 : x.target) == null ? void 0 : F.value) ?? x);
3633
+ l("change", ((F = C == null ? void 0 : C.target) == null ? void 0 : F.value) ?? C);
3634
3634
  }
3635
- const j = f(() => t.options ?? []), I = f(
3636
- () => v.value.length ? v.value : B(j.value)
3635
+ const O = f(() => t.options ?? []), j = f(
3636
+ () => v.value.length ? v.value : E(O.value)
3637
3637
  );
3638
3638
  st(t, l, {
3639
- getContent: (x) => {
3640
- const F = I.value.find((ee) => ee.value === x);
3639
+ getContent: (C) => {
3640
+ const F = j.value.find((ee) => ee.value === C);
3641
3641
  return F ? F.label : "";
3642
3642
  }
3643
3643
  });
3644
- function C(x) {
3645
- return typeof x == "string" ? x : String(x ?? "");
3644
+ function S(C) {
3645
+ return typeof C == "string" ? C : String(C ?? "");
3646
3646
  }
3647
- function B(x) {
3648
- const { list: F, label: ee = "label", value: O = "value", self: L } = c.value;
3647
+ function E(C) {
3648
+ const { list: F, label: ee = "label", value: B = "value", self: L } = c.value;
3649
3649
  let W = [];
3650
- return x == null ? W = [] : F && Be(x) && !Array.isArray(x) ? W = x[F] || [] : Array.isArray(x) ? W = x : Be(x) && (W = x.list || x.data || x.options || []), Array.isArray(W) || (W = []), W.map((G) => L || typeof G != "object" || G == null ? { label: C(G), value: G } : {
3650
+ return C == null ? W = [] : F && Be(C) && !Array.isArray(C) ? W = C[F] || [] : Array.isArray(C) ? W = C : Be(C) && (W = C.list || C.data || C.options || []), Array.isArray(W) || (W = []), W.map((G) => L || typeof G != "object" || G == null ? { label: S(G), value: G } : {
3651
3651
  ...G,
3652
- label: C(G[ee] ?? G.label ?? G.name),
3653
- value: G[O] ?? G.value ?? G.id
3652
+ label: S(G[ee] ?? G.label ?? G.name),
3653
+ value: G[B] ?? G.value ?? G.id
3654
3654
  });
3655
3655
  }
3656
- async function E() {
3657
- const x = t.cbs || {};
3656
+ async function I() {
3657
+ const C = t.cbs || {};
3658
3658
  if (t.api && a)
3659
3659
  try {
3660
3660
  const F = t.serviceMethod || t.method || (r == null ? void 0 : r.defaultMethod) || "get";
3661
3661
  let ee = t.serviceParams || t.params || {};
3662
- if (typeof x.beforeSearch == "function") {
3663
- const G = await x.beforeSearch(ee);
3662
+ if (typeof C.beforeSearch == "function") {
3663
+ const G = await C.beforeSearch(ee);
3664
3664
  if (G === !1) return;
3665
3665
  ee = G || ee;
3666
3666
  }
3667
3667
  const W = await (String(F).toLowerCase() === "post" && typeof a.post == "function" ? a.post(t.api, ee) : a.get(t.api, ee));
3668
- v.value = B(W), typeof x.afterSearch == "function" && x.afterSearch(W, v, k);
3668
+ v.value = E(W), typeof C.afterSearch == "function" && C.afterSearch(W, v, x);
3669
3669
  } catch (F) {
3670
3670
  console.error("[CtRadio] api fetch failed", F);
3671
3671
  }
3672
- if (typeof x.defineSearch == "function")
3672
+ if (typeof C.defineSearch == "function")
3673
3673
  try {
3674
- const F = await x.defineSearch(v, k);
3674
+ const F = await C.defineSearch(v, x);
3675
3675
  if (F === !1) return;
3676
- F && (v.value = B(F));
3676
+ F && (v.value = E(F));
3677
3677
  } catch {
3678
3678
  }
3679
3679
  }
@@ -3688,36 +3688,36 @@ const Sr = {
3688
3688
  () => t.fieldNames
3689
3689
  ],
3690
3690
  () => {
3691
- E();
3691
+ I();
3692
3692
  },
3693
3693
  { immediate: !0 }
3694
3694
  ), ye(
3695
- j,
3695
+ O,
3696
3696
  () => {
3697
3697
  t.api || (v.value = []);
3698
3698
  },
3699
3699
  { deep: !0 }
3700
3700
  ), s({
3701
- ref: S
3701
+ ref: _
3702
3702
  }), ot(() => {
3703
3703
  t.api && !a && console.error("[CtRadio] 请先配置 baseDao");
3704
- }), (x, F) => {
3705
- const ee = ie("a-radio"), O = ie("a-radio-group");
3704
+ }), (C, F) => {
3705
+ const ee = ie("a-radio"), B = ie("a-radio-group");
3706
3706
  return T(), H("div", {
3707
3707
  class: we(R(h).b())
3708
3708
  }, [
3709
- me(O, Se({
3709
+ me(B, Se({
3710
3710
  ref_key: "radioRef",
3711
- ref: S
3712
- }, x.$attrs, {
3713
- value: k.value,
3714
- "onUpdate:value": F[0] || (F[0] = (L) => k.value = L),
3711
+ ref: _
3712
+ }, C.$attrs, {
3713
+ value: x.value,
3714
+ "onUpdate:value": F[0] || (F[0] = (L) => x.value = L),
3715
3715
  disabled: e.disabled,
3716
3716
  class: R(h).e("group"),
3717
3717
  onChange: D
3718
3718
  }), {
3719
3719
  default: re(() => [
3720
- (T(!0), H(Le, null, rt(I.value, (L) => (T(), he(ee, {
3720
+ (T(!0), H(Le, null, rt(j.value, (L) => (T(), he(ee, {
3721
3721
  key: String(L.value),
3722
3722
  class: we(R(h).e("item")),
3723
3723
  value: L.value,
@@ -3772,28 +3772,28 @@ const Sr = {
3772
3772
  ), l = f(() => r.value ? ["circle-tabs", `circle-tabs--${u.manner || "light"}`] : null), h = f(() => {
3773
3773
  if (!(r.value || !u.lineColor))
3774
3774
  return { "--ct-tabs-line-color": u.lineColor };
3775
- }), S = f({
3775
+ }), _ = f({
3776
3776
  get: () => u.value,
3777
3777
  set: (v) => {
3778
3778
  a("update:value", v);
3779
3779
  }
3780
3780
  });
3781
3781
  return (v, c) => {
3782
- const k = ie("a-tab-pane"), D = ie("a-tabs");
3782
+ const x = ie("a-tab-pane"), D = ie("a-tabs");
3783
3783
  return T(), H("div", {
3784
3784
  class: "ct-tabs-outter",
3785
3785
  style: Je(h.value)
3786
3786
  }, [
3787
3787
  me(D, Se(v.$attrs, {
3788
- activeKey: S.value,
3789
- "onUpdate:activeKey": c[0] || (c[0] = (j) => S.value = j),
3788
+ activeKey: _.value,
3789
+ "onUpdate:activeKey": c[0] || (c[0] = (O) => _.value = O),
3790
3790
  class: ["ct-tabs", l.value]
3791
3791
  }), {
3792
3792
  default: re(() => [
3793
- (T(!0), H(Le, null, rt(t.value, (j) => (T(), he(k, {
3794
- key: j.value,
3795
- tab: j.label,
3796
- disabled: j.disabled
3793
+ (T(!0), H(Le, null, rt(t.value, (O) => (T(), he(x, {
3794
+ key: O.value,
3795
+ tab: O.label,
3796
+ disabled: O.disabled
3797
3797
  }, null, 8, ["tab", "disabled"]))), 128))
3798
3798
  ]),
3799
3799
  _: 1
@@ -3839,7 +3839,7 @@ const Sr = {
3839
3839
  me(h, Se({
3840
3840
  class: "slide-component",
3841
3841
  value: r.value,
3842
- "onUpdate:value": l[0] || (l[0] = (S) => r.value = S),
3842
+ "onUpdate:value": l[0] || (l[0] = (_) => r.value = _),
3843
3843
  range: e.range,
3844
3844
  min: e.min,
3845
3845
  max: e.max,
@@ -3848,21 +3848,21 @@ const Sr = {
3848
3848
  ], 64);
3849
3849
  };
3850
3850
  }
3851
- }), Kr = /* @__PURE__ */ Ee(qr, [["__scopeId", "data-v-138ede22"]]), Gr = Oe(Kr, "CtSlide"), Jr = { class: "flex-start" }, Qr = { class: "ct-upload-file" }, Zr = { class: "ct-upload-file__info" }, Xr = ["src"], ea = { class: "ct-upload-file__name" }, ta = {
3851
+ }), Kr = /* @__PURE__ */ Ee(qr, [["__scopeId", "data-v-45eea297"]]), Gr = Oe(Kr, "CtSlide"), Jr = { class: "flex-start" }, Qr = { class: "ct-upload-file" }, Zr = { class: "ct-upload-file__info" }, Xr = ["src"], ea = { class: "ct-upload-file__name" }, ta = {
3852
3852
  key: 0,
3853
3853
  class: "uploading-icon",
3854
- src: "https://assets.cdn.lipind.com/Front/client/lp-component/upload/loading.png"
3854
+ src: "https://static.cingta.com/Front/data/common/components/upload/loading.png"
3855
3855
  }, na = {
3856
3856
  key: 0,
3857
3857
  class: "ct-upload-tip default-upload-tip"
3858
3858
  }, ra = {
3859
3859
  key: 0,
3860
3860
  class: "uploading-icon",
3861
- src: "https://assets.cdn.lipind.com/Front/client/lp-component/upload/loading.png"
3861
+ src: "https://static.cingta.com/Front/data/common/components/upload/loading.png"
3862
3862
  }, aa = { key: 1 }, oa = ["src"], la = ["onClick"], sa = { class: "ct-upload-tip" }, ua = { class: "ct-upload-file" }, ia = { class: "ct-upload-file__info" }, ca = ["src"], da = { class: "ct-upload-file__name" }, fa = {
3863
3863
  key: 0,
3864
3864
  class: "uploading-icon",
3865
- src: "https://assets.cdn.lipind.com/Front/client/lp-component/upload/loading.png"
3865
+ src: "https://static.cingta.com/Front/data/common/components/upload/loading.png"
3866
3866
  }, pa = /* @__PURE__ */ Object.assign({ name: "CtUpload" }, {
3867
3867
  __name: "upload",
3868
3868
  props: {
@@ -3883,74 +3883,73 @@ const Sr = {
3883
3883
  () => a.disabled === "" || a.disabled === !0
3884
3884
  ), t = e, l = f({
3885
3885
  get: () => t.value,
3886
- set: (j) => {
3887
- u("update:value", j);
3886
+ set: (O) => {
3887
+ u("update:value", O);
3888
3888
  }
3889
- }), h = f(() => t.accept ? t.accept.split(",").map((j) => j.trim().toLowerCase().replace(/^\./, "")).filter(Boolean) : []), S = (j = "") => {
3890
- const I = String(j), C = I.lastIndexOf(".");
3891
- return C >= 0 ? I.slice(C + 1).toLowerCase() : "";
3889
+ }), h = f(() => t.accept ? t.accept.split(",").map((O) => O.trim().toLowerCase().replace(/^\./, "")).filter(Boolean) : []), _ = (O = "") => {
3890
+ const j = String(O), S = j.lastIndexOf(".");
3891
+ return S >= 0 ? j.slice(S + 1).toLowerCase() : "";
3892
3892
  }, v = () => !1;
3893
3893
  let c = null;
3894
- const k = (j) => {
3895
- c || (dt(j), c = setTimeout(() => {
3894
+ const x = (O) => {
3895
+ c || (dt(O), c = setTimeout(() => {
3896
3896
  c = null;
3897
3897
  }, 300));
3898
- }, D = (j) => {
3899
- let I = j.fileList, C = !1;
3898
+ }, D = (O) => {
3899
+ var E;
3900
+ let j = O.fileList, S = !1;
3900
3901
  if (t.accept && h.value.length) {
3901
- const B = I.filter(
3902
- (E) => !h.value.includes(S(E.name))
3902
+ const I = j.filter(
3903
+ (C) => !h.value.includes(_(C.name))
3903
3904
  );
3904
- B.length && (I = I.filter((E) => !B.includes(E)), k("文件格式错误,请重新上传!"), C = !0);
3905
+ I.length && (j = j.filter((C) => !I.includes(C)), x("文件格式错误,请重新上传!"), S = !0);
3905
3906
  }
3906
3907
  if (t.size) {
3907
- const B = I.filter(
3908
- (E) => E.size > t.size * 1024 * 1024
3909
- );
3910
- B.length && (I = I.filter((E) => !B.includes(E)), k(`文件大小不能超过${t.size}MB`), C = !0);
3908
+ const I = j.filter((C) => C.size > t.size * 1024 * 1024);
3909
+ I.length && (j = j.filter((C) => !I.includes(C)), x(`文件大小不能超过${t.size}MB`), S = !0);
3911
3910
  }
3912
- if (t.maxCount && I.length > t.maxCount && (I = I.slice(0, t.maxCount), k(`单次最多上传 ${t.maxCount} 个文件`), C = !0), !I.length) {
3913
- C || k("没有符合要求的文件");
3911
+ if (t.maxCount && j.length > t.maxCount && (j = j.slice(0, t.maxCount), x(`单次最多上传 ${t.maxCount} 个文件`), S = !0), !j.length) {
3912
+ l.value = [], !S && ((E = O.file) == null ? void 0 : E.status) !== "removed" && x("没有符合要求的文件");
3914
3913
  return;
3915
3914
  }
3916
- l.value = I.map(
3917
- (B) => j.file.uid === B.uid ? { ...B, status: "uploading" } : B
3915
+ l.value = j.map(
3916
+ (I) => O.file.uid === I.uid ? { ...I, status: "uploading" } : I
3918
3917
  ), setTimeout(() => {
3919
3918
  He(() => {
3920
3919
  l.value = l.value.map(
3921
- (B) => B.status === "uploading" ? { ...B, status: "done" } : B
3920
+ (I) => I.status === "uploading" ? { ...I, status: "done" } : I
3922
3921
  );
3923
3922
  });
3924
3923
  }, 800);
3925
3924
  };
3926
- return (j, I) => {
3927
- const C = ie("ct-icon"), B = ie("a-upload"), E = ie("a-upload-dragger");
3925
+ return (O, j) => {
3926
+ const S = ie("ct-icon"), E = ie("a-upload"), I = ie("a-upload-dragger");
3928
3927
  return T(), H("div", {
3929
3928
  class: we(["ct-ant-upload", { "hover-valid": t.hover, "is-disabled": r.value }])
3930
3929
  }, [
3931
3930
  t.type === "default" ? (T(), H(Le, { key: 0 }, [
3932
3931
  ue("div", Jr, [
3933
- me(B, Se({
3932
+ me(E, Se({
3934
3933
  "file-list": l.value,
3935
- "onUpdate:fileList": I[0] || (I[0] = (x) => l.value = x),
3934
+ "onUpdate:fileList": j[0] || (j[0] = (C) => l.value = C),
3936
3935
  name: "file",
3937
3936
  multiple: t.multiple,
3938
3937
  accept: t.accept,
3939
3938
  onChange: D,
3940
3939
  "before-upload": v,
3941
3940
  class: "ct-default-upload"
3942
- }, j.$attrs), {
3943
- itemRender: re(({ file: x, actions: F }) => [
3941
+ }, O.$attrs), {
3942
+ itemRender: re(({ file: C, actions: F }) => [
3944
3943
  ue("div", Qr, [
3945
3944
  ue("div", Zr, [
3946
3945
  ue("img", {
3947
3946
  class: "ct-upload-file__icon",
3948
- src: `https://assets.cdn.lipind.com/Front/client/lipin/file-icon/${R(Ut)(x.name)}.svg`,
3947
+ src: `https://static.cingta.com/Front/data/common/components/upload/${R(Ut)(C.name)}.svg`,
3949
3948
  alt: ""
3950
3949
  }, null, 8, Xr),
3951
- ue("div", ea, _e(x.name), 1)
3950
+ ue("div", ea, _e(C.name), 1)
3952
3951
  ]),
3953
- x.status === "uploading" ? (T(), H("img", ta)) : (T(), he(C, {
3952
+ C.status === "uploading" ? (T(), H("img", ta)) : (T(), he(S, {
3954
3953
  key: 1,
3955
3954
  name: "close_line",
3956
3955
  size: "14",
@@ -3961,7 +3960,7 @@ const Sr = {
3961
3960
  ])
3962
3961
  ]),
3963
3962
  default: re(() => [
3964
- me(C, {
3963
+ me(S, {
3965
3964
  name: "upload2_line",
3966
3965
  size: "14"
3967
3966
  }),
@@ -3970,15 +3969,15 @@ const Sr = {
3970
3969
  _: 1
3971
3970
  }, 16, ["file-list", "multiple", "accept"]),
3972
3971
  t.tipText ? (T(), H("div", na, [
3973
- I[3] || (I[3] = ue("span", null, "*", -1)),
3972
+ j[3] || (j[3] = ue("span", null, "*", -1)),
3974
3973
  Ve(_e(t.tipText), 1)
3975
3974
  ])) : xe("", !0)
3976
3975
  ]),
3977
3976
  l.value.length ? (T(), H(Le, { key: 0 }, [], 64)) : xe("", !0)
3978
- ], 64)) : t.type === "picture" ? (T(), he(B, Se({
3977
+ ], 64)) : t.type === "picture" ? (T(), he(E, Se({
3979
3978
  key: 1,
3980
3979
  "file-list": l.value,
3981
- "onUpdate:fileList": I[1] || (I[1] = (x) => l.value = x),
3980
+ "onUpdate:fileList": j[1] || (j[1] = (C) => l.value = C),
3982
3981
  name: "avatar",
3983
3982
  "list-type": "picture-card",
3984
3983
  maxCount: t.maxCount,
@@ -3987,31 +3986,31 @@ const Sr = {
3987
3986
  class: ["ct-picture-upload", { "hide-upload": l.value.length >= t.maxCount }],
3988
3987
  onChange: D,
3989
3988
  "before-upload": v
3990
- }, j.$attrs), {
3991
- itemRender: re(({ file: x, actions: F }) => [
3992
- x.status === "uploading" ? (T(), H("img", ra)) : (T(), H("div", aa, [
3989
+ }, O.$attrs), {
3990
+ itemRender: re(({ file: C, actions: F }) => [
3991
+ C.status === "uploading" ? (T(), H("img", ra)) : (T(), H("div", aa, [
3993
3992
  ue("img", {
3994
- src: x.thumbUrl,
3993
+ src: C.thumbUrl,
3995
3994
  class: "upload-img"
3996
3995
  }, null, 8, oa),
3997
3996
  ue("img", {
3998
3997
  class: "delete-img",
3999
3998
  onClick: F.remove,
4000
- src: "https://assets.cdn.lipind.com/Front/client/lp-component/upload/delete.png"
3999
+ src: "https://static.cingta.com/Front/data/common/components/upload/delete.png"
4001
4000
  }, null, 8, la)
4002
4001
  ]))
4003
4002
  ]),
4004
4003
  default: re(() => [
4005
- me(C, {
4004
+ me(S, {
4006
4005
  name: "plus_line",
4007
4006
  size: "20"
4008
4007
  })
4009
4008
  ]),
4010
4009
  _: 1
4011
- }, 16, ["file-list", "maxCount", "multiple", "accept", "class"])) : t.type === "drag" ? (T(), he(E, Se({
4010
+ }, 16, ["file-list", "maxCount", "multiple", "accept", "class"])) : t.type === "drag" ? (T(), he(I, Se({
4012
4011
  key: 2,
4013
4012
  "file-list": l.value,
4014
- "onUpdate:fileList": I[2] || (I[2] = (x) => l.value = x),
4013
+ "onUpdate:fileList": j[2] || (j[2] = (C) => l.value = C),
4015
4014
  name: "avatar",
4016
4015
  multiple: t.multiple,
4017
4016
  accept: t.accept,
@@ -4019,18 +4018,18 @@ const Sr = {
4019
4018
  onDrop: D,
4020
4019
  "before-upload": v,
4021
4020
  class: "ct-drag-upload"
4022
- }, j.$attrs), {
4023
- itemRender: re(({ file: x, actions: F }) => [
4021
+ }, O.$attrs), {
4022
+ itemRender: re(({ file: C, actions: F }) => [
4024
4023
  ue("div", ua, [
4025
4024
  ue("div", ia, [
4026
4025
  ue("img", {
4027
4026
  class: "ct-upload-file__icon",
4028
- src: `https://assets.cdn.lipind.com/Front/client/lipin/file-icon/${R(Ut)(x.name)}.svg`,
4027
+ src: `https://static.cingta.com/Front/data/common/components/upload/${R(Ut)(C.name)}.svg`,
4029
4028
  alt: ""
4030
4029
  }, null, 8, ca),
4031
- ue("div", da, _e(x.name), 1)
4030
+ ue("div", da, _e(C.name), 1)
4032
4031
  ]),
4033
- x.status === "uploading" ? (T(), H("img", fa)) : (T(), he(C, {
4032
+ C.status === "uploading" ? (T(), H("img", fa)) : (T(), he(S, {
4034
4033
  key: 1,
4035
4034
  name: "close_line",
4036
4035
  size: "14",
@@ -4041,14 +4040,14 @@ const Sr = {
4041
4040
  ])
4042
4041
  ]),
4043
4042
  default: re(() => [
4044
- me(C, {
4043
+ me(S, {
4045
4044
  name: "upload_line",
4046
4045
  size: "36",
4047
4046
  color: "var(--ct-gray-10)"
4048
4047
  }),
4049
- I[5] || (I[5] = ue("div", { class: "drag-title" }, "点击或将文件拖拽至此处上传", -1)),
4048
+ j[5] || (j[5] = ue("div", { class: "drag-title" }, "点击或将文件拖拽至此处上传", -1)),
4050
4049
  ue("div", sa, [
4051
- I[4] || (I[4] = ue("span", null, "*", -1)),
4050
+ j[4] || (j[4] = ue("span", null, "*", -1)),
4052
4051
  Ve(_e(t.tipText), 1)
4053
4052
  ])
4054
4053
  ]),
@@ -4057,7 +4056,7 @@ const Sr = {
4057
4056
  ], 2);
4058
4057
  };
4059
4058
  }
4060
- }), ma = /* @__PURE__ */ Ee(pa, [["__scopeId", "data-v-f718cc10"]]), va = Oe(ma, "CtUpload");
4059
+ }), ma = /* @__PURE__ */ Ee(pa, [["__scopeId", "data-v-df515ee0"]]), va = Oe(ma, "CtUpload");
4061
4060
  let St = null;
4062
4061
  function gn() {
4063
4062
  return St == null && (St = ct.zIndex ?? 1e3), St += 1, St;
@@ -4292,12 +4291,12 @@ const ha = {
4292
4291
  set: (y) => {
4293
4292
  a("update:modelValue", y), a("update:value", y), a("update:visible", y);
4294
4293
  }
4295
- }), S = f(() => r.hasHeader !== void 0 ? r.hasHeader : !0), v = f(() => {
4294
+ }), _ = f(() => r.hasHeader !== void 0 ? r.hasHeader : !0), v = f(() => {
4296
4295
  const y = t.showClose ?? t["show-close"];
4297
- return y !== void 0 ? !!y : S.value ? r.showClose : !1;
4296
+ return y !== void 0 ? !!y : _.value ? r.showClose : !1;
4298
4297
  }), c = f(
4299
4298
  () => r.hasFooter || !!l.footer || !!l.leftFooter || !!l.rightFooter || !!l["footer-left"]
4300
- ), k = f(() => {
4299
+ ), x = f(() => {
4301
4300
  if (r.maskClosable !== void 0) return r.maskClosable;
4302
4301
  if (r.closeOnClickModal !== void 0) return r.closeOnClickModal;
4303
4302
  const y = t.maskClosable ?? t["mask-closable"] ?? t.closeOnClickModal ?? t["close-on-click-modal"];
@@ -4307,22 +4306,22 @@ const ha = {
4307
4306
  if (r.closeOnPressEscape !== void 0) return r.closeOnPressEscape;
4308
4307
  const y = t.keyboard ?? t.closeOnPressEscape ?? t["close-on-press-escape"];
4309
4308
  return y !== void 0 ? !!y : !0;
4310
- }), j = f(() => {
4309
+ }), O = f(() => {
4311
4310
  if (r.centered !== void 0) return r.centered;
4312
4311
  if (r.center !== void 0) return r.center;
4313
4312
  if (r.alignCenter !== void 0) return r.alignCenter;
4314
4313
  const y = t.centered ?? t.center ?? t.alignCenter ?? t["align-center"];
4315
4314
  return y !== void 0 ? !!y : !(r.fullscreen || t.fullscreen);
4316
- }), I = f(() => r.fullscreen || t.fullscreen ? "100%" : r.width ?? t.width ?? 520), C = f(() => {
4315
+ }), j = f(() => r.fullscreen || t.fullscreen ? "100%" : r.width ?? t.width ?? 520), S = f(() => {
4317
4316
  if (r.destroyOnClose !== void 0) return r.destroyOnClose;
4318
4317
  const y = t.destroyOnClose ?? t["destroy-on-close"];
4319
4318
  return y !== void 0 ? !!y : !1;
4320
- }), B = f(() => {
4319
+ }), E = f(() => {
4321
4320
  if (r.getContainer !== void 0) return r.getContainer;
4322
4321
  const y = t.getContainer ?? t["get-container"];
4323
4322
  if (y !== void 0) return y;
4324
4323
  if ((r.appendToBody ?? t.appendToBody ?? t["append-to-body"]) === !1) return !1;
4325
- }), E = f(() => r.beforeClose || t.beforeClose || t["before-close"] || void 0), x = f(() => r.top ?? t.top), F = f(() => {
4324
+ }), I = f(() => r.beforeClose || t.beforeClose || t["before-close"] || void 0), C = f(() => r.top ?? t.top), F = f(() => {
4326
4325
  const y = t.modal;
4327
4326
  return y !== void 0 ? !!y : r.modal !== !1;
4328
4327
  }), ee = ne(void 0);
@@ -4338,7 +4337,7 @@ const ha = {
4338
4337
  },
4339
4338
  { immediate: !0 }
4340
4339
  );
4341
- const O = f(() => r.zIndex ?? t.zIndex ?? t["z-index"] ?? ee.value), L = f(() => {
4340
+ const B = f(() => r.zIndex ?? t.zIndex ?? t["z-index"] ?? ee.value), L = f(() => {
4342
4341
  const y = ["ct-dialog-wrap"];
4343
4342
  (r.fullscreen || t.fullscreen) && y.push("ct-dialog-wrap--fullscreen");
4344
4343
  const V = t.wrapClassName ?? t["wrap-class-name"];
@@ -4358,10 +4357,10 @@ const ha = {
4358
4357
  u.has(ge) || (y[ge] = t[ge]);
4359
4358
  }), y.class = W.value;
4360
4359
  const V = { ...t.style || {} };
4361
- !j.value && x.value && (V.top = x.value, V.paddingBottom = 0), Object.keys(V).length && (y.style = V);
4362
- const U = B.value;
4360
+ !O.value && C.value && (V.top = C.value, V.paddingBottom = 0), Object.keys(V).length && (y.style = V);
4361
+ const U = E.value;
4363
4362
  U !== void 0 && (y.getContainer = U);
4364
- const le = O.value;
4363
+ const le = B.value;
4365
4364
  le !== void 0 && (y.zIndex = le);
4366
4365
  const ce = t.afterClose ?? t["after-close"];
4367
4366
  return y.afterClose = () => {
@@ -4371,7 +4370,7 @@ const ha = {
4371
4370
  h.value && (h.value = !1, a("cancel"), a("close", y));
4372
4371
  }, be = (y) => {
4373
4372
  if (!h.value) return;
4374
- const V = E.value;
4373
+ const V = I.value;
4375
4374
  if (typeof V == "function") {
4376
4375
  V(() => ke(y));
4377
4376
  return;
@@ -4393,14 +4392,14 @@ const ha = {
4393
4392
  return T(), he(le, Se(G.value, {
4394
4393
  open: h.value,
4395
4394
  closable: v.value,
4396
- maskClosable: k.value,
4395
+ maskClosable: x.value,
4397
4396
  keyboard: D.value,
4398
- centered: j.value,
4399
- destroyOnClose: C.value,
4400
- width: I.value,
4401
- getContainer: B.value,
4397
+ centered: O.value,
4398
+ destroyOnClose: S.value,
4399
+ width: j.value,
4400
+ getContainer: E.value,
4402
4401
  mask: F.value,
4403
- zIndex: O.value,
4402
+ zIndex: B.value,
4404
4403
  wrapClassName: L.value,
4405
4404
  footer: c.value ? void 0 : null,
4406
4405
  "onUpdate:open": N
@@ -4413,7 +4412,7 @@ const ha = {
4413
4412
  ]),
4414
4413
  _: 2
4415
4414
  }, [
4416
- S.value ? {
4415
+ _.value ? {
4417
4416
  name: "title",
4418
4417
  fn: re(() => [
4419
4418
  y.$slots.header ? (T(), H("div", ha, [
@@ -4657,7 +4656,7 @@ const ha = {
4657
4656
  "onUpdate:model-value",
4658
4657
  "onUpdate:visible",
4659
4658
  "onUpdate:open"
4660
- ]), r = s, t = e, l = Ke(), h = zt(), S = f({
4659
+ ]), r = s, t = e, l = Ke(), h = zt(), _ = f({
4661
4660
  get: () => t.modelValue !== void 0 ? t.modelValue : t.visible !== void 0 ? t.visible : !!t.value,
4662
4661
  set: (N) => {
4663
4662
  r("update:modelValue", N), r("update:value", N), r("update:visible", N);
@@ -4670,33 +4669,33 @@ const ha = {
4670
4669
  }), c = f(() => {
4671
4670
  const N = l.showClose ?? l["show-close"];
4672
4671
  return N !== void 0 ? !!N : t.showClose;
4673
- }), k = f(() => t.hasFooter || !!h.footer), D = f(() => typeof t.drawerStyle == "number" ? `ct-drawer--is-style-${t.drawerStyle}` : ""), j = f(() => {
4672
+ }), x = f(() => t.hasFooter || !!h.footer), D = f(() => typeof t.drawerStyle == "number" ? `ct-drawer--is-style-${t.drawerStyle}` : ""), O = f(() => {
4674
4673
  const N = l.class, M = ["ct-drawer", D.value];
4675
4674
  typeof N == "string" && N ? M.push(N) : Array.isArray(N) ? M.push(...N.filter(Boolean)) : N && typeof N == "object" && Object.keys(N).forEach((y) => {
4676
4675
  N[y] && M.push(y);
4677
4676
  });
4678
4677
  const Y = l.rootClassName ?? l["root-class-name"];
4679
4678
  return Y && M.push(Y), M.filter(Boolean).join(" ");
4680
- }), I = (N) => N === "default" || N === "large", C = f(() => {
4679
+ }), j = (N) => N === "default" || N === "large", S = f(() => {
4681
4680
  if (t.placement) return t.placement;
4682
4681
  if (l.placement) return l.placement;
4683
4682
  const N = t.direction ?? l.direction;
4684
4683
  return N && u[N] ? u[N] : "right";
4685
- }), B = f(() => {
4686
- const N = C.value, M = N === "top" || N === "bottom", Y = t.width ?? l.width, y = t.height ?? l.height, V = t.size ?? l.size, U = {};
4687
- return M ? y != null ? U.height = y : V != null && !I(V) && (U.height = V) : Y != null ? U.width = Y : V != null && !I(V) && (U.width = V), V != null && I(V) && (U.size = V), U;
4688
4684
  }), E = f(() => {
4685
+ const N = S.value, M = N === "top" || N === "bottom", Y = t.width ?? l.width, y = t.height ?? l.height, V = t.size ?? l.size, U = {};
4686
+ return M ? y != null ? U.height = y : V != null && !j(V) && (U.height = V) : Y != null ? U.width = Y : V != null && !j(V) && (U.width = V), V != null && j(V) && (U.size = V), U;
4687
+ }), I = f(() => {
4689
4688
  if (t.getContainer !== void 0) return t.getContainer;
4690
4689
  const N = l.getContainer ?? l["get-container"];
4691
4690
  if (N !== void 0) return N;
4692
4691
  if ((t.appendToBody ?? l.appendToBody ?? l["append-to-body"]) === !1) return !1;
4693
- }), x = f(() => {
4692
+ }), C = f(() => {
4694
4693
  if (t.destroyOnClose !== void 0) return t.destroyOnClose;
4695
4694
  const N = l.destroyOnClose ?? l["destroy-on-close"];
4696
4695
  if (N !== void 0) return !!N;
4697
4696
  }), F = f(() => t.beforeClose || l.beforeClose || l["before-close"] || void 0), ee = ne(void 0);
4698
4697
  ye(
4699
- S,
4698
+ _,
4700
4699
  (N) => {
4701
4700
  if (!N) return;
4702
4701
  if ((l.zIndex ?? l["z-index"]) !== void 0) {
@@ -4707,16 +4706,16 @@ const ha = {
4707
4706
  },
4708
4707
  { immediate: !0 }
4709
4708
  );
4710
- const O = f(() => l.zIndex ?? l["z-index"] ?? ee.value), L = f(() => {
4709
+ const B = f(() => l.zIndex ?? l["z-index"] ?? ee.value), L = f(() => {
4711
4710
  const N = {};
4712
4711
  Object.keys(l).forEach((U) => {
4713
4712
  a.has(U) || (N[U] = l[U]);
4714
- }), l.style && (N.style = l.style), N.placement = C.value, Object.assign(N, B.value);
4715
- const M = E.value;
4713
+ }), l.style && (N.style = l.style), N.placement = S.value, Object.assign(N, E.value);
4714
+ const M = I.value;
4716
4715
  M !== void 0 && (N.getContainer = M);
4717
- const Y = x.value;
4716
+ const Y = C.value;
4718
4717
  Y !== void 0 && (N.destroyOnClose = Y);
4719
- const y = O.value;
4718
+ const y = B.value;
4720
4719
  y !== void 0 && (N.zIndex = y);
4721
4720
  const V = l.rootStyle ?? l["root-style"];
4722
4721
  if (N.rootStyle = {
@@ -4730,9 +4729,9 @@ const ha = {
4730
4729
  }
4731
4730
  return N;
4732
4731
  }), W = (N) => {
4733
- S.value && (S.value = !1, r("cancel"), r("close", N));
4732
+ _.value && (_.value = !1, r("cancel"), r("close", N));
4734
4733
  }, G = (N) => {
4735
- if (!S.value) return;
4734
+ if (!_.value) return;
4736
4735
  const M = F.value;
4737
4736
  if (typeof M == "function") {
4738
4737
  M(() => W(N));
@@ -4741,7 +4740,7 @@ const ha = {
4741
4740
  W(N);
4742
4741
  }, ke = (N) => {
4743
4742
  if (N) {
4744
- S.value || (S.value = !0, r("open"));
4743
+ _.value || (_.value = !0, r("open"));
4745
4744
  return;
4746
4745
  }
4747
4746
  G();
@@ -4751,8 +4750,8 @@ const ha = {
4751
4750
  return (N, M) => {
4752
4751
  const Y = ie("ct-icon"), y = ie("a-drawer");
4753
4752
  return T(), he(y, Se(L.value, {
4754
- rootClassName: j.value,
4755
- open: S.value,
4753
+ rootClassName: O.value,
4754
+ open: _.value,
4756
4755
  closable: !1,
4757
4756
  "onUpdate:open": ke,
4758
4757
  onAfterOpenChange: be
@@ -4807,7 +4806,7 @@ const ha = {
4807
4806
  ]),
4808
4807
  key: "0"
4809
4808
  } : void 0,
4810
- k.value ? {
4809
+ x.value ? {
4811
4810
  name: "footer",
4812
4811
  fn: re(() => [
4813
4812
  ae(N.$slots, "footer")
@@ -4869,9 +4868,9 @@ function za(e = {}, s = {}) {
4869
4868
  delete l.type, delete l.name, delete l.style, delete l.componentStyle, delete l.componentClass, ["serviceParams", "searchParas", "params"].forEach((c) => {
4870
4869
  l[c] != null && (l[c] = R(l[c]));
4871
4870
  }), !l.name && e.name && (l.name = e.name), !l.label && e.name && (l.label = e.name), !l.paras && l.param && (l.paras = l.param), !l.param && l.paras && (l.param = l.paras), !l.options && Array.isArray(l.list) && (l.options = l.list), l.prevalue !== void 0 && l.preVal === void 0 && (l.preVal = l.prevalue), l.multiple && !l.mode && [1, 3].includes(Number(e.type)) && (l.mode = "multiple"), t && Number(e.type) === 1 && !e.multiple && l.filterable === void 0 && (l.filterable = !0), l.mapObj && !l.fieldNames && (l.fieldNames = l.mapObj);
4872
- const h = l.rawAttrs && typeof l.rawAttrs == "object" ? { ...l.rawAttrs } : {}, S = l.rawAttr && typeof l.rawAttr == "object" ? { ...l.rawAttr } : {};
4871
+ const h = l.rawAttrs && typeof l.rawAttrs == "object" ? { ...l.rawAttrs } : {}, _ = l.rawAttr && typeof l.rawAttr == "object" ? { ...l.rawAttr } : {};
4873
4872
  delete l.rawAttrs, delete l.rawAttr, [0, 1].includes(Number(e.type)) && (l.label != null && l.fieldLabel == null && (l.fieldLabel = l.label), delete l.label);
4874
- const v = { ...l, ...h, ...S };
4873
+ const v = { ...l, ...h, ..._ };
4875
4874
  if (v.filterable && v.showSearch === void 0 && (v.showSearch = !0), delete v.filterable, v.clearable !== void 0 && v.allowClear === void 0 && (v.allowClear = v.clearable), v.placement && Kt[v.placement] && (v.placement = Kt[v.placement]), t && (delete v.value, delete v.modelValue, delete v.clearable, delete v.teleported), typeof a == "function" && (v[Va(un)] = a), Number(e.type) === 4 && v.valueFormat === void 0 && v["value-format"] === void 0 && (v.valueFormat = "x"), Number(e.type) === 6 && (v.separator === void 0 && (v.separator = "至"), v.precision === void 0 && (v.precision = 0), v.placeholder === void 0)) {
4876
4875
  const c = e.param || e.paras;
4877
4876
  v.placeholder = c === "restdate" ? "" : "万元";
@@ -5071,46 +5070,46 @@ const Ya = ["onClick"], qa = { key: 0 }, Ka = 1300, Ga = 1e3, it = 4, Ja = /* @_
5071
5070
  CtAutoComplete: dn,
5072
5071
  CtRadio: hn,
5073
5072
  CtNumberInputRange: cn
5074
- }, r = We("$ctSearchBoxComponent", {}), t = e, l = u, h = lt("search-box"), S = f(() => t.outerBorder !== void 0 ? t.outerBorder : t.mode === "inline"), v = ne(null), c = ne(0);
5075
- let k = null;
5073
+ }, r = We("$ctSearchBoxComponent", {}), t = e, l = u, h = lt("search-box"), _ = f(() => t.outerBorder !== void 0 ? t.outerBorder : t.mode === "inline"), v = ne(null), c = ne(0);
5074
+ let x = null;
5076
5075
  const D = f(() => {
5077
5076
  const b = c.value;
5078
5077
  return b >= Ka ? 6 : b <= Ga ? 3 : 4;
5079
- }), j = f(() => {
5078
+ }), O = f(() => {
5080
5079
  var b;
5081
5080
  return ((b = t.searchList) == null ? void 0 : b.length) || 0;
5082
- }), I = f(() => {
5081
+ }), j = f(() => {
5083
5082
  const b = Math.max(1, Number(t.rowNumber) || it);
5084
5083
  return b < it ? Math.max(1, t.actionsNewLine ? b : b - 1) : D.value;
5085
- }), C = I, B = ne(t.collapsed);
5084
+ }), S = j, E = ne(t.collapsed);
5086
5085
  ye(
5087
5086
  () => t.collapsed,
5088
5087
  (b) => {
5089
- B.value = b;
5088
+ E.value = b;
5090
5089
  }
5091
5090
  );
5092
- const E = f({
5091
+ const I = f({
5093
5092
  get() {
5094
- return B.value;
5093
+ return E.value;
5095
5094
  },
5096
5095
  set(b) {
5097
- B.value = b, l("update:collapsed", b);
5096
+ E.value = b, l("update:collapsed", b);
5098
5097
  }
5099
- }), x = f(() => t.collapsible ? j.value > I.value : !1), F = f(() => {
5098
+ }), C = f(() => t.collapsible ? O.value > j.value : !1), F = f(() => {
5100
5099
  const b = t.searchList || [];
5101
- return !t.collapsible || !E.value || !x.value ? b : b.slice(0, C.value);
5100
+ return !t.collapsible || !I.value || !C.value ? b : b.slice(0, S.value);
5102
5101
  }), ee = f(() => {
5103
5102
  const b = Math.max(1, Number(t.rowNumber) || it);
5104
5103
  if (b < it) return b;
5105
5104
  const te = D.value, de = F.value.length;
5106
5105
  return de === 2 ? 2 : te <= 3 ? 3 : de <= it ? it : Math.min(de, te);
5107
- }), O = f(() => !t.collapsible || !x.value ? 0 : (t.searchList || []).filter((b) => {
5106
+ }), B = f(() => !t.collapsible || !C.value ? 0 : (t.searchList || []).filter((b) => {
5108
5107
  var de;
5109
5108
  const te = J(b);
5110
5109
  return te ? yt((de = M.value) == null ? void 0 : de[te]) : !1;
5111
- }).length), L = f(() => O.value > 0 ? `${t.searchBtnName}·${O.value}` : t.searchBtnName);
5110
+ }).length), L = f(() => B.value > 0 ? `${t.searchBtnName}·${B.value}` : t.searchBtnName);
5112
5111
  function W() {
5113
- E.value = !E.value;
5112
+ I.value = !I.value;
5114
5113
  }
5115
5114
  function G() {
5116
5115
  const b = v.value;
@@ -5119,12 +5118,12 @@ const Ya = ["onClick"], qa = { key: 0 }, Ka = 1300, Ga = 1e3, it = 4, Ja = /* @_
5119
5118
  function ke() {
5120
5119
  be(), G();
5121
5120
  const b = v.value;
5122
- !b || typeof ResizeObserver > "u" || (k = new ResizeObserver(() => {
5121
+ !b || typeof ResizeObserver > "u" || (x = new ResizeObserver(() => {
5123
5122
  G();
5124
- }), k.observe(b));
5123
+ }), x.observe(b));
5125
5124
  }
5126
5125
  function be() {
5127
- k && (k.disconnect(), k = null);
5126
+ x && (x.disconnect(), x = null);
5128
5127
  }
5129
5128
  ot(() => {
5130
5129
  ke();
@@ -5232,7 +5231,7 @@ const Ya = ["onClick"], qa = { key: 0 }, Ka = 1300, Ga = 1e3, it = 4, Ja = /* @_
5232
5231
  }
5233
5232
  return te;
5234
5233
  }
5235
- function _(b) {
5234
+ function k(b) {
5236
5235
  var de;
5237
5236
  if (!Be(b)) return {};
5238
5237
  const te = J(b);
@@ -5246,7 +5245,7 @@ const Ya = ["onClick"], qa = { key: 0 }, Ka = 1300, Ga = 1e3, it = 4, Ja = /* @_
5246
5245
  return za(b, {
5247
5246
  context: "search-box",
5248
5247
  onBuriedParams: le,
5249
- stripBorder: S.value
5248
+ stripBorder: _.value
5250
5249
  });
5251
5250
  }
5252
5251
  function X(b) {
@@ -5324,7 +5323,7 @@ const Ya = ["onClick"], qa = { key: 0 }, Ka = 1300, Ga = 1e3, it = 4, Ja = /* @_
5324
5323
  R(h).b(),
5325
5324
  R(h).is(`mode-${e.mode}`, !0),
5326
5325
  R(h).is("collapsible", e.collapsible),
5327
- R(h).is("collapsed", e.collapsible && E.value),
5326
+ R(h).is("collapsed", e.collapsible && I.value),
5328
5327
  R(h).is("actions-new-line", e.actionsNewLine)
5329
5328
  ])
5330
5329
  }, [
@@ -5343,18 +5342,18 @@ const Ya = ["onClick"], qa = { key: 0 }, Ka = 1300, Ga = 1e3, it = 4, Ja = /* @_
5343
5342
  class: we([
5344
5343
  R(h).e("item"),
5345
5344
  ...p(pe),
5346
- R(h).is("outer-border", S.value)
5345
+ R(h).is("outer-border", _.value)
5347
5346
  ]),
5348
5347
  style: Je(N(pe)),
5349
5348
  onClick: (je) => i(pe)
5350
5349
  }, [
5351
- ae(b.$slots, "default", Se({ ref_for: !0 }, _(pe)), () => [
5352
- ae(b.$slots, "item-before", Se({ ref_for: !0 }, _(pe))),
5350
+ ae(b.$slots, "default", Se({ ref_for: !0 }, k(pe)), () => [
5351
+ ae(b.$slots, "item-before", Se({ ref_for: !0 }, k(pe))),
5353
5352
  pe.hideName ? xe("", !0) : (T(), H("span", {
5354
5353
  key: 0,
5355
5354
  class: we([
5356
5355
  R(h).e("item-label"),
5357
- R(h).is("outer-border", S.value)
5356
+ R(h).is("outer-border", _.value)
5358
5357
  ])
5359
5358
  }, [
5360
5359
  me(de, {
@@ -5366,20 +5365,20 @@ const Ya = ["onClick"], qa = { key: 0 }, Ka = 1300, Ga = 1e3, it = 4, Ja = /* @_
5366
5365
  ]),
5367
5366
  _: 2
5368
5367
  }, 1032, ["title"]),
5369
- S.value ? xe("", !0) : (T(), H("span", qa, ":"))
5368
+ _.value ? xe("", !0) : (T(), H("span", qa, ":"))
5370
5369
  ], 2)),
5371
5370
  ue("div", {
5372
5371
  class: we([
5373
5372
  R(h).e("item-component"),
5374
- S.value ? "ct-filter-field-host" : null
5373
+ _.value ? "ct-filter-field-host" : null
5375
5374
  ])
5376
5375
  }, [
5377
- ae(b.$slots, J(pe), Se({ ref_for: !0 }, _(pe)), () => [
5376
+ ae(b.$slots, J(pe), Se({ ref_for: !0 }, k(pe)), () => [
5378
5377
  (T(), he(tn(X(pe.type)), Se({ ref_for: !0 }, q(pe), {
5379
5378
  value: M.value[J(pe)],
5380
5379
  "model-value": M.value[J(pe)],
5381
5380
  size: "small",
5382
- bordered: S.value ? !1 : void 0,
5381
+ bordered: _.value ? !1 : void 0,
5383
5382
  popupClassName: "ct-search-box-component-popup",
5384
5383
  "popup-container": z,
5385
5384
  "onUpdate:value": (je) => Ae(pe, je),
@@ -5391,7 +5390,7 @@ const Ya = ["onClick"], qa = { key: 0 }, Ka = 1300, Ga = 1e3, it = 4, Ja = /* @_
5391
5390
  }), null, 16, ["value", "model-value", "bordered", "onUpdate:value", "onUpdate:modelValue", "onUpdate:label", "onUpdate:preVal", "onOpen", "onCancel"]))
5392
5391
  ])
5393
5392
  ], 2),
5394
- ae(b.$slots, "item-after", Se({ ref_for: !0 }, _(pe)))
5393
+ ae(b.$slots, "item-after", Se({ ref_for: !0 }, k(pe)))
5395
5394
  ])
5396
5395
  ], 14, Ya))), 128))
5397
5396
  ], 6),
@@ -5401,23 +5400,23 @@ const Ya = ["onClick"], qa = { key: 0 }, Ka = 1300, Ga = 1e3, it = 4, Ja = /* @_
5401
5400
  }, [
5402
5401
  ae(b.$slots, "slot-search", {}, () => [
5403
5402
  e.collapsible ? (T(), H(Le, { key: 0 }, [
5404
- x.value ? (T(), H("div", {
5403
+ C.value ? (T(), H("div", {
5405
5404
  key: 0,
5406
5405
  class: we([R(h).e("collapse")]),
5407
5406
  onClick: W
5408
5407
  }, [
5409
5408
  me(de, {
5410
- title: E.value ? "点击查看更多过滤条件" : "",
5409
+ title: I.value ? "点击查看更多过滤条件" : "",
5411
5410
  placement: "top"
5412
5411
  }, {
5413
5412
  default: re(() => [
5414
5413
  ue("span", {
5415
5414
  class: we([R(h).e("collapse-text")])
5416
- }, _e(E.value ? "展开" : "收起"), 3)
5415
+ }, _e(I.value ? "展开" : "收起"), 3)
5417
5416
  ]),
5418
5417
  _: 1
5419
5418
  }, 8, ["title"]),
5420
- E.value ? (T(), he(Pe, {
5419
+ I.value ? (T(), he(Pe, {
5421
5420
  key: 0,
5422
5421
  name: "arrow-down_line",
5423
5422
  size: "14",
@@ -5513,25 +5512,25 @@ const Ya = ["onClick"], qa = { key: 0 }, Ka = 1300, Ga = 1e3, it = 4, Ja = /* @_
5513
5512
  "style"
5514
5513
  ]), h = f(() => {
5515
5514
  const c = { active: a.active };
5516
- return Object.keys(t).forEach((k) => {
5517
- l.has(k) || (c[k] = t[k]);
5515
+ return Object.keys(t).forEach((x) => {
5516
+ l.has(x) || (c[x] = t[x]);
5518
5517
  }), c;
5519
- }), { visible: S, finish: v } = Wn(() => a.loading, {
5518
+ }), { visible: _, finish: v } = Wn(() => a.loading, {
5520
5519
  minMs: () => a.minMs
5521
5520
  });
5522
5521
  return ye(
5523
- S,
5522
+ _,
5524
5523
  (c) => {
5525
5524
  r("visible-change", c);
5526
5525
  },
5527
5526
  { immediate: !0 }
5528
5527
  ), s({
5529
- visible: S,
5528
+ visible: _,
5530
5529
  finish: v
5531
- }), (c, k) => {
5530
+ }), (c, x) => {
5532
5531
  const D = ie("a-skeleton");
5533
5532
  return T(), H("div", Za, [
5534
- R(S) ? (T(), H("div", Xa, [
5533
+ R(_) ? (T(), H("div", Xa, [
5535
5534
  ae(c.$slots, "skeleton", {}, () => [
5536
5535
  me(D, nn(rn(h.value)), null, 16)
5537
5536
  ], !0)
@@ -5640,13 +5639,13 @@ const fo = [
5640
5639
  baseDao: t,
5641
5640
  searchBoxComponent: l,
5642
5641
  locale: h,
5643
- brandColor: S
5642
+ brandColor: _
5644
5643
  } = s;
5645
5644
  Mn({
5646
5645
  ...u ? { prefix: u } : {},
5647
5646
  ...a ? { namespace: a } : {},
5648
5647
  ...r !== void 0 ? { zIndex: r } : {}
5649
- }), S && Un(S), t ? (e.provide("$ctBaseDao", t), e.provide("$gjBaseDao", t)) : console.warn("[cingta-component-ant] 未配置 baseDao,依赖接口的组件将无法拉数"), Be(l) && e.provide("$ctSearchBoxComponent", l), h && e.provide("$ctLocale", h);
5648
+ }), _ && Un(_), t ? (e.provide("$ctBaseDao", t), e.provide("$gjBaseDao", t)) : console.warn("[cingta-component-ant] 未配置 baseDao,依赖接口的组件将无法拉数"), Be(l) && e.provide("$ctSearchBoxComponent", l), h && e.provide("$ctLocale", h);
5650
5649
  }
5651
5650
  fo.forEach((u) => e.use(u)), e.use(Sr);
5652
5651
  }, $o = {