mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
454 B
454 B
Basic
<n-button @click="handleStart">
start
</n-button>
<n-button @click="handleFinish">
finish
</n-button>
<n-button @click="handleError">
error
</n-button>
export default {
methods: {
handleStart() {
this.$NLoadingBar.start();
},
handleFinish() {
this.$NLoadingBar.finish();
},
handleError() {
this.$NLoadingBar.error();
}
}
};
.n-button {
margin: 0 12px 8px 0;
}