v0.5.13
This commit is contained in:
@@ -686,10 +686,8 @@ const xe = xt.getInstance(), st = () => {
|
||||
}, Nn = (e, t, i = [], n = {}) => {
|
||||
const r = W({}), a = W(), o = d.debounce(st(), 180), s = ["disabled", "required"], l = (h, m) => {
|
||||
s.includes(h) && (r.current[h] = m), o();
|
||||
}, u = H(() => ({ setDisabled: (h) => l("disabled", h), setRequired: (h) => l("required", h), getDisabled: () => r.current.disabled, getRequired: () => r.current.required }), [t]);
|
||||
if (!t) return [e, r.current];
|
||||
const [c, p] = yi(t, -1, {}, u, n);
|
||||
if (a.current != c && (c >= 0 || !d.isEmpty(i == null ? void 0 : i[c]))) {
|
||||
}, u = H(() => ({ setDisabled: (h) => l("disabled", h), setRequired: (h) => l("required", h), getDisabled: () => r.current.disabled, getRequired: () => r.current.required }), [t]), [c, p] = yi(t, -1, {}, u, n);
|
||||
if (!p && a.current != c && (c >= 0 || !d.isEmpty(i == null ? void 0 : i[c]))) {
|
||||
a.current = c;
|
||||
const { widget: h, widgetPrefix: m, props: f } = i == null ? void 0 : i[c];
|
||||
e = ni(h, m), r.current = d.merge(f, d.pick(r.current, s));
|
||||
Reference in New Issue
Block a user