<template>
	<view class="loading-mask" v-show="isLoading">
		<view class="loading-content">
			<view>加载中...</view>
		</view>
	</view>
</template>
<script>
	export default {
		name: 'WindowLoading',
		props: {
			isLoading: {
				type: Boolean,
				default: false
			}
		}
	}
</script>
<style lang="scss" scoped>
	.loading-mask {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background-color: rgba(0, 0, 0, 0.5);
		display: flex;
		justify-content: center;
		align-items: center;
		z-index: 1000;
	}

	.loading-content {
		width: 100%;
		height: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
	}
</style>
