mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-27 02:01:15 +08:00
fix(pagination): fix page-size not update in UI when props changed (#631)
This commit is contained in:
parent
0b6c862f44
commit
f4f1e80e6c
@ -59,6 +59,10 @@ export default defineComponent({
|
||||
}
|
||||
})
|
||||
|
||||
watch(() => props.pageSize, newVal => {
|
||||
innerPageSize.value = newVal
|
||||
})
|
||||
|
||||
const innerPagesizes = computed(() => props.pageSizes)
|
||||
|
||||
function handleChange(val: number) {
|
||||
|
Loading…
Reference in New Issue
Block a user