mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
448 B
448 B
Basic
<n-space>
<n-button @click="handleStart"> start </n-button>
<n-button @click="handleFinish"> finish </n-button>
<n-button @click="handleError"> error </n-button>
</n-space>
export default {
inject: ['loadingBar'],
methods: {
handleStart () {
this.loadingBar.start()
},
handleFinish () {
this.loadingBar.finish()
},
handleError () {
this.loadingBar.error()
}
}
}