mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
376 B
376 B
事件
暴露了 Blur 和 Change 事件。
<n-input-number
v-model="value"
@change="handleChange"
@blur="handleBlur"
/>
export default {
data () {
return {
value: 0
}
},
methods: {
handleChange (v) {
this.$NMessage.info(`value: ${v}`)
},
handleBlur (v) {
this.$NMessage.info(`blur: ` + v)
},
}
}