ant-design / ant-design/pro-components

🧐[问题] ProFormDigit使用prefix和suffix的时候,在readonly模式下不会显示prefix和suffix,这是有什么特别的考量还是还没精力来做

Open Beginner friendly
#8,844 2 comments 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

### 🧐 问题描述

```typescript

````
这种用法不会显示这个suffix

但是像ProFormText组件就支持suffix和prefix

所以想了解下这个功能是基于什么特殊考量不做,还是单纯的没做,如果可以做的话,我可以来加

Contributor guide

Open the contributing guide

Research direction

Start with ProFormDigit's readonly rendering and compare it with ProFormText's prefix and suffix behavior. Reproduce the provided TypeScript example, then verify that readonly ProFormDigit displays the configured prefix and suffix without regressing editable mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.