vue实现页面无限滚动

        <div id="load2" class="infinite-list" v-infinite-scroll="load"
            style="overflow:auto; display: flex;flex-wrap: wrap;justify-content: center;" 
            >
            <el-card v-for="item in tableData" class="infinite-list-item" style="margin-top:10px;width:50%; height:200px" :key="item.id">
                <!-- title -->
                <div style="font-weight:bold; color: blue"><a href="/markDown" >{{item.name}}</a></div>
                <!-- content -->
                <div style="height:120px">
                    <p >{{item.content}}</p>
                </div>

                <!-- author time -->
                <div style="width:100%">
                    <i class="el-icon-user"></i>
                    <span>{{ item.user }}</span>
                    <i class="el-icon-time" style="margin-left:14px"></i>
                    <span>{{ item.time }}</span>
                    <i style="margin-left:14px" class="el-icon-files"></i>
                    <span>{{item.id}}</span>
                </div>
            </el-card>
        </div>
    </div>

 

posted on 2023-05-21 17:39  你就学个JVAV?  阅读(196)  评论(0)    收藏  举报

导航