<template>
    <div :class="$style.circle">
        <div :class="$style.func">
            <div/>
        </div>
        <div :class="$style.content">
            <slot/>
        </div>
    </div>
</template>

<script>
    export default {
        name: 'MyCircle'
    }
</script>

<style module lang="scss">
    @import '../../cssInjection/cssLayout.scss';
    .circle{
        width: 100%;
        position: relative;
        border-radius: 50%;
        >.func{
            position: relative;
            visibility: hidden;
            opacity: 0;
            pointer-events: none;
            overflow: hidden;
            padding-top: 100%;
            >div{
                margin-top: -100%;
            }
        }
        >.content{
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            @extend %FlexColumnCenter;
        }
    }
</style>
