Open raotaohub opened 3 months ago
Is there any way around for this situation
Is there any way around for this situation
use options ,not request
< ProFormSelect
...
options={['1'].map(t=>({key:'key:'+t, value:'value:'+t, label:'label:'+t}))}
/>
提问前先看看:
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
🧐 问题描述
ProFormSelect 组件使用 request 异步返回options时,并没有根据开发者指定的key作为react渲染的key,这个情况存在很久了,是有意为之吗,是否应该根据用户指定的key运行?
💻 示例代码
以用户传入的key为主,没有再取value
🚑 其他信息
截图如下