mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
267 B
267 B
加载中
按钮有加载状态。
<n-button
:loading="loading"
@click="loading = !loading"
>
点我
</n-button>
export default {
data () {
return {
loading: false
}
}
}
.n-button {
margin: 0 8px 8px 0;
}