序号列宽固定
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
<div class="title">
|
<div class="title">
|
||||||
<div
|
<div
|
||||||
v-if="isIndex"
|
v-if="isIndex"
|
||||||
:style="[headerTableStyle, tableRowHeight()]">
|
:style="[headerTableStyle,{width:'50px',flexShrink: 0}, tableRowHeight()]">
|
||||||
序号
|
序号
|
||||||
</div>
|
</div>
|
||||||
<div v-for="(item, index) in header" :key="index"
|
<div v-for="(item, index) in header" :key="index"
|
||||||
@@ -18,9 +18,11 @@
|
|||||||
<ul class="infoList">
|
<ul class="infoList">
|
||||||
<li v-for="(item, index) in list" :key="index" :style="tableRowHeight()">
|
<li v-for="(item, index) in list" :key="index" :style="tableRowHeight()">
|
||||||
<div
|
<div
|
||||||
|
@mouseenter="handleMouseSeen(index, -1)" @mouseleave="handleMouseLeave"
|
||||||
v-if="isIndex"
|
v-if="isIndex"
|
||||||
:style="[
|
:style="[
|
||||||
bodyTableStyle,
|
bodyTableStyle,
|
||||||
|
tableReadColor(index, -1),{width:'50px',flexShrink: 0},
|
||||||
bodyTable(index),
|
bodyTable(index),
|
||||||
tableRowHeight()
|
tableRowHeight()
|
||||||
]"
|
]"
|
||||||
@@ -376,8 +378,9 @@ export default {
|
|||||||
tableReadColor(index, idx){
|
tableReadColor(index, idx){
|
||||||
let styleJson = {};
|
let styleJson = {};
|
||||||
if (this.optionsSetUp.is_read_mode && (this.hoverIndex.index === index || this.hoverIndex.idx === idx)) {
|
if (this.optionsSetUp.is_read_mode && (this.hoverIndex.index === index || this.hoverIndex.idx === idx)) {
|
||||||
styleJson["background-color"] = this.optionsSetUp.read_color;
|
styleJson["background-color"] = this.optionsSetUp.read_color;console.log(styleJson["background-color"],this.hoverIndex,1231231)
|
||||||
}
|
}
|
||||||
|
|
||||||
return styleJson;
|
return styleJson;
|
||||||
},
|
},
|
||||||
// 添加的方法 - 设备类型检测
|
// 添加的方法 - 设备类型检测
|
||||||
|
|||||||
Reference in New Issue
Block a user