CommonLayout.vue 889 Bytes
Newer Older
wb-ct393452's avatar
wb-ct393452 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
<template>
    <div class="common-layout">
        <div class="content">
            <slot></slot>
        </div>
    </div>
</template>

<script>
import { mapState } from 'vuex';

export default {
    name: 'CommonLayout',
    computed: {
        ...mapState('settingModule', ['footerLinks', 'copyright']),
    },
};
</script>

<style scoped lang="less">
.common-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: auto;
    background-color: @layout-body-background;
    background-image: url('https://gw.alipayobjects.com/zos/rmsportal/TVYTbAXWheQpRcWDaDMu.svg');
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: 110px;
    background-size: 100%;
    .content {
        padding: 32px 0;
        flex: 1;
        @media (min-width: 768px) {
            padding: 112px 0 24px;
        }
    }
}
</style>