Skip to content

Commit

Permalink
fix(docs): fix button demo
Browse files Browse the repository at this point in the history
  • Loading branch information
kagol committed Dec 27, 2021
1 parent 513cca1 commit 52933a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions packages/devui-vue/devui/drawer/src/drawer-service.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { createApp } from 'vue'
import { DrawerProps } from './drawer-types'
import Drawer from './drawer'

import { inBrowser } from '../../shared/util/common-var'

function createDrawerApp(props: DrawerProps) {
return createApp(Drawer, { ...props })
}

export default class DrawerService {

static $body: HTMLElement | null = document.body
static $body: HTMLElement | null
static $div: HTMLDivElement | null = null
static drawer = null;

Expand All @@ -28,6 +28,8 @@ export default class DrawerService {
}
this.$div = null
}
}


}
if (inBrowser) {
DrawerService.$body = document.body
}
2 changes: 1 addition & 1 deletion packages/devui-vue/docs/components/button/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
<d-button icon="delete" variant="text-dark" :disabled="true" title="delete"></d-button>
</div>
<div class="mb-l">
<d-button class="mr-xs" variant="common" class="mr-xs" bsSize="xs">
<d-button class="mr-xs" variant="common">
Click me
<span class="icon-chevron-down"></span>
</d-button>
Expand Down

0 comments on commit 52933a0

Please sign in to comment.