diff --git a/dist/button.js b/dist/button.js index 6d81415..3532a90 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-2s1hdQO8.js"; +import { P as s, O as u, Q as e } from "./common/main-BWGhrIEF.js"; import "prop-types"; export { s as auth, diff --git a/dist/common/main-2s1hdQO8.js b/dist/common/main-BWGhrIEF.js similarity index 99% rename from dist/common/main-2s1hdQO8.js rename to dist/common/main-BWGhrIEF.js index 0b279d5..156c938 100644 --- a/dist/common/main-2s1hdQO8.js +++ b/dist/common/main-BWGhrIEF.js @@ -687,10 +687,10 @@ const Qe = (e) => function({ className: t, children: a, name: n, icon: i, type: }, I = () => { d(!0), y("click"); }; - return c(Sa, { zIndex: 1e3, ...o, onPopupClick: I, onClick: I, open: u, trigger: m, content: c(wn, { children: C && b.cloneElement(C, { ...h, $close: () => x(!1) }) }), children: n, onOpenChange: x, overlayClassName: "ff-popup ff-popover" }); + return c(Sa, { zIndex: 1e3, ...o, onPopupClick: I, onClick: I, open: u, trigger: m, content: c(wn, { children: C && b.cloneElement(C, { ...h, $close: () => x(!1) }) }), children: n, onOpenChange: x }); }, wn = ({ children: e }) => { const [t, a] = P({}), n = ge((r, s) => a((o) => ({ ...o, [r]: s })), []), i = ge((r) => a((s) => ({ ...s, [r]: void 0 })), []); - return $(_e.Provider, { value: { ele: t, mount: n, unmount: i }, children: [t != null && t.title || t != null && t["sub-title"] ? $("div", { className: "ff-popup-header", children: [(t == null ? void 0 : t.title) || c("div", { className: "ff-popup-title" }), (t == null ? void 0 : t["sub-title"]) || c("div", { className: "ff-popup-sub-title" })] }) : null, e, t != null && t.extras || t != null && t.actions ? $("div", { className: "ff-popup-footer", children: [(t == null ? void 0 : t.extras) || c("div", { className: "ff-popup-extras" }), (t == null ? void 0 : t.actions) || c("div", { className: "ff-popup-actions" })] }) : null] }); + return c(_e.Provider, { value: { ele: t, mount: n, unmount: i }, children: $("div", { className: "ff-popup ff-popover", children: [t != null && t.title || t != null && t["sub-title"] ? $("div", { className: "ff-popup-header", children: [(t == null ? void 0 : t.title) || c("div", { className: "ff-popup-title" }), (t == null ? void 0 : t["sub-title"]) || c("div", { className: "ff-popup-sub-title" })] }) : null, e, t != null && t.extras || t != null && t.actions ? $("div", { className: "ff-popup-footer", children: [(t == null ? void 0 : t.extras) || c("div", { className: "ff-popup-extras" }), (t == null ? void 0 : t.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 30cd9ca..9052d47 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-2s1hdQO8.js"; +import { X as s, N as p, Y as n, Z as t, W as d } from "./common/main-BWGhrIEF.js"; export { s as Empty, p as Icon, diff --git a/dist/container.js b/dist/container.js index 33b6e77..56bc327 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-2s1hdQO8.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-BWGhrIEF.js"; export { o as Context, s as Empty, diff --git a/dist/data-list.js b/dist/data-list.js index 410171f..c5c59d7 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-2s1hdQO8.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-BWGhrIEF.js"; export { s as DataListContent, e as DataListContext, diff --git a/dist/data-list/utils.js b/dist/data-list/utils.js index 211f40e..4ecaf27 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-2s1hdQO8.js"; +import { a as t } from "../common/main-BWGhrIEF.js"; export { t as getDefaultExpandRowKeys }; diff --git a/dist/grid-layout-form.js b/dist/grid-layout-form.js index 0281909..8b56f32 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-2s1hdQO8.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-BWGhrIEF.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 b3bcd1e..e3d2a7c 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-2s1hdQO8.js"; +import { a7 as a } from "../common/main-BWGhrIEF.js"; export { a as getOptionItemByValue }; diff --git a/dist/grid-layout.js b/dist/grid-layout.js index 860dd7e..ec345b7 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-2s1hdQO8.js"; +import { b as d, c as e, H as u, G as i, u as t, d as o } from "./common/main-BWGhrIEF.js"; export { d as GridLayout, e as GridLayoutWidget, diff --git a/dist/grid-layout/utils.js b/dist/grid-layout/utils.js index 59f5484..4acf42f 100644 --- a/dist/grid-layout/utils.js +++ b/dist/grid-layout/utils.js @@ -1,4 +1,4 @@ -import { g as t } from "../common/main-2s1hdQO8.js"; +import { g as t } from "../common/main-BWGhrIEF.js"; export { t as getBoxStyle }; diff --git a/dist/hooks.js b/dist/hooks.js index 88b87a3..c5ecd1c 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-2s1hdQO8.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-BWGhrIEF.js"; export { p as useDeepEffect, i as useDeepEqualEffect, diff --git a/dist/iconfont.js b/dist/iconfont.js index 40067ec..fc3d74d 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-2s1hdQO8.js"; +import { N as a } from "./common/main-BWGhrIEF.js"; export { a as default }; diff --git a/dist/index.js b/dist/index.js index 85290fb..70fdfeb 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-2s1hdQO8.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-BWGhrIEF.js"; export { t as AppContext, e as AppGlobalParamsContext, diff --git a/dist/res-ws.js b/dist/res-ws.js index 3501eca..f873886 100644 --- a/dist/res-ws.js +++ b/dist/res-ws.js @@ -1,5 +1,5 @@ import "lodash"; -import { R as a } from "./common/main-2s1hdQO8.js"; +import { R as a } from "./common/main-BWGhrIEF.js"; export { a as default }; diff --git a/package.json b/package.json index 47392e0..e929ed6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ff", "private": true, - "version": "0.4.2", + "version": "0.4.3", "author": "www.fsdpf.com", "type": "module", "main": "./dist/index.js",