@zy-frontend/element-plus-form 2.0.14 → 2.0.15

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 +20 -17
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -4046,19 +4046,18 @@ const Pe = () => {
4046
4046
  setup(e) {
4047
4047
  const n = Pe(), t = ve(e, "modelValue"), a = e, r = _l(), l = I(() => a.lazy && a.remoteMethod ? {
4048
4048
  lazy: !0,
4049
- persistent: !0,
4050
- lazyLoad: (s, u) => {
4051
- var p;
4052
- const c = s, d = r.start(c);
4053
- Promise.resolve((p = a.remoteMethod) == null ? void 0 : p.call(a, {
4054
- node: s
4055
- }, d)).then((f) => {
4056
- r.isDisposed() || u(r.isCurrent(c, d) ? f : []);
4057
- }).catch((f) => {
4058
- var b;
4059
- r.isDisposed() || ((b = d.signal) != null && b.aborted || console.error(f), u([]));
4049
+ lazyLoad: (u, c) => {
4050
+ var f;
4051
+ const d = u, p = r.start(d);
4052
+ Promise.resolve((f = a.remoteMethod) == null ? void 0 : f.call(a, {
4053
+ node: u
4054
+ }, p)).then((b) => {
4055
+ r.isDisposed() || c(r.isCurrent(d, p) ? b : []);
4056
+ }).catch((b) => {
4057
+ var k;
4058
+ r.isDisposed() || ((k = p.signal) != null && k.aborted || console.error(b), c([]));
4060
4059
  }).finally(() => {
4061
- r.finish(c, d);
4060
+ r.finish(d, p);
4062
4061
  });
4063
4062
  }
4064
4063
  } : {
@@ -4067,17 +4066,21 @@ const Pe = () => {
4067
4066
  ...a.props || {},
4068
4067
  ...l.value,
4069
4068
  multiple: a.multiple
4070
- })), i = () => {
4069
+ })), i = I(() => ({
4070
+ ...a,
4071
+ props: o.value,
4072
+ persistent: a.persistent || a.lazy && !!a.remoteMethod
4073
+ })), s = () => {
4071
4074
  a.clearValue !== void 0 && (t.value = a.clearValue);
4072
4075
  };
4073
- return (s, u) => (_(), K(x(zo), ie({
4076
+ return (u, c) => (_(), K(x(zo), ie({
4074
4077
  modelValue: t.value,
4075
- "onUpdate:modelValue": u[0] || (u[0] = (c) => t.value = c)
4076
- }, a, {
4078
+ "onUpdate:modelValue": c[0] || (c[0] = (d) => t.value = d)
4079
+ }, i.value, {
4077
4080
  disabled: x(n) || e.disabled,
4078
4081
  props: o.value,
4079
4082
  "popper-class": "zy-popper",
4080
- onClear: i
4083
+ onClear: s
4081
4084
  }), null, 16, ["modelValue", "disabled", "props"]));
4082
4085
  }
4083
4086
  }), If = /* @__PURE__ */ ee({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zy-frontend/element-plus-form",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",