wargerm 0.2.19 → 0.2.20

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.
Files changed (35) hide show
  1. package/README.zh-CN.md +40 -40
  2. package/package.json +78 -78
  3. package/dist/components/AutoScroll/index.d.ts +0 -10
  4. package/dist/components/Breadcrumb/index.d.ts +0 -8
  5. package/dist/components/Button/index.d.ts +0 -12
  6. package/dist/components/Card/index.d.ts +0 -12
  7. package/dist/components/Checkbox/index.d.ts +0 -9
  8. package/dist/components/CountUp/index.d.ts +0 -6
  9. package/dist/components/DatePicker/index.d.ts +0 -7
  10. package/dist/components/IconFont/index.d.ts +0 -3
  11. package/dist/components/Input/index.d.ts +0 -10
  12. package/dist/components/InputNumber/index.d.ts +0 -6
  13. package/dist/components/Modal/dialog.d.ts +0 -19
  14. package/dist/components/Modal/index.d.ts +0 -30
  15. package/dist/components/ModalForm/index.d.ts +0 -9
  16. package/dist/components/Number/index.d.ts +0 -10
  17. package/dist/components/NumericInput/index.d.ts +0 -18
  18. package/dist/components/Radio/index.d.ts +0 -10
  19. package/dist/components/Select/index.d.ts +0 -14
  20. package/dist/components/Swiper/index.d.ts +0 -9
  21. package/dist/components/Switch/index.d.ts +0 -6
  22. package/dist/components/TabelCard/index.d.ts +0 -3
  23. package/dist/components/Table/FrameBox/index.d.ts +0 -11
  24. package/dist/components/Table/index.d.ts +0 -115
  25. package/dist/components/TreeSelect/index.d.ts +0 -14
  26. package/dist/components/WDatePicker/index.d.ts +0 -7
  27. package/dist/components/WForm/index.d.ts +0 -60
  28. package/dist/hooks/useClickOutside.d.ts +0 -3
  29. package/dist/hooks/useDebounce.d.ts +0 -2
  30. package/dist/index.css +0 -1793
  31. package/dist/index.d.ts +0 -24
  32. package/dist/index.esm.css +0 -1793
  33. package/dist/index.esm.js +0 -10484
  34. package/dist/index.js +0 -10539
  35. package/dist/utils/index.d.ts +0 -14
package/README.zh-CN.md CHANGED
@@ -1,40 +1,40 @@
1
- <!--
2
- * @Author: lijin
3
- * @Date: 2021-10-18 15:22:28
4
- * @LastEditTime: 2021-11-05 09:25:52
5
- * @LastEditors: lijin
6
- * @Description:
7
- * @FilePath: \wargerm\README.zh-CN.md
8
- * 可以输入预定的版权声明、个性签名、空行等
9
- -->
10
-
11
- ## 📒 目录介绍
12
-
13
- ```
14
- ├── docs 文档存放路径
15
- │ ├── index.md 首页展示
16
- │ └── **.** 网站目录文档
17
- ├── src 组件主目录
18
- │ ├── index.ts 组件注册
19
- │ └── Foo 组件开发
20
- ├── .eslintrc.js eslint 配置
21
- ├── .fatherrc.ts father 配置
22
- ├── .umirc.ts dumi 配置
23
- └── tsconfig.json typescript 配置
24
- ```
25
-
26
- 其余文件可自行查阅了解。
27
-
28
- ## 🤖 命令介绍
29
-
30
- | 名称 | 描述 | 备注 |
31
- | ----------------------- | -------------- | ----------------------------- |
32
- | `npm run dev` | 项目启动 | - |
33
- | `npm run test` | 组件测试 | - |
34
- | `npm run test:coverage` | 代码覆盖率查看 | - |
35
- | `npm run prettier` | 代码美化 | - |
36
- | `npm run build` | 组件打包 | - |
37
- | `npm run release` | 组件打包发布 | - |
38
- | `npm run docs:build` | 文档打包 | - |
39
- | `npm run docs:deploy` | 文档发布 | 这里默认是使用了 GitHub Pages |
40
- | `npm run deploy` | 文档打包发布 | - |
1
+ <!--
2
+ * @Author: lijin
3
+ * @Date: 2021-10-18 15:22:28
4
+ * @LastEditTime: 2021-11-05 09:25:52
5
+ * @LastEditors: lijin
6
+ * @Description:
7
+ * @FilePath: \wargerm\README.zh-CN.md
8
+ * 可以输入预定的版权声明、个性签名、空行等
9
+ -->
10
+
11
+ ## 📒 目录介绍
12
+
13
+ ```
14
+ ├── docs 文档存放路径
15
+ │ ├── index.md 首页展示
16
+ │ └── **.** 网站目录文档
17
+ ├── src 组件主目录
18
+ │ ├── index.ts 组件注册
19
+ │ └── Foo 组件开发
20
+ ├── .eslintrc.js eslint 配置
21
+ ├── .fatherrc.ts father 配置
22
+ ├── .umirc.ts dumi 配置
23
+ └── tsconfig.json typescript 配置
24
+ ```
25
+
26
+ 其余文件可自行查阅了解。
27
+
28
+ ## 🤖 命令介绍
29
+
30
+ | 名称 | 描述 | 备注 |
31
+ | ----------------------- | -------------- | ----------------------------- |
32
+ | `npm run dev` | 项目启动 | - |
33
+ | `npm run test` | 组件测试 | - |
34
+ | `npm run test:coverage` | 代码覆盖率查看 | - |
35
+ | `npm run prettier` | 代码美化 | - |
36
+ | `npm run build` | 组件打包 | - |
37
+ | `npm run release` | 组件打包发布 | - |
38
+ | `npm run docs:build` | 文档打包 | - |
39
+ | `npm run docs:deploy` | 文档发布 | 这里默认是使用了 GitHub Pages |
40
+ | `npm run deploy` | 文档打包发布 | - |
package/package.json CHANGED
@@ -1,79 +1,79 @@
1
- {
2
- "private": false,
3
- "name": "wargerm",
4
- "version": "0.2.19",
5
- "scripts": {
6
- "dev": "dumi dev",
7
- "docs:build": "dumi build",
8
- "docs:deploy": "gh-pages -d docs-dist",
9
- "build": "father-build",
10
- "deploy": "npm run docs:build && npm run docs:deploy",
11
- "release": "npm run build && npm publish",
12
- "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
13
- "test": "umi-test",
14
- "test:coverage": "umi-test --coverage"
15
- },
16
- "main": "dist/index.js",
17
- "module": "dist/index.esm.js",
18
- "unpkg": "dist/index.umd.min.js",
19
- "typings": "dist/index.d.ts",
20
- "author": "jinly2",
21
- "license": "MIT",
22
- "keywords": [
23
- "React",
24
- "Component"
25
- ],
26
- "gitHooks": {
27
- "pre-commit": "lint-staged"
28
- },
29
- "repository": {
30
- "type": "git",
31
- "url": "http://code.eblssmart.com/platform/web/wargerm-components.git",
32
- "branch": "main"
33
- },
34
- "files": [
35
- "dist",
36
- "es",
37
- "lib",
38
- "index.css"
39
- ],
40
- "lint-staged": {
41
- "*.{js,jsx,less,md,json}": [
42
- "prettier --write"
43
- ],
44
- "*.ts?(x)": [
45
- "prettier --parser=typescript --write"
46
- ]
47
- },
48
- "dependencies": {
49
- "@ant-design/pro-form": "^1.49.3",
50
- "@ant-design/pro-table": "^2.58.1",
51
- "animate.css": "^4.1.1",
52
- "react-countup": "^6.0.0",
53
- "react-dom": "^17.0.2",
54
- "swiper": "^6.7.0"
55
- },
56
- "peerDependencies": {
57
- "@ant-design/icons": ">=4.2.0",
58
- "antd": ">=4.7.0",
59
- "classnames": ">=2.2.0",
60
- "lodash": ">=4.0.0",
61
- "react": ">=17.0.0"
62
- },
63
- "devDependencies": {
64
- "@ant-design/icons": "^4.6.4",
65
- "@types/lodash": "^4.14.173",
66
- "@types/react-dom": "^17.0.11",
67
- "@umijs/test": "^3.0.5",
68
- "antd": "^4.16.13",
69
- "babel-plugin-import": "^1.13.3",
70
- "classnames": "^2.3.1",
71
- "dumi": "^1.1.31",
72
- "father-build": "^1.19.1",
73
- "gh-pages": "^3.0.0",
74
- "lint-staged": "^10.0.7",
75
- "prettier": "^1.19.1",
76
- "react": "^16.12.0",
77
- "yorkie": "^2.0.0"
78
- }
1
+ {
2
+ "private": false,
3
+ "name": "wargerm",
4
+ "version": "0.2.20",
5
+ "scripts": {
6
+ "dev": "dumi dev",
7
+ "docs:build": "dumi build",
8
+ "docs:deploy": "gh-pages -d docs-dist",
9
+ "build": "father-build",
10
+ "deploy": "npm run docs:build && npm run docs:deploy",
11
+ "release": "npm run build && npm publish",
12
+ "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
13
+ "test": "umi-test",
14
+ "test:coverage": "umi-test --coverage"
15
+ },
16
+ "main": "dist/index.js",
17
+ "module": "dist/index.esm.js",
18
+ "unpkg": "dist/index.umd.min.js",
19
+ "typings": "dist/index.d.ts",
20
+ "author": "jinly2",
21
+ "license": "MIT",
22
+ "keywords": [
23
+ "React",
24
+ "Component"
25
+ ],
26
+ "gitHooks": {
27
+ "pre-commit": "lint-staged"
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "http://code.eblssmart.com/platform/web/wargerm-components.git",
32
+ "branch": "main"
33
+ },
34
+ "files": [
35
+ "dist",
36
+ "es",
37
+ "lib",
38
+ "index.css"
39
+ ],
40
+ "lint-staged": {
41
+ "*.{js,jsx,less,md,json}": [
42
+ "prettier --write"
43
+ ],
44
+ "*.ts?(x)": [
45
+ "prettier --parser=typescript --write"
46
+ ]
47
+ },
48
+ "dependencies": {
49
+ "@ant-design/pro-form": "^1.49.3",
50
+ "@ant-design/pro-table": "^2.58.1",
51
+ "animate.css": "^4.1.1",
52
+ "react-countup": "^6.0.0",
53
+ "react-dom": "^17.0.2",
54
+ "swiper": "^6.7.0"
55
+ },
56
+ "peerDependencies": {
57
+ "@ant-design/icons": ">=4.2.0",
58
+ "antd": ">=4.7.0",
59
+ "classnames": ">=2.2.0",
60
+ "lodash": ">=4.0.0",
61
+ "react": ">=17.0.0"
62
+ },
63
+ "devDependencies": {
64
+ "@ant-design/icons": "^4.6.4",
65
+ "@types/lodash": "^4.14.173",
66
+ "@types/react-dom": "^17.0.11",
67
+ "@umijs/test": "^3.0.5",
68
+ "antd": "^4.16.13",
69
+ "babel-plugin-import": "^1.13.3",
70
+ "classnames": "^2.3.1",
71
+ "dumi": "^1.1.31",
72
+ "father-build": "^1.19.1",
73
+ "gh-pages": "^3.0.0",
74
+ "lint-staged": "^10.0.7",
75
+ "prettier": "^1.19.1",
76
+ "react": "^16.12.0",
77
+ "yorkie": "^2.0.0"
78
+ }
79
79
  }
@@ -1,10 +0,0 @@
1
- import { ReactNode, FC, CSSProperties } from 'react';
2
- declare type IProps = {
3
- list: Array<Record<string, any>>;
4
- partSize?: number;
5
- style?: CSSProperties;
6
- className?: string;
7
- render: (record: any, index: number) => ReactNode;
8
- };
9
- declare const Index: FC<IProps>;
10
- export default Index;
@@ -1,8 +0,0 @@
1
- import { BreadcrumbProps } from 'antd';
2
- import { FC } from 'react';
3
- export interface Props extends BreadcrumbProps {
4
- routes: any[];
5
- className?: string;
6
- }
7
- declare const Index: FC<Props>;
8
- export default Index;
@@ -1,12 +0,0 @@
1
- import { FC } from 'react';
2
- import { ButtonProps } from 'antd/lib/button';
3
- interface IMultiple {
4
- handleMenuClick?: (e: any) => void;
5
- handleClick?: (e: any) => void;
6
- children?: String[];
7
- }
8
- export interface IButtonProps extends ButtonProps {
9
- multiple?: IMultiple;
10
- }
11
- declare const WButton: FC<IButtonProps>;
12
- export default WButton;
@@ -1,12 +0,0 @@
1
- import { FC } from 'react';
2
- import { ReactNode } from 'react';
3
- declare type Props = {
4
- title: ReactNode;
5
- className: string;
6
- headerTail?: ReactNode;
7
- headerCenter?: ReactNode;
8
- children?: ReactNode;
9
- style?: Record<string, string>;
10
- };
11
- declare const Index: FC<Props>;
12
- export default Index;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { CheckboxProps, CheckboxGroupProps } from 'antd/lib/Checkbox';
3
- export interface ICheckbox extends CheckboxProps {
4
- }
5
- export declare type IndexComponent = React.FC<ICheckbox> & {
6
- Group: React.FC<CheckboxGroupProps>;
7
- };
8
- declare const Index: IndexComponent;
9
- export default Index;
@@ -1,6 +0,0 @@
1
- import { FC } from 'react';
2
- import { CountUpProps } from 'react-countup/build/CountUp';
3
- export interface ICountUpProps extends CountUpProps {
4
- }
5
- declare const Index: FC<ICountUpProps>;
6
- export default Index;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { DatePickerProps, RangePickerProps } from 'antd/lib/date-picker';
3
- export declare type IndexComponent = React.FC<DatePickerProps> & {
4
- RangePicker: React.FC<RangePickerProps>;
5
- };
6
- declare const Index: IndexComponent;
7
- export default Index;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: import("react").FC<import("@ant-design/icons/lib/components/IconFont").IconFontProps<string>>;
3
- export default _default;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { InputProps, TextAreaProps } from 'antd/lib/input';
3
- export interface IInputProps extends InputProps {
4
- }
5
- export declare type IndexComponent = React.FC<IInputProps> & {
6
- TextArea: React.FC<TextAreaProps>;
7
- Button: React.FC<any>;
8
- };
9
- declare const Index: IndexComponent;
10
- export default Index;
@@ -1,6 +0,0 @@
1
- import { FC } from 'react';
2
- import { InputNumberProps } from 'antd/lib/input-number';
3
- export interface IInputNumberProps extends InputNumberProps {
4
- }
5
- declare const WInputNumber: FC<IInputNumberProps>;
6
- export default WInputNumber;
@@ -1,19 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- declare type Props = {
3
- title?: string | ReactNode;
4
- onOk?: (e: any) => void;
5
- onCancel?: (e: any) => void;
6
- closeCb?: () => void;
7
- footer?: ReactNode | boolean;
8
- content?: ReactNode;
9
- onClose?: () => void;
10
- okText?: string;
11
- cancelText?: string;
12
- visible?: boolean;
13
- width?: number;
14
- className?: string;
15
- style?: React.CSSProperties;
16
- children?: ReactNode;
17
- };
18
- export default function DialogModel(props: Props): React.ReactPortal;
19
- export {};
@@ -1,30 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- declare type Props = {
3
- title?: string | ReactNode;
4
- onOk?: (e: any) => void;
5
- onCancel?: (e: any) => void;
6
- closeCb?: () => void;
7
- footer?: ReactNode | boolean;
8
- content?: ReactNode;
9
- onClose?: () => void;
10
- okText?: string;
11
- cancelText?: string;
12
- visible?: boolean;
13
- width?: number;
14
- className?: string;
15
- style?: React.CSSProperties;
16
- };
17
- declare class Modal extends React.PureComponent<Props> {
18
- static show: (config: any) => {
19
- setShow: null;
20
- mounted: boolean;
21
- hidden(): void;
22
- destory(): void;
23
- } | undefined;
24
- static hidden: () => void;
25
- renderFooter: () => JSX.Element | null;
26
- renderTop: () => JSX.Element;
27
- renderContent: () => {} | null;
28
- render(): JSX.Element;
29
- }
30
- export default Modal;
@@ -1,9 +0,0 @@
1
- import React, { MutableRefObject } from 'react';
2
- import { FormInstance } from 'antd';
3
- export interface IFormInstance extends MutableRefObject<FormInstance> {
4
- handleSubmit?: () => void;
5
- resetFields?: () => void;
6
- setFieldsValue?: (record: Record<string, any>) => void;
7
- }
8
- declare const _default: React.ForwardRefExoticComponent<Pick<Record<string, any>, string> & React.RefAttributes<unknown>>;
9
- export default _default;
@@ -1,10 +0,0 @@
1
- import React, { FC } from 'react';
2
- interface countInterface {
3
- width: number;
4
- height: number;
5
- count: number | string;
6
- style?: React.CSSProperties;
7
- numberStyle?: React.CSSProperties;
8
- }
9
- declare const Index: FC<countInterface>;
10
- export default Index;
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- declare type Props = {
3
- onChange?: (value: string) => void;
4
- onBlur?: () => void;
5
- disabled?: boolean;
6
- value?: string;
7
- placeholder: string;
8
- };
9
- export default class NumericInput extends React.Component<Props> {
10
- onChange: (e: {
11
- target: {
12
- value: any;
13
- };
14
- }) => void;
15
- onBlur: () => void;
16
- render(): JSX.Element;
17
- }
18
- export {};
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { RadioProps, RadioGroupProps } from 'antd/lib/Radio';
3
- export interface IRadio extends RadioProps {
4
- }
5
- export declare type IndexComponent = React.FC<IRadio> & {
6
- Group: React.FC<RadioGroupProps>;
7
- Button: React.FC<any>;
8
- };
9
- declare const Index: IndexComponent;
10
- export default Index;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { SelectProps, OptionProps } from 'antd/lib/Select';
3
- export interface IOptionProps extends OptionProps {
4
- }
5
- export interface ISelect extends SelectProps<any> {
6
- request?: () => Promise<any>;
7
- valueEnum?: Record<string, any>;
8
- onLoad?: (options: Record<string, any>[]) => void;
9
- }
10
- export declare type IWSelectComponent = React.FC<ISelect> & {
11
- Option?: React.FC<IOptionProps>;
12
- };
13
- declare let Index: IWSelectComponent;
14
- export default Index;
@@ -1,9 +0,0 @@
1
- import React, { FC } from 'react';
2
- import { Swiper } from 'swiper/react';
3
- export interface IProps extends Swiper {
4
- data: Array<any>;
5
- onClick?: (swiper: any, event: any) => void;
6
- renderItem: (item: any, index: number, isActive: boolean) => React.ReactNode;
7
- }
8
- declare const Index: FC<IProps>;
9
- export default Index;
@@ -1,6 +0,0 @@
1
- import { FC } from 'react';
2
- import { SwitchProps } from 'antd/lib/Switch';
3
- export interface ISwitchProps extends SwitchProps {
4
- }
5
- declare const WSwitch: FC<ISwitchProps>;
6
- export default WSwitch;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const _default: React.ForwardRefExoticComponent<Pick<Record<string, any>, string> & React.RefAttributes<unknown>>;
3
- export default _default;
@@ -1,11 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import './index.less';
3
- declare type Props = {
4
- className?: string;
5
- frameStyle?: Record<string, any>;
6
- style?: Record<string, any>;
7
- children: ReactNode;
8
- direction?: 'in' | 'out';
9
- };
10
- export default function FrameBox({ className, frameStyle, style, direction, children, ...props }: Props): JSX.Element;
11
- export {};
@@ -1,115 +0,0 @@
1
- import React from 'react';
2
- import { ReactNode } from 'react';
3
- import { FormProps } from 'antd';
4
- interface ColumnProps {
5
- title: string;
6
- dataIndex: string;
7
- key?: string | number;
8
- width?: number;
9
- ellipsis?: Boolean;
10
- showTitle?: Boolean;
11
- copyable?: Boolean;
12
- fixed?: 'left' | 'right';
13
- hideInTable?: boolean;
14
- hideInSearch?: boolean;
15
- search?: {
16
- transform?: (value: any) => Record<string, any>;
17
- };
18
- valueType?: 'text' | 'select' | 'date' | 'dateTime' | 'dateMonth' | 'dateYear' | 'dateRange' | 'dateTimeRange' | 'checkbox' | 'radio' | 'radioButton' | 'switch' | 'digit' | 'treeSelect' | 'image';
19
- valueEnum?: Record<string, any>;
20
- children?: ColumnProps[];
21
- fieldProps?: Record<string, any>;
22
- formItemProps?: Record<string, any>;
23
- order?: number;
24
- colSize?: number;
25
- initialValue?: any;
26
- request?: () => Promise<any>;
27
- render?: (text: string, record: Record<string, any>, index: number) => ReactNode;
28
- }
29
- interface IRowSelection {
30
- type: 'checkbox' | 'radio';
31
- selectedRowKeys?: Array<string | number>;
32
- defaultSelectedRowKeys?: Array<string | number>;
33
- /**
34
- * 选中项发生变化时的回调
35
- */
36
- onChange?: (selectedRowKeys: Array<string | number>, selectedRows: Array<Record<string, any>>) => void;
37
- /**
38
- * 用户手动选择/取消选择某行的回调
39
- */
40
- onSelect?: (record: Record<string, any>, selected: boolean, selectedRows: Record<string, any>[], nativeEvent: MouseEvent) => void;
41
- /**
42
- * 用户手动选择/取消选择所有行的回调
43
- */
44
- onSelectAll?: (selected: boolean, selectedRows: Record<string, any>[], changeRows: Record<string, any>[]) => void;
45
- }
46
- interface Iscroll {
47
- /**
48
- * 当分页、排序、筛选变化后是否滚动到表格顶部
49
- */
50
- scrollToFirstRowOnChange?: boolean;
51
- /**
52
- * 设置横向滚动,也可用于指定滚动区域的宽,可以设置为像素值,百分比,true 和 'max-content'
53
- */
54
- x?: string | number | true;
55
- /**
56
- * 设置纵向滚动,也可用于指定滚动区域的高,可以设置为像素值
57
- */
58
- y?: string | number;
59
- }
60
- declare type defaultColConfig = {
61
- xs: 24;
62
- sm: 24;
63
- md: 12;
64
- lg: 12;
65
- xl: 8;
66
- xxl: 6;
67
- };
68
- interface Isearch {
69
- labelWidth?: number | 'auto';
70
- span?: number | defaultColConfig;
71
- filterType?: 'query' | 'light';
72
- searchText?: string;
73
- resetText?: string;
74
- submitText?: string;
75
- optionRender?: ((searchConfig: any, formProps: any, dom: any) => ReactNode[]) | false;
76
- }
77
- declare type Props = {
78
- className?: string;
79
- rowClassName?: (record: Record<string, any>, index: number) => string;
80
- style?: React.CSSProperties;
81
- tbodyStyle?: React.CSSProperties;
82
- thStyle?: React.CSSProperties;
83
- columns: ColumnProps[];
84
- border?: Boolean;
85
- params?: Record<string, any>;
86
- dataSource?: Record<string, any>[];
87
- request?: (params?: {
88
- pageSize?: number;
89
- current?: number;
90
- }, sort?: any, filter?: any) => {
91
- data: Record<string, any>[];
92
- success: boolean;
93
- total: number;
94
- };
95
- onLoad?: (dataSource: Record<string, any>[]) => void;
96
- onSubmit?: (params: Record<string, any>) => void;
97
- onReset?: () => void;
98
- rowKey: ((record: Record<string, any>) => number | string) | string;
99
- onRow?: (record: Record<string, any>, index: any) => Record<string, any>;
100
- rowSelection?: IRowSelection;
101
- scroll?: Iscroll;
102
- pagination?: false | Record<string, any>;
103
- children?: ReactNode;
104
- form?: FormProps;
105
- search?: Isearch | false;
106
- frameBoxTable?: boolean;
107
- frameBoxDirection?: 'in' | 'out';
108
- };
109
- declare function Table({ columns, dataSource: tableList, request, onLoad, params, onSubmit, rowKey, onRow, className, rowClassName, rowSelection, style, tbodyStyle, thStyle, border, scroll, pagination, search, frameBoxTable, frameBoxDirection, ...props }: Props): JSX.Element;
110
- declare namespace Table {
111
- var defaultProps: {
112
- rowKey: string;
113
- };
114
- }
115
- export default Table;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { TreeSelectProps as Props } from 'antd/lib/tree-select';
3
- interface TreeSelectProps<T> extends Props<T> {
4
- treeNodeLabelProp?: string;
5
- treeNodeValueProp?: string;
6
- treeNodeChildrenProp?: string;
7
- request?: () => Promise<any>;
8
- onLoad?: (options: Record<string, any>[]) => void;
9
- }
10
- export declare type IndexComponent = React.FC<TreeSelectProps<any>> & {
11
- TreeNode?: React.FC<any>;
12
- };
13
- declare let Index: IndexComponent;
14
- export default Index;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { DatePickerProps, RangePickerProps } from 'antd/lib/date-picker';
3
- export declare type IndexComponent = React.FC<DatePickerProps> & {
4
- RangePicker: React.FC<RangePickerProps>;
5
- };
6
- declare const Index: IndexComponent;
7
- export default Index;