Skip to content

请问是否可以设置组件库全局使用px为单位? #4286

@jousen

Description

@jousen

当前tdesign-miniprogram全局使用的rpx单位,在手机设备可以确保样式统一。
但是如果要支持平板、pc端等大屏幕设备,就会出现尺寸放大到无法使用的情况。

请问是否有办法可以设置全局使用px为单位

如下图所示,在平板端或pc端,上面的文字是正常大小,但是 t-input t-button等组件会由于使用了rpx单位导致放大比例无法用

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions