mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-09 04:31:35 +08:00
263 B
263 B
Event
<n-switch
v-model="active"
@change="handleChange"
/>
export default {
data () {
return {
active: false
}
},
methods: {
handleChange (value) {
this.$NMessage.info(`Change Event: ${value}`)
}
}
}