fix(popover): display-directive prop not working

This commit is contained in:
07akioni 2020-02-19 23:32:29 +08:00
parent e960b4b81e
commit 14abdf6276
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@
:show-arrow="false"
:controller="popoverController"
:disabled="(!rootMenuIsHorizontal && !rootMenuCollapsed) || syntheticDisabled"
:directive="rootMenuIsHorizontal ? 'show' : 'if'"
:display-directive="rootMenuIsHorizontal ? 'show' : 'if'"
:overlay-style="{
width: overlayWidth === null ? null : overlayMinWidth + 'px',
minWidth: overlayMinWidth + 'px',

View File

@ -79,7 +79,7 @@ export default {
type: Boolean,
default: true
},
directive: {
displayDirective: {
type: String,
default: 'if'
}
@ -232,7 +232,7 @@ export default {
}
},
render (h) {
const vShow = this.directive === 'show'
const vShow = this.displayDirective === 'show'
const directives = [
{
name: 'clickoutside',