<template>
	<div>
		<div :class="(visible && doLoading)?'mui-loading z-loading':'mui-loading'">
			<div v-show="visible && doLoading"><img src="http://rccs.oss-cn-hangzhou.aliyuncs.com/jp_housekeeper/img/xxd_loading.gif" /></div>
		</div>
	</div>
</template>

<script>
	export default {
		name: 'Loading',
		props: {
			visible: {
				require: false,
				default: false,
			},
			doLoading: {
				require: false,
				default: true,
			}
		},
		methods: {},
		mounted() {}
	}
</script>

<style scoped="scoped">
	.z-loading {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgb(255, 255, 255, 0.9);
		z-index: 999;
	}

	.z-loading div {
		top: 40%;
		position: absolute;
		left: 40%
	}
</style>
