ant-design / ant-design/pro-components

🧐[问题] 给表单如 Select 同时配置了 valueEnum 和 fieldProp.options , 在编辑模式和只读模式下,显示不一致

Open
#7,500 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

### 🧐 问题描述

可以配置 request、valueEnum 的表单,如果同时配置了 fieldProps.options 属性,并且两块数据不一样,在编辑模式和只读模式下,生成的 options 不一致

### 💻 示例代码

### 🚑 其他信息
源码相关位置
![A7401CA2-C02A-4fcf-A384-E081A26B821A](https://github.com/ant-design/pro-components/assets/23130670/977d9602-b042-48db-9731-43d53a640b24)

相关提交 #761
![image](https://github.com/ant-design/pro-components/assets/23130670/5f9ceecb-f6ab-41ac-9aca-75ea91171280)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the form configuration described for Select, using different valueEnum and fieldProps.options data in edit and read-only modes. Review the source location shown in the issue and related commit #761, then verify that both modes generate consistent options.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.