<template>
	<view class="loading-wrapper" v-if="loadingStatus" @tap="hideLoading"></view>
</template>

<script setup>
import { loadingStatus,hideLoading } from '@/hooks/loading'
import { ref } from 'vue'
// let loadingStatus = ref(false)
// const loadingShow = () => {
// 	loadingStatus.value = true
// 	setTimeout(() => {
// 		console.log('执行')
// 		loadingStatus.value = false
// 	}, 1000)
// }
// defineExpose({ loadingShow })
</script>

<style lang="scss" scoped>
.loading-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 9999999999;
	width: 100vw;
	height: 100vh;
	background-color: $primaryColor;
}
</style>
