我正在使用ant设计折叠面板和扩展面板,因为我想要显示+和-图标,而不是上下箭头。我怎样才能做到这一点?
我用的是这个
https://ant.design/components/collapse/
在这方面请帮帮我
谢谢
发布于 2020-12-18 08:11:46
您可以使用expandIcon
prop
https://codepen.io/pen/?&editors=001&prefill_data_id=ab218015-02c4-4c67-9230-2aa590cf5ff3
<Collapse
{...others}
expandIcon={({ isActive }) => isActive ? <IconYouWant /> : <IconYouWant />}
>
{children}
</Collapse>
https://stackoverflow.com/questions/65353329
复制相似问题