@hw-component/table 0.0.5-beta-v3 → 0.0.5-beta-v5
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/es/HTableBody/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { ActionRenderFn, ConfigDataModal, ParamsModal } from "../modal";
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import type { HTableInstance } from "../modal";
|
|
5
5
|
import type { HRowSelection } from "../modal";
|
|
6
|
+
import { AffixProps } from "antd/lib/affix";
|
|
6
7
|
interface HTableBodyProps extends Omit<ProTableProps<any, any>, "dataSource" | "rowSelection"> {
|
|
7
8
|
configData?: ConfigDataModal;
|
|
8
9
|
onPageChange?: (params: ParamsModal) => void;
|
|
@@ -11,7 +12,8 @@ interface HTableBodyProps extends Omit<ProTableProps<any, any>, "dataSource" | "
|
|
|
11
12
|
tableStyle?: React.CSSProperties;
|
|
12
13
|
paginationStyle?: React.CSSProperties;
|
|
13
14
|
actionRender?: ActionRenderFn;
|
|
14
|
-
rowSelection?: HRowSelection;
|
|
15
|
+
rowSelection?: HRowSelection | false;
|
|
16
|
+
affixProps?: AffixProps | false;
|
|
15
17
|
}
|
|
16
18
|
declare const _default: ({ configData, pagination, onPageChange, rowSelection, rowKey, emptyRender, errorRender, tableStyle, paginationStyle, headerTitle, options, actionRender, ...props }: HTableBodyProps) => JSX.Element;
|
|
17
19
|
export default _default;
|
package/es/modal.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type { ColProps } from "antd";
|
|
|
5
5
|
import type React from "react";
|
|
6
6
|
import type { ModalProps } from "antd";
|
|
7
7
|
import type { TableProps } from "antd/lib/table";
|
|
8
|
+
import { AffixProps } from "antd/lib/affix";
|
|
8
9
|
export interface RowObj {
|
|
9
10
|
keys?: React.Key[];
|
|
10
11
|
rowData?: any[];
|
|
@@ -59,6 +60,7 @@ export interface HTableProps extends Omit<ProTableProps<any, any>, "request" | "
|
|
|
59
60
|
rowKey?: string;
|
|
60
61
|
allPageCheck?: boolean;
|
|
61
62
|
rowSelection?: HRowSelection | false;
|
|
63
|
+
affixProps?: AffixProps | false;
|
|
62
64
|
}
|
|
63
65
|
export interface TableInstance {
|
|
64
66
|
reload: (params?: ParamsModal) => Promise<any>;
|
|
@@ -3,6 +3,7 @@ import type { ActionRenderFn, ConfigDataModal, ParamsModal } from "../modal";
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import type { HTableInstance } from "../modal";
|
|
5
5
|
import type { HRowSelection } from "../modal";
|
|
6
|
+
import { AffixProps } from "antd/lib/affix";
|
|
6
7
|
interface HTableBodyProps extends Omit<ProTableProps<any, any>, "dataSource" | "rowSelection"> {
|
|
7
8
|
configData?: ConfigDataModal;
|
|
8
9
|
onPageChange?: (params: ParamsModal) => void;
|
|
@@ -11,7 +12,8 @@ interface HTableBodyProps extends Omit<ProTableProps<any, any>, "dataSource" | "
|
|
|
11
12
|
tableStyle?: React.CSSProperties;
|
|
12
13
|
paginationStyle?: React.CSSProperties;
|
|
13
14
|
actionRender?: ActionRenderFn;
|
|
14
|
-
rowSelection?: HRowSelection;
|
|
15
|
+
rowSelection?: HRowSelection | false;
|
|
16
|
+
affixProps?: AffixProps | false;
|
|
15
17
|
}
|
|
16
18
|
declare const _default: ({ configData, pagination, onPageChange, rowSelection, rowKey, emptyRender, errorRender, tableStyle, paginationStyle, headerTitle, options, actionRender, ...props }: HTableBodyProps) => JSX.Element;
|
|
17
19
|
export default _default;
|
package/lib/modal.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type { ColProps } from "antd";
|
|
|
5
5
|
import type React from "react";
|
|
6
6
|
import type { ModalProps } from "antd";
|
|
7
7
|
import type { TableProps } from "antd/lib/table";
|
|
8
|
+
import { AffixProps } from "antd/lib/affix";
|
|
8
9
|
export interface RowObj {
|
|
9
10
|
keys?: React.Key[];
|
|
10
11
|
rowData?: any[];
|
|
@@ -59,6 +60,7 @@ export interface HTableProps extends Omit<ProTableProps<any, any>, "request" | "
|
|
|
59
60
|
rowKey?: string;
|
|
60
61
|
allPageCheck?: boolean;
|
|
61
62
|
rowSelection?: HRowSelection | false;
|
|
63
|
+
affixProps?: AffixProps | false;
|
|
62
64
|
}
|
|
63
65
|
export interface TableInstance {
|
|
64
66
|
reload: (params?: ParamsModal) => Promise<any>;
|
package/package.json
CHANGED
|
@@ -12,6 +12,7 @@ import HTablePagination from "../HTablePagination";
|
|
|
12
12
|
import { useClassName } from "../hooks";
|
|
13
13
|
import AlertMsg from "./AlertMsg";
|
|
14
14
|
import type { HRowSelection } from "../modal";
|
|
15
|
+
import {AffixProps} from "antd/lib/affix";
|
|
15
16
|
interface HTableBodyProps
|
|
16
17
|
extends Omit<ProTableProps<any, any>, "dataSource" | "rowSelection"> {
|
|
17
18
|
configData?: ConfigDataModal;
|
|
@@ -24,7 +25,8 @@ interface HTableBodyProps
|
|
|
24
25
|
tableStyle?: React.CSSProperties;
|
|
25
26
|
paginationStyle?: React.CSSProperties;
|
|
26
27
|
actionRender?: ActionRenderFn;
|
|
27
|
-
rowSelection?: HRowSelection;
|
|
28
|
+
rowSelection?: HRowSelection|false;
|
|
29
|
+
affixProps?: AffixProps | false;
|
|
28
30
|
}
|
|
29
31
|
const defaultRender = () => {
|
|
30
32
|
return <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} />;
|
package/src/components/modal.ts
CHANGED
|
@@ -8,6 +8,7 @@ import type { ColProps } from "antd";
|
|
|
8
8
|
import type React from "react";
|
|
9
9
|
import type { ModalProps } from "antd";
|
|
10
10
|
import type { TableProps } from "antd/lib/table";
|
|
11
|
+
import {AffixProps} from "antd/lib/affix";
|
|
11
12
|
|
|
12
13
|
export interface RowObj {
|
|
13
14
|
keys?: React.Key[];
|
|
@@ -90,6 +91,7 @@ export interface HTableProps
|
|
|
90
91
|
rowKey?: string;
|
|
91
92
|
allPageCheck?: boolean;
|
|
92
93
|
rowSelection?: HRowSelection | false;
|
|
94
|
+
affixProps?: AffixProps | false;
|
|
93
95
|
}
|
|
94
96
|
export interface TableInstance {
|
|
95
97
|
reload: (params?: ParamsModal) => Promise<any>;
|