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

29 lines
402 B
Vue
Raw Normal View History

<template>
2021-11-01 17:23:01 +08:00
<div v-show="showLoading" class="el-loading-mask">
<div class="el-loading-spinner">
</div>
</div>
</template>
<script>
export default {
2021-03-19 18:52:19 +08:00
name: 'loading',
props: {
},
2021-03-19 18:52:19 +08:00
data () {
return {
2021-03-19 18:52:19 +08:00
showLoading: false
}
},
methods: {
2021-03-19 18:52:19 +08:00
startLoading () {
this.showLoading = true
},
2021-03-19 18:52:19 +08:00
endLoading () {
this.showLoading = false
}
}
2021-03-19 18:52:19 +08:00
}
</script>