@@ -99,26 +99,27 @@ const CTable = defineComponent({
99
99
} ,
100
100
} ,
101
101
setup ( props , { slots } ) {
102
- const table = h (
103
- 'table' ,
104
- {
105
- class : [
106
- 'table' ,
107
- {
108
- [ `align-${ props . align } ` ] : props . align ,
109
- [ `caption-${ props . caption } ` ] : props . caption ,
110
- [ `border-${ props . borderColor } ` ] : props . borderColor ,
111
- 'table-bordered' : props . bordered ,
112
- 'table-borderless' : props . borderless ,
113
- [ `table-${ props . color } ` ] : props . color ,
114
- 'table-hover' : props . hover ,
115
- 'table-sm' : props . small ,
116
- 'table-striped' : props . striped ,
117
- } ,
118
- ] ,
119
- } ,
120
- slots . default && slots . default ( ) ,
121
- )
102
+ const table = ( ) =>
103
+ h (
104
+ 'table' ,
105
+ {
106
+ class : [
107
+ 'table' ,
108
+ {
109
+ [ `align-${ props . align } ` ] : props . align ,
110
+ [ `caption-${ props . caption } ` ] : props . caption ,
111
+ [ `border-${ props . borderColor } ` ] : props . borderColor ,
112
+ 'table-bordered' : props . bordered ,
113
+ 'table-borderless' : props . borderless ,
114
+ [ `table-${ props . color } ` ] : props . color ,
115
+ 'table-hover' : props . hover ,
116
+ 'table-sm' : props . small ,
117
+ 'table-striped' : props . striped ,
118
+ } ,
119
+ ] ,
120
+ } ,
121
+ slots . default && slots . default ( ) ,
122
+ )
122
123
return ( ) => [
123
124
props . responsive
124
125
? h (
@@ -129,9 +130,9 @@ const CTable = defineComponent({
129
130
? 'table-responsive'
130
131
: `table-responsive-${ props . responsive } ` ,
131
132
} ,
132
- table ,
133
+ table ( ) ,
133
134
)
134
- : table ,
135
+ : table ( ) ,
135
136
]
136
137
} ,
137
138
} )
0 commit comments