@unizhen/ui 0.1.49 → 0.1.51

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/lib/ui.js +8 -15
  2. package/package.json +1 -1
package/lib/ui.js CHANGED
@@ -3785,7 +3785,7 @@ var Of = /*#__PURE__*/ U(Tf, [["render", Df]]), kf = d({
3785
3785
  }), e), d = () => {
3786
3786
  e.items && Array.isArray(e.items) && (o.value = u(H(e.items)));
3787
3787
  }, f = () => {
3788
- n("on-change", H(o.value));
3788
+ n("on-change", H(o.value)), m();
3789
3789
  }, m = () => {
3790
3790
  s.value = [-1, -1], n("on-select", void 0);
3791
3791
  };
@@ -3838,8 +3838,7 @@ function Mf(t, o, s, u, d, f) {
3838
3838
  handle: ".uz-form-grid-item",
3839
3839
  class: "uz-form-grid",
3840
3840
  style: { "grid-template-columns": "repeat(12, minmax(0px, 1fr))" },
3841
- onEnd: t.onCancel,
3842
- onChange: t.onDragChange
3841
+ onEnd: t.onDragChange
3843
3842
  }, {
3844
3843
  default: N(() => [(x(!0), i(e, null, T(t.formItems, (s, u) => (x(), n(S, {
3845
3844
  path: s.key,
@@ -3890,8 +3889,7 @@ function Mf(t, o, s, u, d, f) {
3890
3889
  group: "uz-form",
3891
3890
  handle: ".uz-form-grid-item",
3892
3891
  class: "uz-form-grid",
3893
- onEnd: t.onCancel,
3894
- onChange: t.onDragChange
3892
+ onEnd: t.onDragChange
3895
3893
  }, {
3896
3894
  default: N(() => [(x(!0), i(e, null, T(s.params.children, (e, i) => (x(), n(S, {
3897
3895
  label: e.input === "divider" ? "" : typeof e.label == "function" ? e.label() : e.label,
@@ -3940,8 +3938,7 @@ function Mf(t, o, s, u, d, f) {
3940
3938
  }, 1032, [
3941
3939
  "modelValue",
3942
3940
  "onUpdate:modelValue",
3943
- "onEnd",
3944
- "onChange"
3941
+ "onEnd"
3945
3942
  ])) : s.input === "divider" ? (x(), n(w, {
3946
3943
  key: 3,
3947
3944
  "title-placement": s.params.placement
@@ -3969,11 +3966,7 @@ function Mf(t, o, s, u, d, f) {
3969
3966
  "show-feedback"
3970
3967
  ]))), 128))]),
3971
3968
  _: 1
3972
- }, 8, [
3973
- "modelValue",
3974
- "onEnd",
3975
- "onChange"
3976
- ])]),
3969
+ }, 8, ["modelValue", "onEnd"])]),
3977
3970
  _: 1
3978
3971
  }, 8, [
3979
3972
  "model",
@@ -4569,7 +4562,7 @@ var ep = /*#__PURE__*/ U(Jf, [["render", $f]]), tp = d({
4569
4562
  new ResizeObserver((e) => {
4570
4563
  for (let n of e) {
4571
4564
  let e = n.target;
4572
- e.offsetWidth > 700 ? (t.instance.gridSpan = 1, t.instance.more = t.instance.moreCache, t.instance.offset = t.instance.offsetCache) : e.offsetWidth <= 700 && e.offsetWidth > 550 ? (t.instance.gridSpan = 2, t.instance.more = t.instance.moreIndex > 2, t.instance.offset = t.instance.moreIndex === 1 ? 1 : -1) : (t.instance.gridSpan = 4, t.instance.more = t.instance.moreIndex > 1, t.instance.offset = -1);
4565
+ e.offsetWidth > 1100 ? (t.instance.gridSpan = 1, t.instance.more = t.instance.moreCache, t.instance.offset = t.instance.offsetCache) : e.offsetWidth <= 1100 && e.offsetWidth > 550 ? (t.instance.gridSpan = 2, t.instance.more = t.instance.moreIndex > 2, t.instance.offset = t.instance.moreIndex === 1 ? 1 : -1) : (t.instance.gridSpan = 4, t.instance.more = t.instance.moreIndex > 1, t.instance.offset = -1);
4573
4566
  }
4574
4567
  }).observe(e);
4575
4568
  } } },
@@ -4728,7 +4721,7 @@ function ap(t, a, o, s, u, d) {
4728
4721
  }, null, 8, ["offset"])) : r("", !0),
4729
4722
  (x(!0), i(e, null, T(t.itemData, (e, r) => (x(), n(m, {
4730
4723
  key: `${r}_${Date.now()}`,
4731
- span: e.search.show ? e.search.span || t.gridSpan : 0
4724
+ span: e.search.show ? e.search.span === 1 ? t.gridSpan : e.search.span || t.gridSpan : 0
4732
4725
  }, {
4733
4726
  default: N(() => [l(y, null, {
4734
4727
  default: N(() => [l(_, {
@@ -8359,7 +8352,7 @@ function Ah(e, t, n) {
8359
8352
  }
8360
8353
  //#endregion
8361
8354
  //#region package.json
8362
- var jh = "0.1.49", Mh;
8355
+ var jh = "0.1.51", Mh;
8363
8356
  async function Nh() {
8364
8357
  let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
8365
8358
  method: "HEAD",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unizhen/ui",
3
- "version": "0.1.49",
3
+ "version": "0.1.51",
4
4
  "author": {
5
5
  "name": "Donovan"
6
6
  },