!343 fix(@vben/web-antdv-next): 修复 InputNumber 组件宽度在表单中不占满的问题

Merge pull request !343 from XuZhiqiang/feat-antdv-next
This commit is contained in:
xingyu
2026-05-14 08:03:20 +00:00
committed by Gitee

View File

@@ -123,7 +123,7 @@ const Rate = RateComponent;
const Select = SelectComponent;
const Space = SpaceComponent;
const Switch = SwitchComponent;
const Textarea = TextareaComponent;
const TextArea = TextareaComponent;
const TimePicker = TimePickerComponent;
const TimeRangePicker = TimeRangePickerComponent;
const TreeSelect = TreeSelectComponent;
@@ -624,7 +624,8 @@ export type ComponentType =
| 'Select'
| 'Space'
| 'Switch'
| 'Textarea'
| 'TextArea'
| 'TextArea'
| 'TimePicker'
| 'TimeRangePicker'
| 'TreeSelect'
@@ -658,7 +659,7 @@ export interface ComponentPropsMap {
Select: SelectProps;
Space: SpaceProps;
Switch: SwitchProps;
Textarea: TextAreaProps;
TextArea: TextAreaProps;
TimePicker: TimePickerProps;
TreeSelect: TreeSelectProps;
Upload: AdapterUploadProps;
@@ -707,7 +708,9 @@ async function initComponentAdapter() {
modelValueProp: 'value',
}),
Input: withDefaultPlaceholder(Input, 'input'),
InputNumber: withDefaultPlaceholder(InputNumber, 'input'),
InputNumber: withDefaultPlaceholder(InputNumber, 'input', {
style: { width: '100%' },
}),
InputPassword: withDefaultPlaceholder(InputPassword, 'input'),
Mentions: withDefaultPlaceholder(Mentions, 'input'),
// 自定义主要按钮
@@ -721,7 +724,7 @@ async function initComponentAdapter() {
Select: withDefaultPlaceholder(Select, 'select'),
Space,
Switch,
Textarea: withDefaultPlaceholder(Textarea, 'input'),
TextArea: withDefaultPlaceholder(TextArea, 'input'),
RichTextarea,
TimePicker,
TimeRangePicker,