@harbor-design/proform 1.1.22 → 1.1.23

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.
Files changed (2) hide show
  1. package/dist/index.js +14 -13
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -70,7 +70,7 @@ function m(r, ...e) {
70
70
  typeof s == "object" && s !== null ? r[i] = m(Array.isArray(s) ? [] : {}, s) : r[i] = s;
71
71
  });
72
72
  else
73
- for (let s in t)
73
+ for (const s in t)
74
74
  t.hasOwnProperty(s) && (typeof t[s] == "object" && t[s] !== null ? r[s] = m(r[s] || {}, t[s]) : r[s] = t[s]);
75
75
  }), r;
76
76
  }
@@ -85,13 +85,13 @@ function g(r) {
85
85
  return new RegExp(s);
86
86
  if (s instanceof Map) {
87
87
  const o = /* @__PURE__ */ new Map();
88
- for (let [n, u] of s)
88
+ for (const [n, u] of s)
89
89
  o.set(t(n), t(u));
90
90
  return o;
91
91
  }
92
92
  if (s instanceof Set) {
93
93
  const o = /* @__PURE__ */ new Set();
94
- for (let n of s)
94
+ for (const n of s)
95
95
  o.add(t(n));
96
96
  return o;
97
97
  }
@@ -106,7 +106,7 @@ function g(r) {
106
106
  }
107
107
  const i = Object.create(Object.getPrototypeOf(s));
108
108
  e.set(s, i);
109
- for (let o in s)
109
+ for (const o in s)
110
110
  s.hasOwnProperty(o) && (i[o] = t(s[o]));
111
111
  return i;
112
112
  }
@@ -225,11 +225,12 @@ class de {
225
225
  });
226
226
  }
227
227
  countFunctionDefaultValues(e) {
228
- let t = 0, s = /* @__PURE__ */ new Set();
228
+ let t = 0;
229
+ const s = /* @__PURE__ */ new Set();
229
230
  function i(o) {
230
231
  if (!s.has(o) && (Array.isArray(o) || o !== null && typeof o == "object")) {
231
232
  s.add(o);
232
- for (let n in o)
233
+ for (const n in o)
233
234
  o.hasOwnProperty(n) && (n === "defaultValue" && typeof o[n] == "function" && !o[n].toString().includes("[native code]") && t++, i(o[n]));
234
235
  }
235
236
  }
@@ -271,10 +272,10 @@ class de {
271
272
  const O = i.parseStable(u.stable), C = s == null ? void 0 : s.index, v = s == null ? void 0 : s.key;
272
273
  let P = O;
273
274
  if (l.isProcessInprogress(P) || (o[y] = !0), s) {
274
- let h = i.processedSchemas.value[C][v][c][d];
275
+ const h = i.processedSchemas.value[C][v][c][d];
275
276
  h && l.isObject(h) && d !== "component" && (P = m(h, P)), i.processedSchemas.value[C][v][c][d] = P, i.stableUpdater(o);
276
277
  } else {
277
- let h = i.processedSchemas.value[c][d];
278
+ const h = i.processedSchemas.value[c][d];
278
279
  h && l.isObject(h) && d !== "component" && (P = m(h, P)), i.processedSchemas.value[c][d] = P, i.stableUpdater(o);
279
280
  }
280
281
  }
@@ -514,7 +515,7 @@ class me {
514
515
  }), y = o.name, O = e.componentProps ?? {}, C = b.placeholderPresetByComponentName;
515
516
  let v = e.placeholder, P = e.show;
516
517
  P === void 0 && (P = !0), P || delete s[e.field];
517
- let h = e.label;
518
+ let h = e.label ?? "";
518
519
  const V = (i == null ? void 0 : i.runtime) ?? this.runtime;
519
520
  if (!l.isUndefined(t) && !l.isObjectEmpty(V) && (h = U((X = V == null ? void 0 : V.customizeItemLabel) == null ? void 0 : X.call(V, e.label ?? "", t + 1), "")), !v) {
520
521
  let E = "请输入";
@@ -532,7 +533,7 @@ class me {
532
533
  }, [p(te, null, {
533
534
  default() {
534
535
  return Z(p(se, R(c, {
535
- label: `${h}:`
536
+ label: `${h ? `${h}:` : ""}`
536
537
  }, d, ee), {
537
538
  default() {
538
539
  return re.runtimeAdapter.formComponentRenderer({
@@ -598,7 +599,7 @@ class me {
598
599
  container: c
599
600
  } = {}) {
600
601
  var y;
601
- let d = c ?? p("button", null, null);
602
+ const d = c ?? p("button", null, null);
602
603
  return Z(p(d, {
603
604
  onClick: () => s.deleteListItem(e, u)
604
605
  }, null), [[A, ((y = s.model.value[e.field]) == null ? void 0 : y.length) > 1]]);
@@ -608,7 +609,7 @@ class me {
608
609
  add({
609
610
  container: n
610
611
  } = {}) {
611
- let u = n ?? p("button", null, [ae("添加")]);
612
+ const u = n ?? p("button", null, [ae("添加")]);
612
613
  return p(u, {
613
614
  onClick: () => s.addListItem(e)
614
615
  }, null);
@@ -826,7 +827,7 @@ const ye = {
826
827
  请选择: ["select", "tree"],
827
828
  请输入: ["input"]
828
829
  }, t = {};
829
- for (let s in e)
830
+ for (const s in e)
830
831
  e[s].forEach((i) => {
831
832
  t[i] = s;
832
833
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harbor-design/proform",
3
- "version": "1.1.22",
3
+ "version": "1.1.23",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",