-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Description
提问前先看看:
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
🐛 bug 描述
ProCard 在配置了collapsed 受控了之后 collapsibleIconRender 失效 (图标不渲染了),如果注释掉collapsed 图标正常渲染
📷 复现步骤
import { ProCard } from '@ant-design/pro-components';
import { CaretRightOutlined } from '@ant-design/icons';
const AdvancedConfig = ()=>{
const [open, setOpen] = useState(true);
const handleAdvancedConfig = (collapsed: boolean) => {
setOpen(collapsed);
};
return (
<ProCard
bordered
collapsible
// collapsed={open}
onCollapse={handleAdvancedConfig}
collapsibleIconRender={({collapsed})=> <CaretRightOutlined rotate={collapsed ? 90 : 0} />}
title="高级配置"
>
我是内容
)
}
🏞 期望结果
💻 复现代码
© 版本信息
- ProComponents 版本: 2.8.10
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]
🚑 其他信息
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels