pro-components icon indicating copy to clipboard operation
pro-components copied to clipboard

🧐[问题]2.5.15,下拉框formItemProps里optionFilterProp的值使用children不生效了,换成label就可以,是特意改了吗

Open ray1347227 opened this issue 6 years ago • 4 comments

🧐 问题描述

💻 示例代码

不生效 => image 生效 => image

🚑 其他信息

ray1347227 avatar Aug 20 '20 08:08 ray1347227

formItemProps: {
          showSearch: true,
          mode: 'multiple',
          maxTagCount: 1,
          maxTagTextLength: 6,
          optionFilterProp: 'children',
          allowClear: true,
          onChange: this.handlePhaseChange,
        }

ray1347227 avatar Aug 20 '20 08:08 ray1347227

不是的,应该是我们替换了 children 导致的, optionFilterProp: 'children', 可能不能用了

chenshuai2144 avatar Aug 20 '20 11:08 chenshuai2144

不是的,应该是我们替换了 children 导致的, optionFilterProp: 'children', 可能不能用了

@chenshuai2144 optionFilterProp: 'children', 不能使用的话,有什么替代方案吗?([email protected])

liuchuangjun321 avatar Nov 12 '20 08:11 liuchuangjun321

自定义一下 用options render。因为我们改掉了options 你可以试着升级最新版 !应该侵入性更小了

chenshuai2144 avatar Nov 12 '20 09:11 chenshuai2144