@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.
- package/dist/index.es.js +20 -17
- 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
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
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(
|
|
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 (
|
|
4076
|
+
return (u, c) => (_(), K(x(zo), ie({
|
|
4074
4077
|
modelValue: t.value,
|
|
4075
|
-
"onUpdate:modelValue":
|
|
4076
|
-
},
|
|
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:
|
|
4083
|
+
onClear: s
|
|
4081
4084
|
}), null, 16, ["modelValue", "disabled", "props"]));
|
|
4082
4085
|
}
|
|
4083
4086
|
}), If = /* @__PURE__ */ ee({
|