focus-left-right.vue 915 Bytes
<template>
    <div class="focus-left-right">
        <a v-for="item in floor" href="{{item.url}}" title="{{item.title}}">
            <img v-lazy="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;
        border-bottom: 1px solid #eee;
        -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>