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

🧐[问题]pro-table 2.5.14下拉框通过formItemProps设置的mode: 'multiple'多选不生效了,有人遇到吗

Open ray1347227 opened this issue 6 years ago • 7 comments

🧐 问题描述

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, }, },

🚑 其他信息

ray1347227 avatar Aug 19 '20 02:08 ray1347227

show your code

chenshuai2144 avatar Aug 19 '20 05:08 chenshuai2144

show your code image

ray1347227 avatar Aug 19 '20 05:08 ray1347227

2.4.4 => image 2.5.14 => image

ray1347227 avatar Aug 19 '20 06:08 ray1347227

直接把代码贴出来,我方便做重现

chenshuai2144 avatar Aug 19 '20 06:08 chenshuai2144

直接把代码贴出来,我方便做重现

{ 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, }, },

ray1347227 avatar Aug 19 '20 06:08 ray1347227

直接把代码贴出来,我方便做重现

这个问题解决了吗? portable2.15.1也出现了这个问题 https://codesandbox.io/s/sad-lehmann-2wlii?file=/App.tsx:1384-1392

insistenceZHUO avatar Dec 11 '20 03:12 insistenceZHUO

用 filedProps.mode

chenshuai2144 avatar Dec 11 '20 03:12 chenshuai2144