Skip to content

🧐[问题] antd-style 中拿不到 StyleProvider 需要的 px2remTransformer 函数 #190

@wilin-dan

Description

@wilin-dan

🧐 问题描述

ant-style 官方API文档中描述了 StyleProvider 继承 ant-design/cssinjs 的 StyleProvider,但是在实际使用中却拿不到 px2remTransformer 函数。

💻 示例代码

Image

🚑 其他信息

与 transformers 相关的其它函数也拿不到,如 legacyLogicalPropertiesTransformer。

虽然可以在项目中再引入 @ant-design/cssinjs 库来解决这个问题,但是使用体验很不友好,不知道这是一个问题,还是设计如此。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions