@gct-paas/word 0.1.55 → 0.1.56

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 -3
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -108471,6 +108471,8 @@ const initObjectTypeFieldDefaultValue = (rawData, instances, fieldList, runtimeJ
108471
108471
  );
108472
108472
  if (isNotUsed) {
108473
108473
  delete rawData[belongingObject];
108474
+ } else {
108475
+ rawData[belongingObject] = null;
108474
108476
  }
108475
108477
  });
108476
108478
  const res = JSON.parse(runtimeJson);
@@ -108478,9 +108480,7 @@ const initObjectTypeFieldDefaultValue = (rawData, instances, fieldList, runtimeJ
108478
108480
  if (!objectInitialValues?.length) return;
108479
108481
  objectInitialValues.forEach(
108480
108482
  ({ objectField, values }) => {
108481
- if (!objectField) return;
108482
- rawData[objectField] = null;
108483
- if (!values) return;
108483
+ if (!objectField || !values) return;
108484
108484
  for (const [key, value] of Object.entries(values)) {
108485
108485
  if (value === void 0 || value === null) continue;
108486
108486
  const existing = rawData[key];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/word",
3
- "version": "0.1.55",
3
+ "version": "0.1.56",
4
4
  "description": "GCT 在线 word",
5
5
  "keywords": [
6
6
  "vue",