Prechádzať zdrojové kódy

feat:创建公告新增标签及修复富文本图片显示问题

zhubo@luojigou.vip 3 rokov pred
rodič
commit
3ca496de80
1 zmenil súbory, kde vykonal 5 pridanie a 2 odobranie
  1. 5 2
      src/pages/notice/modal.tsx

+ 5 - 2
src/pages/notice/modal.tsx

@@ -93,9 +93,9 @@ class EditorDemo extends React.Component<EditorDemoProps> {
           editorState: ContentUtils.insertMedias(this.state.editorState, [
             {
               type: 'IMAGE',
-              url: fileList[len].response.data + `?imageView2/1/w/343/h/192`,
+              url: fileList[len].response.data + `?imageView2/1`,
               width: '343px',
-              height: '192px',
+              // height: '192px',
             },
           ]),
         });
@@ -344,6 +344,9 @@ const NoticeModal: React.FC<noticeModalProps & IProps> = ({
         >
           <Input style={{ width: '375px' }} onChange={changeLabel} maxLength={80}></Input>
         </Form.Item>
+        <Form.Item name="tag" label="公告标签:">
+          <Input style={{ width: '375px' }} onChange={changeLabel} maxLength={10}></Input>
+        </Form.Item>
         <Form.Item name="content" label="公告内容:">
           <EditorDemo key={editContent} changeContent={changeContent} editorContent={editContent} />
         </Form.Item>