ant-design-vue
ant-design-vue copied to clipboard
Add suffix slot to <a-input-number>
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
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>