We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b39f2b2 commit 3b37cc1Copy full SHA for 3b37cc1
components/input-number/index.tsx
@@ -76,6 +76,7 @@ const InputNumber = defineComponent({
76
emit('focus', e);
77
};
78
return () => {
79
+ const id = props.id ?? formItemContext.id.value;
80
const {
81
class: className,
82
bordered,
@@ -86,7 +87,7 @@ const InputNumber = defineComponent({
86
87
prefix = slots.prefix?.(),
88
valueModifiers = {},
89
...others
- } = { ...attrs, ...props } as InputNumberProps & HTMLAttributes;
90
+ } = { ...attrs, ...props, id } as InputNumberProps & HTMLAttributes;
91
92
const preCls = prefixCls.value;
93
0 commit comments