@gct-paas/word 0.1.54 → 0.1.55

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.es.js +3 -2
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -108478,14 +108478,15 @@ const initObjectTypeFieldDefaultValue = (rawData, instances, fieldList, runtimeJ
108478
108478
  if (!objectInitialValues?.length) return;
108479
108479
  objectInitialValues.forEach(
108480
108480
  ({ objectField, values }) => {
108481
- if (!objectField || !values) return;
108481
+ if (!objectField) return;
108482
+ rawData[objectField] = null;
108483
+ if (!values) return;
108482
108484
  for (const [key, value] of Object.entries(values)) {
108483
108485
  if (value === void 0 || value === null) continue;
108484
108486
  const existing = rawData[key];
108485
108487
  if (existing !== void 0 && existing !== null) continue;
108486
108488
  rawData[key] = value;
108487
108489
  }
108488
- rawData[objectField] = null;
108489
108490
  }
108490
108491
  );
108491
108492
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/word",
3
- "version": "0.1.54",
3
+ "version": "0.1.55",
4
4
  "description": "GCT 在线 word",
5
5
  "keywords": [
6
6
  "vue",