focus-left-right.vue 907 Bytes
<template>
    <div class="focus-left-right">
        <a v-for="item in floor" :key="item.src" v-blk-href="item.url" :title="item.title">
            <img v-img-src="{src: item.src, width: 250, height: 250}">
        </a>
    </div>
</template>

<script>
    export default {
        props: ['floor']
    };
</script>

<style>
    .focus-left-right {
        padding: 30px 15px;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 0;
        background: #fff;
        -webkit-overflow-scrolling: touch;

        /* stylelint-disable */
        &::-webkit-scrollbar {
            display:none;
        }
        /* stylelint-enable */

        a {
            display: inline-block;
            margin: 0 15px;
            width: 250px;
            height: 250px;
        }

        img {
            width: 100%;
            height: 100%;
        }
    }
</style>