@@ -14,48 +14,13 @@ export type { TableProps, TablePaginationConfig };
1414const TableSummaryRow = defineComponent ( { ...SummaryRow , name : 'ATableSummaryRow' } ) ;
1515const TableSummaryCell = defineComponent ( { ...SummaryCell , name : 'ATableSummaryCell' } ) ;
1616
17- const TempSummary = defineComponent ( {
18- ...Summary ,
17+ const TableSummary = Object . assign ( Summary , {
18+ Cell : TableSummaryCell ,
19+ Row : TableSummaryRow ,
1920 name : 'ATableSummary' ,
2021} ) ;
2122
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-
4823/* 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-
5924export {
6025 tableProps ,
6126 TableSummary ,
@@ -65,4 +30,20 @@ export {
6530 ColumnGroup as TableColumnGroup ,
6631} ;
6732
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