<Form.Item
name="note"
label="Note"
labelCol={{
// 修改label 样式
style: {
width: '50px',
marginRight: '10px',
color: 'red',
},
}}
wrapperCol={{
// 修改输入内容样式
style: {
width: '300px',
color: 'red',
},
}}
// style={{ flex: 1 }}
rules={[
{
required: true,
},
]}
>
<Input />
</Form.Item>
antd-修改form 表单样式
最新推荐文章于 2023-12-18 17:07:05 发布