mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-24 12:45:18 +08:00
238 B
238 B
事件
处理按钮的事件。
<n-button @click="handleClick">
点它
</n-button>
export default {
inject: ['message'],
methods: {
handleClick () {
this.message.info('Button Clicked')
}
}
}