Tooltip: add hide-on-hover

This commit is contained in:
Leopoldthecoder
2017-04-19 18:32:14 +08:00
committed by 杨奕
parent e7a610621f
commit 7883b16bef
3 changed files with 7 additions and 1 deletions

View File

@@ -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;
},