@@ -15,7 +15,7 @@ export default defineComponent({
1515 const isFullScreen = ref ( false ) ;
1616
1717 const navWidth = computed ( ( ) => isFullScreen . value ? '100vw' : width . value ) ;
18- const wrapperRight = computed ( ( ) => position . value === 'right' ? { 'right' : width . value } : { } ) ;
18+ const navRight = computed ( ( ) => position . value === 'right' ? { 'right' : 0 } : { 'left' : 0 } ) ;
1919
2020 const fullScreenEvent = ( ) => {
2121 isFullScreen . value = ! isFullScreen . value ;
@@ -50,7 +50,7 @@ export default defineComponent({
5050 visible,
5151 slots,
5252 isCover,
53- wrapperRight ,
53+ navRight ,
5454 fullScreenEvent,
5555 closeDrawer,
5656 } ;
@@ -60,15 +60,15 @@ export default defineComponent({
6060 const fullScreenEvent : any = this . fullScreenEvent ;
6161 const closeDrawer : any = this . closeDrawer ;
6262 const isCover : boolean = this . isCover ;
63- const wrapperRight : Record < string , unknown > = this . wrapperRight ;
63+ const navRight : Record < string , unknown > = this . navRight ;
6464
6565 if ( ! this . visible ) return ;
6666
6767 return (
6868 < div class = "devui-drawer" style = { { zIndex : zindex } } onClick = { closeDrawer } >
6969 { isCover ? < div class = "devui-overlay-backdrop" /> : '' }
70- < div class = "devui-overlay-wrapper" style = { wrapperRight } >
71- < div class = "devui-drawer-nav" style = { { 'width' : this . navWidth } } >
70+ < div class = "devui-overlay-wrapper" >
71+ < div class = "devui-drawer-nav" style = { { 'width' : this . navWidth , ... navRight } } >
7272 < div class = "devui-drawer-content" >
7373 < DrawerHeader onToggleFullScreen = { fullScreenEvent } onClose = { closeDrawer } />
7474 < div > { this . slots . default ? this . slots . default ( ) : < DrawerContainer /> } </ div >
0 commit comments