From b6d75af36cabce7e71e738d49c5ab3a1e3d70ea1 Mon Sep 17 00:00:00 2001 From: what Date: Wed, 5 Nov 2025 20:11:58 +0800 Subject: [PATCH] v0.6.3 --- dist/button.js | 2 +- dist/common/{main-DU7Fa-r2.js => main-CVIH_kMK.js} | 6 +++--- dist/components.js | 2 +- dist/container.js | 2 +- dist/data-converter.js | 2 +- dist/data-list.js | 2 +- dist/data-list/utils.js | 2 +- dist/grid-layout-form.js | 2 +- dist/grid-layout-form/utils.js | 2 +- dist/grid-layout.js | 2 +- dist/grid-layout/utils.js | 2 +- dist/hooks.js | 2 +- dist/iconfont.js | 2 +- dist/index.js | 2 +- dist/pages.js | 2 +- dist/res-ws.js | 2 +- dist/utils.js | 2 +- package.json | 2 +- 18 files changed, 20 insertions(+), 20 deletions(-) rename dist/common/{main-DU7Fa-r2.js => main-CVIH_kMK.js} (99%) diff --git a/dist/button.js b/dist/button.js index f687d7f..e514833 100644 --- a/dist/button.js +++ b/dist/button.js @@ -1,4 +1,4 @@ -import { ah as s, ag as u, ai as e } from "./common/main-DU7Fa-r2.js"; +import { ah as s, ag as u, ai as e } from "./common/main-CVIH_kMK.js"; export { s as auth, u as default, diff --git a/dist/common/main-DU7Fa-r2.js b/dist/common/main-CVIH_kMK.js similarity index 99% rename from dist/common/main-DU7Fa-r2.js rename to dist/common/main-CVIH_kMK.js index 44de741..268a150 100644 --- a/dist/common/main-DU7Fa-r2.js +++ b/dist/common/main-CVIH_kMK.js @@ -804,7 +804,7 @@ const Se = xt.getInstance(), ot = () => { } }); }, jt = ({ name: e, form: t = null, basicForm: n = null, style: a = {}, className: i, cols: r = 24, rowHeight: o = 16, itemMargin: s = [8, 16], containerPadding: l = [0, 0], fields: p = [], hides: c = [], primaryKey: d = 0, formProps: f = {}, formFields: m = [], listenChangeFields: u, listenChangeFieldsFunc: b, onValuesChange: k, theme: C, themeProps: x = {}, children: v, ...R }) => { const [F] = Q.useForm(t), B = J((T, z) => { - k(T, z), b && Array.isArray(u) && Se.exec(b, { changedValues: T, allValues: z }, { getFieldValue: F.getFieldValue, setFieldValue: F.setFieldValue, setFieldsValue: F.setFieldsValue, isFieldTouched: F.isFieldTouched, isFieldsTouched: F.isFieldsTouched }).catch((N) => console.error("onFormValuesChange", e, N)); + k == null || k(T, z), b && Array.isArray(u) && Se.exec(b, { changedValues: T, allValues: z }, { getFieldValue: F.getFieldValue, setFieldValue: F.setFieldValue, setFieldsValue: F.setFieldsValue, isFieldTouched: F.isFieldTouched, isFieldsTouched: F.isFieldsTouched }).catch((N) => console.error("onFormValuesChange", e, N)); }, [e, F, k, u, b]), M = _(() => [{ name: "__PROPS__", value: f }, { name: "__PRIMARY_KEY__", value: d }].concat(m), [d, f, m]), I = (T, z) => { const N = Ft(T, Ot, n); return E("div", { className: V("ff-grid-layout-form", i), style: { ...a, "--grid-layout-item-margin-x": `${(s == null ? void 0 : s[0]) ?? 8}px`, "--grid-layout-item-margin-y": `${(s == null ? void 0 : s[1]) ?? 16}px`, "--grid-layout-container-padding-y": `${(l == null ? void 0 : l[0]) || 0}px`, "--grid-layout-container-padding-x": `${(l == null ? void 0 : l[1]) || 0}px`, "--grid-layout-cols": r, "--grid-layout-row-height": `${o}px` }, children: [N, z && S.cloneElement(z, { cols: r, rowHeight: o, itemMargin: s, containerPadding: l, fields: T, basicForm: n })] }); @@ -851,7 +851,7 @@ const Ua = (e, t, n, a) => ke.redirect(n, t, a), _a = (e, t = {}, n, a = {}) => return h.isFunction(n) ? n.call(null, { ...t, ...o }) : h.isString(n) && n ? Se.exec(n, t, o) : null; }, Gt = (e, t, n, a, i) => h.isString(n) && n ? ne.getWidgetComponent(n).then(({ default: r }) => Y.modal(r, { ...t, $setting: a }, i != null && i.title ? { ...i, title: h.template(i.title)(e) } : i)).catch((r) => { Y.error(n, { content: r.toString() }); -}) : Y.modal(n, { ...t, $setting: a }, i != null && i.title ? { ...i, title: h.template(i.title)(e) } : i), qa = (e, t, n, a, i) => Y.modal(Cn, { ...t, $setting: a, code: n }, i != null && i.title ? { ...i, title: h.template(i.title)(e) } : i), Wa = (e, t, n, a, i) => Y.modal(Rt, { base62params: t, $setting: a, listCode: n }, i != null && i.title ? { ...i, title: h.template(i.title)(e) } : i), Ka = ({ widget: e, widgetType: t, widgetData: n, widgetProps: a, widgetSetting: i, widgetContainerProps: r }, { onAfterClick: o, onBeforeClick: s }) => { +}) : Y.modal(n, { ...t, $setting: a }, i != null && i.title ? { ...i, title: h.template(i.title)(e) } : i), qa = (e, t, n, a, i) => Y.modal(Cn, { ...t, $setting: a, code: n }, i != null && i.title ? { ...i, title: h.template(i.title)(e) } : i), Wa = (e, t, n, a, i) => Y.modal(Rt, { base62params: t, $setting: a, listCode: n }, i != null && i.title ? { ...i, title: h.template(i.title)(e) } : i), Ka = ({ widget: e, widgetType: t, widgetData: n, widgetProps: a, widgetSetting: i, widgetContainerProps: r }, { onAfterClick: o, onBeforeClick: s } = {}) => { const l = ae(Z), [p, c] = O({ leading: !0, trailing: !1 }), d = _(() => { switch (t) { case "redirect": @@ -977,7 +977,7 @@ const A = new (Qt = class { return W(this, Ee, new ft()), new Proxy(y(this, Ee), { get: (e, t) => t === "init" ? this.init.bind(this) : t === "appUrl" ? this.appUrl : e[t] }); } init(e, t, n) { - this.appKey = e, Ae.defaults.baseURL = n, Ae.defaults.timeout = 15e3, y(this, Ee).init(e, t, Ae); + Ae.defaults.baseURL = this.appUrl = n, Ae.defaults.timeout = 15e3, y(this, Ee).init(e, t, Ae); } }, Ee = new WeakMap(), Qt)(); class At extends Error { diff --git a/dist/components.js b/dist/components.js index aaefb69..fc45d3c 100644 --- a/dist/components.js +++ b/dist/components.js @@ -1,4 +1,4 @@ -import { ao as p, af as s, ap as n, aq as t, an as d } from "./common/main-DU7Fa-r2.js"; +import { ao as p, af as s, ap as n, aq as t, an as d } from "./common/main-CVIH_kMK.js"; export { p as Empty, s as Icon, diff --git a/dist/container.js b/dist/container.js index 6e0c8c2..365d8b1 100644 --- a/dist/container.js +++ b/dist/container.js @@ -1,4 +1,4 @@ -import { ak as e, ao as s, ap as p, aq as n, al as t, an as d, am as r, aj as u } from "./common/main-DU7Fa-r2.js"; +import { ak as e, ao as s, ap as p, aq as n, al as t, an as d, am as r, aj as u } from "./common/main-CVIH_kMK.js"; export { e as Context, s as Empty, diff --git a/dist/data-converter.js b/dist/data-converter.js index fcf5f37..e886dcb 100644 --- a/dist/data-converter.js +++ b/dist/data-converter.js @@ -1,6 +1,6 @@ import "lodash"; import "react"; -import { D as p } from "./common/main-DU7Fa-r2.js"; +import { D as p } from "./common/main-CVIH_kMK.js"; export { p as default }; diff --git a/dist/data-list.js b/dist/data-list.js index 795adeb..19840bb 100644 --- a/dist/data-list.js +++ b/dist/data-list.js @@ -1,4 +1,4 @@ -import { J as t, F as e, z as r, C as o, K as i, E as l, B as u, I as D, A as n, L, y as C, N as m, M as p, U as b, P as c, S as F, Q as d, T as O, O as S } from "./common/main-DU7Fa-r2.js"; +import { J as t, F as e, z as r, C as o, K as i, E as l, B as u, I as D, A as n, L, y as C, N as m, M as p, U as b, P as c, S as F, Q as d, T as O, O as S } from "./common/main-CVIH_kMK.js"; export { t as DataListContent, e as DataListContext, diff --git a/dist/data-list/utils.js b/dist/data-list/utils.js index a579583..d78c2be 100644 --- a/dist/data-list/utils.js +++ b/dist/data-list/utils.js @@ -1,5 +1,5 @@ import "lodash"; -import { n as a } from "../common/main-DU7Fa-r2.js"; +import { n as a } from "../common/main-CVIH_kMK.js"; export { a as getDefaultExpandRowKeys }; diff --git a/dist/grid-layout-form.js b/dist/grid-layout-form.js index bc8dab3..6aff7d3 100644 --- a/dist/grid-layout-form.js +++ b/dist/grid-layout-form.js @@ -1,4 +1,4 @@ -import { a5 as s, a7 as r, a6 as u, a4 as o, x as t, ac as m, aa as d, ab as F, ae as i, a9 as c, a8 as g, ad as l } from "./common/main-DU7Fa-r2.js"; +import { a5 as s, a7 as r, a6 as u, a4 as o, x as t, ac as m, aa as d, ab as F, ae as i, a9 as c, a8 as g, ad as l } from "./common/main-CVIH_kMK.js"; export { s as GridLayoutForm, r as GridLayoutFormHelper, diff --git a/dist/grid-layout-form/utils.js b/dist/grid-layout-form/utils.js index 19fb4e0..0f306ea 100644 --- a/dist/grid-layout-form/utils.js +++ b/dist/grid-layout-form/utils.js @@ -1,5 +1,5 @@ import "lodash"; -import { a as o, g } from "../common/main-DU7Fa-r2.js"; +import { a as o, g } from "../common/main-CVIH_kMK.js"; export { o as getNormalizeWidget, g as getOptionItemByValue diff --git a/dist/grid-layout.js b/dist/grid-layout.js index ae0dec4..9d38be1 100644 --- a/dist/grid-layout.js +++ b/dist/grid-layout.js @@ -1,4 +1,4 @@ -import { o as u, q as e, p as r, H as t, G as d, v as o, x as i, w as G, s as y } from "./common/main-DU7Fa-r2.js"; +import { o as u, q as e, p as r, H as t, G as d, v as o, x as i, w as G, s as y } from "./common/main-CVIH_kMK.js"; export { u as GridLayout, e as GridLayoutFramework, diff --git a/dist/grid-layout/utils.js b/dist/grid-layout/utils.js index d0b8a18..7f530a8 100644 --- a/dist/grid-layout/utils.js +++ b/dist/grid-layout/utils.js @@ -1,4 +1,4 @@ -import { j as a, l, k as o } from "../common/main-DU7Fa-r2.js"; +import { j as a, l, k as o } from "../common/main-CVIH_kMK.js"; export { a as getBoxStyle, l as getNormalizeFields, diff --git a/dist/hooks.js b/dist/hooks.js index 4f4a5dd..c90741c 100644 --- a/dist/hooks.js +++ b/dist/hooks.js @@ -1,7 +1,7 @@ import "lodash"; import "rc-field-form"; import "react"; -import { a1 as r, a0 as o, a2 as p, _ as f, $ as i, a3 as m, Z as c } from "./common/main-DU7Fa-r2.js"; +import { a1 as r, a0 as o, a2 as p, _ as f, $ as i, a3 as m, Z as c } from "./common/main-CVIH_kMK.js"; import { default as b } from "rc-util/lib/hooks/useMergedState"; export { r as useDeepEffect, diff --git a/dist/iconfont.js b/dist/iconfont.js index 5145182..1d8bcc1 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 { af as a } from "./common/main-DU7Fa-r2.js"; +import { af as a } from "./common/main-CVIH_kMK.js"; export { a as default }; diff --git a/dist/index.js b/dist/index.js index aca3a7b..6b8993f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,4 @@ -import { az as t, aA as e, av as o, aw as n, ar as p, ax as r, au as c, at as u, as as f, ay as l } from "./common/main-DU7Fa-r2.js"; +import { az as t, aA as e, av as o, aw as n, ar as p, ax as r, au as c, at as u, as as f, ay as l } from "./common/main-CVIH_kMK.js"; export { t as AppContext, e as AppGlobalParamsContext, diff --git a/dist/pages.js b/dist/pages.js index 85af18b..29a77da 100644 --- a/dist/pages.js +++ b/dist/pages.js @@ -1,4 +1,4 @@ -import { W as t, V as e, X as o, Y as g } from "./common/main-DU7Fa-r2.js"; +import { W as t, V as e, X as o, Y as g } from "./common/main-CVIH_kMK.js"; export { t as CustomPage, e as DataListPage, diff --git a/dist/res-ws.js b/dist/res-ws.js index 0adcbae..bfe53fd 100644 --- a/dist/res-ws.js +++ b/dist/res-ws.js @@ -1,5 +1,5 @@ import "lodash"; -import { R as a } from "./common/main-DU7Fa-r2.js"; +import { R as a } from "./common/main-CVIH_kMK.js"; export { a as default }; diff --git a/dist/utils.js b/dist/utils.js index 534a8ff..4860f1f 100644 --- a/dist/utils.js +++ b/dist/utils.js @@ -1,5 +1,5 @@ import "lodash"; -import { d as r, f as i, e as g, h as m, b as o, c as p, i as P, m as d, r as k, t as u, u as h } from "./common/main-DU7Fa-r2.js"; +import { d as r, f as i, e as g, h as m, b as o, c as p, i as P, m as d, r as k, t as u, u as h } from "./common/main-CVIH_kMK.js"; import "./common/vender-FNiQWFaA.js"; export { r as deepSome, diff --git a/package.json b/package.json index 7b3bf69..dc7daad 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ff", "private": true, - "version": "0.6.1", + "version": "0.6.3", "author": "www.fsdpf.com", "type": "module", "main": "./dist/index.js",