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

能不能增加一个自定义单位 #33

Closed
xmsz opened this issue Jul 21, 2017 · 2 comments
Closed

能不能增加一个自定义单位 #33

xmsz opened this issue Jul 21, 2017 · 2 comments

Comments

@xmsz
Copy link

xmsz commented Jul 21, 2017

在使用【获取样式】功能的时候,目前只能选择px 或者 rpx

不过因为项目要求,使用的是其他的单位。

能不能增加一个设置,让我们自定义单位。比如 spx lpx


还有,实际上我目前的项目使用的是 r(*) 这样的单位


所以如果这个需求不错的话,希望结果是。


点击设置 - 设置单位 - 自定义 - “请输入您的单位,占位符为$num” - 用户输入 - 【 r($num) 】 - 最后输入 r(400)

@bugluo
Copy link
Collaborator

bugluo commented Jul 26, 2017

这个 = =,要不亲自己写个提交个 pr 吧。

@bugluo bugluo closed this as completed Jul 26, 2017
@xmsz
Copy link
Author

xmsz commented Jan 22, 2019

哎 知道为什么凉了吧

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

2 participants