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

38 lines
676 B
Vue
Raw Normal View History

<style scoped lang="scss">
.loading-font{
color:#232f3e !important;
}
</style>
<template>
<div v-show="showLoading" class="el-loading-mask" style="background-color: rgba(0, 0, 0, 0);">
<div class="el-loading-spinner">
<!--<img width="42px" height="42px" src="../../assets/img/loading.gif"/>
<p class="el-loading-text loading-font">loading</p>-->
</div>
</div>
</template>
<script>
export default {
name: "loading",
props: {
},
data() {
return {
showLoading:false,
};
},
methods: {
startLoading(){
this.showLoading = true;
},
endLoading(){
this.showLoading = false;
},
}
};
</script>