首页 > 解决方案 > antd 多选渲染问题

问题描述

I have a multiple select written in antd, when only select one option, it display + 1 ..., instead of the actually value, when select multiple, it displays correct value. 有什么想法吗?

代码:

options: {
  label: string;
  value: string;
}[] = [
  { label: '1', value: 'v1' },
   ...
];



 <Form.Item >
   <Select
     allowClear
     maxTagCount="responsive"
     mode="tags"
     options={assetClassOptions}
   />
</Form.Item>

在此处输入图像描述

标签: selectantd

解决方案


删除maxTagCount="responsive"为我解决问题


推荐阅读