File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
- import { computed , inject } from 'vue' ;
1
+ import { inject } from 'vue' ;
2
2
import PropTypes from '../../_util/vue-types' ;
3
3
import TableHeaderRow from './TableHeaderRow' ;
4
4
@@ -75,21 +75,20 @@ export default {
75
75
columns : PropTypes . array . isRequired ,
76
76
expander : PropTypes . object . isRequired ,
77
77
} ,
78
- setup ( props ) {
78
+ setup ( ) {
79
79
return {
80
80
table : inject ( 'table' , { } ) ,
81
- rows : computed ( ( ) => parseHeaderRows ( props . columns ) ) ,
82
81
} ;
83
82
} ,
84
83
85
84
render ( ) {
86
85
const { sComponents : components , prefixCls, showHeader, customHeaderRow } = this . table ;
87
- const { expander, columns, fixed, rows } = this ;
86
+ const { expander, columns, fixed } = this ;
88
87
89
88
if ( ! showHeader ) {
90
89
return null ;
91
90
}
92
-
91
+ const rows = parseHeaderRows ( this . columns ) ;
93
92
expander . renderExpandIndentCell ( rows , fixed ) ;
94
93
95
94
const HeaderWrapper = components . header . wrapper ;
You can’t perform that action at this time.
0 commit comments