@a2simcode/ui 0.0.272 → 0.0.274

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.
@@ -16,6 +16,7 @@ declare const JTreeSelect: {
16
16
  clearable: boolean;
17
17
  readonly: boolean;
18
18
  checkStrictly: boolean;
19
+ lazy: boolean;
19
20
  dataCode: string;
20
21
  idKey: string;
21
22
  renderAfterExpand: boolean;
@@ -41,6 +42,7 @@ declare const JTreeSelect: {
41
42
  clearable: boolean;
42
43
  readonly: boolean;
43
44
  checkStrictly: boolean;
45
+ lazy: boolean;
44
46
  dataCode: string;
45
47
  idKey: string;
46
48
  renderAfterExpand: boolean;
@@ -66,6 +68,7 @@ declare const JTreeSelect: {
66
68
  clearable: boolean;
67
69
  readonly: boolean;
68
70
  checkStrictly: boolean;
71
+ lazy: boolean;
69
72
  dataCode: string;
70
73
  idKey: string;
71
74
  renderAfterExpand: boolean;
@@ -3,6 +3,10 @@ export interface TreeSelectProps {
3
3
  modelValue: string | number | (string | number)[] | undefined;
4
4
  /** 树形数据选项列表 */
5
5
  options?: Record<string, any>[];
6
+ /** 是否懒加载子节点数据,配合 load 方法使用 */
7
+ lazy?: boolean;
8
+ /** 加载子树数据的方法,仅当 lazy 为 true 时生效 */
9
+ load?: (node: Record<string, any>, resolve: (data: Record<string, any>[]) => void) => void;
6
10
  /** 在点击节点时,是否只关注本级节点而不关注父子节点的关系 */
7
11
  checkStrictly?: boolean;
8
12
  /** 是否在第一次展开时才进行渲染 */
@@ -49,6 +53,7 @@ declare const _default: import('vue').DefineComponent<TreeSelectProps, {}, {}, {
49
53
  clearable: boolean;
50
54
  readonly: boolean;
51
55
  checkStrictly: boolean;
56
+ lazy: boolean;
52
57
  dataCode: string;
53
58
  idKey: string;
54
59
  renderAfterExpand: boolean;
@@ -59,7 +59,7 @@ function Df(e, t) {
59
59
  function gS(e) {
60
60
  return e !== null && Df(e, "Object");
61
61
  }
62
- var rn = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array.isArray(e) && e.length === 0 || typeof e == "object" && Object.keys(e).length === 0), $f = /* @__PURE__ */ xe({
62
+ var tn = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array.isArray(e) && e.length === 0 || typeof e == "object" && Object.keys(e).length === 0), $f = /* @__PURE__ */ xe({
63
63
  name: "JIcon",
64
64
  inheritAttrs: !1,
65
65
  __name: "icon",
@@ -164,7 +164,7 @@ var rn = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array
164
164
  }, s = H(() => a.notLabel || !a.label), d = D(!1);
165
165
  rt(() => a.loading, (u) => {
166
166
  if (typeof u == "boolean") d.value = u;
167
- else if (rn(u?.delay))
167
+ else if (tn(u?.delay))
168
168
  d.value = !1;
169
169
  else {
170
170
  const h = setTimeout(() => {
@@ -1426,8 +1426,8 @@ var lh = /* @__PURE__ */ vn(((e, t) => {
1426
1426
  if (Oe < 16)
1427
1427
  ut = Ut.high = h[p + Oe * 2] | 0, Fe = Ut.low = h[p + Oe * 2 + 1] | 0;
1428
1428
  else {
1429
- var sn = f[Oe - 15], Zt = sn.high, vt = sn.low, nn = (Zt >>> 1 | vt << 31) ^ (Zt >>> 8 | vt << 24) ^ Zt >>> 7, At = (vt >>> 1 | Zt << 31) ^ (vt >>> 8 | Zt << 24) ^ (vt >>> 7 | Zt << 25), zt = f[Oe - 2], Et = zt.high, Tt = zt.low, yn = (Et >>> 19 | Tt << 13) ^ (Et << 3 | Tt >>> 29) ^ Et >>> 6, G = (Tt >>> 19 | Et << 13) ^ (Tt << 3 | Et >>> 29) ^ (Tt >>> 6 | Et << 26), me = f[Oe - 7], re = me.high, se = me.low, Ce = f[Oe - 16], Le = Ce.high, Ue = Ce.low;
1430
- Fe = At + se, ut = nn + re + (Fe >>> 0 < At >>> 0 ? 1 : 0), Fe = Fe + G, ut = ut + yn + (Fe >>> 0 < G >>> 0 ? 1 : 0), Fe = Fe + Ue, ut = ut + Le + (Fe >>> 0 < Ue >>> 0 ? 1 : 0), Ut.high = ut, Ut.low = Fe;
1429
+ var sn = f[Oe - 15], Zt = sn.high, vt = sn.low, an = (Zt >>> 1 | vt << 31) ^ (Zt >>> 8 | vt << 24) ^ Zt >>> 7, At = (vt >>> 1 | Zt << 31) ^ (vt >>> 8 | Zt << 24) ^ (vt >>> 7 | Zt << 25), zt = f[Oe - 2], Et = zt.high, Tt = zt.low, yn = (Et >>> 19 | Tt << 13) ^ (Et << 3 | Tt >>> 29) ^ Et >>> 6, G = (Tt >>> 19 | Et << 13) ^ (Tt << 3 | Et >>> 29) ^ (Tt >>> 6 | Et << 26), me = f[Oe - 7], re = me.high, se = me.low, Ce = f[Oe - 16], Le = Ce.high, Ue = Ce.low;
1430
+ Fe = At + se, ut = an + re + (Fe >>> 0 < At >>> 0 ? 1 : 0), Fe = Fe + G, ut = ut + yn + (Fe >>> 0 < G >>> 0 ? 1 : 0), Fe = Fe + Ue, ut = ut + Le + (Fe >>> 0 < Ue >>> 0 ? 1 : 0), Ut.high = ut, Ut.low = Fe;
1431
1431
  }
1432
1432
  var dt = Se & Rt ^ ~Se & de, Dt = De & Y ^ ~De & Ee, xt = P & Ke ^ P & We ^ Ke & We, Yn = ke & we ^ ke & st ^ we & st, Kn = (P >>> 28 | ke << 4) ^ (P << 30 | ke >>> 2) ^ (P << 25 | ke >>> 7), Jn = (ke >>> 28 | P << 4) ^ (ke << 30 | P >>> 2) ^ (ke << 25 | P >>> 7), Ra = (Se >>> 14 | De << 18) ^ (Se >>> 18 | De << 14) ^ (Se << 23 | De >>> 9), Ea = (De >>> 14 | Se << 18) ^ (De >>> 18 | Se << 14) ^ (De << 23 | Se >>> 9), ao = d[Oe], Mo = ao.high, Ta = ao.low, jt = Ne + Ea, he = Be + Ra + (jt >>> 0 < Ne >>> 0 ? 1 : 0), jt = jt + Dt, he = he + dt + (jt >>> 0 < Dt >>> 0 ? 1 : 0), jt = jt + Ta, he = he + Mo + (jt >>> 0 < Ta >>> 0 ? 1 : 0), jt = jt + Fe, he = he + ut + (jt >>> 0 < Fe >>> 0 ? 1 : 0), pe = Jn + Yn, Ve = Kn + xt + (pe >>> 0 < Jn >>> 0 ? 1 : 0);
1433
1433
  Be = de, Ne = Ee, de = Rt, Ee = Y, Rt = Se, Y = De, De = ie + jt | 0, Se = pt + he + (De >>> 0 < ie >>> 0 ? 1 : 0) | 0, pt = We, ie = st, We = Ke, st = we, Ke = P, we = ke, ke = jt + pe | 0, P = he + Ve + (ke >>> 0 < jt >>> 0 ? 1 : 0) | 0;
@@ -1582,7 +1582,7 @@ var Mh = async (e) => new Promise((t, n) => {
1582
1582
  clear() {
1583
1583
  this.events.clear();
1584
1584
  }
1585
- }, kS = new Fc(), tn = {
1585
+ }, kS = new Fc(), nn = {
1586
1586
  APP_PROVIDE: "jcode_app_provide",
1587
1587
  FORM_PROVIDE: "jcode_form_provide",
1588
1588
  TABLE_PROVIDE: "jcode_table_provide",
@@ -1600,7 +1600,7 @@ function ea(e, t) {
1600
1600
  Ld(e, t);
1601
1601
  }
1602
1602
  function kt() {
1603
- return Qn(tn.APP_PROVIDE, {
1603
+ return Qn(nn.APP_PROVIDE, {
1604
1604
  t: (e, ...t) => {
1605
1605
  if (!e) return "";
1606
1606
  if (typeof e != "string") return e;
@@ -1633,55 +1633,55 @@ function kt() {
1633
1633
  });
1634
1634
  }
1635
1635
  function RS(e) {
1636
- ea(tn.APP_PROVIDE, e);
1636
+ ea(nn.APP_PROVIDE, e);
1637
1637
  }
1638
1638
  function Ka() {
1639
- return Qn(tn.FORM_PROVIDE, {});
1639
+ return Qn(nn.FORM_PROVIDE, {});
1640
1640
  }
1641
1641
  function Vc(e) {
1642
- ea(tn.FORM_PROVIDE, e);
1642
+ ea(nn.FORM_PROVIDE, e);
1643
1643
  }
1644
1644
  function ei() {
1645
- return Qn(tn.TABLE_PROVIDE, {});
1645
+ return Qn(nn.TABLE_PROVIDE, {});
1646
1646
  }
1647
1647
  function yo(e) {
1648
- ea(tn.TABLE_PROVIDE, e);
1648
+ ea(nn.TABLE_PROVIDE, e);
1649
1649
  }
1650
1650
  function Ah() {
1651
- return Qn(tn.COMP_PROVIDE, {});
1651
+ return Qn(nn.COMP_PROVIDE, {});
1652
1652
  }
1653
1653
  function Nc(e) {
1654
- ea(tn.COMP_PROVIDE, e);
1654
+ ea(nn.COMP_PROVIDE, e);
1655
1655
  }
1656
1656
  function ti() {
1657
- return Qn(tn.MENU_PROVIDE, {});
1657
+ return Qn(nn.MENU_PROVIDE, {});
1658
1658
  }
1659
1659
  function jh(e) {
1660
- ea(tn.MENU_PROVIDE, e);
1660
+ ea(nn.MENU_PROVIDE, e);
1661
1661
  }
1662
1662
  function Bh() {
1663
- return Qn(tn.H_MENU_PROVIDE, {});
1663
+ return Qn(nn.H_MENU_PROVIDE, {});
1664
1664
  }
1665
1665
  function Ph(e) {
1666
- ea(tn.H_MENU_PROVIDE, e);
1666
+ ea(nn.H_MENU_PROVIDE, e);
1667
1667
  }
1668
1668
  function Hh() {
1669
- return Qn(tn.AUTH_PAGE_PROVIDE, { getPageName: () => "" });
1669
+ return Qn(nn.AUTH_PAGE_PROVIDE, { getPageName: () => "" });
1670
1670
  }
1671
1671
  function Oh(e) {
1672
- ea(tn.AUTH_PAGE_PROVIDE, e);
1672
+ ea(nn.AUTH_PAGE_PROVIDE, e);
1673
1673
  }
1674
1674
  function ES() {
1675
- return Qn(tn.LAYER_PROVIDE, {});
1675
+ return Qn(nn.LAYER_PROVIDE, {});
1676
1676
  }
1677
1677
  function Lh(e) {
1678
- ea(tn.LAYER_PROVIDE, e);
1678
+ ea(nn.LAYER_PROVIDE, e);
1679
1679
  }
1680
1680
  function Ih() {
1681
- return Qn(tn.PAGE_PROVIDE, {});
1681
+ return Qn(nn.PAGE_PROVIDE, {});
1682
1682
  }
1683
1683
  function zh(e) {
1684
- ea(tn.PAGE_PROVIDE, e);
1684
+ ea(nn.PAGE_PROVIDE, e);
1685
1685
  }
1686
1686
  var Dh = /* @__PURE__ */ xe({
1687
1687
  name: "JDynamicLayer",
@@ -2426,7 +2426,7 @@ var Fh = Te(Wc), Vh = /* @__PURE__ */ xe({
2426
2426
  a("update:modelValue", r), a("change", { value: r });
2427
2427
  };
2428
2428
  return rt(() => n.modelValue, (r) => {
2429
- if ((rn(r) || n.mode === "modify") && !n.readonly && (n.mode === "create" && !n.isEditState || n.mode === "modify")) {
2429
+ if ((tn(r) || n.mode === "modify") && !n.readonly && (n.mode === "create" && !n.isEditState || n.mode === "modify")) {
2430
2430
  o.value = rl(/* @__PURE__ */ new Date()), i(o.value);
2431
2431
  return;
2432
2432
  }
@@ -2478,7 +2478,7 @@ var Fh = Te(Wc), Vh = /* @__PURE__ */ xe({
2478
2478
  const n = e, a = t, o = H({
2479
2479
  get() {
2480
2480
  let r = n.options;
2481
- if (!rn(n.modelValue) && r && r.length > 0) {
2481
+ if (!tn(n.modelValue) && r && r.length > 0) {
2482
2482
  let l = n.modelValue + "", c = n.options.find((s) => s.value + "" === l);
2483
2483
  if (c) return c.value;
2484
2484
  }
@@ -2601,7 +2601,7 @@ var Fh = Te(Wc), Vh = /* @__PURE__ */ xe({
2601
2601
  set(f) {
2602
2602
  n.multiple && Array.isArray(f) && (f = f?.join(",") || []), a("update:modelValue", f);
2603
2603
  }
2604
- }), r = H(() => !rn(i.value) && !n.multiple && n.options.filter((f) => i.value == f.value).map((f) => f.label).join(",") || ""), l = H(() => !rn(i.value) && !n.multiple ? n.options.find((f) => f.value === i.value)?.icon : ""), c = H(() => typeof n.selectData == "string" ? n.selectData?.split(",") || [] : []), s = H(() => {
2604
+ }), r = H(() => !tn(i.value) && !n.multiple && n.options.filter((f) => i.value == f.value).map((f) => f.label).join(",") || ""), l = H(() => !tn(i.value) && !n.multiple ? n.options.find((f) => f.value === i.value)?.icon : ""), c = H(() => typeof n.selectData == "string" ? n.selectData?.split(",") || [] : []), s = H(() => {
2605
2605
  let f = [];
2606
2606
  if (n.isSelectOnlyone ? f = n.options.map((u) => ({
2607
2607
  ...u,
@@ -2836,14 +2836,14 @@ var Fh = Te(Wc), Vh = /* @__PURE__ */ xe({
2836
2836
  });
2837
2837
  const c = H({
2838
2838
  get() {
2839
- return rn(a.modelValue) ? [] : a.modelValue?.split(",") || [];
2839
+ return tn(a.modelValue) ? [] : a.modelValue?.split(",") || [];
2840
2840
  },
2841
2841
  set(f) {
2842
- i("update:modelValue", rn(f) ? "" : f.join(","));
2842
+ i("update:modelValue", tn(f) ? "" : f.join(","));
2843
2843
  }
2844
2844
  }), s = (f, u) => {
2845
2845
  c.value = f, i("change", {
2846
- value: rn(f) ? "" : f.join(","),
2846
+ value: tn(f) ? "" : f.join(","),
2847
2847
  data: u
2848
2848
  });
2849
2849
  }, d = H(() => ({
@@ -5474,7 +5474,7 @@ var Wp = class {
5474
5474
  if (!i) return [];
5475
5475
  let de = {};
5476
5476
  P.value.paramList && P.value.paramList.length > 0 && P.value.paramList.forEach((Oe) => {
5477
- !rn(Oe.upId) && !rn(Oe.upKey) && (de[Oe.upKey] = be(Oe.upId));
5477
+ !tn(Oe.upId) && !tn(Oe.upKey) && (de[Oe.upKey] = be(Oe.upId));
5478
5478
  });
5479
5479
  const Ee = Y.fixedFilter || {};
5480
5480
  Object.keys(Ee).forEach((Oe) => {
@@ -5548,7 +5548,7 @@ var Wp = class {
5548
5548
  config: Et
5549
5549
  };
5550
5550
  }
5551
- const { id: Be, name: Ne, label: Oe, valueKey: Fe, width: ut, align: Ut, frozen: sn, hide: Zt, type: vt, ...nn } = Ee, At = { ...nn };
5551
+ const { id: Be, name: Ne, label: Oe, valueKey: Fe, width: ut, align: Ut, frozen: sn, hide: Zt, type: vt, ...an } = Ee, At = { ...an };
5552
5552
  At.dataType !== "options" && vt !== "j-tag" && delete At.options, At.label = Oe ?? Ne ?? Be, Fe != null && (At.valueKey = Fe), ut != null && (At.width = ut), Ut && (At.align = Ut), sn && sn !== "none" && (At.frozen = sn), At.readonly = !0, de && (At.filter = { isSearchKeyword: !0 });
5553
5553
  const zt = {
5554
5554
  id: Be,
@@ -5556,7 +5556,7 @@ var Wp = class {
5556
5556
  };
5557
5557
  return vt && vt !== "text" && (zt.type = vt), zt;
5558
5558
  }).filter((Ee) => Ee.config?.label), Ke = (Y) => Y.map((de) => {
5559
- const { id: Ee, type: Be, label: Ne, dateType: Oe, dateFormat: Fe, dataType: ut, options: Ut, dataCode: sn, labelKey: Zt, valueKey: vt, paramsSetting: nn } = de;
5559
+ const { id: Ee, type: Be, label: Ne, dateType: Oe, dateFormat: Fe, dataType: ut, options: Ut, dataCode: sn, labelKey: Zt, valueKey: vt, paramsSetting: an } = de;
5560
5560
  let At = {
5561
5561
  id: Ee,
5562
5562
  type: Be || "j-input"
@@ -5568,7 +5568,7 @@ var Wp = class {
5568
5568
  else if (["dataItem", "dataView"].includes(ut) && (zt.labelKey = Zt, zt.valueKey = vt, zt.dataCode = sn, ut === "dataView")) {
5569
5569
  zt.dataCode = sn;
5570
5570
  let Et = {};
5571
- nn && nn.length > 0 && (nn.forEach((Tt) => {
5571
+ an && an.length > 0 && (an.forEach((Tt) => {
5572
5572
  Et[Tt.paramId] = Tt.dValue;
5573
5573
  }), zt.params = Et);
5574
5574
  }
@@ -6214,7 +6214,7 @@ var Xp = /* @__PURE__ */ xe({
6214
6214
  width: 0,
6215
6215
  height: 0
6216
6216
  }, fe = ee?.getBodyField?.(U, ne), ye = ee?.options?.columns || [], ue = (fe ? vt(ye, fe) : null)?.style?.textAlign || "left", je = 8, He = Math.max(0, ve.width - je * 2);
6217
- let Me = le ?? W;
6217
+ let Me = tn(le) ? W : le;
6218
6218
  Me == null && (Me = "");
6219
6219
  const et = Ee(typeof Me == "object" ? JSON.stringify(Me) : String(Me), He);
6220
6220
  let qe = je, Pe = "left";
@@ -6295,12 +6295,12 @@ var Xp = /* @__PURE__ */ xe({
6295
6295
  formData: r || {},
6296
6296
  getTableData: jt,
6297
6297
  row: ye
6298
- }) || {}, je = Number(ue.min) || 0, He = Number(ue.max) || 100, Me = Number(W) || 0, et = He - je, qe = et === 0 ? 0 : Math.max(0, Math.min(100, (Me - je) / et * 100)), Pe = 4, Ye = 8, Xe = 8, yt = (ee.height - Pe) / 2, St = String(Me), ze = jn(St) || 0, ht = Ye, at = yt, Ht = ee.width - Ye * 2 - ze - Xe, hn = Ht * qe / 100, _n = [], oa = (on, cn, $t) => {
6299
- const ct = Math.min($t, cn / 2, on / 2);
6300
- return `M ${ct} 0 L ${on - ct} 0 Q ${on} 0 ${on} ${ct} L ${on} ${cn - ct} Q ${on} ${cn} ${on - ct} ${cn} L ${ct} ${cn} Q 0 ${cn} 0 ${cn - ct} L 0 ${ct} Q 0 0 ${ct} 0 Z`;
6301
- }, _t = (on, cn, $t) => {
6302
- const ct = Math.min($t, cn / 2, on / 2);
6303
- return on <= ct * 2 ? oa(on, cn, $t) : `M ${ct} 0 L ${on} 0 L ${on} ${cn} L ${ct} ${cn} Q 0 ${cn} 0 ${cn - ct} L 0 ${ct} Q 0 0 ${ct} 0 Z`;
6298
+ }) || {}, je = Number(ue.min) || 0, He = Number(ue.max) || 100, Me = Number(W) || 0, et = He - je, qe = et === 0 ? 0 : Math.max(0, Math.min(100, (Me - je) / et * 100)), Pe = 4, Ye = 8, Xe = 8, yt = (ee.height - Pe) / 2, St = String(Me), ze = jn(St) || 0, ht = Ye, at = yt, Ht = ee.width - Ye * 2 - ze - Xe, hn = Ht * qe / 100, _n = [], oa = (rn, cn, $t) => {
6299
+ const ct = Math.min($t, cn / 2, rn / 2);
6300
+ return `M ${ct} 0 L ${rn - ct} 0 Q ${rn} 0 ${rn} ${ct} L ${rn} ${cn - ct} Q ${rn} ${cn} ${rn - ct} ${cn} L ${ct} ${cn} Q 0 ${cn} 0 ${cn - ct} L 0 ${ct} Q 0 0 ${ct} 0 Z`;
6301
+ }, _t = (rn, cn, $t) => {
6302
+ const ct = Math.min($t, cn / 2, rn / 2);
6303
+ return rn <= ct * 2 ? oa(rn, cn, $t) : `M ${ct} 0 L ${rn} 0 L ${rn} ${cn} L ${ct} ${cn} Q 0 ${cn} 0 ${cn - ct} L 0 ${ct} Q 0 0 ${ct} 0 Z`;
6304
6304
  }, ia = oa(Ht, Pe, Pe / 2);
6305
6305
  if (_n.push({
6306
6306
  type: "icon",
@@ -6310,10 +6310,10 @@ var Xp = /* @__PURE__ */ xe({
6310
6310
  width: Ht,
6311
6311
  height: Pe
6312
6312
  }), hn > 0) {
6313
- const on = _t(hn, Pe, Pe / 2);
6313
+ const rn = _t(hn, Pe, Pe / 2);
6314
6314
  _n.push({
6315
6315
  type: "icon",
6316
- svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${hn}" height="${Pe}" viewBox="0 0 ${hn} ${Pe}"><path d="${on}" fill="#165dff"/></svg>`,
6316
+ svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${hn}" height="${Pe}" viewBox="0 0 ${hn} ${Pe}"><path d="${rn}" fill="#165dff"/></svg>`,
6317
6317
  x: ht,
6318
6318
  y: at,
6319
6319
  width: hn,
@@ -6455,10 +6455,10 @@ var Xp = /* @__PURE__ */ xe({
6455
6455
  ze !== 0 && ia && (ze = 0, ht = Math.max(0, ee.width - ze * 2), at = Math.max(0, ht - Xe * 2), { lines: _t, needsWrap: ia } = oa());
6456
6456
  const ja = _t.length * Pe + (_t.length > 1 ? (_t.length - 1) * St : 0);
6457
6457
  let Ba = Math.max(0, (ee.height - ja) / 2);
6458
- const on = ia;
6458
+ const rn = ia;
6459
6459
  for (let $t = 0; $t < _t.length; $t++) {
6460
6460
  const ct = _t[$t];
6461
- let Hn = on ? ze : He === "center" ? ze + Math.max(0, (ht - ct.lineWidth) / 2) : He === "right" ? ze + Math.max(0, ht - ct.lineWidth) : ze;
6461
+ let Hn = rn ? ze : He === "center" ? ze + Math.max(0, (ht - ct.lineWidth) / 2) : He === "right" ? ze + Math.max(0, ht - ct.lineWidth) : ze;
6462
6462
  for (let On = 0; On < ct.items.length; On++) {
6463
6463
  const Ln = ct.items[On], { tagWidth: Pa } = _n(Hn, Ba, Ln.label, Ln.bg, Ln.text);
6464
6464
  Hn += Pa + (On < ct.items.length - 1 ? yt : 0);
@@ -6668,7 +6668,7 @@ var Xp = /* @__PURE__ */ xe({
6668
6668
  }
6669
6669
  }
6670
6670
  return null;
6671
- }, nn = (L) => {
6671
+ }, an = (L) => {
6672
6672
  const { table: F, col: W, row: ee } = L, U = F.getBodyField(W, ee), ne = vt(F.options?.columns || [], U);
6673
6673
  if (!ne) return {
6674
6674
  elements: [],
@@ -6753,7 +6753,7 @@ var Xp = /* @__PURE__ */ xe({
6753
6753
  frozen: Ht,
6754
6754
  mergeCell: hn
6755
6755
  }, ia = typeof Me == "function", ja = Jc(ue);
6756
- if ((ja || ia) && (_t.editor = ja || "j-comp-editor", S = !0), ia ? _t.customRender = nn : (ue === "j-switch" && (_t.customRender = De), ue === "j-rate" && (_t.customRender = Rt), ue === "j-slider" && (_t.customRender = Y), (ue === "j-tag" || ue === "j-input-tag") && (_t.customRender = Ne), ue === "j-icon" && (_t.customRender = Be)), ue === "link" && (_t.customLayout = Fe), (ue === "j-layerform" || ue === "j-layer-form") && (_t.customLayout = Ut), ue === "checkbox" && (_t.customLayout = sn), ue === "j-switch" && (_t.minWidth = _t.minWidth || Ye, _t.maxWidth = _t.maxWidth || Ye), qe && (_t.customLayout = Zt), _t.fieldFormat = At, et && et.length > 0) {
6756
+ if ((ja || ia) && (_t.editor = ja || "j-comp-editor", S = !0), ia ? _t.customRender = an : (ue === "j-switch" && (_t.customRender = De), ue === "j-rate" && (_t.customRender = Rt), ue === "j-slider" && (_t.customRender = Y), (ue === "j-tag" || ue === "j-input-tag") && (_t.customRender = Ne), ue === "j-icon" && (_t.customRender = Be)), ue === "link" && (_t.customLayout = Fe), (ue === "j-layerform" || ue === "j-layer-form") && (_t.customLayout = Ut), ue === "checkbox" && (_t.customLayout = sn), ue === "j-switch" && (_t.minWidth = _t.minWidth || Ye, _t.maxWidth = _t.maxWidth || Ye), qe && (_t.customLayout = Zt), _t.fieldFormat = At, et && et.length > 0) {
6757
6757
  const Ba = ee(et, fe, le + 1);
6758
6758
  if (Ba.length === 0) return;
6759
6759
  _t.columns = Ba;
@@ -6837,7 +6837,7 @@ var Xp = /* @__PURE__ */ xe({
6837
6837
  disable: ({ col: F, row: W, table: ee }) => {
6838
6838
  if (W === 0) return !1;
6839
6839
  const U = ee?.getCellOriginRecord?.(F, W);
6840
- return an(U);
6840
+ return on(U);
6841
6841
  },
6842
6842
  headerStyle: { textAlign: "center" },
6843
6843
  style: { textAlign: "center" }
@@ -6922,7 +6922,7 @@ var Xp = /* @__PURE__ */ xe({
6922
6922
  });
6923
6923
  const je = (He) => {
6924
6924
  for (const Me of He)
6925
- if (Me?._compType === "checkbox" || Me?.customRender === nn || Me?.customRender === Ne || Array.isArray(Me?.columns) && je(Me.columns)) return !0;
6925
+ if (Me?._compType === "checkbox" || Me?.customRender === an || Me?.customRender === Ne || Array.isArray(Me?.columns) && je(Me.columns)) return !0;
6926
6926
  return !1;
6927
6927
  };
6928
6928
  return je(ne) && !(o.subColumns && o.subColumns.length > 0) && (U.defaultRowHeight = "auto", U.defaultHeaderRowHeight = 40), {
@@ -7051,7 +7051,7 @@ var Xp = /* @__PURE__ */ xe({
7051
7051
  W !== T ? (T = W, o.subColumns && o.subColumns.length > 0 ? (Ea(), Ra(F)) : wn(F)) : m.setRecords(F);
7052
7052
  }
7053
7053
  if (o.selectStateKey && o.isMultiple) {
7054
- const W = L.filter((ee) => ee[o.selectStateKey] && !an(ee));
7054
+ const W = L.filter((ee) => ee[o.selectStateKey] && !on(ee));
7055
7055
  Gt(W), R.value = W.length, i("selectRecordsChanged", W), i("selectionChanged", {
7056
7056
  isMultiple: !0,
7057
7057
  selections: W,
@@ -7098,7 +7098,7 @@ var Xp = /* @__PURE__ */ xe({
7098
7098
  }
7099
7099
  if (m.stateManager && m.stateManager.checkedState) {
7100
7100
  const L = [], F = /* @__PURE__ */ new Set(), W = (ve) => {
7101
- if (!ve || an(ve)) return;
7101
+ if (!ve || on(ve)) return;
7102
7102
  const fe = Yt(ve);
7103
7103
  if (fe) {
7104
7104
  if (F.has(fe)) return;
@@ -7143,16 +7143,16 @@ var Xp = /* @__PURE__ */ xe({
7143
7143
  ve.forEach((fe) => {
7144
7144
  if (Array.isArray(fe?.children) && fe.children.length > 0) {
7145
7145
  ee(fe.children);
7146
- const ye = fe.children.filter((He) => !an(He)), ue = ye.filter((He) => He?.[W] === !0), je = ye.filter((He) => He?.[W] === !1);
7146
+ const ye = fe.children.filter((He) => !on(He)), ue = ye.filter((He) => He?.[W] === !0), je = ye.filter((He) => He?.[W] === !1);
7147
7147
  ye.length === 0 ? fe[W] = !1 : ue.length == ye.length ? fe[W] = !0 : je.length == ye.length ? fe[W] = !1 : fe[W] = "indeterminate", fe[W] === "indeterminate" && (fe.hierarchyState = "expand");
7148
7148
  } else {
7149
7149
  const ye = F.has(Yt(fe));
7150
- fe[W] = !!(!an(fe) && ye);
7150
+ fe[W] = !!(!on(fe) && ye);
7151
7151
  }
7152
7152
  });
7153
7153
  }, U = m.records;
7154
7154
  o.isTree ? ee(U) : U.forEach((ve) => {
7155
- ve[W] = !an(ve) && F.has(Yt(ve));
7155
+ ve[W] = !on(ve) && F.has(Yt(ve));
7156
7156
  });
7157
7157
  const ne = Kn();
7158
7158
  ne.records = U, m.updateOption(ne, {
@@ -7179,7 +7179,7 @@ var Xp = /* @__PURE__ */ xe({
7179
7179
  }), o.heightMode === "auto" && (x.value = m.getAllRowsHeight()), R.value = 0;
7180
7180
  }, Ma = () => {
7181
7181
  m.renderWithRecreateCells();
7182
- }, Aa = H(() => o.editConfig.isAddBtn && !o.isRowFixed), nt = H(() => o.editConfig.addBtnText || "添加"), Kt = H(() => o.editConfig.isRemoveBtn && !o.isRowFixed), fn = H(() => o.editConfig.readonly), Qt = H(() => o.isMultiple || Kt.value), an = (L) => {
7182
+ }, Aa = H(() => o.editConfig.isAddBtn && !o.isRowFixed), nt = H(() => o.editConfig.addBtnText || "添加"), Kt = H(() => o.editConfig.isRemoveBtn && !o.isRowFixed), fn = H(() => o.editConfig.readonly), Qt = H(() => o.isMultiple || Kt.value), on = (L) => {
7183
7183
  if (!Qt.value || !L || !o.multipleDisabled) return !1;
7184
7184
  try {
7185
7185
  return o.multipleDisabled(L) === !0;
@@ -8422,7 +8422,7 @@ var Xp = /* @__PURE__ */ xe({
8422
8422
  "search"
8423
8423
  ],
8424
8424
  setup(e, { emit: t }) {
8425
- const n = e, a = t, o = D(), i = H(() => rn(n.modelValue) ? [] : n.modelValue?.split(",") || []), r = H(() => n.isStyleLoop ? i.value?.map((f, u) => {
8425
+ const n = e, a = t, o = D(), i = H(() => tn(n.modelValue) ? [] : n.modelValue?.split(",") || []), r = H(() => n.isStyleLoop ? i.value?.map((f, u) => {
8426
8426
  let h = n.colors[u % n.colors.length] || {};
8427
8427
  return h = {
8428
8428
  ...h,
@@ -12755,20 +12755,20 @@ var Xp = /* @__PURE__ */ xe({
12755
12755
  return [...he, ...pe];
12756
12756
  }
12757
12757
  return i.buttons;
12758
- }), sn = H(() => Ut.value.filter((he) => he.config?.display !== !1)), Zt = D(null), vt = D(0), nn = () => {
12758
+ }), sn = H(() => Ut.value.filter((he) => he.config?.display !== !1)), Zt = D(null), vt = D(0), an = () => {
12759
12759
  vt.value = Zt.value?.clientWidth || 0;
12760
12760
  };
12761
12761
  let At;
12762
12762
  Vt(() => {
12763
- Lt(nn), At = new ResizeObserver(() => {
12764
- nn();
12763
+ Lt(an), At = new ResizeObserver(() => {
12764
+ an();
12765
12765
  }), Zt.value && At.observe(Zt.value);
12766
12766
  }), qo(() => {
12767
12767
  At?.disconnect();
12768
12768
  }), rt(() => sn.value, () => {
12769
- Lt(nn);
12769
+ Lt(an);
12770
12770
  }, { deep: !0 }), rt(Ne, () => {
12771
- Lt(nn);
12771
+ Lt(an);
12772
12772
  });
12773
12773
  const zt = H(() => {
12774
12774
  const he = sn.value;
@@ -12777,14 +12777,14 @@ var Xp = /* @__PURE__ */ xe({
12777
12777
  if (pe <= 0) return he;
12778
12778
  const Ve = Math.max(0, pe - 4), Ie = (Kt, fn) => Kt.groupId || `__auto_${fn}`, ge = (Kt) => {
12779
12779
  if (Kt.config?.notLabel === !0 || !Kt.label) return 28;
12780
- const fn = 24, Qt = jn(Kt.label || "") || 0, an = Kt.config?.icon ? 18 : 0;
12781
- return Math.ceil(Qt + fn + an + 2);
12780
+ const fn = 24, Qt = jn(Kt.label || "") || 0, on = Kt.config?.icon ? 18 : 0;
12781
+ return Math.ceil(Qt + fn + on + 2);
12782
12782
  };
12783
12783
  if (((Kt) => {
12784
12784
  let fn = 0, Qt = null;
12785
- return Kt.forEach((an, oo) => {
12786
- const Ao = Ie(an, oo);
12787
- Qt !== null && (fn += Ao === Qt ? -1 : 8), fn += ge(an), Qt = Ao;
12785
+ return Kt.forEach((on, oo) => {
12786
+ const Ao = Ie(on, oo);
12787
+ Qt !== null && (fn += Ao === Qt ? -1 : 8), fn += ge(on), Qt = Ao;
12788
12788
  }), fn;
12789
12789
  })(he) <= Ve) return he;
12790
12790
  const Yt = {
@@ -12799,11 +12799,11 @@ var Xp = /* @__PURE__ */ xe({
12799
12799
  let wn = 0, Ma = null;
12800
12800
  for (let Kt = 0; Kt < he.length; Kt++) {
12801
12801
  const fn = he[Kt], Qt = Ie(fn, Kt);
12802
- let an = wn;
12803
- Ma !== null && (an += Qt === Ma ? -1 : 8), an += ge(fn);
12804
- const oo = he.length - (Kt + 1) > 0 ? (an > 0 ? 8 : 0) + Gt : 0;
12805
- if (an + oo <= Ve)
12806
- mn.push(fn), wn = an, Ma = Qt;
12802
+ let on = wn;
12803
+ Ma !== null && (on += Qt === Ma ? -1 : 8), on += ge(fn);
12804
+ const oo = he.length - (Kt + 1) > 0 ? (on > 0 ? 8 : 0) + Gt : 0;
12805
+ if (on + oo <= Ve)
12806
+ mn.push(fn), wn = on, Ma = Qt;
12807
12807
  else break;
12808
12808
  }
12809
12809
  const Aa = he.slice(mn.length);
@@ -13662,6 +13662,11 @@ var Xp = /* @__PURE__ */ xe({
13662
13662
  props: {
13663
13663
  modelValue: {},
13664
13664
  options: {},
13665
+ lazy: {
13666
+ type: Boolean,
13667
+ default: !1
13668
+ },
13669
+ load: {},
13665
13670
  checkStrictly: {
13666
13671
  type: Boolean,
13667
13672
  default: !0
@@ -13701,7 +13706,10 @@ var Xp = /* @__PURE__ */ xe({
13701
13706
  const n = e, { useData: a } = kt(), { getDataByComp: o } = a(), i = H(() => o ? o({
13702
13707
  type: "j-tree-select",
13703
13708
  config: n
13704
- }) || [] : []), r = H(() => n.options ? n.options : n.dataCode || n.dataType ? i.value : []), l = t, c = H({
13709
+ }) || [] : []), r = H(() => {
13710
+ if (!(n.lazy && n.load))
13711
+ return n.options ? n.options : n.dataCode || n.dataType ? i.value : [];
13712
+ }), l = t, c = H({
13705
13713
  get() {
13706
13714
  return n.modelValue;
13707
13715
  },
@@ -13718,6 +13726,8 @@ var Xp = /* @__PURE__ */ xe({
13718
13726
  "onUpdate:modelValue": f[0] || (f[0] = (h) => c.value = h),
13719
13727
  style: { width: "100%" },
13720
13728
  data: r.value,
13729
+ lazy: e.lazy,
13730
+ load: e.load,
13721
13731
  "check-strictly": e.checkStrictly,
13722
13732
  "render-after-expand": e.renderAfterExpand,
13723
13733
  props: n,
@@ -13729,6 +13739,8 @@ var Xp = /* @__PURE__ */ xe({
13729
13739
  }, null, 8, [
13730
13740
  "modelValue",
13731
13741
  "data",
13742
+ "lazy",
13743
+ "load",
13732
13744
  "check-strictly",
13733
13745
  "render-after-expand",
13734
13746
  "size",
@@ -14128,7 +14140,7 @@ var qc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14128
14140
  const { res: re, fn: se } = jc(G);
14129
14141
  re && await se(Zt(me));
14130
14142
  }
14131
- }, nn = async () => {
14143
+ }, an = async () => {
14132
14144
  a.config?.codeAfterSetData && await Tt(JSON.parse(a.config?.codeAfterSetData), { param: {} });
14133
14145
  }, At = async () => {
14134
14146
  a.config?.codeBeforeSave && await Tt(JSON.parse(a.config?.codeBeforeSave), { param: {} });
@@ -14174,7 +14186,7 @@ var qc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14174
14186
  getLabel: Ut,
14175
14187
  setFormData: ie,
14176
14188
  getFormData: Rt,
14177
- afterSetData: nn,
14189
+ afterSetData: an,
14178
14190
  beforeSave: At,
14179
14191
  afterSave: zt
14180
14192
  }), (G, me) => {
@@ -15401,7 +15413,7 @@ var qc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
15401
15413
  setup(e, { emit: t }) {
15402
15414
  const n = e, a = t, { t: o } = kt(), i = D(), r = D(), l = D(), c = D(""), s = D(0), d = D(0), f = D(""), u = H(() => {
15403
15415
  let m = n.modelValue || "";
15404
- if (n.modelValue === null && (m = J(f)), rn(m)) return {
15416
+ if (n.modelValue === null && (m = J(f)), tn(m)) return {
15405
15417
  address: "",
15406
15418
  lng: 0,
15407
15419
  lat: 0
@@ -15480,7 +15492,7 @@ var qc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
15480
15492
  }
15481
15493
  }]
15482
15494
  }], w = () => {
15483
- !rn(c.value) && !rn(s.value) && !rn(d.value) ? (f.value = `${c.value},${s.value},${d.value}`, a("update:modelValue", f.value), a("change", f.value)) : (a("update:modelValue", void 0), a("change", void 0)), i.value.close();
15495
+ !tn(c.value) && !tn(s.value) && !tn(d.value) ? (f.value = `${c.value},${s.value},${d.value}`, a("update:modelValue", f.value), a("change", f.value)) : (a("update:modelValue", void 0), a("change", void 0)), i.value.close();
15484
15496
  }, y = () => {
15485
15497
  };
15486
15498
  return (m, C) => {
@@ -23603,9 +23615,9 @@ var p1 = {
23603
23615
  const A = j.rule.length;
23604
23616
  for (let E = 0; E < A; E++) {
23605
23617
  const $ = j.rule[E];
23606
- if ($.pattern = $.pattern ? $.pattern + "" : "", $.pattern && !rn(O[j.prop || ""]) && !new RegExp($.pattern.substring(1, $.pattern.length - 1)).test(O[j.prop || ""]))
23618
+ if ($.pattern = $.pattern ? $.pattern + "" : "", $.pattern && !tn(O[j.prop || ""]) && !new RegExp($.pattern.substring(1, $.pattern.length - 1)).test(O[j.prop || ""]))
23607
23619
  return _.info = `${i("第")}${T + 1}${i("行")},${i("第")}${B + 1}${i("列")},${i(j.label)}:${i($.message)}`, _.isOk = !1, _;
23608
- if ($.required && rn(O[j.prop || ""]))
23620
+ if ($.required && tn(O[j.prop || ""]))
23609
23621
  return _.isOk = !1, _.info = `${i("第")}${T + 1}${i("行")},${i("第")}${B + 1}${i("列")},${i(j.label)}:${i("不能为空")}`, _;
23610
23622
  }
23611
23623
  }
@@ -24070,7 +24082,7 @@ export {
24070
24082
  Eh as EncryptionFactory,
24071
24083
  Fc as EventBus,
24072
24084
  CS as HashingFactory,
24073
- tn as INJECT_KEYS,
24085
+ nn as INJECT_KEYS,
24074
24086
  kp as JAutoComplete,
24075
24087
  bv as JBarcode,
24076
24088
  Uf as JButton,
@@ -24161,7 +24173,7 @@ export {
24161
24173
  jn as getTextWidth,
24162
24174
  Df as is,
24163
24175
  Br as isArray,
24164
- rn as isNullOrEmpty,
24176
+ tn as isNullOrEmpty,
24165
24177
  gS as isObject,
24166
24178
  Mh as loadBMap,
24167
24179
  mS as lowerFirst,