-
联动时设置initValues 会出现闪烁,城市会先显示value,闪烁后变为label值,是我代码哪里有问题么 |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 10 replies
-
给 codesandbox demo |
Beta Was this translation helpful? Give feedback.
-
你这个场景本来就应该是这样的,因为选择的时候,dataSource还没加载完,没办法映射的,肯定是先显示value |
Beta Was this translation helpful? Give feedback.
-
https://codesandbox.io/s/cranky-mendeleev-qbikr?file=/App.tsx 你的代码有问题吧,你在 render 里面 createForm 干嘛? |
Beta Was this translation helpful? Give feedback.
-
https://codesandbox.io/s/dank-fast-6ioml?file=/App.tsx 你看看是不是期望的效果,写代码的思路可以调整一下,多思考一下哪些 UI + Data 是一个整体,然后放到组件里面去处理。 |
Beta Was this translation helpful? Give feedback.
-
不要在一个问题里一直问其他问题,这种太不方便检索了 |
Beta Was this translation helpful? Give feedback.
你这个场景本来就应该是这样的,因为选择的时候,dataSource还没加载完,没办法映射的,肯定是先显示value