ant-design / ant-design

An enterprise-class UI design language and React UI library
https://ant.design
MIT License
92.54k stars 49.84k forks source link

ConfigProvider 支持自定义 Popconfirm 的 className 和 style #50303

Open projectcss opened 3 months ago

projectcss commented 3 months ago

Reproduction link

https://github.com/ant-design/ant-design/blob/master/components/config-provider/index.tsx

Steps to reproduce

https://github.com/ant-design/ant-design/blob/master/components/config-provider/index.tsx

What is expected?

ConfigProvider支持对Popconfirm进行样式覆盖

What is actually happening?

ConfigProvider不支持对Popconfirm进行样式覆盖

Environment Info
antd 5.20.0
React 18.3.1
System mac
Browser 120
Wxh16144 commented 3 months ago

样式覆盖用的是 theme.components.{ComponentName} 方式。你直接搜源码肯定没有啊

zombieJ commented 3 months ago

样式覆盖用的是 theme.components.{ComponentName} 方式。你直接搜源码肯定没有啊

+1 https://stackblitz.com/edit/react-mnpgak?file=demo.tsx

projectcss commented 3 months ago

样式覆盖用的是 theme.components.{ComponentName} 方式。你直接搜源码肯定没有啊

用theme是token覆盖,我是说用classname进行样式覆盖

projectcss commented 3 months ago

用theme是token覆盖,我是说用classname进行样式覆盖

用theme是token覆盖,我是说用classname进行样式覆盖

Wxh16144 commented 3 months ago

用theme是token覆盖,我是说用classname进行样式覆盖

用theme是token覆盖,我是说用classname进行样式覆盖

你可以整理一下你的提问,很难 get 到,我猜你说的应该是通用属性追加 classname 操作吧?

projectcss commented 3 months ago

用theme是token覆盖,我是说用classname进行样式覆盖

用theme是token覆盖,我是说用classname进行样式覆盖

你可以整理一下你的提问,很难 get 到,我猜你说的应该是通用属性追加 classname 操作吧?

是的

Wxh16144 commented 3 months ago

是的

貌似没有这个 feature, 得提交一个 PR,或者给 core member 评审一下。