File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 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' ;
22import PropTypes from '../../_util/vue-types' ;
33import TableHeaderRow from './TableHeaderRow' ;
44
@@ -75,21 +75,20 @@ export default {
7575 columns : PropTypes . array . isRequired ,
7676 expander : PropTypes . object . isRequired ,
7777 } ,
78- setup ( props ) {
78+ setup ( ) {
7979 return {
8080 table : inject ( 'table' , { } ) ,
81- rows : computed ( ( ) => parseHeaderRows ( props . columns ) ) ,
8281 } ;
8382 } ,
8483
8584 render ( ) {
8685 const { sComponents : components , prefixCls, showHeader, customHeaderRow } = this . table ;
87- const { expander, columns, fixed, rows } = this ;
86+ const { expander, columns, fixed } = this ;
8887
8988 if ( ! showHeader ) {
9089 return null ;
9190 }
92-
91+ const rows = parseHeaderRows ( this . columns ) ;
9392 expander . renderExpandIndentCell ( rows , fixed ) ;
9493
9594 const HeaderWrapper = components . header . wrapper ;
You can’t perform that action at this time.
0 commit comments