mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
fix(drawer): body-style not working
This commit is contained in:
parent
f1b23a2a6b
commit
5bc3fefe91
@ -22,7 +22,7 @@
|
|||||||
</transition>
|
</transition>
|
||||||
<n-drawer-body-wrapper
|
<n-drawer-body-wrapper
|
||||||
:placement="placement"
|
:placement="placement"
|
||||||
:body-style="compitableBodyStyle"
|
:body-style="mergedBodyStyle"
|
||||||
:body-class="compitableBodyClass"
|
:body-class="compitableBodyClass"
|
||||||
:scrollbar-props="scrollbarProps"
|
:scrollbar-props="scrollbarProps"
|
||||||
:show="show"
|
:show="show"
|
||||||
@ -190,11 +190,11 @@ export default {
|
|||||||
if (height === null) return null
|
if (height === null) return null
|
||||||
return formatLength(height)
|
return formatLength(height)
|
||||||
},
|
},
|
||||||
mergedBodyWrapperStyle () {
|
mergedBodyStyle () {
|
||||||
return {
|
return {
|
||||||
width: this.styleWidth,
|
width: this.styleWidth,
|
||||||
height: this.styleHeight,
|
height: this.styleHeight,
|
||||||
...this.bodyWrapperStyle
|
...this.compitableBodyStyle
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user