@unizhen/ui 0.1.50 → 0.1.52

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 +7 -14
  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",
@@ -5030,7 +5023,7 @@ var gp = () => new Promise((e) => {
5030
5023
  return e.input === "select" && (e.params.labelKeys || e.search.labelKeys) ? ((e.params.labelKeys || e.search.labelKeys || "").split(",").forEach((e) => {
5031
5024
  r.push(t[e]);
5032
5025
  }), r = Ze(r).join("-")) : r = t[n[1]], e.input === "select" && e.params.valueKey && (i = t[e.params.valueKey]), {
5033
- label: r,
5026
+ label: t?.is_disabled === "1" ? `${r}-已禁用` : r,
5034
5027
  value: i,
5035
5028
  disabled: e.params._search ? !1 : t?.is_disabled === "1",
5036
5029
  params: t
@@ -8359,7 +8352,7 @@ function Ah(e, t, n) {
8359
8352
  }
8360
8353
  //#endregion
8361
8354
  //#region package.json
8362
- var jh = "0.1.50", Mh;
8355
+ var jh = "0.1.52", 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.50",
3
+ "version": "0.1.52",
4
4
  "author": {
5
5
  "name": "Donovan"
6
6
  },