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

微信更新了v2版本的button,好像会影响i-button #398

Open
jbnjvc10000 opened this issue Mar 14, 2020 · 4 comments
Open

微信更新了v2版本的button,好像会影响i-button #398

jbnjvc10000 opened this issue Mar 14, 2020 · 4 comments

Comments

@jbnjvc10000
Copy link

微信开发工具默认启用了v2,目前我遇到i-button的大小无法正常显示的情况

@798714773
Copy link

改line-height:28px;

@AliveGh0st
Copy link

改line-height:28px;

并不只有这一个问题。。。v2开启后i-button的width莫名其妙变短了。。。

@AliveGh0st
Copy link

微信开发工具默认启用了v2,目前我遇到i-button的大小无法正常显示的情况

知道原因了,v2中,有一个多出来的按钮样式,叫button:not([size='mini']),不知道为啥这个样式在 所有样式里优先级最高,这里把按钮样式设置成固定的宽度并且更改了button组件的行高,导致iview的行高和宽度都出现了异常,简单的解决 办法是在app.wxss里面将button样式里面添加width:95% !important;才能修改按钮高度。。太坑了

@AliveGh0st
Copy link

微信开发工具默认启用了v2,目前我遇到i-button的大小无法正常显示的情况

另外i-button的shape属性也生效不了,原因也是这个,自行在dist/button/index.wxss中的border-radius后面加上!important才行

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

No branches or pull requests

3 participants