This commit is contained in:
2026-05-04 22:32:29 +08:00
parent 1a56b292a1
commit 6d0023e235
19 changed files with 20 additions and 20 deletions

View File

@@ -911,7 +911,7 @@ const In = (t, e, i, r) => ae.redirect(i, e, r), Mn = (t, e = {}, i, r = {}) =>
case "redirect":
return f.partialRight(In, t, n);
case "func":
return f.partialRight(Ni, (n == null ? void 0 : n.code) ?? t, { status: d, setStatus: u });
return f.partialRight(Ni, (n == null ? void 0 : n.code) ?? t, { status: d, setStatus: u, listFn: l });
case "component":
case "fsdpf-component":
return f.partialRight(vi, t, n, o);
@@ -926,7 +926,7 @@ const In = (t, e, i, r) => ae.redirect(i, e, r), Mn = (t, e = {}, i, r = {}) =>
if (f.isFunction(t)) return f.partialRight(Ni, (n == null ? void 0 : n.code) || t, { status: d, setStatus: u });
}
return (...h) => console.error("useButton unknown widgetType", e, ...h);
}, [t, e]);
}, [t, e, l.getBase62params, l.getSelectedRows]);
return [f.debounce((h) => (s == null || s(h), Promise.resolve(Tt(r, h, { list: l })).then((g) => p(h, { ...i, ...g })).then((g) => a == null ? void 0 : a(g)).catch(console.error)), 300, { leading: !0, trailing: !1 }), d];
}, nr = ({ type: t, name: e, className: i, icon: r, iconPosition: n, size: o }, a = "default") => q(() => {
const s = { type: "primary", className: O("ff-button", i), iconPosition: n, size: o };