naive-ui/demo/documentation/components/button/zhCN/events.demo.md
07akioni 487001d697 build: add changelog to site, refactor loader based on suffix
.demo.md for component demo
.demo-entry.md for demo entry
.md for common docs
2020-08-19 23:30:04 +08:00

22 lines
253 B
Markdown

# 事件
处理按钮的事件。
```html
<n-button @click="handleClick">
点它
</n-button>
```
```js
export default {
data () {
return {
}
},
methods: {
handleClick () {
this.$NMessage.info('Button Clicked')
}
}
}
```