fix:修改 鼠标悬浮非内置标签 alertLabel 不消失的问题
This commit is contained in:
@@ -451,7 +451,7 @@
|
||||
></i
|
||||
>
|
||||
<span>{{
|
||||
alertLabelData && alertLabelData.asset.name
|
||||
alertLabelData && alertLabelData.asset
|
||||
? alertLabelData.asset.name
|
||||
: "--"
|
||||
}}</span>
|
||||
@@ -763,6 +763,13 @@ export default {
|
||||
computed: {
|
||||
calcPosition () {
|
||||
return function (position) {
|
||||
if (this.$refs.alertLabels) {
|
||||
this.heightList = this.$refs.alertLabels.getBoundingClientRect().height
|
||||
this.boxWidth = this.$refs.alertLabels.getBoundingClientRect().width
|
||||
} else {
|
||||
this.heightList = 0
|
||||
this.boxWidth = 0
|
||||
}
|
||||
const clientHeight =
|
||||
document.body.clientHeight < document.documentElement.clientHeight
|
||||
? document.body.clientHeight
|
||||
|
||||
@@ -16,10 +16,10 @@ export default {
|
||||
methods: {
|
||||
// label 鼠标划入
|
||||
labelHover (item, type, loading, isUseType = true, e) {
|
||||
clearTimeout(this.timer)
|
||||
if (this.labelToolTipDis(type)) {
|
||||
return
|
||||
}
|
||||
clearTimeout(this.timer)
|
||||
if (isUseType) {
|
||||
if (e) {
|
||||
const dom = e.currentTarget
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
:type="'link'"
|
||||
></delete-button>
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item :disabled="batchDeleteObjs.length==0" :class="'nz-el-dropdown-menu-item'">
|
||||
<el-dropdown-item :disabled="batchDeleteObjs.length==0">
|
||||
<div id="alert-msg-batch-ack" v-has="'alertMessage_expired'" @click="batchAck"><i class="nz-icon nz-icon-queren"></i>{{$t('overall.batchAck')}}</div>
|
||||
</el-dropdown-item>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user