Skip to content

Commit

Permalink
DatePicker & Cascader: fix the dropdown animation direction (#21806)
Browse files Browse the repository at this point in the history
  • Loading branch information
XivLaw authored Jun 2, 2022
1 parent 0a03b9d commit 807e208
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/cascader/src/cascader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ const PopperMixin = {
arrowOffset: Popper.props.arrowOffset,
offset: Popper.props.offset,
boundariesPadding: Popper.props.boundariesPadding,
popperOptions: Popper.props.popperOptions
popperOptions: Popper.props.popperOptions,
transformOrigin: Popper.props.transformOrigin
},
methods: Popper.methods,
data: Popper.data,
Expand Down
4 changes: 3 additions & 1 deletion packages/date-picker/src/picker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ const NewPopper = {
appendToBody: Popper.props.appendToBody,
offset: Popper.props.offset,
boundariesPadding: Popper.props.boundariesPadding,
arrowOffset: Popper.props.arrowOffset
arrowOffset: Popper.props.arrowOffset,
placement: Popper.props.placement,
transformOrigin: Popper.props.transformOrigin
},
methods: Popper.methods,
data() {
Expand Down

2 comments on commit 807e208

@oren-git
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

老兄,packages/date-picker/src/picker.vue 里面第101行导致583行报Vue warn了,你把变量placement放在props里面在583行又修改这个变量

@SeanSangRc
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

赶紧发一个新版本吧,把这个问题修复了 去掉 9 这个版本 通用的库 还能犯这种低级错误。

Please sign in to comment.