ant-design / pro-components

🏆 Use Ant Design like a Pro!
https://pro-components.antdigital.dev
MIT License
4.3k stars 1.36k forks source link

🧐[问题] 在Schema Form中, valueType: 'group' 时如何修改默认的collapse的图标 #8519

Closed augusttty closed 4 months ago

augusttty commented 4 months ago

🧐 问题描述

ProForm.Group默认的折叠图标如何替换?看了一下源码,貌似没有配置选项。可以通过其他方式达到目的吗?感谢

github-actions[bot] commented 4 months ago

以下的 Issues 可能会帮助到你 / The following issues may help you

augusttty commented 4 months ago
可以通过下面这种方式修改
  //....
  valueType: 'group',
  fieldProps: {
        onCollapse: (collapsed) => {
            //....
        },
        titleRender: (_label, props) => {
           //....
        },
      },