focus-left-right.vue 889 Bytes
<template>
    <div class="focus-left-right">
        <a v-for="item in floor" :href="item.url | transformBlk" :title="item.title">
            <img v-bind:src="item.src | resize 250 250">
        </a>
    </div>
</template>

<script>
    module.exports = {
        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>