@harbor-design/proform 1.1.37 → 1.1.39

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 +31 -23
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -46,13 +46,16 @@ class l {
46
46
  if (e === void 0)
47
47
  return !0;
48
48
  if (this.isObject(e)) {
49
- if (e.setup && this.isFunction(e.setup) && e.props)
49
+ if (e.setup || this.isFunction(e.setup) || e.props)
50
50
  return !1;
51
51
  if (this.isObjectEmpty(e))
52
52
  return !0;
53
- for (const t in e)
53
+ for (const t in e) {
54
+ if (t === "componentProps")
55
+ return !1;
54
56
  if (e.hasOwnProperty(t) && this.isProcessInprogress(e[t]))
55
57
  return !0;
58
+ }
56
59
  } else if (this.isArray(e)) {
57
60
  if (this.isArrayEmpty(e))
58
61
  return !0;
@@ -345,23 +348,28 @@ class de {
345
348
  }
346
349
  ) : this.defaultValueEffect.trackEffect(
347
350
  () => {
348
- const c = this.schemaEffect.trackEffect(() => {
349
- /\{\s*model\s*\}/.test(t[i].toString()) ? this.fieldParser(t[i], (u) => {
350
- if (!u)
351
- return n(u);
352
- this.defaultValueInprogressMap.set(t[i], u), !l.isProcessInprogress(u) && this.defaultValueInprogressMap.size === this.baseDefaultValueFunctionsLength && Array.from(
353
- this.defaultValueInprogressMap.values()
354
- ).every((d) => !d.includes("undefined")) ? (n(u), this.defaultValueEffect.clearEffects(), E(() => {
355
- c();
356
- })) : n(u);
357
- }) : this.fieldParser(t[i], (u) => {
358
- this.defaultValueInprogressMap.set(t[i], u), !l.isProcessInprogress(u) && this.defaultValueInprogressMap.size === this.baseDefaultValueFunctionsLength && Array.from(
359
- this.defaultValueInprogressMap.values()
360
- ).every((d) => !d.includes("undefined")) ? (n(u), this.defaultValueEffect.clearEffects(), E(() => {
361
- c();
362
- })) : n(u);
363
- });
364
- });
351
+ const c = this.schemaEffect.trackEffect(
352
+ () => {
353
+ /\{\s*model\s*\}/.test(t[i].toString()) ? this.fieldParser(t[i], (u) => {
354
+ if (!u)
355
+ return n(u);
356
+ this.defaultValueInprogressMap.set(t[i], u), !l.isProcessInprogress(u) && this.defaultValueInprogressMap.size === this.baseDefaultValueFunctionsLength && Array.from(
357
+ this.defaultValueInprogressMap.values()
358
+ ).every((d) => !d.includes("undefined")) ? (n(u), this.defaultValueEffect.clearEffects(), E(() => {
359
+ c();
360
+ })) : n(u);
361
+ }) : this.fieldParser(t[i], (u) => {
362
+ this.defaultValueInprogressMap.set(t[i], u), !l.isProcessInprogress(u) && this.defaultValueInprogressMap.size === this.baseDefaultValueFunctionsLength && Array.from(
363
+ this.defaultValueInprogressMap.values()
364
+ ).every((d) => !d.includes("undefined")) ? (n(u), this.defaultValueEffect.clearEffects(), E(() => {
365
+ c();
366
+ })) : n(u);
367
+ });
368
+ },
369
+ {
370
+ lazy: !1
371
+ }
372
+ );
365
373
  },
366
374
  {
367
375
  lazy: !1
@@ -564,11 +572,11 @@ class me {
564
572
  };
565
573
  }
566
574
  runtimeItemProcessor(e, t, s = this.model.value, i) {
567
- var x, z, $, B, D, G, T, W, K, H, J, Q, X;
575
+ var k, x, $, B, D, G, T, W, K, H, J, Q, X;
568
576
  const o = F(e.component);
569
577
  if (!o)
570
578
  return;
571
- h(this.globalNativeFormOverride.props, (z = (x = e.native) == null ? void 0 : x.props) == null ? void 0 : z.Form), h(this.globalNativeFormOverride.slots, (B = ($ = e.native) == null ? void 0 : $.slots) == null ? void 0 : B.Form);
579
+ h(this.globalNativeFormOverride.props, (x = (k = e.native) == null ? void 0 : k.props) == null ? void 0 : x.Form), h(this.globalNativeFormOverride.slots, (B = ($ = e.native) == null ? void 0 : $.slots) == null ? void 0 : B.Form);
572
580
  const n = h(C((G = (D = this.native) == null ? void 0 : D.slots) == null ? void 0 : G.FormItem) ?? {}, (W = (T = e.native) == null ? void 0 : T.slots) == null ? void 0 : W.FormItem), c = {
573
581
  display: "grid",
574
582
  gridColumn: "1 / -1",
@@ -953,9 +961,9 @@ a(S, "schemaPreset", {
953
961
  }
954
962
  }), // 基于基本功能提出基本预设
955
963
  a(S, "placeholderPresetByComponentName", S.getPlaceholderPrefixPresetByComponentName());
956
- let k = S;
964
+ let z = S;
957
965
  const P = {
958
- ...k,
966
+ ...z,
959
967
  adapters: {
960
968
  ...ye
961
969
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harbor-design/proform",
3
- "version": "1.1.37",
3
+ "version": "1.1.39",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",