@okyiww/form 0.0.4 → 0.0.6

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 +10 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4521,10 +4521,9 @@ function b_(f, s, r) {
4521
4521
  };
4522
4522
  }
4523
4523
  function D_(f) {
4524
- var c;
4524
+ var r;
4525
4525
  return {
4526
- [f._adapter.adaptee.formModelName]: f._model.model.value,
4527
- ...((c = ke.context.default) == null ? void 0 : c.formProps) ?? {},
4526
+ ...((r = ke.context.default) == null ? void 0 : r.formProps) ?? {},
4528
4527
  ...f._options.formProps
4529
4528
  };
4530
4529
  }
@@ -4622,7 +4621,7 @@ class F_ {
4622
4621
  const v = Qg(s.component);
4623
4622
  if (!v) return;
4624
4623
  const S = b_(this.runtime, s, c), M = C.isBoolean(s.show) ? s.show : !0, O = L_(s.label, c), V = B_(O, v.name);
4625
- return M && je(p, {
4624
+ return console.log("componentSlots", s.componentSlots), M && je(p, {
4626
4625
  style: ss(s, this.runtime._options.layoutGap)
4627
4626
  }, {
4628
4627
  default: () => [je(this.meta.FormItem, rs(S, {
@@ -4637,7 +4636,9 @@ class F_ {
4637
4636
  C.set(r, s.field, ue);
4638
4637
  },
4639
4638
  placeholder: V
4640
- }, s.componentProps), null)
4639
+ }, s.componentProps), {
4640
+ ...s.componentSlots
4641
+ })
4641
4642
  })]
4642
4643
  });
4643
4644
  }
@@ -4703,7 +4704,9 @@ class F_ {
4703
4704
  const s = D_(this.runtime);
4704
4705
  return () => je(this.meta.Form, rs({
4705
4706
  ref: this.formRef
4706
- }, s), {
4707
+ }, s, {
4708
+ [this.runtime._adapter.adaptee.formModelName]: this.runtime._model.model.value
4709
+ }), {
4707
4710
  ...this.runtime._options.formSlots,
4708
4711
  default: () => je("div", {
4709
4712
  style: T_(this.runtime._options.layoutGap)
@@ -5408,7 +5411,7 @@ class u0 {
5408
5411
  this._model.model.value = {
5409
5412
  ...this._model.model.value,
5410
5413
  ...s
5411
- };
5414
+ }, console.log("hydrate", this._model.model.value);
5412
5415
  });
5413
5416
  }
5414
5417
  getFormRef() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okyiww/form",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "type": "module",