mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
295 B
295 B
Event
<n-switch v-model:value="active" @update:value="handleChange" />
export default {
inject: ['message'],
data () {
return {
active: false
}
},
methods: {
handleChange (value) {
this.message.info(`Update value: ${value}`)
}
}
}