element表格线条错位
element表格样式错乱如图,
不知道大家有没有遇到过
代码大致如下
<el-row style="margin-bottom: 10px">
<el-col>
<el-table
ref="multipleTable"
:data="shopList"
border
tooltip-effect="dark"
v-loading="loading"
style="width: 100%">
<el-table-column
label="店铺ID"
width="100">
<template scope="scope">
<span>{{ scope.row.id }}</span>
</template>
</el-table-column>
<el-table-column
label="店铺封面"
width="200">
<template scope="scope">
<img class="video_cover" :src="scope.row.background_img+'_vcover'" alt="">
</template>
</el-table-column>
<el-table-column
label="店铺名称"
width="180">
<template scope="scope">
<span>{{ scope.row.name }}</span>
</template>
</el-table-column>
<el-table-column
label="区域"
width="180">
<template scope="scope">
<span>{{ scope.row.area }}</span>
</template>
</el-table-column>
<el-table-column
label="楼层"
width="180">
<template scope="scope">
<span>{{ scope.row.floor }}</span>
</template>
</el-table-column>
<el-table-column
label="门牌号"
width="180">
<template scope="scope">
<span>{{ scope.row.house_number }}</span>
</template>
</el-table-column>
<el-table-column
label="分类"
width="180">
<template scope="scope">
<span>{{scope.row.cate_name}}</span>
</template>
</el-table-column>
<el-table-column
label="显示权重"
width="120">
<template scope="scope">
<span>{{ scope.row.weight }}</span>
</template>
</el-table-column>
<el-table-column
label="店铺状态"
width="140">
<template scope="scope">
<el-tag :type="formatStatus(scope.row.status)[1]">{{formatStatus(scope.row.status)[0]}}</el-tag>
</template>
</el-table-column>
<el-table-column
label="目前活动"
width="120">
<template scope="scope">
<div>
<span v-for="x in scope.row.activities">{{showCateList[x] }}</span><br>
</div>
</template>
</el-table-column>
<el-table-column
fixed="right"
label="操作"
width="220">
<template scope="scope">
<el-row style="margin: 10px 0">
<el-button type="primary" size="small" @click="jumpToDetail(scope.row.id)">编辑</el-button>
<!--<el-button type="primary" size="small" @click="showRecoBox(scope.row.id)">推荐</el-button>-->
<el-button type="danger" v-if="scope.row.status==1" size="small" @click="offTheShelf(scope.row.id,scope.row.status)">下架</el-button>
<el-button type="success" v-if="scope.row.status==3" size="small" @click="offTheShelf(scope.row.id,scope.row.status)">上架</el-button>
</el-row>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
目前的情况还是看不太出来问题出在哪里,建议先查看
dom
结构是生成了什么代码造成这样的样式。然后看传给table
的shopList
数据结构是否有问题。讲道理正常的话,是不会出现这种情况的。setTimeout(()=>{this.$refs.elTabel.doLayout()},2000)