fat-design 0.0.1-beta.20250809091225 → 0.0.1-beta.20250815054017

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fat-design",
3
- "version": "0.0.1-beta.20250809091225",
3
+ "version": "0.0.1-beta.20250815054017",
4
4
  "scripts": {},
5
5
  "main": "index.umd.js",
6
6
  "module": "index.js",
@@ -16,5 +16,5 @@
16
16
  "publishConfig": {
17
17
  "registry": "https://registry.npmjs.org"
18
18
  },
19
- "buildTime": "Sat, 09 Aug 2025 01:12:25 GMT"
19
+ "buildTime": "Thu, 14 Aug 2025 21:40:17 GMT"
20
20
  }
@@ -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: PropTypes.Requireable<PropTypes.ReactElementLike>;
4
+ children: any;
6
5
  /**
7
6
  * 捕获错误后的自定义处理, 比如埋点上传
8
7
  * @param {Object} error 错误
9
8
  * @param {Object} errorInfo 错误详细信息
10
9
  */
11
- afterCatch: PropTypes.Requireable<(...args: any[]) => any>;
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: PropTypes.Requireable<(...args: any[]) => any>;
17
+ fallbackUI: any;
19
18
  /**
20
19
  * 被捕获的组件名
21
20
  */
22
- componentName: PropTypes.Requireable<string>;
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: PropTypes.Requireable<string>;
42
- locale: PropTypes.Requireable<object>;
43
- defaultPropsConfig: PropTypes.Requireable<object>;
44
- errorBoundary: PropTypes.Requireable<NonNullable<boolean | object>>;
45
- pure: PropTypes.Requireable<boolean>;
46
- warning: PropTypes.Requireable<boolean>;
47
- rtl: PropTypes.Requireable<boolean>;
48
- device: PropTypes.Requireable<string>;
49
- children: PropTypes.Requireable<any>;
50
- popupContainer: PropTypes.Requireable<any>;
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: import("prop-types").Requireable<string>;
7
- locale: import("prop-types").Requireable<object>;
8
- defaultPropsConfig: import("prop-types").Requireable<object>;
9
- errorBoundary: import("prop-types").Requireable<NonNullable<boolean | object>>;
10
- pure: import("prop-types").Requireable<boolean>;
11
- warning: import("prop-types").Requireable<boolean>;
12
- rtl: import("prop-types").Requireable<boolean>;
13
- device: import("prop-types").Requireable<string>;
14
- children: import("prop-types").Requireable<any>;
15
- popupContainer: import("prop-types").Requireable<any>;
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: PropTypes.Requireable<string>;
13
+ className: any;
15
14
  /**
16
15
  * 标签内容
17
16
  */
18
- label: PropTypes.Requireable<PropTypes.ReactNodeLike>;
17
+ label: any;
19
18
  /**
20
19
  * 导航项和子导航
21
20
  */
22
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
21
+ children: any;
23
22
  };
24
23
  static contextTypes: {
25
- prefix: PropTypes.Requireable<string>;
26
- iconOnly: PropTypes.Requireable<boolean>;
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: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
13
+ icon: any;
15
14
  /**
16
15
  * 导航内容
17
16
  */
18
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
19
- parentMode: PropTypes.Requireable<string>;
17
+ children: any;
18
+ parentMode: any;
20
19
  };
21
20
  static contextTypes: {
22
- prefix: PropTypes.Requireable<string>;
23
- iconOnly: PropTypes.Requireable<boolean>;
24
- iconOnlyWidth: PropTypes.Requireable<NonNullable<string | number>>;
25
- iconTextOnly: PropTypes.Requireable<boolean>;
26
- hasTooltip: PropTypes.Requireable<boolean>;
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: PropTypes.Requireable<string>;
12
- icon: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
13
- label: PropTypes.Requireable<PropTypes.ReactNodeLike>;
14
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
10
+ className: any;
11
+ icon: any;
12
+ label: any;
13
+ children: any;
15
14
  };
16
15
  static contextTypes: {
17
- prefix: PropTypes.Requireable<string>;
18
- iconOnly: PropTypes.Requireable<boolean>;
19
- iconOnlyWidth: PropTypes.Requireable<NonNullable<string | number>>;
20
- hasArrow: PropTypes.Requireable<boolean>;
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: PropTypes.Requireable<string>;
12
- icon: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
13
- label: PropTypes.Requireable<PropTypes.ReactNodeLike>;
14
- selectable: PropTypes.Requireable<boolean>;
15
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
16
- noIcon: PropTypes.Requireable<boolean>;
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: PropTypes.Requireable<string>;
23
- mode: PropTypes.Requireable<string>;
24
- iconOnly: PropTypes.Requireable<boolean>;
25
- iconOnlyWidth: PropTypes.Requireable<NonNullable<string | number>>;
26
- hasArrow: PropTypes.Requireable<boolean>;
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
  }