This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nezha-nezha-fronted/nezha-fronted/src/components/common/loading.vue

39 lines
613 B
Vue

<template>
<div v-show="showLoading" style="text-align: center" class="my-loading-box">
<div class="bars1 my-loading">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</div>
</template>
<script>
export default {
name: 'loading',
props: {
loading: Boolean
},
data () {
return {
showLoading: false
}
},
methods: {
startLoading () {
this.showLoading = true
},
endLoading () {
this.showLoading = false
}
},
watch: {
loading (n) {
this.showLoading = n
}
}
}
</script>