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.
...@@ -231,7 +231,7 @@ export default { ...@@ -231,7 +231,7 @@ export default {
tableHeightValues: null, tableHeightValues: null,
bAntiShike: false, //防抖 bAntiShike: false, //防抖
componentKey: Date.now(), //用于更新组件 componentKey: Date.now(), //用于更新组件
hightCell:'' hightCell: ''
} }
}, },
...@@ -373,15 +373,14 @@ export default { ...@@ -373,15 +373,14 @@ export default {
} }
} }
// //
this.$nextTick(() => { setTimeout(() => {
// console.log('123456doLayout') // console.log('123456doLayout')
this.$refs[this.tableParams.mutiSelectName + 'MutiTable'].doLayout() this.$refs[this.tableParams.mutiSelectName + 'MutiTable'].doLayout()
}) }, 100)
}, },
beforeDestroy() { beforeDestroy() {
// 事件注销 // 事件注销
window.onresize = null window.onresize = null
} }
} }
</script> </script>
...@@ -493,28 +492,56 @@ export default { ...@@ -493,28 +492,56 @@ export default {
.el-table tbody tr:last-child td { .el-table tbody tr:last-child td {
border-bottom: 1px solid #fff; border-bottom: 1px solid #fff;
} }
//添加高亮行的竖线 //添加高亮行的竖线
.el-table.hightline .el-table__body tr.hover-row { .el-table.hightline .el-table__body tr.hover-row {
// background-color: #f4f4fc !important;
td:first-child { td:first-child {
background-color: #5850ff !important; 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 { .el-table.hightline tbody tr:hover {
// background-color: #f4f4fc !important;
td:first-child { td:first-child {
background-color: #5850ff !important; 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的阴影,添加竖线的时候 //除去左边fixed的阴影,添加竖线的时候
.el-table.hightline .el-table__fixed{ .el-table.hightline .el-table__fixed {
box-shadow: none !important; box-shadow: none !important;
} }
/* 样式新增光亮tr */ /* 样式新增光亮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; 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; border: none;
} }
......
...@@ -73,7 +73,7 @@ $utils: map-merge($map1: ( ...@@ -73,7 +73,7 @@ $utils: map-merge($map1: (
), $map2: $utils); ), $map2: $utils);
@each $key, $value in $utils { @each $key, $value in $utils {
@debug $key; // @debug $key;
$values:map-get($map: $value, $key: values); $values:map-get($map: $value, $key: values);
@each $sub-key,$sub-val in $values { @each $sub-key,$sub-val in $values {
$properties:map-get($map: $value, $key:property ); $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!