mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-15 03:06:25 +08:00
docs: [input-number] fix type error (#19712)
This commit is contained in:
@ -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>
|
||||||
|
@ -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>
|
||||||
|
Reference in New Issue
Block a user