Commit 57d3fde6 by luyt

fix:Table高亮竖线 safari兼容问题

1 parent 46f2dc94
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -6,7 +6,7 @@
<template slot-scope="scope">
<span :scope="scope"></span>
</template>
</el-table-column>
</el-table-column>
<el-table-column v-if="tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName" type="selection" width="55" :selectable="checkSelectable" :reserve-selection="true"></el-table-column>
<el-table-column v-if="hasNum" align="center" width="60px" label="序号" type="index" :index="index => index + (page[this.pageConf.pageNum] - 1) * page[this.pageConf.pageSize] + 1"></el-table-column>
<el-table-column v-for="(item, index) in tableColumns" :key="index" :label="item.label" :prop="item.prop" :width="item.width" :min-width="item.minWidth" :fixed="item.fixed" :align="item.align || 'center'" :sortable="item.sortable" :render-header="item.renderHeader">
......@@ -231,7 +231,7 @@ export default {
tableHeightValues: null,
bAntiShike: false, //防抖
componentKey: Date.now(), //用于更新组件
hightCell:''
hightCell: ''
}
},
......@@ -373,15 +373,14 @@ export default {
}
}
//
this.$nextTick(() => {
setTimeout(() => {
// console.log('123456doLayout')
this.$refs[this.tableParams.mutiSelectName + 'MutiTable'].doLayout()
})
this.$refs[this.tableParams.mutiSelectName + 'MutiTable'].doLayout()
}, 100)
},
beforeDestroy() {
// 事件注销
window.onresize = null
}
}
</script>
......@@ -493,28 +492,56 @@ export default {
.el-table tbody tr:last-child td {
border-bottom: 1px solid #fff;
}
//添加高亮行的竖线
.el-table.hightline .el-table__body tr.hover-row {
td:first-child {
background-color: #5850ff !important;
// background-color: #f4f4fc !important;
td:first-child {
position: relative;
// // background-color: #5850ff !important;
// background-color: #f4f4fc !important;
&:after {
position: absolute;
top: 0;
left: 0;
display: block;
content: '';
width: 5px;
height: 100%;
background-color: #5850ff;
}
}
}
.el-table.hightline tbody tr:hover {
td:first-child {
background-color: #5850ff !important;
// background-color: #f4f4fc !important;
td:first-child {
position: relative;
// // background-color: #5850ff !important;
// background-color: #f4f4fc !important;
&:after {
position: absolute;
top: 0;
left: 0;
display: block;
content: '';
width: 5px;
height: 100%;
background-color: #5850ff;
}
}
}
//除去左边fixed的阴影,添加竖线的时候
.el-table.hightline .el-table__fixed{
box-shadow: none !important;
.el-table.hightline .el-table__fixed {
box-shadow: none !important;
}
/* 样式新增光亮tr */
/* 多级表头的样式调整 */
.el-table.hightline .el-table__fixed .el-table__row td:first-child{
.el-table.hightline .el-table__fixed .el-table__row td:first-child {
border-right: none;
}
.el-table.hightline .el-table__fixed th.is-leaf:first-child{
.el-table.hightline .el-table__fixed th.is-leaf:first-child {
border: none;
}
......
......@@ -73,7 +73,7 @@ $utils: map-merge($map1: (
), $map2: $utils);
@each $key, $value in $utils {
@debug $key;
// @debug $key;
$values:map-get($map: $value, $key: values);
@each $sub-key,$sub-val in $values {
$properties:map-get($map: $value, $key:property );
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!