fat-design 0.0.1-beta.20250809091225 → 0.0.1-beta.20250815223353
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.browser.js +17 -17
- package/index.js +2372 -2340
- package/index.umd.cjs +16 -16
- package/index.umd.js +16 -16
- package/package.json +2 -2
- package/style.css +1 -1
- package/types/0buildTypes/config-provider/v2/error-boundary.d.ts +4 -5
- package/types/0buildTypes/config-provider/v2/functions.d.ts +10 -11
- package/types/0buildTypes/config-provider/v2/index.d.ts +10 -10
- package/types/0buildTypes/nav/group.d.ts +5 -6
- package/types/0buildTypes/nav/item.d.ts +8 -9
- package/types/0buildTypes/nav/popup-item.d.ts +8 -9
- package/types/0buildTypes/nav/sub-nav.d.ts +11 -12
- package/types/0buildTypes/table-pro/types.d.ts +2 -0
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
export default class ErrorBoundary extends React.Component<any, any> {
|
|
4
3
|
static propTypes: {
|
|
5
|
-
children:
|
|
4
|
+
children: any;
|
|
6
5
|
/**
|
|
7
6
|
* 捕获错误后的自定义处理, 比如埋点上传
|
|
8
7
|
* @param {Object} error 错误
|
|
9
8
|
* @param {Object} errorInfo 错误详细信息
|
|
10
9
|
*/
|
|
11
|
-
afterCatch:
|
|
10
|
+
afterCatch: any;
|
|
12
11
|
/**
|
|
13
12
|
* 捕获错误后的展现 自定义组件
|
|
14
13
|
* @param {Object} error 错误
|
|
15
14
|
* @param {Object} errorInfo 错误详细信息
|
|
16
15
|
* @returns {Element} 捕获错误后的处理
|
|
17
16
|
*/
|
|
18
|
-
fallbackUI:
|
|
17
|
+
fallbackUI: any;
|
|
19
18
|
/**
|
|
20
19
|
* 被捕获的组件名
|
|
21
20
|
*/
|
|
22
|
-
componentName:
|
|
21
|
+
componentName: any;
|
|
23
22
|
};
|
|
24
23
|
constructor(props: any);
|
|
25
24
|
componentDidCatch(error: any, errorInfo: any): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IConfigValues, IGetContextProps } from "./types";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
declare function getContext(): IConfigValues;
|
|
4
3
|
declare function setContext(updates: IConfigValues, justSetValue?: boolean): void;
|
|
5
4
|
declare function getLocale(): any;
|
|
@@ -38,16 +37,16 @@ declare const commonPropNames: string[];
|
|
|
38
37
|
declare const setMomentLocale: (locale: any) => void;
|
|
39
38
|
declare const setDateLocale: (locale: any) => void;
|
|
40
39
|
declare const getCommonPropTypes: () => {
|
|
41
|
-
prefix:
|
|
42
|
-
locale:
|
|
43
|
-
defaultPropsConfig:
|
|
44
|
-
errorBoundary:
|
|
45
|
-
pure:
|
|
46
|
-
warning:
|
|
47
|
-
rtl:
|
|
48
|
-
device:
|
|
49
|
-
children:
|
|
50
|
-
popupContainer:
|
|
40
|
+
prefix: any;
|
|
41
|
+
locale: any;
|
|
42
|
+
defaultPropsConfig: any;
|
|
43
|
+
errorBoundary: any;
|
|
44
|
+
pure: any;
|
|
45
|
+
warning: any;
|
|
46
|
+
rtl: any;
|
|
47
|
+
device: any;
|
|
48
|
+
children: any;
|
|
49
|
+
popupContainer: any;
|
|
51
50
|
};
|
|
52
51
|
declare const providerFunctions: {
|
|
53
52
|
getContextProps: typeof getContextProps;
|
|
@@ -3,16 +3,16 @@ import { IConfigProviderProps, IGetContextProps } from "./types";
|
|
|
3
3
|
declare class ConfigProvider extends React.Component<IConfigProviderProps, any> {
|
|
4
4
|
static defaultPrefix: string;
|
|
5
5
|
static propTypes: {
|
|
6
|
-
prefix:
|
|
7
|
-
locale:
|
|
8
|
-
defaultPropsConfig:
|
|
9
|
-
errorBoundary:
|
|
10
|
-
pure:
|
|
11
|
-
warning:
|
|
12
|
-
rtl:
|
|
13
|
-
device:
|
|
14
|
-
children:
|
|
15
|
-
popupContainer:
|
|
6
|
+
prefix: any;
|
|
7
|
+
locale: any;
|
|
8
|
+
defaultPropsConfig: any;
|
|
9
|
+
errorBoundary: any;
|
|
10
|
+
pure: any;
|
|
11
|
+
warning: any;
|
|
12
|
+
rtl: any;
|
|
13
|
+
device: any;
|
|
14
|
+
children: any;
|
|
15
|
+
popupContainer: any;
|
|
16
16
|
};
|
|
17
17
|
static config<T>(Component: any, options?: any): T;
|
|
18
18
|
static configFn<T>(Component: any, options?: any): T;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import type { GroupProps } from './types';
|
|
4
3
|
/**
|
|
5
4
|
* Nav.Group
|
|
@@ -11,19 +10,19 @@ declare class Group extends Component<GroupProps> {
|
|
|
11
10
|
/**
|
|
12
11
|
* 自定义类名
|
|
13
12
|
*/
|
|
14
|
-
className:
|
|
13
|
+
className: any;
|
|
15
14
|
/**
|
|
16
15
|
* 标签内容
|
|
17
16
|
*/
|
|
18
|
-
label:
|
|
17
|
+
label: any;
|
|
19
18
|
/**
|
|
20
19
|
* 导航项和子导航
|
|
21
20
|
*/
|
|
22
|
-
children:
|
|
21
|
+
children: any;
|
|
23
22
|
};
|
|
24
23
|
static contextTypes: {
|
|
25
|
-
prefix:
|
|
26
|
-
iconOnly:
|
|
24
|
+
prefix: any;
|
|
25
|
+
iconOnly: any;
|
|
27
26
|
};
|
|
28
27
|
render(): React.JSX.Element;
|
|
29
28
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import type { ItemProps } from './types';
|
|
4
3
|
/**
|
|
5
4
|
* Nav.Item
|
|
@@ -11,19 +10,19 @@ declare class Item extends Component<ItemProps> {
|
|
|
11
10
|
/**
|
|
12
11
|
* 自定义图标,可以使用 Icon 的 type,也可以使用组件 `<Icon type="icon type" />`
|
|
13
12
|
*/
|
|
14
|
-
icon:
|
|
13
|
+
icon: any;
|
|
15
14
|
/**
|
|
16
15
|
* 导航内容
|
|
17
16
|
*/
|
|
18
|
-
children:
|
|
19
|
-
parentMode:
|
|
17
|
+
children: any;
|
|
18
|
+
parentMode: any;
|
|
20
19
|
};
|
|
21
20
|
static contextTypes: {
|
|
22
|
-
prefix:
|
|
23
|
-
iconOnly:
|
|
24
|
-
iconOnlyWidth:
|
|
25
|
-
iconTextOnly:
|
|
26
|
-
hasTooltip:
|
|
21
|
+
prefix: any;
|
|
22
|
+
iconOnly: any;
|
|
23
|
+
iconOnlyWidth: any;
|
|
24
|
+
iconTextOnly: any;
|
|
25
|
+
hasTooltip: any;
|
|
27
26
|
};
|
|
28
27
|
render(): React.JSX.Element;
|
|
29
28
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import type { PopupItemProps } from './types';
|
|
4
3
|
/**
|
|
5
4
|
* Nav.PopupItem
|
|
@@ -8,16 +7,16 @@ import type { PopupItemProps } from './types';
|
|
|
8
7
|
declare class PopupItem extends Component<PopupItemProps> {
|
|
9
8
|
static menuChildType: string;
|
|
10
9
|
static propTypes: {
|
|
11
|
-
className:
|
|
12
|
-
icon:
|
|
13
|
-
label:
|
|
14
|
-
children:
|
|
10
|
+
className: any;
|
|
11
|
+
icon: any;
|
|
12
|
+
label: any;
|
|
13
|
+
children: any;
|
|
15
14
|
};
|
|
16
15
|
static contextTypes: {
|
|
17
|
-
prefix:
|
|
18
|
-
iconOnly:
|
|
19
|
-
iconOnlyWidth:
|
|
20
|
-
hasArrow:
|
|
16
|
+
prefix: any;
|
|
17
|
+
iconOnly: any;
|
|
18
|
+
iconOnlyWidth: any;
|
|
19
|
+
hasArrow: any;
|
|
21
20
|
};
|
|
22
21
|
render(): React.JSX.Element;
|
|
23
22
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import type { SubNavProps } from './types';
|
|
4
3
|
/**
|
|
5
4
|
* Nav.SubNav
|
|
@@ -8,22 +7,22 @@ import type { SubNavProps } from './types';
|
|
|
8
7
|
declare class SubNav extends Component<SubNavProps> {
|
|
9
8
|
static menuChildType: string;
|
|
10
9
|
static propTypes: {
|
|
11
|
-
className:
|
|
12
|
-
icon:
|
|
13
|
-
label:
|
|
14
|
-
selectable:
|
|
15
|
-
children:
|
|
16
|
-
noIcon:
|
|
10
|
+
className: any;
|
|
11
|
+
icon: any;
|
|
12
|
+
label: any;
|
|
13
|
+
selectable: any;
|
|
14
|
+
children: any;
|
|
15
|
+
noIcon: any;
|
|
17
16
|
};
|
|
18
17
|
static defaultProps: {
|
|
19
18
|
selectable: boolean;
|
|
20
19
|
};
|
|
21
20
|
static contextTypes: {
|
|
22
|
-
prefix:
|
|
23
|
-
mode:
|
|
24
|
-
iconOnly:
|
|
25
|
-
iconOnlyWidth:
|
|
26
|
-
hasArrow:
|
|
21
|
+
prefix: any;
|
|
22
|
+
mode: any;
|
|
23
|
+
iconOnly: any;
|
|
24
|
+
iconOnlyWidth: any;
|
|
25
|
+
hasArrow: any;
|
|
27
26
|
};
|
|
28
27
|
render(): React.JSX.Element;
|
|
29
28
|
}
|
|
@@ -63,6 +63,8 @@ export interface OperateCellProps {
|
|
|
63
63
|
export type onClickOperateCellItem = (btnItem: OperateCellItemProps) => void;
|
|
64
64
|
export interface OperateCellItemProps extends Record<string, any> {
|
|
65
65
|
title: string;
|
|
66
|
+
disabled?: boolean;
|
|
67
|
+
tooltip?: string;
|
|
66
68
|
operationCode?: string;
|
|
67
69
|
onClick?: onClickOperateCellItem;
|
|
68
70
|
}
|