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