@a2simcode/ui 0.0.156 → 0.0.158

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.
@@ -26,4 +26,10 @@ export declare const getLabel: (value: any, getLabelFromApp: any, data: {
26
26
  formData: Record<string, any>;
27
27
  getTableData?: () => Record<string, any>[];
28
28
  row?: Record<string, any>;
29
- }) => any;
29
+ }) => {
30
+ label: any;
31
+ config: {
32
+ [x: string]: any;
33
+ };
34
+ type: any;
35
+ };
@@ -535,13 +535,11 @@ var bc = (e, t, n, a) => {
535
535
  type: o
536
536
  };
537
537
  if (o === "j-autocomplete") return i;
538
- if (a && a.options) {
539
- if (e?.split) {
540
- const r = e.split(","), l = $f(a.options);
541
- return r.map((c) => l.find((s) => s.value === c)?.label).join(o === "j-cascader-select" ? "/" : ",");
542
- }
543
- i.label = a.options.find((r) => r.value === e)?.label;
544
- } else t && (i.label = t({
538
+ if (a && a.options) if (e?.split) {
539
+ const r = e.split(","), l = $f(a.options);
540
+ i.label = r.map((c) => l.find((s) => s.value === c)?.label).join(o === "j-cascader-select" ? "/" : ",");
541
+ } else i.label = a.options.find((r) => r.value === e)?.label;
542
+ else t && (i.label = t({
545
543
  value: e,
546
544
  type: o,
547
545
  config: a,
@@ -5377,7 +5375,7 @@ var jp = class {
5377
5375
  formData: s || {},
5378
5376
  row: v,
5379
5377
  getTableData: y
5380
- }) || [] : [];
5378
+ }) || [] : C.value.options || [];
5381
5379
  }), A = O(() => n.isTableCell && (S.value === "j-radio" || S.value === "j-checkbox") ? "j-select" : S.value === "j-textarea" ? "j-input" : ((S.value == null || S.value === "") && console.warn("组件类型不能为空"), S.value)), H = (P) => l({
5382
5380
  value: P,
5383
5381
  config: D.value || {},
@@ -6318,7 +6316,7 @@ var zp = { class: "j-table-footer" }, Dp = {
6318
6316
  "j-tag": Ut,
6319
6317
  "j-input-tag": Ut,
6320
6318
  "j-icon": qe
6321
- }[de];
6319
+ }[de] || ie;
6322
6320
  return fe ? fe(z, ge) : {
6323
6321
  elements: [],
6324
6322
  expectedHeight: vn
@@ -6370,7 +6368,7 @@ var zp = { class: "j-table-footer" }, Dp = {
6370
6368
  _getCompType: ge,
6371
6369
  frozen: at
6372
6370
  }, pt = typeof ge == "function", Ve = Oc(Y);
6373
- return (Ve || pt) && (me.editor = Ve, x = !0), pt ? me.customRender = xn : (Y === "j-switch" && (me.customRender = xe), Y === "j-rate" && (me.customRender = Be), Y === "j-slider" && (me.customRender = He), (Y === "j-tag" || Y === "j-input-tag") && (me.customRender = Ut), Y === "j-icon" && (me.customRender = qe)), Y === "link" && (me.customLayout = Yt), Y === "checkbox" && (me.customLayout = Bt), Y === "j-switch" && (me.minWidth = me.minWidth || Re, me.maxWidth = me.maxWidth || Re), fe && (me.customLayout = St), me.fieldFormat = Z, de && de.length > 0 && (me.columns = te(de)), me;
6371
+ return (Ve || pt) && (me.editor = Ve || "j-comp-editor", x = !0), pt ? me.customRender = xn : (Y === "j-switch" && (me.customRender = xe), Y === "j-rate" && (me.customRender = Be), Y === "j-slider" && (me.customRender = He), (Y === "j-tag" || Y === "j-input-tag") && (me.customRender = Ut), Y === "j-icon" && (me.customRender = qe)), Y === "link" && (me.customLayout = Yt), Y === "checkbox" && (me.customLayout = Bt), Y === "j-switch" && (me.minWidth = me.minWidth || Re, me.maxWidth = me.maxWidth || Re), fe && (me.customLayout = St), me.fieldFormat = Z, de && de.length > 0 && (me.columns = te(de)), me;
6374
6372
  });
6375
6373
  return o.isTree && U.length > 0 && (U[0].tree = !0), U;
6376
6374
  }, oe = (z, U) => {