fix(pagination): fix page-size not update in UI when props changed (#631)

This commit is contained in:
Ryan2128 2020-11-19 21:44:22 +08:00 committed by GitHub
parent 0b6c862f44
commit f4f1e80e6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,6 +59,10 @@ export default defineComponent({
}
})
watch(() => props.pageSize, newVal => {
innerPageSize.value = newVal
})
const innerPagesizes = computed(() => props.pageSizes)
function handleChange(val: number) {