v0.4.58
This commit is contained in:
@@ -815,7 +815,7 @@ const En = We("link"), On = We("circle"), Ln = We("round"), An = We("dashed"), T
|
||||
return d(Ii, { zIndex: 1080, placement: z, onPopupClick: R, onClick: R, open: h, align: M, arrow: B, trigger: f, getPopupContainer: A, content: d(jn, { ...j, extras: p, children: $ && k.cloneElement($, { ...w, $close: (V) => x(!1, V) }) }), children: u, onOpenChange: x });
|
||||
}, jn = ({ title: e, className: t, children: i, extras: n, width: r, height: a, ...o }) => {
|
||||
const [s, l] = N({}), u = Y((m, f) => l((C) => ({ ...C, [m]: f })), []), p = Y((m) => l((f) => ({ ...f, [m]: void 0 })), []), g = e ? k.createElement("div", { className: "ff-popup-title" }, e) : s == null ? void 0 : s.title, h = n ?? k.createElement("div", { className: "ff-popup-reserved-extras" }, n);
|
||||
return d(qe.Provider, { value: { ele: s, mount: u, unmount: p }, children: O("div", { className: I("ff-popup ff-popover", t), style: { width: r, height: a }, ...o, children: [O("div", { className: "ff-popup-header", children: [g, s == null ? void 0 : s["sub-title"]] }), i, O("div", { className: "ff-popup-footer", children: [h, s == null ? void 0 : s.extras, s == null ? void 0 : s.actions] })] }) });
|
||||
return d(qe.Provider, { value: { ele: s, mount: u, unmount: p }, children: O("div", { className: I("ff-popup ff-popover", t, s.rootClassName), style: { width: r, height: a }, ...o, children: [O("div", { className: "ff-popup-header", children: [g, s == null ? void 0 : s["sub-title"]] }), i, O("div", { className: "ff-popup-footer", children: [h, s == null ? void 0 : s.extras, s == null ? void 0 : s.actions] })] }) });
|
||||
};
|
||||
Tt.propTypes = { widgetType: b.oneOf(["fsdpf-component", "grid-layout-form", "data-list"]) };
|
||||
const Ht = ({ options: e = [], triggerWeights: t = ["grid-layout-form", "grid-layout", "fsdpf-component", "print"], onAfterClick: i = (m, f, C) => {
|
||||
Reference in New Issue
Block a user