mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
fix(popover): display-directive prop not working
This commit is contained in:
parent
e960b4b81e
commit
14abdf6276
@ -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',
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user