Skip to content

Commit 663ab36

Browse files
inter-actione1emeb0t
authored andcommitted
fix issue #510, sync Pagination type defination
1 parent 70ff971 commit 663ab36

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

typings/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ declare namespace ElementReact {
794794
total?: number
795795
pageCount?: number
796796
currentPage?: number
797-
layout?: 'sizes' | 'prev' | 'pager' | 'next' | 'jumper' | '->' | 'total'
797+
layout?: string,
798798
pageSizes?: number[]
799799
onCurrentChange?(currentPage?: number): void
800800
onSizeChange?(size?: number): void

typings/typing-tests/Pagination.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Pagination as PaginationNext } from 'element-react/next'
55
class Component extends React.Component<{}, {}> {
66
onCurrentChange = (currentPage) => { }
77
onSizeChange = (size) => { }
8-
layout: 'sizes' | 'prev' | 'pager' | 'next' | 'jumper' | '->' | 'total'
8+
layout: 'total, prev, pager, next'
99
render() {
1010
return (
1111
<div>

0 commit comments

Comments
 (0)