elementUI 取消table overflow:hidden 隐藏
- html
<el-table :data="tableData" style="width: 100%" border>
<el-table-column width="180">
<template slot-scope="scope">
<i class="el-icon-delete" style="margin-left: -20px;" ></i>
{{ scope.row.name }}
</template>
</el-table-column>
<el-table-column prop="date" label="日期" width="180"></el-table-column>
</el-table>
- js 数据
export default {
data() {
return {
tableData: [{
date: '2016-05-02',
name: '王小虎',
address: '上海市普陀区金沙江路 1518 弄'
}, {
date: '2016-05-04',
name: '王小虎',
address: '上海市普陀区金沙江路 1517 弄'
}, {
date: '2016-05-01',
name: '王小虎',
address: '上海市普陀区金沙江路 1519 弄'
}, {
date: '2016-05-03',
name: '王小虎',
address: '上海市普陀区金沙江路 1516 弄'
}]
}
}
}
- style
/deep/ .el-table{overflow: unset}
/deep/ .el-table__body-wrapper{overflow: unset}
/deep/ .el-table .cell{overflow: unset}
4 效果