fix(drawer): body-style not working

This commit is contained in:
07akioni 2020-11-23 00:07:46 +08:00
parent f1b23a2a6b
commit 5bc3fefe91

View File

@ -22,7 +22,7 @@
</transition>
<n-drawer-body-wrapper
:placement="placement"
:body-style="compitableBodyStyle"
:body-style="mergedBodyStyle"
:body-class="compitableBodyClass"
:scrollbar-props="scrollbarProps"
:show="show"
@ -190,11 +190,11 @@ export default {
if (height === null) return null
return formatLength(height)
},
mergedBodyWrapperStyle () {
mergedBodyStyle () {
return {
width: this.styleWidth,
height: this.styleHeight,
...this.bodyWrapperStyle
...this.compitableBodyStyle
}
}
},