File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -185,8 +185,7 @@ const ArrayTableProInside: ReactFC<ProArrayTableProps> = observer(
185
185
props . settings !== false ;
186
186
187
187
const _header = ! showHeader ? null : (
188
- < Flex between marginBottom = { "6px" } marginTop = { "6px" } >
189
- < Flex start >
188
+ < Flex { ...props . headerFlex } marginBottom = { "8px" } marginTop = { "8px" } >
190
189
{ props . title ? (
191
190
typeof props . title === "function" ? (
192
191
props . title ( dataSource )
@@ -199,8 +198,6 @@ const ArrayTableProInside: ReactFC<ProArrayTableProps> = observer(
199
198
{ rowSelection ?. showPro === "top" ? (
200
199
< RowSelectionPro ds = { dataSlice } rowKey = { rowKey } > </ RowSelectionPro >
201
200
) : null }
202
- </ Flex >
203
- < Flex end >
204
201
{ toolbar }
205
202
{ addition }
206
203
{ ! props . extra && props . settings === false ? null : (
@@ -211,7 +208,6 @@ const ArrayTableProInside: ReactFC<ProArrayTableProps> = observer(
211
208
) : null }
212
209
</ Space >
213
210
) }
214
- </ Flex >
215
211
</ Flex >
216
212
) ;
217
213
@@ -354,7 +350,6 @@ const ArrayTableProInside: ReactFC<ProArrayTableProps> = observer(
354
350
) ;
355
351
356
352
const useTableExpandable = ( ) => {
357
- return useContext ( TableExpandableContext ) ;
358
353
} ;
359
354
360
355
const useTableRowSelection = ( ) => {
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import type { Table } from "../adaptor";
4
4
5
5
type TableProps < T > = React . ComponentProps < typeof Table > ;
6
6
7
+ import { Flex } from './mixin.pro'
7
8
export type TableChangeParams = Parameters <
8
9
Required < TableProps < any > > [ "onChange" ]
9
10
> ;
@@ -57,6 +58,7 @@ export interface IProArrayTableBaseMixins {
57
58
58
59
export type ProArrayTableProps = Omit < TableProps < any > , "title" > &
59
60
IProArrayTableBaseMixins & {
61
+ headerFlex ?: React . ComponentProps < typeof Flex > ,
60
62
title : string | TableProps < any > [ "title" ] ;
61
63
footer : string | TableProps < any > [ "footer" ] ;
62
64
rowSelection ?:
You can’t perform that action at this time.
0 commit comments