naive-ui/demo/documentation/components/button/zhCN/loading.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

219 B

加载中

按钮有加载状态。

<n-button
  :loading="loading"
  @click="loading = !loading"
>
  点我
</n-button>
export default {
  data () {
    return {
      loading: false
    }
  }
}