ant-design / antd-style

css-in-js library with antd v5 token system
https://ant-design.github.io/antd-style/
MIT License
219 stars 35 forks source link

👑 [需求] 提供全局的 cx 工具方法 #41

Closed liuweiGL closed 1 year ago

liuweiGL commented 1 year ago

🥰 需求描述

可以从全局导入 cx 方法:

import { cx } from 'antd-style'

场景

有些组件里面用到了全局的 原子类 但又不需要使用 createStyles 创建额外的样式

解决的问题

这样的话我就可以把 classnames 去掉让代码看着舒服一点

arvinxx commented 1 year ago

现在就有

liuweiGL commented 1 year ago

草率了,抱歉

arvinxx commented 1 year ago

没事,后面我们文档补充一下。现在的文档里没体现。