fix(components): [el-pagination] jumper prohibit decimal (#5512)

This commit is contained in:
btea 2022-01-22 03:34:29 -06:00 committed by GitHub
parent 78381d604d
commit 3956faacba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,6 +39,7 @@ export default defineComponent({
}
function handleChange(val: number | string) {
val = Math.trunc(+val)
changeEvent?.(+val)
userInput.value = undefined
}