fix: 划入 清除定时器
This commit is contained in:
@@ -70,6 +70,7 @@ export default {
|
|||||||
tooltipHover (show) {
|
tooltipHover (show) {
|
||||||
if (show) {
|
if (show) {
|
||||||
clearTimeout(this.that.timeout)
|
clearTimeout(this.that.timeout)
|
||||||
|
this.that.timeout = null
|
||||||
} else {
|
} else {
|
||||||
this.that.loading = false
|
this.that.loading = false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -323,6 +323,10 @@ export default {
|
|||||||
this.$set(item[type], 'loading', loading)
|
this.$set(item[type], 'loading', loading)
|
||||||
}, 200)
|
}, 200)
|
||||||
} else {
|
} else {
|
||||||
|
if (item[type].timeout) {
|
||||||
|
clearTimeout(item[type].timeout)
|
||||||
|
item[type].timeout = null
|
||||||
|
}
|
||||||
this.$set(item[type], 'loading', loading)
|
this.$set(item[type], 'loading', loading)
|
||||||
}
|
}
|
||||||
// this.$set(this.tableData,index,item);// 调用父组件
|
// this.$set(this.tableData,index,item);// 调用父组件
|
||||||
|
|||||||
Reference in New Issue
Block a user