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:
Simona 2020-11-10 14:25:29 +08:00 committed by GitHub
parent c5fc8b4e9a
commit efe892109c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -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;

View File

@ -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 {