@a2simcode/ui 0.0.123 → 0.0.124

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.
@@ -4514,19 +4514,19 @@ var Qh = class {
4514
4514
  "j-tree-select",
4515
4515
  "j-checkbox"
4516
4516
  ].includes(n.type)) {
4517
- const D = { ...n.config || {} };
4518
- return !(n.type === "j-select" && !D.multiple || n.type === "j-tree-select" && !D.multiple);
4517
+ const $ = { ...n.config || {} };
4518
+ return !(n.type === "j-select" && !$.multiple || n.type === "j-tree-select" && !$.multiple);
4519
4519
  }
4520
4520
  return !1;
4521
4521
  }), R = j({
4522
4522
  get() {
4523
- let D;
4524
- if (x ? D = x[n.id] : c ? D = c[n.id] : D = n.modelValue, D === void 0 && C.value === "j-tabs") {
4523
+ let $;
4524
+ if (x ? $ = x[n.id] : c ? $ = c[n.id] : $ = n.modelValue, $ === void 0 && C.value === "j-tabs") {
4525
4525
  if (y.value?.defaultValue) return y.value.defaultValue;
4526
4526
  const te = n.children.findIndex((ge) => ge.config?.active);
4527
4527
  return te > -1 ? "_tab" + te : "_tab0";
4528
4528
  }
4529
- if (D === void 0 && C.value === "j-collapse") {
4529
+ if ($ === void 0 && C.value === "j-collapse") {
4530
4530
  if (y.value?.defaultValue) return y.value.defaultValue;
4531
4531
  const te = n.children.map((ge, Re) => ({
4532
4532
  item: ge,
@@ -4534,10 +4534,10 @@ var Qh = class {
4534
4534
  })).filter(({ item: ge }) => ge.config?.active);
4535
4535
  return y.value?.accordion ? te.length > 0 ? "_collapse" + te[0].index : "" : te.map(({ index: ge }) => "_collapse" + ge);
4536
4536
  }
4537
- return w.value ? D ? D.split(",") : [] : D;
4537
+ return w.value ? $ ? $.split(",") : [] : $;
4538
4538
  },
4539
- set(D) {
4540
- D && w.value && (D = String(D || [])), x ? x[n.id] = D : c && (c[n.id] = D), a("update:modelValue", D);
4539
+ set($) {
4540
+ $ && w.value && ($ = String($ || [])), x ? x[n.id] = $ : c && (c[n.id] = $), console.log("comp.value", $), a("update:modelValue", $);
4541
4541
  }
4542
4542
  }), y = j(() => wn({
4543
4543
  config: n.config,
@@ -4552,46 +4552,46 @@ var Qh = class {
4552
4552
  formData: c || {},
4553
4553
  row: x,
4554
4554
  getTableData: g
4555
- })), C = j(() => n.isTableCell && (k.value === "j-radio" || k.value === "j-checkbox") ? "j-select" : k.value === "j-textarea" ? "j-input" : ((k.value == null || k.value === "") && console.warn("组件类型不能为空"), k.value)), E = (D) => r(D, n.config || {}), M = (D, te) => {
4556
- if (Object.prototype.hasOwnProperty.call(te, D)) return te[D];
4557
- if (te.parentRow) return M(D, te.parentRow);
4558
- const ge = u[D];
4555
+ })), C = j(() => n.isTableCell && (k.value === "j-radio" || k.value === "j-checkbox") ? "j-select" : k.value === "j-textarea" ? "j-input" : ((k.value == null || k.value === "") && console.warn("组件类型不能为空"), k.value)), E = ($) => r($, n.config || {}), M = ($, te) => {
4556
+ if (Object.prototype.hasOwnProperty.call(te, $)) return te[$];
4557
+ if (te.parentRow) return M($, te.parentRow);
4558
+ const ge = u[$];
4559
4559
  if (ge && ge.config?.field) return M(ge.config?.field, te);
4560
- }, A = (D) => {
4561
- if (D)
4562
- return c && Object.prototype.hasOwnProperty.call(c, D) ? c[D] : M(D, n.config?.row || {});
4563
- }, Y = async (D) => {
4560
+ }, A = ($) => {
4561
+ if ($)
4562
+ return c && Object.prototype.hasOwnProperty.call(c, $) ? c[$] : M($, n.config?.row || {});
4563
+ }, Y = async ($) => {
4564
4564
  let te = null;
4565
4565
  const ge = n.config?.dataCode, Re = n.config?.dataType;
4566
4566
  if (!ge) return;
4567
4567
  const ne = on(n.config?.params) || {};
4568
4568
  if (Re === "dataItem" && i)
4569
- await i("dataItem", ge, void 0, !1), te = l("dataItem", ge) || [], D.ids && (te = te.filter((ke) => D.ids.split(",").includes(ke[V.value.valueKey])));
4569
+ await i("dataItem", ge, void 0, !1), te = l("dataItem", ge) || [], $.ids && (te = te.filter((ke) => $.ids.split(",").includes(ke[V.value.valueKey])));
4570
4570
  else if (n.config?.upCtrl) {
4571
4571
  const ke = A(n.config?.upCtrl);
4572
4572
  ne[n.config?.upKey || "param"] = ke;
4573
4573
  }
4574
4574
  return Re === "dataSource" ? (n.config?.layerSearchInputList?.length > 0 && n.config?.layerSearchInputList.forEach((ke) => {
4575
- Gt(D[ke.id]) || (ne[ke.id] = D[ke.id]);
4575
+ Gt($[ke.id]) || (ne[ke.id] = $[ke.id]);
4576
4576
  }), n.config?.paramList?.length > 0 && n.config?.paramList.forEach((ke) => {
4577
4577
  !Gt(ke.upId) && !Gt(ke.upKey) && (ne[ke.upKey] = A(ke.upId));
4578
- })) : Re === "dataItem" && n.config?.isKeyword && D.layerKeyword && (te = te.filter((ke) => !!(ke.f_ItemValue.toLowerCase().includes(D.layerKeyword.toLowerCase()) || ke.f_ItemName.toLowerCase().includes(D.layerKeyword.toLowerCase())))), D.param = JSON.stringify(ne), n.config?.isPage ? Re === "dataItem" ? te = vf(D, te) : (await i("dbsourcePages", ge, JSON.stringify(D), !1), te = l("dbsourcePages", ge, { param: JSON.stringify(D) })) : Re === "dataSource" && (await i("dbsource", ge, JSON.stringify(ne), !1), te = l("dbsource", ge, { param: JSON.stringify(ne) })), te;
4578
+ })) : Re === "dataItem" && n.config?.isKeyword && $.layerKeyword && (te = te.filter((ke) => !!(ke.f_ItemValue.toLowerCase().includes($.layerKeyword.toLowerCase()) || ke.f_ItemName.toLowerCase().includes($.layerKeyword.toLowerCase())))), $.param = JSON.stringify(ne), n.config?.isPage ? Re === "dataItem" ? te = vf($, te) : (await i("dbsourcePages", ge, JSON.stringify($), !1), te = l("dbsourcePages", ge, { param: JSON.stringify($) })) : Re === "dataSource" && (await i("dbsource", ge, JSON.stringify(ne), !1), te = l("dbsource", ge, { param: JSON.stringify(ne) })), te;
4579
4579
  }, V = j(() => {
4580
- const D = { ...y.value };
4581
- return C.value === "j-layer-form" && (D.schema = n.children), C.value === "el-collapse-item" && D.label && (D.title = D.label, delete D.label), [
4580
+ const $ = { ...y.value };
4581
+ return C.value === "j-layer-form" && ($.schema = n.children), C.value === "el-collapse-item" && $.label && ($.title = $.label, delete $.label), [
4582
4582
  "j-input-cards",
4583
4583
  "j-input-rows",
4584
4584
  "j-table"
4585
- ].includes(k.value) && (console.log(n.children), D.columns = n.children.map((te) => {
4585
+ ].includes(k.value) && (console.log(n.children), $.columns = n.children.map((te) => {
4586
4586
  const ge = te.config?.parentTableId;
4587
4587
  return ge && te.id && te.id.startsWith(ge + ".") ? {
4588
4588
  ...te,
4589
4589
  id: te.id.slice(ge.length + 1)
4590
4590
  } : te;
4591
- })), n.isTableCell && (k.value === "j-checkbox" && (D.multiple = !0), k.value === "j-select" && D.multiple && (D.collapseTags = !0, D.collapseTagsTooltip = !0), k.value === "j-switch" && (D.size = "small"), k.value === "j-textarea" && (D.type = "textarea")), ["j-button-layer", "j-input-layer"].includes(n.type) && (D.loadLayerData = Y, D.getText = E), D;
4591
+ })), n.isTableCell && (k.value === "j-checkbox" && ($.multiple = !0), k.value === "j-select" && $.multiple && ($.collapseTags = !0, $.collapseTagsTooltip = !0), k.value === "j-switch" && ($.size = "small"), k.value === "j-textarea" && ($.type = "textarea")), ["j-button-layer", "j-input-layer"].includes(n.type) && ($.loadLayerData = Y, $.getText = E), $;
4592
4592
  }), U = j(() => {
4593
4593
  if (C.value === "j-layer-form" || C.value === "j-input-rows" || C.value === "j-input-cards") return {};
4594
- const D = {};
4594
+ const $ = {};
4595
4595
  return n.children.forEach((te, ge) => {
4596
4596
  let Re = te;
4597
4597
  C.value === "j-tabs" && (Re = {
@@ -4608,11 +4608,11 @@ var Qh = class {
4608
4608
  ...te.config || {},
4609
4609
  name: "_collapse" + ge
4610
4610
  }
4611
- }, s == "form" && (Re.config.needRow = Re.config.needRow !== !1, Re.config.needFormItem = Re.config.needFormItem !== !1)), Re.slot ? (D[Re.slot] = D[Re.slot] || [], D[Re.slot].push(Re)) : (D.default = D.default || [], D.default.push(Re));
4612
- }), D;
4613
- }), T = (D) => {
4611
+ }, s == "form" && (Re.config.needRow = Re.config.needRow !== !1, Re.config.needFormItem = Re.config.needFormItem !== !1)), Re.slot ? ($[Re.slot] = $[Re.slot] || [], $[Re.slot].push(Re)) : ($.default = $.default || [], $.default.push(Re));
4612
+ }), $;
4613
+ }), T = ($) => {
4614
4614
  const te = {
4615
- ...D,
4615
+ ...$,
4616
4616
  id: n.id,
4617
4617
  formData: c,
4618
4618
  row: x,
@@ -4623,21 +4623,21 @@ var Qh = class {
4623
4623
  rowNum: n.rowNum
4624
4624
  };
4625
4625
  y.value?.change && y.value?.change(te), b && b(te), f && f(te), a("change", te);
4626
- }, S = P(), F = P([]), J = (D, ...te) => {
4627
- if (S.value && typeof S.value[D] == "function") return S.value[D](...te);
4628
- console.warn(`方法 ${D} 不存在或不是函数`);
4626
+ }, S = P(), F = P([]), J = ($, ...te) => {
4627
+ if (S.value && typeof S.value[$] == "function") return S.value[$](...te);
4628
+ console.warn(`方法 ${$} 不存在或不是函数`);
4629
4629
  }, ue = () => {
4630
4630
  if (F.value.forEach((te) => te()), F.value = [], !p) return;
4631
- const D = p(n.id, J);
4632
- F.value.push(D);
4631
+ const $ = p(n.id, J);
4632
+ F.value.push($);
4633
4633
  };
4634
4634
  return at(() => S.value, () => {
4635
4635
  ue();
4636
4636
  }), Ct(() => {
4637
4637
  ue();
4638
4638
  }), bo(() => {
4639
- F.value.forEach((D) => D()), F.value = [];
4640
- }), (D, te) => {
4639
+ F.value.forEach(($) => $()), F.value = [];
4640
+ }), ($, te) => {
4641
4641
  const ge = B("JComp"), Re = B("el-row");
4642
4642
  return V.value.display != !1 && m.value ? (_(), I(Ha(C.value), We({
4643
4643
  key: 0,
@@ -4929,10 +4929,10 @@ var lp = { class: "j-table-footer" }, rp = {
4929
4929
  let R = o.records.length, y = 45;
4930
4930
  const k = P(!1), C = P({}), E = P([]), M = P(null), A = P(0);
4931
4931
  let Y = null, V = !1, U = !1;
4932
- const T = (H, L, W, ee, $) => {
4932
+ const T = (H, L, W, ee, D) => {
4933
4933
  E.value = H, M.value = L, A.value = W, C.value = {
4934
4934
  left: `${ee}px`,
4935
- top: `${$}px`
4935
+ top: `${D}px`
4936
4936
  }, k.value = !0, V = !1, document.addEventListener("wheel", te, { passive: !1 });
4937
4937
  }, S = () => {
4938
4938
  k.value = !1, V = !1, U = !1, J(), document.removeEventListener("wheel", te);
@@ -4944,7 +4944,7 @@ var lp = { class: "j-table-footer" }, rp = {
4944
4944
  Y && (clearTimeout(Y), Y = null);
4945
4945
  }, ue = () => {
4946
4946
  V = !0, J();
4947
- }, D = () => {
4947
+ }, $ = () => {
4948
4948
  V = !1, F();
4949
4949
  }, te = (H) => {
4950
4950
  H.preventDefault();
@@ -4957,8 +4957,8 @@ var lp = { class: "j-table-footer" }, rp = {
4957
4957
  let L = H.action.config?.display !== !1, W = H.action.config?.disabled === !0;
4958
4958
  const ee = o.actionFilter;
4959
4959
  if (ee) try {
4960
- const $ = ee(H);
4961
- typeof $ == "boolean" ? L = $ : $ && typeof $ == "object" && (typeof $.display == "boolean" && (L = $.display), typeof $.disabled == "boolean" && (W = $.disabled));
4960
+ const D = ee(H);
4961
+ typeof D == "boolean" ? L = D : D && typeof D == "object" && (typeof D.display == "boolean" && (L = D.display), typeof D.disabled == "boolean" && (W = D.disabled));
4962
4962
  } catch {
4963
4963
  L = H.action.config?.display !== !1, W = H.action.config?.disabled === !0;
4964
4964
  }
@@ -4973,7 +4973,7 @@ var lp = { class: "j-table-footer" }, rp = {
4973
4973
  disabled: !0
4974
4974
  }
4975
4975
  } : H, ke = (H) => {
4976
- const { Group: L, Text: W } = Ve.CustomLayout, ee = o.actionsMaxCount, $ = H.filter((re) => re.config?.display !== !1), Z = $.length > ee, ie = Z ? $.slice(0, ee - 1) : $;
4976
+ const { Group: L, Text: W } = Ve.CustomLayout, ee = o.actionsMaxCount, D = H.filter((re) => re.config?.display !== !1), Z = D.length > ee, ie = Z ? D.slice(0, ee - 1) : D;
4977
4977
  let de = 0;
4978
4978
  if (ie.forEach((re, ye) => {
4979
4979
  const we = fn(re.config?.label || re.label || "") || 0;
@@ -4992,7 +4992,7 @@ var lp = { class: "j-table-footer" }, rp = {
4992
4992
  disableColumnResize: !0,
4993
4993
  disableSelect: !0,
4994
4994
  customLayout: (re) => {
4995
- const { table: ye, row: we, col: Me } = re, Ce = ye.getCellOriginRecord(Me, we), Ge = ye.getRecordIndexByCell(Me, we), Be = $.map((pe) => {
4995
+ const { table: ye, row: we, col: Me } = re, Ce = ye.getCellOriginRecord(Me, we), Ge = ye.getRecordIndexByCell(Me, we), Be = D.map((pe) => {
4996
4996
  const st = Re({
4997
4997
  action: pe,
4998
4998
  record: Ce,
@@ -5064,10 +5064,10 @@ var lp = { class: "j-table-footer" }, rp = {
5064
5064
  }
5065
5065
  };
5066
5066
  }, ze = (H, L) => {
5067
- const { dataValue: W, table: ee, col: $, row: Z, value: ie } = H, de = H.rect ?? ee?.getCellRect?.($, Z) ?? {
5067
+ const { dataValue: W, table: ee, col: D, row: Z, value: ie } = H, de = H.rect ?? ee?.getCellRect?.(D, Z) ?? {
5068
5068
  width: 0,
5069
5069
  height: 0
5070
- }, ce = ee?.getBodyField?.($, Z), re = ee?.options?.columns || [], ye = (ce ? Ht(re, ce) : null)?.style?.textAlign || "left", we = 8, Me = Math.max(0, de.width - we * 2);
5070
+ }, ce = ee?.getBodyField?.(D, Z), re = ee?.options?.columns || [], ye = (ce ? Ht(re, ce) : null)?.style?.textAlign || "left", we = 8, Me = Math.max(0, de.width - we * 2);
5071
5071
  let Ce = ie ?? W;
5072
5072
  Ce == null && (Ce = "");
5073
5073
  const Ge = Ee(typeof Ce == "object" ? JSON.stringify(Ce) : String(Ce), Me);
@@ -5086,10 +5086,10 @@ var lp = { class: "j-table-footer" }, rp = {
5086
5086
  expectedHeight: un
5087
5087
  };
5088
5088
  }, He = (H, L) => {
5089
- const { dataValue: W, rect: ee, table: $, col: Z, row: ie } = H;
5089
+ const { dataValue: W, rect: ee, table: D, col: Z, row: ie } = H;
5090
5090
  let de = "mdi:toggle-switch", ce = "#165dff";
5091
5091
  W || (de = "mdi:toggle-switch-off", ce = "#e5e6eb");
5092
- const re = da(de), ye = re?.body?.replace(/currentColor/g, ce), we = [], Me = $?.getBodyField?.(Z, ie), Ce = $?.options?.columns || [], Ge = Me ? Ht(Ce, Me) : null, Be = 8, Se = 40;
5092
+ const re = da(de), ye = re?.body?.replace(/currentColor/g, ce), we = [], Me = D?.getBodyField?.(Z, ie), Ce = D?.options?.columns || [], Ge = Me ? Ht(Ce, Me) : null, Be = 8, Se = 40;
5093
5093
  let Je = Be;
5094
5094
  return Ge?.style?.textAlign === "center" ? Je = Math.max(Be, (ee.width - Se) / 2) : Ge?.style?.textAlign === "right" && (Je = Math.max(Be, ee.width - Se - Be)), we.push({
5095
5095
  type: "icon",
@@ -5103,10 +5103,10 @@ var lp = { class: "j-table-footer" }, rp = {
5103
5103
  expectedHeight: un
5104
5104
  };
5105
5105
  }, Qe = (H, L) => {
5106
- const { dataValue: W, rect: ee } = H, $ = Number(W) || 0, Z = 5, ie = 20, de = 4, ce = 8, re = (ee.height - ie) / 2, ye = [], we = da("mdi:star"), Me = da("mdi:star-half-full"), Ce = da("mdi:star-outline"), Ge = "#f7ba2a", Be = "#e5e6eb";
5106
+ const { dataValue: W, rect: ee } = H, D = Number(W) || 0, Z = 5, ie = 20, de = 4, ce = 8, re = (ee.height - ie) / 2, ye = [], we = da("mdi:star"), Me = da("mdi:star-half-full"), Ce = da("mdi:star-outline"), Ge = "#f7ba2a", Be = "#e5e6eb";
5107
5107
  for (let Se = 0; Se < Z; Se++) {
5108
5108
  const Je = ce + Se * (ie + de), Xe = re;
5109
- if ($ >= Se + 1) {
5109
+ if (D >= Se + 1) {
5110
5110
  const rt = we?.body?.replace(/currentColor/g, Ge);
5111
5111
  ye.push({
5112
5112
  type: "icon",
@@ -5116,7 +5116,7 @@ var lp = { class: "j-table-footer" }, rp = {
5116
5116
  width: ie,
5117
5117
  height: ie
5118
5118
  });
5119
- } else if ($ > Se && $ < Se + 1) {
5119
+ } else if (D > Se && D < Se + 1) {
5120
5120
  const rt = Me?.body?.replace(/currentColor/g, Ge);
5121
5121
  ye.push({
5122
5122
  type: "icon",
@@ -5143,7 +5143,7 @@ var lp = { class: "j-table-footer" }, rp = {
5143
5143
  expectedHeight: un
5144
5144
  };
5145
5145
  }, ct = (H, L) => {
5146
- const { dataValue: W, rect: ee, table: $, col: Z, row: ie } = H, de = $.getBodyField(Z, ie), ce = Ht($.options?.columns || [], de), re = $.getCellOriginRecord?.(Z, ie) || $.getRecordByCell?.(Z, ie) || {}, ye = L || wn({
5146
+ const { dataValue: W, rect: ee, table: D, col: Z, row: ie } = H, de = D.getBodyField(Z, ie), ce = Ht(D.options?.columns || [], de), re = D.getCellOriginRecord?.(Z, ie) || D.getRecordByCell?.(Z, ie) || {}, ye = L || wn({
5147
5147
  config: ce?._compConfig,
5148
5148
  getCompConfig: ce?._getCompConfig,
5149
5149
  formData: l || {},
@@ -5193,19 +5193,19 @@ var lp = { class: "j-table-footer" }, rp = {
5193
5193
  if ((fn(H) || 0) <= L) return H;
5194
5194
  const W = "...", ee = fn(W) || 0;
5195
5195
  if (ee >= L) return "";
5196
- let $ = 0, Z = H.length;
5197
- for (; $ < Z; ) {
5198
- const ie = Math.ceil(($ + Z) / 2);
5199
- (fn(H.slice(0, ie)) || 0) + ee <= L ? $ = ie : Z = ie - 1;
5196
+ let D = 0, Z = H.length;
5197
+ for (; D < Z; ) {
5198
+ const ie = Math.ceil((D + Z) / 2);
5199
+ (fn(H.slice(0, ie)) || 0) + ee <= L ? D = ie : Z = ie - 1;
5200
5200
  }
5201
- return H.slice(0, $) + W;
5201
+ return H.slice(0, D) + W;
5202
5202
  }, $e = (H, L) => {
5203
- const { value: W, rect: ee, table: $, col: Z, row: ie } = H;
5203
+ const { value: W, rect: ee, table: D, col: Z, row: ie } = H;
5204
5204
  if (!W) return {
5205
5205
  elements: [],
5206
5206
  expectedHeight: un
5207
5207
  };
5208
- const de = $.getBodyField(Z, ie), ce = Ht($.options?.columns || [], de), re = $.getCellOriginRecord?.(Z, ie) || $.getRecordByCell?.(Z, ie) || {}, ye = L || wn({
5208
+ const de = D.getBodyField(Z, ie), ce = Ht(D.options?.columns || [], de), re = D.getCellOriginRecord?.(Z, ie) || D.getRecordByCell?.(Z, ie) || {}, ye = L || wn({
5209
5209
  config: ce?._compConfig,
5210
5210
  getCompConfig: ce?._getCompConfig,
5211
5211
  formData: l || {},
@@ -5247,7 +5247,7 @@ var lp = { class: "j-table-footer" }, rp = {
5247
5247
  expectedHeight: Math.max(un, we)
5248
5248
  };
5249
5249
  }, Ye = (H, L) => {
5250
- const { dataValue: W, rect: ee, table: $, col: Z, row: ie, value: de } = H, ce = $.getBodyField(Z, ie), re = Ht($.options?.columns || [], ce), ye = $.getCellOriginRecord?.(Z, ie) || $.getRecordByCell?.(Z, ie) || {}, we = L || wn({
5250
+ const { dataValue: W, rect: ee, table: D, col: Z, row: ie, value: de } = H, ce = D.getBodyField(Z, ie), re = Ht(D.options?.columns || [], ce), ye = D.getCellOriginRecord?.(Z, ie) || D.getRecordByCell?.(Z, ie) || {}, we = L || wn({
5251
5251
  config: re?._compConfig,
5252
5252
  getCompConfig: re?._getCompConfig,
5253
5253
  formData: l || {},
@@ -5322,23 +5322,23 @@ var lp = { class: "j-table-footer" }, rp = {
5322
5322
  };
5323
5323
  }, zt = (H) => {
5324
5324
  if (!H) return "#1d2129";
5325
- H = H.replace("#", ""), H.length === 3 && (H = H.split("").map(($) => $ + $).join(""));
5325
+ H = H.replace("#", ""), H.length === 3 && (H = H.split("").map((D) => D + D).join(""));
5326
5326
  const L = parseInt(H.substring(0, 2), 16), W = parseInt(H.substring(2, 4), 16), ee = parseInt(H.substring(4, 6), 16);
5327
5327
  if ((L * 299 + W * 587 + ee * 114) / 1e3 >= 128) {
5328
- const $ = L / 255, Z = W / 255, ie = ee / 255, de = Math.max($, Z, ie), ce = Math.min($, Z, ie);
5328
+ const D = L / 255, Z = W / 255, ie = ee / 255, de = Math.max(D, Z, ie), ce = Math.min(D, Z, ie);
5329
5329
  let re = 0, ye = 0;
5330
5330
  const we = (de + ce) / 2;
5331
5331
  if (de !== ce) {
5332
5332
  const Xe = de - ce;
5333
5333
  switch (ye = we > 0.5 ? Xe / (2 - de - ce) : Xe / (de + ce), de) {
5334
- case $:
5334
+ case D:
5335
5335
  re = (Z - ie) / Xe + (Z < ie ? 6 : 0);
5336
5336
  break;
5337
5337
  case Z:
5338
- re = (ie - $) / Xe + 2;
5338
+ re = (ie - D) / Xe + 2;
5339
5339
  break;
5340
5340
  case ie:
5341
- re = ($ - Z) / Xe + 4;
5341
+ re = (D - Z) / Xe + 4;
5342
5342
  break;
5343
5343
  }
5344
5344
  re /= 6;
@@ -5355,9 +5355,9 @@ var lp = { class: "j-table-footer" }, rp = {
5355
5355
  }
5356
5356
  return "#ffffff";
5357
5357
  }, Vt = (H) => {
5358
- const { table: L, row: W, col: ee, rect: $, value: Z } = H, { Group: ie, Text: de } = Ve.CustomLayout, ce = L.getBodyField(ee, W), re = Ht(L.options?.columns || [], ce), ye = re?._compConfig || {}, we = new ie({
5359
- height: $.height,
5360
- width: $.width,
5358
+ const { table: L, row: W, col: ee, rect: D, value: Z } = H, { Group: ie, Text: de } = Ve.CustomLayout, ce = L.getBodyField(ee, W), re = Ht(L.options?.columns || [], ce), ye = re?._compConfig || {}, we = new ie({
5359
+ height: D.height,
5360
+ width: D.width,
5361
5361
  display: "flex",
5362
5362
  alignItems: "center",
5363
5363
  justifyContent: re.style?.textAlign === "center" ? "center" : re.style?.textAlign === "right" ? "flex-end" : "flex-start"
@@ -5391,7 +5391,7 @@ var lp = { class: "j-table-footer" }, rp = {
5391
5391
  renderDefault: !1
5392
5392
  };
5393
5393
  }, it = (H) => {
5394
- const { table: L, row: W, col: ee, rect: $ } = H, { height: Z, width: ie } = $ ?? L.getCellRect(ee, W), { Group: de, CheckBox: ce } = Ve.CustomLayout, re = L.getBodyField(ee, W), ye = Ht(L.options?.columns || [], re), we = L.getCellOriginRecord(ee, W) || {}, Me = ye?.style?.textAlign === "right" ? "flex-end" : ye?.style?.textAlign === "center" ? "center" : "flex-start", Ce = ye?.style?.textAlign === "right" ? "flex-end" : ye?.style?.textAlign === "center" ? "center" : "flex-start", Ge = (qe, pe) => {
5394
+ const { table: L, row: W, col: ee, rect: D } = H, { height: Z, width: ie } = D ?? L.getCellRect(ee, W), { Group: de, CheckBox: ce } = Ve.CustomLayout, re = L.getBodyField(ee, W), ye = Ht(L.options?.columns || [], re), we = L.getCellOriginRecord(ee, W) || {}, Me = ye?.style?.textAlign === "right" ? "flex-end" : ye?.style?.textAlign === "center" ? "center" : "flex-start", Ce = ye?.style?.textAlign === "right" ? "flex-end" : ye?.style?.textAlign === "center" ? "center" : "flex-start", Ge = (qe, pe) => {
5395
5395
  const st = we?.[re];
5396
5396
  we[re] = (Array.isArray(st) ? st : []).map((De, jt) => jt !== qe ? De : De && typeof De == "object" ? {
5397
5397
  ...De,
@@ -5453,7 +5453,7 @@ var lp = { class: "j-table-footer" }, rp = {
5453
5453
  renderDefault: !1
5454
5454
  };
5455
5455
  }, aa = (H) => {
5456
- const { table: L, row: W, col: ee } = H, $ = L.getBodyField(ee, W), Z = Ht(L.options?.columns || [], $), ie = Z?._compConfig || {};
5456
+ const { table: L, row: W, col: ee } = H, D = L.getBodyField(ee, W), Z = Ht(L.options?.columns || [], D), ie = Z?._compConfig || {};
5457
5457
  if (Z?._customLayout) return Z._customLayout({
5458
5458
  ...H,
5459
5459
  config: ie,
@@ -5469,7 +5469,7 @@ var lp = { class: "j-table-footer" }, rp = {
5469
5469
  }
5470
5470
  return null;
5471
5471
  }, Zt = (H) => {
5472
- const { table: L, col: W, row: ee } = H, $ = L.getBodyField(W, ee), Z = Ht(L.options?.columns || [], $);
5472
+ const { table: L, col: W, row: ee } = H, D = L.getBodyField(W, ee), Z = Ht(L.options?.columns || [], D);
5473
5473
  if (!Z) return {
5474
5474
  elements: [],
5475
5475
  expectedHeight: un
@@ -5503,13 +5503,13 @@ var lp = { class: "j-table-footer" }, rp = {
5503
5503
  expectedHeight: un
5504
5504
  };
5505
5505
  }, q = (H, L, W, ee) => {
5506
- const $ = ee.getBodyField(L, W), Z = Ht(ee.options?.columns || [], $);
5506
+ const D = ee.getBodyField(L, W), Z = Ht(ee.options?.columns || [], D);
5507
5507
  if (Z._fieldFormat) return Z._fieldFormat(H, L, W, ee);
5508
5508
  if (Z._compType === "dateTime") {
5509
5509
  const ie = Z._compConfig?.format || "YYYY-MM-DD HH:mm:ss";
5510
- return Dl(H[$], ie);
5510
+ return Dl(H[D], ie);
5511
5511
  }
5512
- return kf(H[$], s, {
5512
+ return kf(H[D], s, {
5513
5513
  type: Z._compType,
5514
5514
  getCompType: Z._getCompType,
5515
5515
  getCompConfig: Z._getCompConfig,
@@ -5520,7 +5520,7 @@ var lp = { class: "j-table-footer" }, rp = {
5520
5520
  });
5521
5521
  }, he = (H) => {
5522
5522
  const L = H.filter((W) => W.config?.display !== !1).map((W) => {
5523
- const { id: ee, type: $, config: Z, getCompConfig: ie, getCompType: de, children: ce, customLayout: re } = W, { label: ye, width: we, minWidth: Me, maxWidth: Ce, align: Ge, headerAlign: Be, fieldFormat: Se, editor: Je, frozen: Xe, ...rt } = Z || {}, qe = Be ?? Ge, pe = {
5523
+ const { id: ee, type: D, config: Z, getCompConfig: ie, getCompType: de, children: ce, customLayout: re } = W, { label: ye, width: we, minWidth: Me, maxWidth: Ce, align: Ge, headerAlign: Be, fieldFormat: Se, editor: Je, frozen: Xe, ...rt } = Z || {}, qe = Be ?? Ge, pe = {
5524
5524
  field: ee,
5525
5525
  title: ye,
5526
5526
  width: we,
@@ -5530,29 +5530,29 @@ var lp = { class: "j-table-footer" }, rp = {
5530
5530
  style: { textAlign: Ge },
5531
5531
  _customLayout: re,
5532
5532
  _fieldFormat: Se,
5533
- _compType: $,
5533
+ _compType: D,
5534
5534
  _compConfig: { ...rt },
5535
5535
  _getCompConfig: ie,
5536
5536
  _getCompType: de,
5537
5537
  frozen: Xe
5538
- }, st = typeof de == "function", De = _c($);
5539
- return (De || st) && (pe.editor = De, m = !0), st ? pe.customRender = Zt : ($ === "j-switch" && (pe.customRender = He), $ === "j-rate" && (pe.customRender = Qe), $ === "j-slider" && (pe.customRender = ct), ($ === "j-tag" || $ === "j-input-tag") && (pe.customRender = Ye), $ === "j-icon" && (pe.customRender = $e)), $ === "link" && (pe.customLayout = Vt), $ === "checkbox" && (pe.customLayout = it), $ === "j-switch" && (pe.minWidth = pe.minWidth || we, pe.maxWidth = pe.maxWidth || we), re && (pe.customLayout = aa), pe.fieldFormat = q, ce && ce.length > 0 && (pe.columns = he(ce)), pe;
5538
+ }, st = typeof de == "function", De = _c(D);
5539
+ return (De || st) && (pe.editor = De, m = !0), st ? pe.customRender = Zt : (D === "j-switch" && (pe.customRender = He), D === "j-rate" && (pe.customRender = Qe), D === "j-slider" && (pe.customRender = ct), (D === "j-tag" || D === "j-input-tag") && (pe.customRender = Ye), D === "j-icon" && (pe.customRender = $e)), D === "link" && (pe.customLayout = Vt), D === "checkbox" && (pe.customLayout = it), D === "j-switch" && (pe.minWidth = pe.minWidth || we, pe.maxWidth = pe.maxWidth || we), re && (pe.customLayout = aa), pe.fieldFormat = q, ce && ce.length > 0 && (pe.columns = he(ce)), pe;
5540
5540
  });
5541
5541
  return o.isTree && L.length > 0 && (L[0].tree = !0), L;
5542
5542
  }, Q = (H, L) => {
5543
- const W = H.replace("#", ""), ee = parseInt(W, 16), $ = Math.min(255, Math.max(0, (ee >> 16) + L)), Z = Math.min(255, Math.max(0, (ee >> 8 & 255) + L)), ie = Math.min(255, Math.max(0, (ee & 255) + L));
5544
- return `#${($ << 16 | Z << 8 | ie).toString(16).padStart(6, "0")}`;
5543
+ const W = H.replace("#", ""), ee = parseInt(W, 16), D = Math.min(255, Math.max(0, (ee >> 16) + L)), Z = Math.min(255, Math.max(0, (ee >> 8 & 255) + L)), ie = Math.min(255, Math.max(0, (ee & 255) + L));
5544
+ return `#${(D << 16 | Z << 8 | ie).toString(16).padStart(6, "0")}`;
5545
5545
  }, ae = () => {
5546
5546
  let H = R;
5547
5547
  o.isPage && (H = mt.value + R);
5548
5548
  let L = fn(String(H)) || 0;
5549
5549
  return o.subColumns && o.subColumns.length > 0 && (L = L + 32), Math.max(45, L + 18);
5550
5550
  }, se = (H) => {
5551
- let L = (W, ee, $, Z) => {
5552
- const ie = Z.getRecordIndexByCell(ee, $);
5551
+ let L = (W, ee, D, Z) => {
5552
+ const ie = Z.getRecordIndexByCell(ee, D);
5553
5553
  return o.isPage && !H ? mt.value + ie + 1 : ie + 1;
5554
5554
  };
5555
- return H && (L = (W, ee, $, Z) => Z.getRecordIndexByCell(ee, $) + 1), {
5555
+ return H && (L = (W, ee, D, Z) => Z.getRecordIndexByCell(ee, D) + 1), {
5556
5556
  field: "__sequence__",
5557
5557
  title: "序号",
5558
5558
  width: y,
@@ -5593,17 +5593,17 @@ var lp = { class: "j-table-footer" }, rp = {
5593
5593
  L.push(W);
5594
5594
  return;
5595
5595
  }
5596
- const ee = lt(W.columns), $ = [], Z = [], ie = [];
5596
+ const ee = lt(W.columns), D = [], Z = [], ie = [];
5597
5597
  if (ee.forEach((de) => {
5598
5598
  const ce = Ie(de);
5599
- ce === "left" ? $.push(de) : ce === "right" ? Z.push(de) : ie.push(de);
5600
- }), ($.length > 0 ? 1 : 0) + (Z.length > 0 ? 1 : 0) + (ie.length > 0 ? 1 : 0) <= 1) {
5599
+ ce === "left" ? D.push(de) : ce === "right" ? Z.push(de) : ie.push(de);
5600
+ }), (D.length > 0 ? 1 : 0) + (Z.length > 0 ? 1 : 0) + (ie.length > 0 ? 1 : 0) <= 1) {
5601
5601
  W.columns = ee, L.push(W);
5602
5602
  return;
5603
5603
  }
5604
- $.length && L.push({
5604
+ D.length && L.push({
5605
5605
  ...W,
5606
- columns: $
5606
+ columns: D
5607
5607
  }), ie.length && L.push({
5608
5608
  ...W,
5609
5609
  columns: ie
@@ -5616,8 +5616,8 @@ var lp = { class: "j-table-footer" }, rp = {
5616
5616
  let L = 0, W = 0;
5617
5617
  return H.forEach((ee) => {
5618
5618
  if (ee.columns && ee.columns.length > 0) {
5619
- const $ = Et(ee.columns);
5620
- L += $.left, W += $.right;
5619
+ const D = Et(ee.columns);
5620
+ L += D.left, W += D.right;
5621
5621
  } else ee.frozen === "left" ? L++ : ee.frozen === "right" && W++;
5622
5622
  }), {
5623
5623
  left: L,
@@ -5625,7 +5625,7 @@ var lp = { class: "j-table-footer" }, rp = {
5625
5625
  };
5626
5626
  }, ht = (H, L, W, ee) => {
5627
5627
  b = 0, x = 0, m = !1;
5628
- const $ = {};
5628
+ const D = {};
5629
5629
  let Z = he(H);
5630
5630
  Z.length === 0 && (Z = [Ae()]), Z = lt(Z);
5631
5631
  const ie = [], de = [], ce = [];
@@ -5638,7 +5638,7 @@ var lp = { class: "j-table-footer" }, rp = {
5638
5638
  ...ie,
5639
5639
  ...ce,
5640
5640
  ...de
5641
- ], L && (Z.unshift(se(ee)), x++), W.length > 0 && (Z.push(ke(W)), b++), m && ($.editCellTrigger = "click", $.keyboardOptions = {
5641
+ ], L && (Z.unshift(se(ee)), x++), W.length > 0 && (Z.push(ke(W)), b++), m && (D.editCellTrigger = "click", D.keyboardOptions = {
5642
5642
  copySelected: !0,
5643
5643
  cutSelected: !0,
5644
5644
  pasteValueToCell: !0,
@@ -5649,9 +5649,9 @@ var lp = { class: "j-table-footer" }, rp = {
5649
5649
  if (Ce?._compType === "checkbox" || Ce?.customRender === Zt || Ce?.customRender === Ye || Array.isArray(Ce?.columns) && we(Ce.columns)) return !0;
5650
5650
  return !1;
5651
5651
  };
5652
- return we(Z) && ($.defaultRowHeight = "auto", $.defaultHeaderRowHeight = 40), {
5652
+ return we(Z) && (D.defaultRowHeight = "auto", D.defaultHeaderRowHeight = 40), {
5653
5653
  columns: Z,
5654
- option: $
5654
+ option: D
5655
5655
  };
5656
5656
  }, In = () => {
5657
5657
  const H = ht(o.columns, o.isShowNumber && !o.isTree, o.actions);
@@ -5712,21 +5712,21 @@ var lp = { class: "j-table-footer" }, rp = {
5712
5712
  const L = In(), W = rn();
5713
5713
  H && H.length >= 0 ? L.records = Bn(H) : W.length > 0 ? L.records = Bn(W) : (L.records = Bn(o.records), i("update:modelValue", L.records)), g = new Ve.ListTable(p.value, L), g._getAppContext = () => a?.appContext;
5714
5714
  const ee = a?.provides;
5715
- g._getProvides = () => ee, o.loadChildren && g.on(Ve.ListTable.EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, async ($) => {
5716
- if ($.hierarchyState === Ve.TYPES.HierarchyState.expand && $.originData?.children === !0) {
5717
- g.setLoadingHierarchyState($.col, $.row);
5715
+ g._getProvides = () => ee, o.loadChildren && g.on(Ve.ListTable.EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, async (D) => {
5716
+ if (D.hierarchyState === Ve.TYPES.HierarchyState.expand && D.originData?.children === !0) {
5717
+ g.setLoadingHierarchyState(D.col, D.row);
5718
5718
  try {
5719
- const Z = await o.loadChildren($.originData);
5720
- o.isTree && g && typeof g.setRecordChildren == "function" ? g.setRecordChildren(Z, $.col, $.row) : v && typeof v.setRecordChildren == "function" ? v.setRecordChildren(Z, $.col, $.row) : g && typeof g.setRecordChildren == "function" && g.setRecordChildren(Z, $.col, $.row);
5719
+ const Z = await o.loadChildren(D.originData);
5720
+ o.isTree && g && typeof g.setRecordChildren == "function" ? g.setRecordChildren(Z, D.col, D.row) : v && typeof v.setRecordChildren == "function" ? v.setRecordChildren(Z, D.col, D.row) : g && typeof g.setRecordChildren == "function" && g.setRecordChildren(Z, D.col, D.row);
5721
5721
  } catch (Z) {
5722
- console.error("Failed to load detail data:", Z), g.setLoadingHierarchyState($.col, $.row);
5722
+ console.error("Failed to load detail data:", Z), g.setLoadingHierarchyState(D.col, D.row);
5723
5723
  }
5724
5724
  }
5725
- }), g.on("click_cell", ($) => {
5726
- const { col: Z, row: ie, cellType: de, originData: ce } = $, re = ce || { children: g.records };
5725
+ }), g.on("click_cell", (D) => {
5726
+ const { col: Z, row: ie, cellType: de, originData: ce } = D, re = ce || { children: g.records };
5727
5727
  if (At.value) {
5728
5728
  if (de === "checkbox" && Z == 0) {
5729
- if (re.__checkState = $.target.attribute.checked, ie === 0 && re.__checkState === !1) {
5729
+ if (re.__checkState = D.target.attribute.checked, ie === 0 && re.__checkState === !1) {
5730
5730
  const we = (Me) => {
5731
5731
  !Array.isArray(Me) || Me.length === 0 || Me.forEach((Ce) => {
5732
5732
  Ce && (Ce.__checkState = !1, Array.isArray(Ce.children) && Ce.children.length > 0 && we(Ce.children));
@@ -5825,11 +5825,11 @@ var lp = { class: "j-table-footer" }, rp = {
5825
5825
  !Array.isArray(ce) || ce.length === 0 || ce.forEach((re) => {
5826
5826
  W(re), ee(re);
5827
5827
  });
5828
- }, $ = g.stateManager.checkedState, Z = g.records, ie = (de, ce, re) => {
5828
+ }, D = g.stateManager.checkedState, Z = g.records, ie = (de, ce, re) => {
5829
5829
  const ye = re[ce[de]];
5830
5830
  return de < ce.length - 1 && ye?.children && ye.children.length > 0 ? ie(de + 1, ce, ye.children || []) : ye;
5831
5831
  };
5832
- return $.forEach((de, ce) => {
5832
+ return D.forEach((de, ce) => {
5833
5833
  const re = de?._checkState;
5834
5834
  if (re === "indeterminate" || re === !0) {
5835
5835
  const ye = ie(0, (ce + "").split(",").map(Number), Z);
@@ -5861,12 +5861,12 @@ var lp = { class: "j-table-footer" }, rp = {
5861
5861
  ye.length == re.length ? ce[W] = !0 : we.length == re.length ? ce[W] = !1 : ce[W] = "indeterminate", ce[W] === "indeterminate" && (ce.hierarchyState = "expand");
5862
5862
  } else ce[W] = !!L.has(pt(ce));
5863
5863
  });
5864
- }, $ = g.records;
5865
- o.isTree ? ee($) : $.forEach((de) => {
5864
+ }, D = g.records;
5865
+ o.isTree ? ee(D) : D.forEach((de) => {
5866
5866
  de[W] = L.has(pt(de));
5867
5867
  });
5868
5868
  const Z = In();
5869
- Z.records = $, g.updateOption(Z, {
5869
+ Z.records = D, g.updateOption(Z, {
5870
5870
  clearColWidthCache: !1,
5871
5871
  clearRowHeightCache: !1
5872
5872
  }), o.heightMode === "auto" && (d.value = g.getAllRowsHeight());
@@ -5931,12 +5931,12 @@ var lp = { class: "j-table-footer" }, rp = {
5931
5931
  cancelButtonText: "取消",
5932
5932
  type: "warning"
5933
5933
  }).then(() => {
5934
- const L = g.records, W = new Set(H.map(($) => $._i)), ee = L.filter(($) => !W.has($._i));
5935
- Bt(ee), i("update:modelValue", ee), H.forEach(($) => {
5934
+ const L = g.records, W = new Set(H.map((D) => D._i)), ee = L.filter((D) => !W.has(D._i));
5935
+ Bt(ee), i("update:modelValue", ee), H.forEach((D) => {
5936
5936
  i("change", {
5937
5937
  id: o.id,
5938
- value: $,
5939
- data: $,
5938
+ value: D,
5939
+ data: D,
5940
5940
  formData: l,
5941
5941
  tableData: ee,
5942
5942
  type: "delete"
@@ -5979,7 +5979,7 @@ var lp = { class: "j-table-footer" }, rp = {
5979
5979
  setSelection: Yt,
5980
5980
  renderTable: ut
5981
5981
  }), (H, L) => {
5982
- const W = B("j-button"), ee = B("el-space"), $ = B("el-pagination");
5982
+ const W = B("j-button"), ee = B("el-space"), D = B("el-pagination");
5983
5983
  return _(), O("div", {
5984
5984
  class: Ne(["j-table", { "j-table-auto": e.heightMode === "auto" }]),
5985
5985
  style: Oe(f.value)
@@ -6012,7 +6012,7 @@ var lp = { class: "j-table-footer" }, rp = {
6012
6012
  _: 1
6013
6013
  }),
6014
6014
  L[2] || (L[2] = z("div", null, null, -1)),
6015
- e.isPage ? (_(), I($, {
6015
+ e.isPage ? (_(), I(D, {
6016
6016
  key: 0,
6017
6017
  "current-page": Do.value,
6018
6018
  "onUpdate:currentPage": L[0] || (L[0] = (Z) => Do.value = Z),
@@ -6039,7 +6039,7 @@ var lp = { class: "j-table-footer" }, rp = {
6039
6039
  class: "j-table-dropdown",
6040
6040
  style: Oe(C.value),
6041
6041
  onMouseenter: ue,
6042
- onMouseleave: D
6042
+ onMouseleave: $
6043
6043
  }, [(_(!0), O(xe, null, je(E.value, (Z) => (_(), O("div", {
6044
6044
  key: Z.id,
6045
6045
  class: "j-table-dropdown-item",
@@ -6231,8 +6231,8 @@ var lp = { class: "j-table-footer" }, rp = {
6231
6231
  title: ne,
6232
6232
  disabled: !0
6233
6233
  }))), ue = function(ne) {
6234
- a.autoHeight || (p.pageX = ne.pageX, p.pageY = ne.pageY, p._left = p.left, p._top = p.top, p.isMove = !0, typeof document < "u" && (document.onmouseup = D, document.onmousemove = te));
6235
- }, D = () => {
6234
+ a.autoHeight || (p.pageX = ne.pageX, p.pageY = ne.pageY, p._left = p.left, p._top = p.top, p.isMove = !0, typeof document < "u" && (document.onmouseup = $, document.onmousemove = te));
6235
+ }, $ = () => {
6236
6236
  p.isMove = !1, typeof document < "u" && (document.onmouseup = null, document.onmousemove = null);
6237
6237
  }, te = (ne) => {
6238
6238
  if (p.isMove) {
@@ -6514,7 +6514,7 @@ var lp = { class: "j-table-footer" }, rp = {
6514
6514
  const V = B("el-step"), U = B("el-steps"), T = B("j-button"), S = B("el-space"), F = B("el-divider"), J = B("el-dialog"), ue = Ri("loading");
6515
6515
  return _(), I(J, {
6516
6516
  modelValue: r.value,
6517
- "onUpdate:modelValue": Y[0] || (Y[0] = (D) => r.value = D),
6517
+ "onUpdate:modelValue": Y[0] || (Y[0] = ($) => r.value = $),
6518
6518
  class: "j-dialog-full",
6519
6519
  width: "100%",
6520
6520
  "append-to-body": !0,
@@ -6547,9 +6547,9 @@ var lp = { class: "j-table-footer" }, rp = {
6547
6547
  space: 160,
6548
6548
  "finish-status": "success"
6549
6549
  }, {
6550
- default: N(() => [(_(!0), O(xe, null, je(E.value, (D, te) => (_(), I(V, {
6550
+ default: N(() => [(_(!0), O(xe, null, je(E.value, ($, te) => (_(), I(V, {
6551
6551
  key: te,
6552
- title: X(l)(D.title)
6552
+ title: X(l)($.title)
6553
6553
  }, null, 8, ["title"]))), 128))]),
6554
6554
  _: 1
6555
6555
  }, 8, ["active"])) : G("", !0)], 4),
@@ -6576,12 +6576,12 @@ var lp = { class: "j-table-footer" }, rp = {
6576
6576
  "loading",
6577
6577
  "label"
6578
6578
  ])) : G("", !0),
6579
- (_(!0), O(xe, null, je(e.buttons, (D) => (_(), O(xe, { key: D.id }, [D.config?.display !== !1 ? (_(), I(T, We({
6579
+ (_(!0), O(xe, null, je(e.buttons, ($) => (_(), O(xe, { key: $.id }, [$.config?.display !== !1 ? (_(), I(T, We({
6580
6580
  key: 0,
6581
6581
  ref_for: !0
6582
- }, D.config, {
6583
- label: D.label,
6584
- onClick: (te) => M(D)
6582
+ }, $.config, {
6583
+ label: $.label,
6584
+ onClick: (te) => M($)
6585
6585
  }), null, 16, ["label", "onClick"])) : G("", !0)], 64))), 128)),
6586
6586
  e.hasSaveBtn ? (_(), I(T, {
6587
6587
  key: 2,
@@ -6776,7 +6776,7 @@ var lp = { class: "j-table-footer" }, rp = {
6776
6776
  const V = B("el-input"), U = B("j-button"), T = B("el-space"), S = B("el-step"), F = B("el-steps"), J = B("el-drawer"), ue = Ri("loading");
6777
6777
  return _(), I(J, {
6778
6778
  modelValue: c.value,
6779
- "onUpdate:modelValue": Y[0] || (Y[0] = (D) => c.value = D),
6779
+ "onUpdate:modelValue": Y[0] || (Y[0] = ($) => c.value = $),
6780
6780
  class: "j-drawer",
6781
6781
  "append-to-body": !0,
6782
6782
  direction: e.direction,
@@ -6829,9 +6829,9 @@ var lp = { class: "j-table-footer" }, rp = {
6829
6829
  label: X(o)("取消"),
6830
6830
  onClick: p
6831
6831
  }, null, 8, ["label"])) : G("", !0),
6832
- (_(!0), O(xe, null, je(e.buttons, (D) => (_(), I(U, We({ key: D.id }, { ref_for: !0 }, D.config, {
6833
- label: D.label,
6834
- onClick: (te) => g(D)
6832
+ (_(!0), O(xe, null, je(e.buttons, ($) => (_(), I(U, We({ key: $.id }, { ref_for: !0 }, $.config, {
6833
+ label: $.label,
6834
+ onClick: (te) => g($)
6835
6835
  }), null, 16, ["label", "onClick"]))), 128)),
6836
6836
  e.hasSaveBtn ? (_(), I(U, {
6837
6837
  key: 3,
@@ -6859,9 +6859,9 @@ var lp = { class: "j-table-footer" }, rp = {
6859
6859
  space: 160,
6860
6860
  "finish-status": "success"
6861
6861
  }, {
6862
- default: N(() => [(_(!0), O(xe, null, je(M.value, (D, te) => (_(), I(S, {
6862
+ default: N(() => [(_(!0), O(xe, null, je(M.value, ($, te) => (_(), I(S, {
6863
6863
  key: te,
6864
- title: X(o)(D.title)
6864
+ title: X(o)($.title)
6865
6865
  }, null, 8, ["title"]))), 128))]),
6866
6866
  _: 1
6867
6867
  }, 8, ["active"])], 4)])) : G("", !0)
@@ -7781,7 +7781,7 @@ var lp = { class: "j-table-footer" }, rp = {
7781
7781
  });
7782
7782
  }, J = async (oe) => {
7783
7783
  await S(oe) && F(oe);
7784
- }, ue = P(!1), D = P(""), te = P(""), ge = P(!1), Re = P(!1);
7784
+ }, ue = P(!1), $ = P(""), te = P(""), ge = P(!1), Re = P(!1);
7785
7785
  let ne = null;
7786
7786
  const ke = P(Ko(/* @__PURE__ */ new Date(), "YYYY-MM-DD")), ze = (oe) => {
7787
7787
  if (oe.isPreview === !1 && !n.isUploadImg) {
@@ -7789,7 +7789,7 @@ var lp = { class: "j-table-footer" }, rp = {
7789
7789
  return;
7790
7790
  }
7791
7791
  const Ee = oe.name.split(".")[oe.name.split(".").length - 1];
7792
- switch (ne = oe, ue.value = !1, D.value = oe.name, Ee.toLowerCase()) {
7792
+ switch (ne = oe, ue.value = !1, $.value = oe.name, Ee.toLowerCase()) {
7793
7793
  case "jpg":
7794
7794
  case "gif":
7795
7795
  case "png":
@@ -7918,7 +7918,7 @@ var lp = { class: "j-table-footer" }, rp = {
7918
7918
  visible: ge.value,
7919
7919
  "onUpdate:visible": Ee[1] || (Ee[1] = (Zt) => ge.value = Zt),
7920
7920
  "btn-text": "下载",
7921
- title: `${X(r)("文件预览")}【${D.value}】`,
7921
+ title: `${X(r)("文件预览")}【${$.value}】`,
7922
7922
  "destroy-on-close": !0,
7923
7923
  "has-btns": !!X(s),
7924
7924
  onOk: Qe
@@ -11079,7 +11079,7 @@ var lp = { class: "j-table-footer" }, rp = {
11079
11079
  }), It;
11080
11080
  }, y = j(() => R(i.columns, ct.value)), k = j(() => Cf(i.columns, (be) => be.config.label)), C = P(""), E = j(() => k.value.some((be) => be.config?.filter?.isSearchKeyword)), M = P(), A = P(!0), Y = P([]), V = j(() => A.value ? "搜索全部" : `搜索范围:${k.value.filter((be) => Y.value.includes(be.id)).map((be) => be.config?.label).join("、")}`), U = () => {
11081
11081
  M.value.init();
11082
- }, T = P(), S = P(!1), F = P(!1), J = P(!1), ue = P([]), D = P("and"), te = P(), ge = P(!1), Re = P([]), ne = () => {
11082
+ }, T = P(), S = P(!1), F = P(!1), J = P(!1), ue = P([]), $ = P("and"), te = P(), ge = P(!1), Re = P([]), ne = () => {
11083
11083
  te.value.init(Re.value);
11084
11084
  }, ke = (be) => {
11085
11085
  Re.value = be, ge.value = !1, Ie();
@@ -11193,7 +11193,7 @@ var lp = { class: "j-table-footer" }, rp = {
11193
11193
  be && (se = be), se && (Te.query = se);
11194
11194
  try {
11195
11195
  const mt = {};
11196
- mt.rel = D.value, mt.cond = (T.value?.getSearchFields?.() || ue.value).filter((ve) => ve.value !== void 0 && ve.value !== null && ve.value !== "" || ["empty", "not_empty"].includes(ve.method)).map((ve) => ({
11196
+ mt.rel = $.value, mt.cond = (T.value?.getSearchFields?.() || ue.value).filter((ve) => ve.value !== void 0 && ve.value !== null && ve.value !== "" || ["empty", "not_empty"].includes(ve.method)).map((ve) => ({
11197
11197
  field: ve.field,
11198
11198
  method: ve.method,
11199
11199
  value: ve.value,
@@ -11352,8 +11352,8 @@ var lp = { class: "j-table-footer" }, rp = {
11352
11352
  ref: T,
11353
11353
  "is-pin": S.value,
11354
11354
  "onUpdate:isPin": Te[3] || (Te[3] = (ut) => S.value = ut),
11355
- relation: D.value,
11356
- "onUpdate:relation": Te[4] || (Te[4] = (ut) => D.value = ut),
11355
+ relation: $.value,
11356
+ "onUpdate:relation": Te[4] || (Te[4] = (ut) => $.value = ut),
11357
11357
  "search-field-list": ue.value,
11358
11358
  columns: k.value,
11359
11359
  onFilter: Ie,
@@ -11514,8 +11514,8 @@ var lp = { class: "j-table-footer" }, rp = {
11514
11514
  ref: T,
11515
11515
  "is-pin": S.value,
11516
11516
  "onUpdate:isPin": Te[10] || (Te[10] = (ut) => S.value = ut),
11517
- relation: D.value,
11518
- "onUpdate:relation": Te[11] || (Te[11] = (ut) => D.value = ut),
11517
+ relation: $.value,
11518
+ "onUpdate:relation": Te[11] || (Te[11] = (ut) => $.value = ut),
11519
11519
  "search-field-list": ue.value,
11520
11520
  columns: k.value,
11521
11521
  onFilter: Ie
@@ -11774,7 +11774,7 @@ var lp = { class: "j-table-footer" }, rp = {
11774
11774
  setCheck: m,
11775
11775
  getCheck: w
11776
11776
  }), (U, T) => {
11777
- const S = B("j-icon"), F = B("j-button"), J = B("el-dropdown-item"), ue = B("el-dropdown-menu"), D = B("el-dropdown"), te = B("el-tree"), ge = B("el-empty"), Re = Ri("loading");
11777
+ const S = B("j-icon"), F = B("j-button"), J = B("el-dropdown-item"), ue = B("el-dropdown-menu"), $ = B("el-dropdown"), te = B("el-tree"), ge = B("el-empty"), Re = Ri("loading");
11778
11778
  return Tn((_(), O("div", {
11779
11779
  class: Ne([
11780
11780
  "j-block",
@@ -11821,7 +11821,7 @@ var lp = { class: "j-table-footer" }, rp = {
11821
11821
  color: ne.data[e.iconColorKey] || e.defaultIconColor || ""
11822
11822
  }, null, 8, ["icon", "color"])) : G("", !0),
11823
11823
  z("div", Xy, _e(ne.label), 1),
11824
- C(ne.data).length ? (_(), O("div", qy, [(_(!0), O(xe, null, je(C(ne.data), (ke, ze) => (_(), I(D, {
11824
+ C(ne.data).length ? (_(), O("div", qy, [(_(!0), O(xe, null, je(C(ne.data), (ke, ze) => (_(), I($, {
11825
11825
  key: ze,
11826
11826
  trigger: "click",
11827
11827
  onVisibleChange: (He) => Y(He, ne.data)
@@ -12081,12 +12081,12 @@ var um = /* @__PURE__ */ fe({
12081
12081
  const ae = q[Q];
12082
12082
  he && (Q = he + "." + Q), ae != null && typeof ae == "object" && !dl(ae) && ue(ae, Q), y[Q] = ae;
12083
12083
  });
12084
- }, D = (q, he) => {
12084
+ }, $ = (q, he) => {
12085
12085
  let Q = q.id;
12086
12086
  return Q || (q.config?.table && q.config?.field ? Q = `${q.config.table}.${q.config.field}` : q.config?.table ? Q = q.config?.table : q.config?.field && (Q = q.config?.field), he && F(he) && (Q = `${he}.${Q}`)), Q || Ll("j");
12087
12087
  }, te = (q, he, Q, ae = "") => {
12088
12088
  q.forEach((se) => {
12089
- se.id = D(se, ae);
12089
+ se.id = $(se, ae);
12090
12090
  const Ae = {
12091
12091
  id: se.id,
12092
12092
  slot: se.slot,
@@ -14808,8 +14808,8 @@ function Nc(e, t, n, a, o, i, l, r, s, c) {
14808
14808
  ]);
14809
14809
  }
14810
14810
  E = C - k;
14811
- var V = _t.cos(k), U = _t.sin(k), T = _t.cos(C), S = _t.sin(C), F = _t.tan(E / 4), J = 4 / 3 * n * F, ue = 4 / 3 * a * F, D = [e, t], te = [e + J * U, t - ue * V], ge = [r + J * S, s - ue * T], Re = [r, s];
14812
- if (te[0] = 2 * D[0] - te[0], te[1] = 2 * D[1] - te[1], c) return [
14811
+ var V = _t.cos(k), U = _t.sin(k), T = _t.cos(C), S = _t.sin(C), F = _t.tan(E / 4), J = 4 / 3 * n * F, ue = 4 / 3 * a * F, $ = [e, t], te = [e + J * U, t - ue * V], ge = [r + J * S, s - ue * T], Re = [r, s];
14812
+ if (te[0] = 2 * $[0] - te[0], te[1] = 2 * $[1] - te[1], c) return [
14813
14813
  te,
14814
14814
  ge,
14815
14815
  Re
@@ -17340,15 +17340,15 @@ function _a(e, t, n, a, o, i, l) {
17340
17340
  strokeWidth: 2,
17341
17341
  fill: r
17342
17342
  }), ue.fill === "none" && delete ue.fillOpacity;
17343
- const D = S / 2, te = F / 2, ge = Fe("circle");
17343
+ const $ = S / 2, te = F / 2, ge = Fe("circle");
17344
17344
  return Pe(ge, {
17345
- cx: D,
17345
+ cx: $,
17346
17346
  cy: te,
17347
17347
  r: Math.round((S + F) / 4 - J)
17348
17348
  }), Pe(ge, ue), Ue(T, ge), ge;
17349
17349
  }
17350
- function b(T, S, F, J, ue, D) {
17351
- bs(ue) && (D = ue, ue = 0), ue = ue || 0, D = u(D, {
17350
+ function b(T, S, F, J, ue, $) {
17351
+ bs(ue) && ($ = ue, ue = 0), ue = ue || 0, $ = u($, {
17352
17352
  stroke: s,
17353
17353
  strokeWidth: 2,
17354
17354
  fill: r
@@ -17361,7 +17361,7 @@ function _a(e, t, n, a, o, i, l) {
17361
17361
  height: F - ue * 2,
17362
17362
  rx: J,
17363
17363
  ry: J
17364
- }), Pe(te, D), Ue(T, te), te;
17364
+ }), Pe(te, $), Ue(T, te), te;
17365
17365
  }
17366
17366
  function x(T, S, F) {
17367
17367
  F = u(F, ["no-fill"], {
@@ -17372,14 +17372,14 @@ function _a(e, t, n, a, o, i, l) {
17372
17372
  return Pe(J, { d: S }), Pe(J, F), Ue(T, J), J;
17373
17373
  }
17374
17374
  function m(T, S, F, J) {
17375
- const ue = S / 2, D = F / 2, te = [
17375
+ const ue = S / 2, $ = F / 2, te = [
17376
17376
  {
17377
17377
  x: ue,
17378
17378
  y: 0
17379
17379
  },
17380
17380
  {
17381
17381
  x: S,
17382
- y: D
17382
+ y: $
17383
17383
  },
17384
17384
  {
17385
17385
  x: ue,
@@ -17387,7 +17387,7 @@ function _a(e, t, n, a, o, i, l) {
17387
17387
  },
17388
17388
  {
17389
17389
  x: 0,
17390
- y: D
17390
+ y: $
17391
17391
  }
17392
17392
  ].map((Re) => Re.x + "," + Re.y).join(" ");
17393
17393
  J = u(J, {
@@ -17442,8 +17442,8 @@ function _a(e, t, n, a, o, i, l) {
17442
17442
  compensation: -27,
17443
17443
  loop: 0,
17444
17444
  adhoc: 10
17445
- }, Lw(F, (D) => {
17446
- f(D)(T, S, ue);
17445
+ }, Lw(F, ($) => {
17446
+ f($)(T, S, ue);
17447
17447
  });
17448
17448
  }
17449
17449
  function E(T) {
@@ -17453,7 +17453,7 @@ function _a(e, t, n, a, o, i, l) {
17453
17453
  const { ref: F = {
17454
17454
  x: 0,
17455
17455
  y: 0
17456
- }, scale: J = 1, element: ue, parentGfx: D = a._svg } = S, te = Fe("marker", {
17456
+ }, scale: J = 1, element: ue, parentGfx: $ = a._svg } = S, te = Fe("marker", {
17457
17457
  id: T,
17458
17458
  viewBox: "0 0 20 20",
17459
17459
  refX: F.x,
@@ -17463,8 +17463,8 @@ function _a(e, t, n, a, o, i, l) {
17463
17463
  orient: "auto"
17464
17464
  });
17465
17465
  Ue(te, ue);
17466
- let ge = Wt(":scope > defs", D);
17467
- ge || (ge = Fe("defs"), Ue(D, ge)), Ue(ge, te);
17466
+ let ge = Wt(":scope > defs", $);
17467
+ ge || (ge = Fe("defs"), Ue($, ge)), Ue(ge, te);
17468
17468
  }
17469
17469
  function A(T, S, F, J) {
17470
17470
  const ue = S + "-" + E(F) + "-" + E(J) + "-" + Zc();