v0.7.10
This commit is contained in:
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import { am as s, al as u, an as e } from "./common/main-Dryw40ez.js";
|
import { am as s, al as u, an as e } from "./common/main-DCysVEHh.js";
|
||||||
export {
|
export {
|
||||||
s as auth,
|
s as auth,
|
||||||
u as default,
|
u as default,
|
||||||
|
|||||||
Vendored
+1605
File diff suppressed because it is too large
Load Diff
Vendored
-1567
File diff suppressed because it is too large
Load Diff
Vendored
+37
-1
@@ -47,6 +47,42 @@ declare function SetPropsWrapper({ widget, widgetProps: externalProps, $close, o
|
|||||||
onSetProps?: (patch: any) => void;
|
onSetProps?: (patch: any) => void;
|
||||||
}): Function | React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>>;
|
}): Function | React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通用错误边界组件
|
||||||
|
* @param {Object} props
|
||||||
|
* @param {*} props.children
|
||||||
|
* @param {ReactNode|((error: Error, reset: () => void) => ReactNode)} [props.fallback]
|
||||||
|
* 错误时的 UI。函数形式可接收 error 和 reset,不传则显示错误字符串。
|
||||||
|
* @param {Function} [props.onError] 错误回调 (error, info) => void
|
||||||
|
* @param {Function} [props.onReset] 重置回调 () => void
|
||||||
|
* @param {any[]} [props.resetKeys] 任一值变化时自动重置(类似 react-error-boundary)
|
||||||
|
*/
|
||||||
|
declare class ErrorBoundary extends React__default.Component<any, any, any> {
|
||||||
|
static getDerivedStateFromError(error: any): {
|
||||||
|
error: any;
|
||||||
|
};
|
||||||
|
constructor(props: any);
|
||||||
|
constructor(props: any, context: any);
|
||||||
|
state: {
|
||||||
|
error: any;
|
||||||
|
};
|
||||||
|
componentDidCatch(error: any, info: any): void;
|
||||||
|
componentDidUpdate(prevProps: any): void;
|
||||||
|
reset: () => void;
|
||||||
|
render(): any;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 按组件名动态加载并渲染组件
|
||||||
|
* @param {string} [props.widget] 组件名(@pkg/xxx 格式)
|
||||||
|
* @param {Object} [props.widgetSetting] 传给目标组件的 $setting
|
||||||
|
* @param {Object} [props.widgetProps] props 来源配置(经 useWidgetProps 解析)
|
||||||
|
* @param {*} [props.fallback] Suspense fallback,不传则为 null
|
||||||
|
* @param {ReactNode|((error, reset) => ReactNode)} [props.fallbackOnError] ErrorBoundary 错误时的 UI
|
||||||
|
* @param {Function} [props.onError] 错误回调 (error, info) => void
|
||||||
|
*/
|
||||||
|
declare function ImportWidgetComponent({ widget, widgetSetting, widgetProps, fallback, fallbackOnError, onError }?: string): React__default.JSX.Element;
|
||||||
|
|
||||||
/** 空状态占位组件 */
|
/** 空状态占位组件 */
|
||||||
declare function Empty(): React__default.JSX.Element;
|
declare function Empty(): React__default.JSX.Element;
|
||||||
|
|
||||||
@@ -112,4 +148,4 @@ declare function success(content: any, opts?: any): Promise<any>;
|
|||||||
*/
|
*/
|
||||||
declare function error(content: any, opts?: any): Promise<any>;
|
declare function error(content: any, opts?: any): Promise<any>;
|
||||||
|
|
||||||
export { Empty, Iconfont as Icon, Loading, NotFound, FFPopup as Popup, SetPropsWrapper };
|
export { Empty, ErrorBoundary, Iconfont as Icon, ImportWidgetComponent, Loading, NotFound, FFPopup as Popup, SetPropsWrapper };
|
||||||
|
|||||||
Vendored
+8
-6
@@ -1,9 +1,11 @@
|
|||||||
import { at as s, ak as p, au as r, av as t, as as e, aI as n } from "./common/main-Dryw40ez.js";
|
import { at as r, aJ as s, ak as p, aK as t, au as n, av as e, as as d, aI as m } from "./common/main-DCysVEHh.js";
|
||||||
export {
|
export {
|
||||||
s as Empty,
|
r as Empty,
|
||||||
|
s as ErrorBoundary,
|
||||||
p as Icon,
|
p as Icon,
|
||||||
r as Loading,
|
t as ImportWidgetComponent,
|
||||||
t as NotFound,
|
n as Loading,
|
||||||
e as Popup,
|
e as NotFound,
|
||||||
n as SetPropsWrapper
|
d as Popup,
|
||||||
|
m as SetPropsWrapper
|
||||||
};
|
};
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import { ap as s, at as e, au as p, av as t, aq as d, as as n, ar as r, ao as u } from "./common/main-Dryw40ez.js";
|
import { ap as s, at as e, au as p, av as t, aq as d, as as n, ar as r, ao as u } from "./common/main-DCysVEHh.js";
|
||||||
export {
|
export {
|
||||||
s as Context,
|
s as Context,
|
||||||
e as Empty,
|
e as Empty,
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
import "lodash";
|
import "lodash";
|
||||||
import "react";
|
import "react";
|
||||||
import { D as i } from "./common/main-Dryw40ez.js";
|
import { D as i } from "./common/main-DCysVEHh.js";
|
||||||
import "react-use";
|
import "react-use";
|
||||||
export {
|
export {
|
||||||
i as default
|
i as default
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import { w as t, t as e, o as r, r as o, x as i, s as l, q as u, v as n, p as D, y as L, n as p, A as C, z as m, J as b, C as c, F, E as d, I as k, B as w } from "./common/main-Dryw40ez.js";
|
import { w as t, t as e, o as r, r as o, x as i, s as l, q as u, v as n, p as D, y as L, n as p, A as C, z as m, J as b, C as c, F, E as d, I as k, B as w } from "./common/main-DCysVEHh.js";
|
||||||
export {
|
export {
|
||||||
t as DataListContent,
|
t as DataListContent,
|
||||||
e as DataListContext,
|
e as DataListContext,
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
import "lodash";
|
import "lodash";
|
||||||
import { f as a } from "../common/main-Dryw40ez.js";
|
import { f as a } from "../common/main-DCysVEHh.js";
|
||||||
export {
|
export {
|
||||||
a as getDefaultExpandRowKeys
|
a as getDefaultExpandRowKeys
|
||||||
};
|
};
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import { aa as s, ac as r, ab as u, a9 as o, m as t, ah as m, af as d, ag as i, aj as F, ae as g, ad as c, ai as l } from "./common/main-Dryw40ez.js";
|
import { aa as s, ac as r, ab as u, a9 as o, m as t, ah as m, af as d, ag as i, aj as F, ae as g, ad as c, ai as l } from "./common/main-DCysVEHh.js";
|
||||||
export {
|
export {
|
||||||
s as GridLayoutForm,
|
s as GridLayoutForm,
|
||||||
r as GridLayoutFormHelper,
|
r as GridLayoutFormHelper,
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
import "lodash";
|
import "lodash";
|
||||||
import { a as o, g } from "../common/main-Dryw40ez.js";
|
import { a as o, g } from "../common/main-DCysVEHh.js";
|
||||||
export {
|
export {
|
||||||
o as getNormalizeWidget,
|
o as getNormalizeWidget,
|
||||||
g as getOptionItemByValue
|
g as getOptionItemByValue
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import { h as u, j as e, i as r, H as t, G as d, k as i, m as o, l as G, u as l } from "./common/main-Dryw40ez.js";
|
import { h as u, j as e, i as r, H as t, G as d, k as i, m as o, l as G, u as l } from "./common/main-DCysVEHh.js";
|
||||||
export {
|
export {
|
||||||
u as GridLayout,
|
u as GridLayout,
|
||||||
e as GridLayoutFramework,
|
e as GridLayoutFramework,
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import { b as a, d as o, e as s, c as g } from "../common/main-Dryw40ez.js";
|
import { b as a, d as o, e as s, c as g } from "../common/main-DCysVEHh.js";
|
||||||
export {
|
export {
|
||||||
a as getBoxStyle,
|
a as getBoxStyle,
|
||||||
o as getEventProps,
|
o as getEventProps,
|
||||||
|
|||||||
Vendored
+1
-1
@@ -2,7 +2,7 @@ import "lodash";
|
|||||||
import "rc-field-form";
|
import "rc-field-form";
|
||||||
import "react";
|
import "react";
|
||||||
import "react-use";
|
import "react-use";
|
||||||
import { a4 as u, a3 as o, a5 as i, a2 as f, a6 as m, a1 as d, a8 as c, a7 as l } from "./common/main-Dryw40ez.js";
|
import { a4 as u, a3 as o, a5 as i, a2 as f, a6 as m, a1 as d, a8 as c, a7 as l } from "./common/main-DCysVEHh.js";
|
||||||
import { default as b } from "rc-util/lib/hooks/useMergedState";
|
import { default as b } from "rc-util/lib/hooks/useMergedState";
|
||||||
import { a as x } from "./common/vender-CIG7ep61.js";
|
import { a as x } from "./common/vender-CIG7ep61.js";
|
||||||
export {
|
export {
|
||||||
|
|||||||
Vendored
+1
-1
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|||||||
import "react";
|
import "react";
|
||||||
import "prop-types";
|
import "prop-types";
|
||||||
import "classnames";
|
import "classnames";
|
||||||
import { ak as a } from "./common/main-Dryw40ez.js";
|
import { ak as a } from "./common/main-DCysVEHh.js";
|
||||||
export {
|
export {
|
||||||
a as default
|
a as default
|
||||||
};
|
};
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import { aE as t, aF as e, aA as o, aB as n, aw as p, aC as r, az as c, ay as f, ax as l, aD as u } from "./common/main-Dryw40ez.js";
|
import { aE as t, aF as e, aA as o, aB as n, aw as p, aC as r, az as c, ay as f, ax as l, aD as u } from "./common/main-DCysVEHh.js";
|
||||||
export {
|
export {
|
||||||
t as AppContext,
|
t as AppContext,
|
||||||
e as AppGlobalParamsContext,
|
e as AppGlobalParamsContext,
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import { L as t, K as e, M as o, N as g } from "./common/main-Dryw40ez.js";
|
import { L as t, K as e, M as o, N as g } from "./common/main-DCysVEHh.js";
|
||||||
export {
|
export {
|
||||||
t as CustomPage,
|
t as CustomPage,
|
||||||
e as DataListPage,
|
e as DataListPage,
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
import "lodash";
|
import "lodash";
|
||||||
import { R as a } from "./common/main-Dryw40ez.js";
|
import { R as a } from "./common/main-DCysVEHh.js";
|
||||||
export {
|
export {
|
||||||
a as default
|
a as default
|
||||||
};
|
};
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
import "lodash";
|
import "lodash";
|
||||||
import { S as r, a0 as i, W as g, V as o, X as P, P as m, $ as p, Q as U, _ as d, Y as h, Z as k, T as n, O as f, U as l } from "./common/main-Dryw40ez.js";
|
import { S as r, a0 as i, W as g, V as o, X as P, P as m, $ as p, Q as U, _ as d, Y as h, Z as k, T as n, O as f, U as l } from "./common/main-DCysVEHh.js";
|
||||||
import "./common/vender-CIG7ep61.js";
|
import "./common/vender-CIG7ep61.js";
|
||||||
export {
|
export {
|
||||||
r as deepSome,
|
r as deepSome,
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
import "pathe";
|
import "pathe";
|
||||||
import { aG as o, aH as r } from "./common/main-Dryw40ez.js";
|
import { aG as o, aH as r } from "./common/main-DCysVEHh.js";
|
||||||
export {
|
export {
|
||||||
o as default,
|
o as default,
|
||||||
r as toTreePaths
|
r as toTreePaths
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ff",
|
"name": "ff",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.7.9",
|
"version": "0.7.10",
|
||||||
"author": "www.fsdpf.com",
|
"author": "www.fsdpf.com",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user