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 {
|
||||
s as auth,
|
||||
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;
|
||||
}): 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;
|
||||
|
||||
@@ -112,4 +148,4 @@ declare function success(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 {
|
||||
s as Empty,
|
||||
r as Empty,
|
||||
s as ErrorBoundary,
|
||||
p as Icon,
|
||||
r as Loading,
|
||||
t as NotFound,
|
||||
e as Popup,
|
||||
n as SetPropsWrapper
|
||||
t as ImportWidgetComponent,
|
||||
n as Loading,
|
||||
e as NotFound,
|
||||
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 {
|
||||
s as Context,
|
||||
e as Empty,
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
import "lodash";
|
||||
import "react";
|
||||
import { D as i } from "./common/main-Dryw40ez.js";
|
||||
import { D as i } from "./common/main-DCysVEHh.js";
|
||||
import "react-use";
|
||||
export {
|
||||
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 {
|
||||
t as DataListContent,
|
||||
e as DataListContext,
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
import "lodash";
|
||||
import { f as a } from "../common/main-Dryw40ez.js";
|
||||
import { f as a } from "../common/main-DCysVEHh.js";
|
||||
export {
|
||||
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 {
|
||||
s as GridLayoutForm,
|
||||
r as GridLayoutFormHelper,
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
import "lodash";
|
||||
import { a as o, g } from "../common/main-Dryw40ez.js";
|
||||
import { a as o, g } from "../common/main-DCysVEHh.js";
|
||||
export {
|
||||
o as getNormalizeWidget,
|
||||
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 {
|
||||
u as GridLayout,
|
||||
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 {
|
||||
a as getBoxStyle,
|
||||
o as getEventProps,
|
||||
|
||||
Vendored
+1
-1
@@ -2,7 +2,7 @@ import "lodash";
|
||||
import "rc-field-form";
|
||||
import "react";
|
||||
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 { a as x } from "./common/vender-CIG7ep61.js";
|
||||
export {
|
||||
|
||||
Vendored
+1
-1
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
||||
import "react";
|
||||
import "prop-types";
|
||||
import "classnames";
|
||||
import { ak as a } from "./common/main-Dryw40ez.js";
|
||||
import { ak as a } from "./common/main-DCysVEHh.js";
|
||||
export {
|
||||
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 {
|
||||
t as AppContext,
|
||||
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 {
|
||||
t as CustomPage,
|
||||
e as DataListPage,
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
import "lodash";
|
||||
import { R as a } from "./common/main-Dryw40ez.js";
|
||||
import { R as a } from "./common/main-DCysVEHh.js";
|
||||
export {
|
||||
a as default
|
||||
};
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
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";
|
||||
export {
|
||||
r as deepSome,
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
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 {
|
||||
o as default,
|
||||
r as toTreePaths
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ff",
|
||||
"private": true,
|
||||
"version": "0.7.9",
|
||||
"version": "0.7.10",
|
||||
"author": "www.fsdpf.com",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
|
||||
Reference in New Issue
Block a user