<template>
    <popup ref="Message" v-if="display">
        <div class="ui-waiting">
            <div class="spinner">
                <div class="bounce1"></div>
                <div class="bounce2"></div>
                <div class="bounce3"></div>
            </div>
            <!-- <div>请稍等...</div> -->
        </div>
    </popup>
</template>
<script>
import Popup from "../popup";
export default {
    name: "ui-waiting",
    components: {
        Popup
    },
    data() {
        return {
            display: false,
            duration: 0
        };
    },
    methods: {
        show() {
            this.$nextTick(() => (this.display = true));
        },
        hide() {
            this.$nextTick(() => (this.display = false));
        }
    }
};
</script>
<style lang="less" scoped>
.ui-waiting {
    color: #fff;
    text-align: center;
    letter-spacing: 2px;
    .spinner {
        width: 300px;
        text-align: center;
        display: flex;
        justify-content: center;
        margin-top: -70px;
        align-items: center;
        > div {
            width: 15px;
            height: 15px;
            background-color: #fff;
            margin: 15px;
            border-radius: 100%;
            display: inline-block;
            animation: bouncedelay 1.4s infinite ease-in-out;
            animation-fill-mode: both;
        }

        .bounce1 {
            animation-delay: -0.32s;
        }
        .bounce2 {
            animation-delay: -0.16s;
        }
    }
}
</style>