|
@@ -1,5 +1,5 @@
|
|
|
import React, { useState, useEffect } from 'react';
|
|
|
-import { Modal, Form, Input, Select, message, Upload } from 'antd';
|
|
|
+import { Modal, Form, Input, Select, message, Upload, Radio } from 'antd';
|
|
|
|
|
|
// import { ScissorOutlined } from '@ant-design/icons';
|
|
|
|
|
@@ -34,7 +34,7 @@ const layout = {
|
|
|
};
|
|
|
|
|
|
// 定义rem基准值
|
|
|
-const sizeBase = 23.4375;
|
|
|
+// const sizeBase = 23.4375;
|
|
|
|
|
|
interface IProps {
|
|
|
dispatch: Dispatch;
|
|
@@ -398,6 +398,16 @@ const NoticeModal: React.FC<noticeModalProps & IProps> = ({
|
|
|
<Form.Item name="tag" label="公告标签:">
|
|
|
<Input style={{ width: '375px' }} onChange={changeLabel} maxLength={10}></Input>
|
|
|
</Form.Item>
|
|
|
+ <Form.Item
|
|
|
+ name="top"
|
|
|
+ label="是否置顶:"
|
|
|
+ rules={[{ required: true, message: '请选择是否置顶' }]}
|
|
|
+ >
|
|
|
+ <Radio.Group>
|
|
|
+ <Radio value={0}>否</Radio>
|
|
|
+ <Radio value={1}>是</Radio>
|
|
|
+ </Radio.Group>
|
|
|
+ </Form.Item>
|
|
|
<Form.Item name="content" label="公告内容:">
|
|
|
<EditorDemo key={editContent} changeContent={changeContent} editorContent={editContent} />
|
|
|
</Form.Item>
|