Skip to content

Commit

Permalink
fix(drawer): toggle animation
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni committed Jun 6, 2021
1 parent 2bf68e0 commit e23e379
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
### Fixes

- Fix `n-tab-pane` `display-directive` not working.
- Fix `n-drawer` animation.

## 2.11.3

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
### Fixes

- 修正 `n-tab-pane` `display-directive` 不生效
- 修正 `n-drawer` 动画

## 2.11.3

Expand Down
10 changes: 5 additions & 5 deletions src/drawer/src/DrawerBodyWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default defineComponent({
inheritAttrs: false,
props: {
show: {
type: Boolean,
type: Boolean as PropType<boolean | undefined>,
default: undefined
},
displayDirective: {
Expand Down Expand Up @@ -66,10 +66,10 @@ export default defineComponent({
displayed: displayedRef,
transitionName: computed(() => {
return {
right: 'n-slide-in-from-right-transition',
left: 'n-slide-in-from-left-transition',
top: 'n-slide-in-from-top-transition',
bottom: 'n-slide-in-from-bottom-transition'
right: 'slide-in-from-right-transition',
left: 'slide-in-from-left-transition',
top: 'slide-in-from-top-transition',
bottom: 'slide-in-from-bottom-transition'
}[props.placement]
}),
handleAfterLeave
Expand Down

0 comments on commit e23e379

Please sign in to comment.