关于 v3 版本重构后的 ConfigProvider API 讨论 #729
Closed
JeromeLin
started this conversation in
Show and tell
Replies: 5 comments 21 replies
-
|
更喜欢3 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
喜欢2,但是用小驼峰命名 |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
我觉得 cssVars 不需要 ConfigProvider 进行配置。如果需要修改 cssVar,可以直接在 css 里直接修改。 |
Beta Was this translation helpful? Give feedback.
19 replies
-
|
1 |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
看外面大多是2,不过我个人喜欢3这样按组件分开 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
关于 v3 版本重构后的 ConfigProvider 增强 css variables 的设置方法,有几种形式,大家更趋向哪种方式?
做个调研,请回复你的选择~
1. 直接根据 css variables 名称设置
2. 大驼峰,组件平铺方式
3. 保持 React style 风格的小驼峰方式,组件分组设置
4. 不需要这个功能,在 CSS 里设置即可,有没有智能提示无所谓。
ConfigProvider 结合 TS 类型,能够在使用时触发代码提示,方便使用。
在 CSS 改则可能需要翻看文档去使用。
Beta Was this translation helpful? Give feedback.
All reactions