input-number icon indicating copy to clipboard operation
input-number copied to clipboard

feat: add suffix prop

Open coding-ice opened this issue 1 year ago • 3 comments

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

coding-ice avatar Jul 01 '24 06:07 coding-ice

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

vercel[bot] avatar Jul 01 '24 06:07 vercel[bot]

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

afc163 avatar Jul 01 '24 07:07 afc163

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

coding-ice avatar Jul 01 '24 10:07 coding-ice

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

afc163 avatar Jul 10 '24 06:07 afc163