// template
<div v-if="alarmList.length>0"
class="table-box">
<el-table :data="alarmList"
size='mini'
height="260"
style="width: 100%">
...
</el-table>
</div>
//
// css
.table-box {
::v-deep .is-scrolling-none {
overflow: hidden;
overflow-y: auto;
overflow-x: scroll;
}
::v-deep .is-scrolling-none::-webkit-scrollbar {
display: none;
}
::v-deep.el-table--scrollable-y ::-webkit-scrollbar {
display: none;
}
::v-deep.el-table--scrollable-x ::-webkit-scrollbar {
display: none;
}
}
el-table隐藏横纵滚动条并且可以滚动(个人记录)
最新推荐文章于 2024-04-04 19:01:14 发布