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

【BUG】Modal.method() 中centered设置无效 #183

Closed
1 task
webees opened this issue Sep 12, 2018 · 4 comments
Closed
1 task

【BUG】Modal.method() 中centered设置无效 #183

webees opened this issue Sep 12, 2018 · 4 comments
Labels

Comments

@webees
Copy link

webees commented Sep 12, 2018

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.1.0

Environment

electron-vue及vue最新版本

Reproduction link

Edit on CodeSandbox

Steps to reproduce

https://codesandbox.io/s/w6o3ol64mk

What is expected?

希望Modal.method()通过centered设置项进行垂直居中

What is actually happening?

centered设置无效

@tangjinzhou
Copy link
Member

tangjinzhou commented Sep 12, 2018

临时解决方案:
https://codesandbox.io/s/j2m45l7r0v

<style lang="less">
.ant-confirm-centered {
  text-align: center;
  &:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    width: 0;
  }
  .ant-confirm {
    display: inline-block;
    vertical-align: middle;
    top: 0;
    text-align: left;
  }
}
</style>

@webees
Copy link
Author

webees commented Sep 12, 2018

嗯……谢谢,这个倒是不需要,基本上所有vue文件中都用的scoped。毕竟有的不需要居中。我先加上centered等到起。

@tangjinzhou
Copy link
Member

please update to 1.1.1

@github-actions
Copy link

github-actions bot commented Apr 3, 2020

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants