为什么表单项高度如此之大,这里是表单项和屏幕截图:
<Form.Item>
{ getFieldDecorator('country', {
rules: [{ required: true, message: 'Please select country!' }]
})(
<AutoComplete
dataSource={["India", "USA"]}
placeholder="Country"
filterOption={(inputValue, option) =>
option.props.children.toUpperCase().indexOf(inputValue.toUpperCase()) !== -1}
/>
)
}
</Form.Item>