Skip to content

期望progress组件的stroke-width属性支持rpx单位 #5186

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

Open
hengwuming opened this issue Oct 14, 2024 · 2 comments · May be fixed by #5438
Open

期望progress组件的stroke-width属性支持rpx单位 #5186

hengwuming opened this issue Oct 14, 2024 · 2 comments · May be fixed by #5438
Labels

Comments

@hengwuming
Copy link

期望progress组件的stroke-width属性支持rpx单位,微信已经支持了,但是打包成h5时是不支持的。

@Otto-J
Copy link
Member

Otto-J commented Oct 15, 2024

给一个伪代码 demo,明确源码和产物的区别吧,明确一下区别,现在的 h5 是什么样的

@Otto-J Otto-J added h5 enhancement New feature or request 内置 component labels Oct 15, 2024
@hengwuming
Copy link
Author

hengwuming commented Oct 15, 2024

给一个伪代码 demo,明确源码和产物的区别吧,明确一下区别,现在的 h5 是什么样的

<progress stroke-width="400rpx"></progress>
在微信小程序最终是<progress stroke-width="280px"></progress>有一个单位的转换(数值随便打的,不准确)
在H5最终是<div class="uni-progress-bar" ><div> 没有height属性;

这样写
<progress :stroke-width="400"></progress>
在h5最终是<div class="uni-progress-bar" style=" height: 400px;"><div>

就是期望这个属性能支持rpx这个单位

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

Successfully merging a pull request may close this issue.

2 participants