docs: [input-number] fix type error (#19712)

This commit is contained in:
jiaxiang
2025-01-22 23:39:47 +08:00
committed by GitHub
parent 42d279f87b
commit c8650d74e2
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
import { ref } from 'vue' import { ref } from 'vue'
const num = ref(1) const num = ref(1)
const handleChange = (value: number) => { const handleChange = (value: number | undefined) => {
console.log(value) console.log(value)
} }
</script> </script>

View File

@ -28,7 +28,7 @@
import { ref } from 'vue' import { ref } from 'vue'
const num = ref(1) const num = ref(1)
const handleChange = (value: number) => { const handleChange = (value: number | undefined) => {
console.log(value) console.log(value)
} }
</script> </script>