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

Loding如何居中 #2222

Closed
iceuncle opened this issue Nov 21, 2017 · 4 comments
Closed

Loding如何居中 #2222

iceuncle opened this issue Nov 21, 2017 · 4 comments

Comments

@iceuncle
Copy link

希望提供Loading组件居中显示的方法

@airyland
Copy link
Owner

Loading 本来就是居中显示。

@airyland
Copy link
Owner

手动覆盖样式

.vux-loading .weui-toast {
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
}

@xingyuefa
Copy link

手动覆盖样式很low啊

@zwind007
Copy link

Toast和Loading已插件的形式引入,Toast插件Vue.use(ToastPlugin, {position: 'middle'})这样配置也无法垂直居中,后来通过定义的一个全局函数才搞定。不过Loading插件没提供垂直居中的属性,要是以插件的形式引入,需要在单独的页面中覆盖样式,这样就麻烦了,每个页面都得这么写~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants