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

修改addUnit方法:当前单位默认是px,当修改默认单位为rpx时,组件的尺寸会变小一倍,与预期不符; #1061

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Dragon-168
Copy link

修改addUnit方法:
当前单位默认是px,当修改默认单位为rpx时,组件的尺寸会变小一倍,与预期不符;
为保持修改默认单位后的尺寸保持一致,故添加unit参数判断,当unit入参为rpx时,value*2处理,以达到修改默认单位不影响组件尺寸。

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

Successfully merging this pull request may close these issues.

1 participant