ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

Add suffix slot to <a-input-number>

Open rowanwins opened this issue 8 months ago • 2 comments
trafficstars

  • [x] I have searched the issues of this repository and believe that this is not a duplicate.
    • related to https://github.com/vueComponent/ant-design-vue/issues/6777 which was closed due to being stale

What problem does this feature solve?

Currently <a-input> has a suffix slot, however <a-input-number/> does not, limiting more advanced layouts. The current addon-after prop has some opinionated styling which makes it less useful than the bare suffix slot.

Here is an example of the field layout I am making Image

What does the proposed API look like?

API as per <a-input/>

<a-input-number>
  <template #suffix>
     <p>extra content</p>
  </template>
<a-input-number>

rowanwins avatar Mar 11 '25 04:03 rowanwins