Loading.vue 1.13 KB
Newer Older
BigBigC's avatar
BigBigC committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
<template>
	<div class="loading" v-if="showLoading">
		<div class="running-con">
			<img src="../assets/images/running.gif" mode=""></img>
			<p>RUNNING...</p>
		</div>
	</div>
</template>

<script setup>
	import {
		defineProps,
		defineEmits
	} from 'vue';
	const props = defineProps({
		showLoading: {
			type: Boolean,
			default: false
		}
	});
</script>

<style>
.loading{
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	height: 100%;
	width: 100%;
	background: #FFFFFF;
	opacity: 0.93;
	display: flex;
	justify-content: center;
	align-items: center;
}

.running-con{
	width: 56vw;
	height: 25.07vw;
	background: #000000;
	border-radius: 4.27vw;
	border: .13vw solid #707070;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	position: relative;
	padding: 5.6vw 0;
	box-sizing: border-box;
}

.running-con img{
	width: 22.4vw;
	height: 38.4vw;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: -28vw;
}

.running-con p{
	font-family: Roboto-Bold;
	font-weight: bold;
	font-size: 3.73vw;
	color: #FFFFFF;
	text-align: center;
	font-style: normal;
	text-transform: none;
	/* margin-top: 32rpx; */
}
</style>