This commit is contained in:
2025-09-26 10:26:17 +08:00
parent b6465478cb
commit 9814ff7a32
18 changed files with 19 additions and 21 deletions

View File

@@ -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));