react-component / input-number

React Input Number
https://input-number.vercel.app/
MIT License
313 stars 173 forks source link

feat: add suffix prop #645

Closed coding-ice closed 2 months ago

coding-ice commented 2 months ago

https://github.com/ant-design/ant-design/issues/49621 目前我的想法是:修改suffix的渲染位置,不在基于BaseInput 然后在做后面的优化(不知道可行不可行) chrome-capture-2024-7-1

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
input-number ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 1, 2024 7:36am
afc163 commented 2 months ago

这是唯一的办法么,能不修改 dom 实现类似的效果么?

coding-ice commented 2 months ago
  1. prefix不需要挪进来,因为它不是absolute, 汇报自身宽度
  2. 如果不修改dom结构,确实有实现的方案,这个PR我先挂着,晚上再去整理下 image
afc163 commented 2 months ago

https://github.com/ant-design/ant-design/pull/49674