File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 11import { createApp } from 'vue'
22import { DrawerProps } from './drawer-types'
33import Drawer from './drawer'
4-
4+ import { inBrowser } from '../../shared/util/common-var'
55
66function createDrawerApp ( props : DrawerProps ) {
77 return createApp ( Drawer , { ...props } )
88}
99
1010export default class DrawerService {
1111
12- static $body : HTMLElement | null = document . body
12+ static $body : HTMLElement | null
1313 static $div : HTMLDivElement | null = null
1414 static drawer = null ;
1515
@@ -28,6 +28,8 @@ export default class DrawerService {
2828 }
2929 this . $div = null
3030 }
31+ }
3132
32-
33- }
33+ if ( inBrowser ) {
34+ DrawerService . $body = document . body
35+ }
Original file line number Diff line number Diff line change 144144 <d-button icon="delete" variant="text-dark" :disabled="true" title="delete"></d-button>
145145 </div>
146146 <div class="mb-l">
147- <d-button class="mr-xs" variant="common" class="mr-xs" bsSize="xs" >
147+ <d-button class="mr-xs" variant="common">
148148 Click me
149149 <span class="icon-chevron-down"></span>
150150 </d-button>
You can’t perform that action at this time.
0 commit comments