mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-24 12:45:18 +08:00
297 B
297 B
事件
<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}`)
}
}
}