@regenbio/regenbio-components-react 1.3.28 → 1.3.30
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ActionType, ProColumns, RequestData } from "@ant-design/pro-components";
|
|
2
|
-
import { ReactNode, Ref } from "react";
|
|
2
|
+
import React, { ReactNode, Ref } from "react";
|
|
3
3
|
import { TableProps } from "antd";
|
|
4
4
|
import type { SortOrder } from "antd/lib/table/interface";
|
|
5
5
|
import type { ToolBarProps } from "@ant-design/pro-table/es/components/ToolBar";
|
|
@@ -7,6 +7,7 @@ import type { AlertRenderType } from "@ant-design/pro-table/es/components/Alert"
|
|
|
7
7
|
import type { TableProps as RcTableProps } from "rc-table/lib/Table";
|
|
8
8
|
import type { SearchConfig } from "@ant-design/pro-table/es/components/Form/FormRender";
|
|
9
9
|
import type { TableSticky } from "rc-table/lib/interface";
|
|
10
|
+
import { ProTableProps } from "@ant-design/pro-table";
|
|
10
11
|
/**
|
|
11
12
|
* 扩展操作类型
|
|
12
13
|
*/
|
|
@@ -118,4 +119,15 @@ export type RbDataTableProps<DataSource, U, ValueType = 'text'> = {
|
|
|
118
119
|
* 幽灵模式
|
|
119
120
|
*/
|
|
120
121
|
ghost?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* 表格内容渲染
|
|
124
|
+
*
|
|
125
|
+
* @param props
|
|
126
|
+
* @param defaultDom
|
|
127
|
+
*/
|
|
128
|
+
tableRender?: (props: ProTableProps<DataSource, U, ValueType>, defaultDom: Element, domList: {
|
|
129
|
+
toolbar: Element | undefined;
|
|
130
|
+
alert: Element | undefined;
|
|
131
|
+
table: Element | undefined;
|
|
132
|
+
}) => React.ReactNode;
|
|
121
133
|
};
|