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>({
653653 table,
654654 } ) ;
655655 return ( ) => {
656- const columns = attrs . columns || convertChildrenToColumns ( slots . default ?.( ) ) ;
656+ const props = attrs as TableProps ;
657+ const columns = props . columns || convertChildrenToColumns ( slots . default ?.( ) ) ;
657658 return (
658659 < InteralTable
659660 ref = { table }
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ describe('Table.pagination', () => {
2525 props : {
2626 columns,
2727 dataSource : data ,
28- pagination,
28+ pagination : { ... pagination } ,
2929 ...props ,
3030 } ,
3131 sync : false ,
Original file line number Diff line number Diff line change @@ -57,8 +57,9 @@ import MultipleSorter from './multiple-sorter.vue';
5757import Summary from ' ./summary.vue' ;
5858import CN from ' ../index.zh-CN.md' ;
5959import US from ' ../index.en-US.md' ;
60+ import { defineComponent } from ' @vue/runtime-core' ;
6061
61- export default {
62+ export default defineComponent ( {
6263 CN ,
6364 US ,
6465 components: {
@@ -88,5 +89,5 @@ export default {
8889 MultipleSorter ,
8990 Summary ,
9091 },
91- };
92+ }) ;
9293 </script >
You can’t perform that action at this time.
0 commit comments