🧐[问题]pro-table 2.5.14下拉框通过formItemProps设置的mode: 'multiple'多选不生效了,有人遇到吗
🧐 问题描述
pro-table 2.5.14下拉框通过formItemProps设置的mode: 'multiple'多选不生效了
💻 示例代码
{ title: '分期', dataIndex: 'phaseId', render: (val, row) => row.phaseName, order: 5, valueEnum: formatValueEnum(phases, 'id', 'phaseName'), formItemProps: { showSearch: true, mode: 'multiple', maxTagCount: 1, maxTagTextLength: 6, filterOption: (input, option) => option.children.toLowerCase().indexOf(input.toLowerCase()) >= 0, allowClear: true, onChange: this.handlePhaseChange, }, },
🚑 其他信息
show your code
show your code
2.4.4 =>
2.5.14 =>

直接把代码贴出来,我方便做重现
直接把代码贴出来,我方便做重现
{ title: '分期', dataIndex: 'phaseId', render: (val, row) => row.phaseName, order: 5, valueEnum: formatValueEnum(phases, 'id', 'phaseName'), formItemProps: { showSearch: true, mode: 'multiple', maxTagCount: 1, maxTagTextLength: 6, filterOption: (input, option) => option.children.toLowerCase().indexOf(input.toLowerCase()) >= 0, allowClear: true, onChange: this.handlePhaseChange, }, },
直接把代码贴出来,我方便做重现
这个问题解决了吗? portable2.15.1也出现了这个问题 https://codesandbox.io/s/sad-lehmann-2wlii?file=/App.tsx:1384-1392
用 filedProps.mode
