@@ -14,48 +14,13 @@ export type { TableProps, TablePaginationConfig };
14
14
const TableSummaryRow = defineComponent ( { ...SummaryRow , name : 'ATableSummaryRow' } ) ;
15
15
const TableSummaryCell = defineComponent ( { ...SummaryCell , name : 'ATableSummaryCell' } ) ;
16
16
17
- const TempSummary = defineComponent ( {
18
- ...Summary ,
17
+ const TableSummary = Object . assign ( Summary , {
18
+ Cell : TableSummaryCell ,
19
+ Row : TableSummaryRow ,
19
20
name : 'ATableSummary' ,
20
21
} ) ;
21
22
22
- const TableSummary = TempSummary as typeof TempSummary & {
23
- Cell : typeof TableSummaryCell ;
24
- Row : typeof TableSummaryRow ;
25
- } ;
26
- TableSummary . Cell = TableSummaryCell ;
27
- TableSummary . Row = TableSummaryRow ;
28
-
29
- const T = Table as typeof Table &
30
- Plugin & {
31
- Column : typeof Column ;
32
- ColumnGroup : typeof ColumnGroup ;
33
- Summary : typeof TableSummary ;
34
- SELECTION_ALL : typeof SELECTION_ALL ;
35
- SELECTION_INVERT : typeof SELECTION_INVERT ;
36
- SELECTION_NONE : typeof SELECTION_NONE ;
37
- } ;
38
-
39
- T . SELECTION_ALL = SELECTION_ALL ;
40
- T . SELECTION_INVERT = SELECTION_INVERT ;
41
- T . SELECTION_NONE = SELECTION_NONE ;
42
-
43
- T . Column = Column ;
44
- T . ColumnGroup = ColumnGroup ;
45
-
46
- T . Summary = TableSummary ;
47
-
48
23
/* istanbul ignore next */
49
- T . install = function ( app : App ) {
50
- app . component ( TableSummary . name , TableSummary ) ;
51
- app . component ( TableSummaryCell . name , TableSummaryCell ) ;
52
- app . component ( TableSummaryRow . name , TableSummaryRow ) ;
53
- app . component ( T . name , T ) ;
54
- app . component ( T . Column . name , Column ) ;
55
- app . component ( T . ColumnGroup . name , ColumnGroup ) ;
56
- return app ;
57
- } ;
58
-
59
24
export {
60
25
tableProps ,
61
26
TableSummary ,
@@ -65,4 +30,20 @@ export {
65
30
ColumnGroup as TableColumnGroup ,
66
31
} ;
67
32
68
- export default T ;
33
+ export default Object . assign ( Table , {
34
+ SELECTION_ALL ,
35
+ SELECTION_INVERT ,
36
+ SELECTION_NONE ,
37
+ Column,
38
+ ColumnGroup,
39
+ Summary : TableSummary ,
40
+ install : ( app : App ) => {
41
+ app . component ( TableSummary . name , TableSummary ) ;
42
+ app . component ( TableSummaryCell . name , TableSummaryCell ) ;
43
+ app . component ( TableSummaryRow . name , TableSummaryRow ) ;
44
+ app . component ( Table . name , Table ) ;
45
+ app . component ( Column . name , Column ) ;
46
+ app . component ( ColumnGroup . name , ColumnGroup ) ;
47
+ return app ;
48
+ } ,
49
+ } ) ;
0 commit comments