Anfo
(作者)
if(newVisible){
if(this._delayInstance){
clearTimeout(this._delayInstance);
this.leaving = false;
this.leaveActive = false;
}
this.visibleDelay = true;
this.entering = true;
this.$nextTick(()=>{
this.enterActive = true;
this.$nextTick(()=>{
setTimeout(()=>{
this.entering = false
this.$nextTick(()=>{
if(this._enteringInstance){
clearTimeout(this._enteringInstance);
}
this._enteringInstance = setTimeout(()=>{
this.enterActive = false;
// r()
}, this.duration);
});
}, 100)
})
});
}else{
// xxxxx
}
看到settimeout(xxx, 100) 那,就是那儿 如果不设置100 就不行 了 50就偶尔行 偶尔不行。
2020-06-04 10:26