ant-design / antd-style

css-in-js library with antd v5 token system

Home Page:https://ant-design.github.io/antd-style/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🧐[问题] 如何在 { hashPriority: 'high' } 的情况下封装组件?

pokerboard opened this issue · comments

🧐 问题描述

...
针对使用 cssinjs 完全新写的组件,我们建议仍然使用 { hashPriority: 'high' } 配置。并将所有样式实现放置在 css 中,有需要的部分再额外添加 className。这样有两点好处:
...
这句话怎么理解?

我后面补下文档~