diff --git a/dist/button.js b/dist/button.js index 026bfd6..70e1ba8 100644 --- a/dist/button.js +++ b/dist/button.js @@ -1,4 +1,4 @@ -import { P as s, O as u, Q as e } from "./common/main-BHLR5OFm.js"; +import { P as s, O as u, Q as e } from "./common/main-CxqrXb2v.js"; import "prop-types"; export { s as auth, diff --git a/dist/common/main-BHLR5OFm.js b/dist/common/main-CxqrXb2v.js similarity index 99% rename from dist/common/main-BHLR5OFm.js rename to dist/common/main-CxqrXb2v.js index c25709e..eb0dbf2 100644 --- a/dist/common/main-BHLR5OFm.js +++ b/dist/common/main-CxqrXb2v.js @@ -690,7 +690,7 @@ const Qe = (e) => function({ className: t, children: a, name: n, icon: i, type: return c(Sa, { zIndex: 1e3, placement: E, onPopupClick: W, onClick: W, open: u, trigger: m, content: c(wn, { ...A, children: C && b.cloneElement(C, { ...h, $close: () => J(!1) }) }), children: n, onOpenChange: J }); }, wn = ({ title: e, className: t, children: a, ...n }) => { const [i, r] = P({}), s = ge((u, d) => r((m) => ({ ...m, [u]: d })), []), o = ge((u) => r((d) => ({ ...d, [u]: void 0 })), []), l = e ? b.createElement("div", { className: "ff-popup-title" }, e) : i == null ? void 0 : i.title; - return c(_e.Provider, { value: { ele: i, mount: s, unmount: o }, children: $("div", { className: cx("ff-popup ff-popover", t), ...n, children: [l || i != null && i["sub-title"] ? $("div", { className: "ff-popup-header", children: [l || c("div", { className: "ff-popup-title" }), (i == null ? void 0 : i["sub-title"]) || c("div", { className: "ff-popup-sub-title" })] }) : null, a, i != null && i.extras || i != null && i.actions ? $("div", { className: "ff-popup-footer", children: [(i == null ? void 0 : i.extras) || c("div", { className: "ff-popup-extras" }), (i == null ? void 0 : i.actions) || c("div", { className: "ff-popup-actions" })] }) : null] }) }); + return c(_e.Provider, { value: { ele: i, mount: s, unmount: o }, children: $("div", { className: R("ff-popup ff-popover", t), ...n, children: [l || i != null && i["sub-title"] ? $("div", { className: "ff-popup-header", children: [l || c("div", { className: "ff-popup-title" }), (i == null ? void 0 : i["sub-title"]) || c("div", { className: "ff-popup-sub-title" })] }) : null, a, i != null && i.extras || i != null && i.actions ? $("div", { className: "ff-popup-footer", children: [(i == null ? void 0 : i.extras) || c("div", { className: "ff-popup-extras" }), (i == null ? void 0 : i.actions) || c("div", { className: "ff-popup-actions" })] }) : null] }) }); }; Bt.propTypes = { widgetType: O.oneOf(["fsdpf-component", "grid-layout-form", "data-list"]) }, S.propTypes = { type: O.oneOf(["primary", "default", "danger", ""]), name: O.string, icon: O.string, iconPosition: O.oneOf(["start", "end"]), data: O.any, widget: O.any, widgetType: O.oneOf(["destroy", "redirect", "func", "fsdpf-component", "grid-layout-form", "grid-layout", "data-list"]), widgetData: O.object, widgetProps: O.object, widgetSetting: O.object, widgetContainerProps: O.object }, S.Link = mn, S.Link.defaultProps = S.defaultProps, S.Link.propTypes = S.propTypes, S.Circle = hn, S.Circle.defaultProps = S.defaultProps, S.Circle.propTypes = S.propTypes, S.Round = fn, S.Round.defaultProps = S.defaultProps, S.Round.propTypes = S.propTypes, S.Dashed = yn, S.Dashed.defaultProps = S.defaultProps, S.Dashed.propTypes = S.propTypes, S.Popover = Bt; const bn = ({ fields: e, formProps: t, $close: a }) => { diff --git a/dist/components.js b/dist/components.js index 8664e67..061aea4 100644 --- a/dist/components.js +++ b/dist/components.js @@ -1,4 +1,4 @@ -import { X as s, N as p, Y as n, Z as t, W as d } from "./common/main-BHLR5OFm.js"; +import { X as s, N as p, Y as n, Z as t, W as d } from "./common/main-CxqrXb2v.js"; export { s as Empty, p as Icon, diff --git a/dist/container.js b/dist/container.js index d5b38e7..cfd9b74 100644 --- a/dist/container.js +++ b/dist/container.js @@ -1,4 +1,4 @@ -import { T as o, X as s, Y as p, Z as t, U as d, W as n, V as r, S as u } from "./common/main-BHLR5OFm.js"; +import { T as o, X as s, Y as p, Z as t, U as d, W as n, V as r, S as u } from "./common/main-CxqrXb2v.js"; export { o as Context, s as Empty, diff --git a/dist/data-list.js b/dist/data-list.js index 9c66d0f..07cc1b8 100644 --- a/dist/data-list.js +++ b/dist/data-list.js @@ -1,4 +1,4 @@ -import { m as s, k as e, e as r, i, n as o, j as D, h as l, l as u, f as L, o as n, D as d, p as m, q as F, s as p, t as C, r as b } from "./common/main-BHLR5OFm.js"; +import { m as s, k as e, e as r, i, n as o, j as D, h as l, l as u, f as L, o as n, D as d, p as m, q as F, s as p, t as C, r as b } from "./common/main-CxqrXb2v.js"; export { s as DataListContent, e as DataListContext, diff --git a/dist/data-list/utils.js b/dist/data-list/utils.js index 162a8ac..5eeb96d 100644 --- a/dist/data-list/utils.js +++ b/dist/data-list/utils.js @@ -1,5 +1,5 @@ import "lodash"; -import { a as t } from "../common/main-BHLR5OFm.js"; +import { a as t } from "../common/main-CxqrXb2v.js"; export { t as getDefaultExpandRowKeys }; diff --git a/dist/grid-layout-form.js b/dist/grid-layout-form.js index e4518b6..c5c48cb 100644 --- a/dist/grid-layout-form.js +++ b/dist/grid-layout-form.js @@ -1,4 +1,4 @@ -import { E as r, I as u, F as e, C as o, M as t, L as F, K as d, J as m } from "./common/main-BHLR5OFm.js"; +import { E as r, I as u, F as e, C as o, M as t, L as F, K as d, J as m } from "./common/main-CxqrXb2v.js"; export { r as GridLayoutForm, u as GridLayoutFormHelper, diff --git a/dist/grid-layout-form/utils.js b/dist/grid-layout-form/utils.js index 32a36fe..74f3078 100644 --- a/dist/grid-layout-form/utils.js +++ b/dist/grid-layout-form/utils.js @@ -1,5 +1,5 @@ import "lodash"; -import { a7 as a } from "../common/main-BHLR5OFm.js"; +import { a7 as a } from "../common/main-CxqrXb2v.js"; export { a as getOptionItemByValue }; diff --git a/dist/grid-layout.js b/dist/grid-layout.js index e08220d..204b535 100644 --- a/dist/grid-layout.js +++ b/dist/grid-layout.js @@ -1,4 +1,4 @@ -import { b as d, c as e, H as u, G as i, u as t, d as o } from "./common/main-BHLR5OFm.js"; +import { b as d, c as e, H as u, G as i, u as t, d as o } from "./common/main-CxqrXb2v.js"; export { d as GridLayout, e as GridLayoutWidget, diff --git a/dist/grid-layout/utils.js b/dist/grid-layout/utils.js index fd2adfe..46aaae7 100644 --- a/dist/grid-layout/utils.js +++ b/dist/grid-layout/utils.js @@ -1,4 +1,4 @@ -import { g as t } from "../common/main-BHLR5OFm.js"; +import { g as t } from "../common/main-CxqrXb2v.js"; export { t as getBoxStyle }; diff --git a/dist/hooks.js b/dist/hooks.js index 75afcff..42e7698 100644 --- a/dist/hooks.js +++ b/dist/hooks.js @@ -1,7 +1,7 @@ import "lodash"; import "rc-field-form"; import "react"; -import { z as p, y as i, A as o, w as r, x as f, B as c, v as m } from "./common/main-BHLR5OFm.js"; +import { z as p, y as i, A as o, w as r, x as f, B as c, v as m } from "./common/main-CxqrXb2v.js"; export { p as useDeepEffect, i as useDeepEqualEffect, diff --git a/dist/iconfont.js b/dist/iconfont.js index 2ed511e..647955c 100644 --- a/dist/iconfont.js +++ b/dist/iconfont.js @@ -2,7 +2,7 @@ import "react/jsx-runtime"; import "react"; import "prop-types"; import "classnames"; -import { N as a } from "./common/main-BHLR5OFm.js"; +import { N as a } from "./common/main-CxqrXb2v.js"; export { a as default }; diff --git a/dist/index.js b/dist/index.js index fe4d5bb..e736783 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,4 @@ -import { a5 as t, a6 as e, a1 as o, a2 as p, _ as n, a3 as c, a0 as r, $ as f, a4 as u } from "./common/main-BHLR5OFm.js"; +import { a5 as t, a6 as e, a1 as o, a2 as p, _ as n, a3 as c, a0 as r, $ as f, a4 as u } from "./common/main-CxqrXb2v.js"; export { t as AppContext, e as AppGlobalParamsContext, diff --git a/dist/res-ws.js b/dist/res-ws.js index 828abe7..cbba811 100644 --- a/dist/res-ws.js +++ b/dist/res-ws.js @@ -1,5 +1,5 @@ import "lodash"; -import { R as a } from "./common/main-BHLR5OFm.js"; +import { R as a } from "./common/main-CxqrXb2v.js"; export { a as default }; diff --git a/package.json b/package.json index 1922214..838a562 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ff", "private": true, - "version": "0.4.4", + "version": "0.4.5", "author": "www.fsdpf.com", "type": "module", "main": "./dist/index.js",