File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -653,7 +653,8 @@ const Table = defineComponent<TableProps>({
653
653
table,
654
654
} ) ;
655
655
return ( ) => {
656
- const columns = attrs . columns || convertChildrenToColumns ( slots . default ?.( ) ) ;
656
+ const props = attrs as TableProps ;
657
+ const columns = props . columns || convertChildrenToColumns ( slots . default ?.( ) ) ;
657
658
return (
658
659
< InteralTable
659
660
ref = { table }
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ describe('Table.pagination', () => {
25
25
props : {
26
26
columns,
27
27
dataSource : data ,
28
- pagination,
28
+ pagination : { ... pagination } ,
29
29
...props ,
30
30
} ,
31
31
sync : false ,
Original file line number Diff line number Diff line change @@ -57,8 +57,9 @@ import MultipleSorter from './multiple-sorter.vue';
57
57
import Summary from ' ./summary.vue' ;
58
58
import CN from ' ../index.zh-CN.md' ;
59
59
import US from ' ../index.en-US.md' ;
60
+ import { defineComponent } from ' @vue/runtime-core' ;
60
61
61
- export default {
62
+ export default defineComponent ( {
62
63
CN ,
63
64
US ,
64
65
components: {
@@ -88,5 +89,5 @@ export default {
88
89
MultipleSorter ,
89
90
Summary ,
90
91
},
91
- };
92
+ }) ;
92
93
</script >
You can’t perform that action at this time.
0 commit comments