1
This commit is contained in:
@@ -3,7 +3,8 @@ import {
|
||||
ProForm,
|
||||
ProFormDigit,
|
||||
ProFormText,
|
||||
ProFormSwitch
|
||||
ProFormSwitch,
|
||||
ProFormRadio
|
||||
} from '@ant-design/pro-components';
|
||||
import { Form, Modal, InputNumber } from 'antd';
|
||||
import { useIntl } from '@umijs/max';
|
||||
@@ -87,7 +88,29 @@ const RoleForm: React.FC = (props: any) => {
|
||||
}
|
||||
}
|
||||
/>
|
||||
|
||||
</ProForm.Group>
|
||||
|
||||
<ProFormRadio.Group
|
||||
rules={[{ required: true, message: '请选择' }]}
|
||||
name="type"
|
||||
radioType="button"
|
||||
label="位置"
|
||||
options={[
|
||||
{
|
||||
label: '首页Banner',
|
||||
value: 1,
|
||||
},
|
||||
{
|
||||
label: '首页下方活动',
|
||||
value: 2,
|
||||
},
|
||||
{
|
||||
label: '新能源汽车下乡',
|
||||
value: 3,
|
||||
}
|
||||
]}
|
||||
/>
|
||||
<ProForm.Group>
|
||||
<ProForm.Item label="图片" name="imageUrl">
|
||||
<FilesManager
|
||||
|
||||
Reference in New Issue
Block a user