ant-design / ant-design/pro-components
👑 [需求] valueType: 'formList'时 支持readonly模式以及优化
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
提问前先看看:
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
### 🔩 所属模块或组件
ProFormList 以及 Schema Form
### 🥰 需求描述
### ⛰ 功能需求适用场景
支持schema描述valueType为formList的readonly模式,发现只能通过下沉readonly属性到group的每个元素才可以,直接在formList的元素上增加readonly无效,而且无法快捷的隐藏掉 复制/删除/添加一行数据的操作按钮,希望formList通过字段直接设置整个的只读模式。即使开启了readonly模式,布局上没有约束,长字段会影响 列表label和value的对应展示关系,观感很差
### 🧐 解决方案
### 🚑 其他信息

Contributor guide
Research direction
Start with the ProFormList and Schema Form entry points, then trace how readonly state and row action controls are handled. The work is done when formList can enable readonly mode directly, hide add/copy/delete controls, and preserve readable label-value layout for long fields.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100