diff --git a/components/_util/ContainerRender.jsx b/components/_util/ContainerRender.jsx index 7599210ea..66ffe52f2 100644 --- a/components/_util/ContainerRender.jsx +++ b/components/_util/ContainerRender.jsx @@ -41,7 +41,7 @@ export default { }, renderComponent (props = {}, ready) { - const { visible, getComponent, forceRender, getContainer, parent } = this + const { visible, forceRender, getContainer, parent } = this const self = this if (visible || parent.$refs._component || forceRender) { let el = this.componentEl @@ -74,7 +74,7 @@ export default { }) }, render () { - return getComponent(this.comProps) + return self.getComponent(this.comProps) }, }) } else { diff --git a/components/drawer/index.jsx b/components/drawer/index.jsx index 480c6ad7a..5b53c97bf 100644 --- a/components/drawer/index.jsx +++ b/components/drawer/index.jsx @@ -113,7 +113,7 @@ const Drawer = { let header if (title) { header = ( -
+
{title}
) @@ -122,6 +122,7 @@ const Drawer = { if (closable) { closer = (
) } if (!this.container || !open && !this.sFirstEnter) { return null } - return ( this.children} + getComponent={() => children} getContainer={this.getSelfContainer} children={({ renderComponent, removeContainer }) => { this.renderComponent = renderComponent diff --git a/components/vc-drawer/src/index.js b/components/vc-drawer/src/index.js index fb23ce04b..304065c9d 100644 --- a/components/vc-drawer/src/index.js +++ b/components/vc-drawer/src/index.js @@ -1,4 +1,4 @@ -// base in 1.7.3 +// base in 1.7.6 // export this package's api import Drawer from './Drawer'