select - 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>
解决方案
删除maxTagCount="responsive"
为我解决问题
推荐阅读
- javascript - 日历禁用带有来自 XSODATA 绑定 SAPUI5 的数据的日期
- angular - Angular 6 ng serve 适用于 Windows 但不适用于 OS X
- python - 如何抓取网页中并排放置的两个表的数据?
- c# - MediaElement 不会播放项目目录之外的文件
- lua - Roblox 传送脚本工作,但随机传送
- protocols - 是否可以使用 Google 的 FlatBuffers 库来实现基于 RTP 的协议?
- c++ - if 子句中的赋值无效
- rest - 用于事件的 Sentry API 的时间戳过滤器
- json - 将 JSON 数组返回到 Struct Golang
- python - 如何将 Python 连接到我的 Postgres 服务器?