mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2024-11-27 08:39:59 +08:00
fix(Table): illegal default current page is automatically fixed to 1
This commit is contained in:
parent
58a58cffc5
commit
3b367d3b48
@ -220,7 +220,7 @@ export const Table = implementRuntimeComponent({
|
||||
const currentChecked = useRef<(string | number)[]>([]);
|
||||
|
||||
const [currentPage, setCurrentPage] = useStateValue<number>(
|
||||
defaultCurrent ?? 1,
|
||||
!defaultCurrent || defaultCurrent < 1 ? 1 : defaultCurrent,
|
||||
mergeState,
|
||||
updateWhenDefaultPageChanges,
|
||||
'currentPage'
|
||||
|
Loading…
Reference in New Issue
Block a user