!343 fix(@vben/web-antdv-next): 修复 InputNumber 组件宽度在表单中不占满的问题
Merge pull request !343 from XuZhiqiang/feat-antdv-nextpull/341/MERGE
commit
e81ca2c13f
|
|
@ -123,7 +123,7 @@ const Rate = RateComponent;
|
||||||
const Select = SelectComponent;
|
const Select = SelectComponent;
|
||||||
const Space = SpaceComponent;
|
const Space = SpaceComponent;
|
||||||
const Switch = SwitchComponent;
|
const Switch = SwitchComponent;
|
||||||
const Textarea = TextareaComponent;
|
const TextArea = TextareaComponent;
|
||||||
const TimePicker = TimePickerComponent;
|
const TimePicker = TimePickerComponent;
|
||||||
const TimeRangePicker = TimeRangePickerComponent;
|
const TimeRangePicker = TimeRangePickerComponent;
|
||||||
const TreeSelect = TreeSelectComponent;
|
const TreeSelect = TreeSelectComponent;
|
||||||
|
|
@ -624,7 +624,8 @@ export type ComponentType =
|
||||||
| 'Select'
|
| 'Select'
|
||||||
| 'Space'
|
| 'Space'
|
||||||
| 'Switch'
|
| 'Switch'
|
||||||
| 'Textarea'
|
| 'TextArea'
|
||||||
|
| 'TextArea'
|
||||||
| 'TimePicker'
|
| 'TimePicker'
|
||||||
| 'TimeRangePicker'
|
| 'TimeRangePicker'
|
||||||
| 'TreeSelect'
|
| 'TreeSelect'
|
||||||
|
|
@ -658,7 +659,7 @@ export interface ComponentPropsMap {
|
||||||
Select: SelectProps;
|
Select: SelectProps;
|
||||||
Space: SpaceProps;
|
Space: SpaceProps;
|
||||||
Switch: SwitchProps;
|
Switch: SwitchProps;
|
||||||
Textarea: TextAreaProps;
|
TextArea: TextAreaProps;
|
||||||
TimePicker: TimePickerProps;
|
TimePicker: TimePickerProps;
|
||||||
TreeSelect: TreeSelectProps;
|
TreeSelect: TreeSelectProps;
|
||||||
Upload: AdapterUploadProps;
|
Upload: AdapterUploadProps;
|
||||||
|
|
@ -707,7 +708,9 @@ async function initComponentAdapter() {
|
||||||
modelValueProp: 'value',
|
modelValueProp: 'value',
|
||||||
}),
|
}),
|
||||||
Input: withDefaultPlaceholder(Input, 'input'),
|
Input: withDefaultPlaceholder(Input, 'input'),
|
||||||
InputNumber: withDefaultPlaceholder(InputNumber, 'input'),
|
InputNumber: withDefaultPlaceholder(InputNumber, 'input', {
|
||||||
|
style: { width: '100%' },
|
||||||
|
}),
|
||||||
InputPassword: withDefaultPlaceholder(InputPassword, 'input'),
|
InputPassword: withDefaultPlaceholder(InputPassword, 'input'),
|
||||||
Mentions: withDefaultPlaceholder(Mentions, 'input'),
|
Mentions: withDefaultPlaceholder(Mentions, 'input'),
|
||||||
// 自定义主要按钮
|
// 自定义主要按钮
|
||||||
|
|
@ -721,7 +724,7 @@ async function initComponentAdapter() {
|
||||||
Select: withDefaultPlaceholder(Select, 'select'),
|
Select: withDefaultPlaceholder(Select, 'select'),
|
||||||
Space,
|
Space,
|
||||||
Switch,
|
Switch,
|
||||||
Textarea: withDefaultPlaceholder(Textarea, 'input'),
|
TextArea: withDefaultPlaceholder(TextArea, 'input'),
|
||||||
RichTextarea,
|
RichTextarea,
|
||||||
TimePicker,
|
TimePicker,
|
||||||
TimeRangePicker,
|
TimeRangePicker,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue