mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-16 11:44:01 +08:00
Tooltip: add hide-on-hover
This commit is contained in:
@@ -35,6 +35,10 @@ export default {
|
||||
gpuAcceleration: false
|
||||
};
|
||||
}
|
||||
},
|
||||
enterable: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
|
||||
@@ -107,7 +111,7 @@ export default {
|
||||
},
|
||||
|
||||
handleClosePopper() {
|
||||
if (this.expectedState || this.manual) return;
|
||||
if (this.enterable && this.expectedState || this.manual) return;
|
||||
clearTimeout(this.timeout);
|
||||
this.showPopper = false;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user