Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] v2 from airyland:v2 #3

Merged
merged 3 commits into from
Jun 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/components/x-dialog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ export default {
@import '../../styles/vux-modal.css';

.vux-x-dialog-absolute .weui-dialog {
position: absolute
position: absolute;
top:45%;
transform: translateY(-50%);
}
</style>
8 changes: 4 additions & 4 deletions src/styles/transition.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@
}
@keyframes vux-dialog-in {
0% {
transform: scale(1.185);
transform: scale(1.185) translateY(-50%);
opacity: 0;
}
100% {
transform: scale(1);
transform: scale(1) translateY(-50%);
opacity: 1;
}
}
@keyframes vux-dialog-out {
0% {
transform: scale(1);
transform: scale(1) translateY(-50%);
opacity: 1;
}
100% {
transform: scale(0.85);
transform: scale(0.85) translateY(-50%);
opacity: 0;
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/styles/weui/widget/weui_tips/weui_dialog.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
z-index: 5000;
width: @dialog-width;
max-width: @dialog-max-width;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;

Expand Down