3h1-ui 3.0.0-next.208 → 3.0.0-next.209

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.
package/es/index.js CHANGED
@@ -12346,6 +12346,14 @@ function useFormValues({
12346
12346
  }
12347
12347
  const isGroup = item.component === "Group";
12348
12348
  const isGroupInObj = !isBoolean(_props == null ? void 0 : _props.groupInObject) || isBoolean(_props.groupInObject) && _props.groupInObject;
12349
+ const isDeconstruct = !isNumber$2(_props == null ? void 0 : _props.deconstructLevel) || isNumber$2(_props.deconstructLevel) && _props.deconstructLevel;
12350
+ if (isGroup && !isGroupInObj && isDeconstruct && link) {
12351
+ treeExpandSchema(
12352
+ _props.schemas,
12353
+ true,
12354
+ [...`${linkField}`.split("."), item.field].slice(0, -_props.deconstructLevel).join(".")
12355
+ );
12356
+ }
12349
12357
  if (isGroup && !isGroupInObj) {
12350
12358
  return treeExpandSchema(_props.schemas);
12351
12359
  }
@@ -12362,6 +12370,7 @@ function useFormValues({
12362
12370
  if (link) {
12363
12371
  item.field = [linkField, item.field].join(".");
12364
12372
  }
12373
+ item.field.startsWith(".") && (item.field = item.field.slice(1));
12365
12374
  return item;
12366
12375
  });
12367
12376
  };
@@ -35599,7 +35608,7 @@ const Group = /* @__PURE__ */ defineComponent({
35599
35608
  },
35600
35609
  "schema": {
35601
35610
  ...schema,
35602
- field: props2.groupInObject ? [...isArray$2(props2.schema.field) ? props2.schema.field : [props2.schema.field], schema.field] : isArray$2(props2.schema.field) && props2.deconstructLevel ? [...props2.schema.field.slice(0, -props2.deconstructLevel), schema.field] : schema.field
35611
+ field: props2.groupInObject ? [...isArray$2(props2.schema.field) ? props2.schema.field : [props2.schema.field], schema.field] : schema.field
35603
35612
  }
35604
35613
  }), null);
35605
35614
  };
package/lib/index.js CHANGED
@@ -12370,6 +12370,14 @@ function useFormValues({
12370
12370
  }
12371
12371
  const isGroup = item.component === "Group";
12372
12372
  const isGroupInObj = !isBoolean(_props == null ? void 0 : _props.groupInObject) || isBoolean(_props.groupInObject) && _props.groupInObject;
12373
+ const isDeconstruct = !isNumber$2(_props == null ? void 0 : _props.deconstructLevel) || isNumber$2(_props.deconstructLevel) && _props.deconstructLevel;
12374
+ if (isGroup && !isGroupInObj && isDeconstruct && link) {
12375
+ treeExpandSchema(
12376
+ _props.schemas,
12377
+ true,
12378
+ [...`${linkField}`.split("."), item.field].slice(0, -_props.deconstructLevel).join(".")
12379
+ );
12380
+ }
12373
12381
  if (isGroup && !isGroupInObj) {
12374
12382
  return treeExpandSchema(_props.schemas);
12375
12383
  }
@@ -12386,6 +12394,7 @@ function useFormValues({
12386
12394
  if (link) {
12387
12395
  item.field = [linkField, item.field].join(".");
12388
12396
  }
12397
+ item.field.startsWith(".") && (item.field = item.field.slice(1));
12389
12398
  return item;
12390
12399
  });
12391
12400
  };
@@ -35623,7 +35632,7 @@ const Group = /* @__PURE__ */ vue.defineComponent({
35623
35632
  },
35624
35633
  "schema": {
35625
35634
  ...schema,
35626
- field: props2.groupInObject ? [...isArray$2(props2.schema.field) ? props2.schema.field : [props2.schema.field], schema.field] : isArray$2(props2.schema.field) && props2.deconstructLevel ? [...props2.schema.field.slice(0, -props2.deconstructLevel), schema.field] : schema.field
35635
+ field: props2.groupInObject ? [...isArray$2(props2.schema.field) ? props2.schema.field : [props2.schema.field], schema.field] : schema.field
35627
35636
  }
35628
35637
  }), null);
35629
35638
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "3.0.0-next.208",
3
+ "version": "3.0.0-next.209",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -30,8 +30,8 @@
30
30
  "vxe-table": "^4.3.6",
31
31
  "xe-utils": "^3.5.7",
32
32
  "@shy-plugins/tinymce": "^1.0.6",
33
- "@shy-plugins/utils": "1.0.0-next.1",
34
- "@shy-plugins/use": "1.0.1-next.5"
33
+ "@shy-plugins/use": "1.0.1-next.5",
34
+ "@shy-plugins/utils": "1.0.0-next.1"
35
35
  },
36
36
  "types": "es/ui/index.d.ts",
37
37
  "devDependencies": {