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> </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
} }
} }
}, },