Closed chj-damon closed 1 year ago
我在实现明暗模式切换的时候,看文档里面appearance和themeMode这两个都可以做到,想问一下这两个属性是有什么区别吗?否则为什么要单独分开?
appearance
themeMode
https://ant-design.github.io/antd-style/guide/switch-theme
从表现上来看,当themeMode='dark'的时候,appearance也是dark; themeMode='auto'的时候,appearance=‘dark’ | 'light', 那干嘛还需要appearance这个prop?
看下 #52
🧐 问题描述
我在实现明暗模式切换的时候,看文档里面
appearance
和themeMode
这两个都可以做到,想问一下这两个属性是有什么区别吗?否则为什么要单独分开?💻 示例代码
🚑 其他信息
https://ant-design.github.io/antd-style/guide/switch-theme