This commit is contained in:
PC-202306242200\Administrator
2025-06-07 11:51:18 +08:00
parent bcf9bb0e35
commit 6cb39e317a
43 changed files with 456 additions and 21 deletions

View File

@@ -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