<div>
<el-affix :offset="300" v-show="!judgeData" id='addRowData'>
<img @click="addOne" src="../../assets/img/add.png" alt="">
</el-affix>
<el-affix :offset="320" v-show="!judgeData" id='importExcal'>
<img @click="" src="../../assets/img/importExcal.png" alt="">
</el-affix>
<el-affix :offset="300" v-show="judgeData">
<img @click="outRecycle" src="../../assets/img/outRecycle.png" alt="">
</el-affix>
<div v-show="judgeData">
<img id="recycle" src="../../assets/img/recycle.png" alt="">
</div>
#addRowData {
position: absolute;
z-index: 900
}
#importExcal {
position: absolute;
z-index: 899;
}
鼠标移入z-index 不生效,
#importExcal :hover{
cursor: pointer;
z-index: 901;
}