<template>
    <view class="cm-loading" v-if="visible"> <tui-loading :text="text"></tui-loading> </view>
</template>

<script>
export default {
    props: {
        text: {
            type: String,
            default: '正在加载...'
        },
        visible: {
            type: Boolean,
            default: false
        }
    }
}
</script>

<style lang="scss" scoped>
.cm-loading {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
}
</style>
