mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-03 11:47:48 +08:00
fix: el-zoom-in-top transition (#565)
adjust transform-origin when popper with el-zoom-in-top transition place in top
This commit is contained in:
parent
c5fc8b4e9a
commit
efe892109c
@ -83,15 +83,12 @@
|
||||
box-shadow: $--cascader-menu-shadow;
|
||||
|
||||
.el-popper__arrow {
|
||||
left: 35px;
|
||||
&::before {
|
||||
border: $--cascader-menu-border;
|
||||
}
|
||||
}
|
||||
|
||||
&[data-popper-placement^="top"] {
|
||||
transform-origin: bottom center;
|
||||
|
||||
.el-popper__arrow::before {
|
||||
border-top-color: transparent;
|
||||
border-left-color: transparent;
|
||||
|
@ -45,6 +45,10 @@
|
||||
transform: scaleY(1);
|
||||
transition: $--md-fade-transition;
|
||||
transform-origin: center top;
|
||||
|
||||
&[data-popper-placement^="top"] {
|
||||
transform-origin: center bottom;
|
||||
}
|
||||
}
|
||||
.el-zoom-in-top-enter-from,
|
||||
.el-zoom-in-top-leave-active {
|
||||
|
Loading…
Reference in New Issue
Block a user