mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
466 B
466 B
基础用法
<n-button @click="handleStart">
开始
</n-button>
<n-button @click="handleFinish">
结束
</n-button>
<n-button @click="handleError">
报个错
</n-button>
export default {
methods: {
handleStart() {
this.$NLoadingBar.start();
},
handleFinish() {
this.$NLoadingBar.finish();
},
handleError() {
this.$NLoadingBar.error();
}
}
};
.n-button {
margin: 0 12px 8px 0;
}