|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
* @Github:
|
|
|
|
|
* @Date: 2019-11-20 10:35:40
|
|
|
|
|
* @LastEditors: tangjiang
|
|
|
|
|
* @LastEditTime: 2019-12-19 20:16:32
|
|
|
|
|
* @LastEditTime: 2019-12-20 16:53:55
|
|
|
|
|
*/
|
|
|
|
|
import './index.scss';
|
|
|
|
|
// import 'katex/dist/katex.css';
|
|
|
|
@ -24,17 +24,20 @@ const FormItem = Form.Item;
|
|
|
|
|
const { Option } = Select;
|
|
|
|
|
const maps = {
|
|
|
|
|
language: [
|
|
|
|
|
{ title: (<span style={{ color: 'rgba(0, 0, 0, 0.35)' }}>请选择</span>), key: '' },
|
|
|
|
|
{ title: 'C', key: 'C' },
|
|
|
|
|
{ title: 'C++', key: 'C++' },
|
|
|
|
|
{ title: 'Python', key: 'Python' },
|
|
|
|
|
{ title: 'Java', key: 'Java' }
|
|
|
|
|
],
|
|
|
|
|
difficult: [
|
|
|
|
|
{ title: (<span style={{ color: 'rgba(0, 0, 0, 0.35)' }}>请选择</span>), key: '' },
|
|
|
|
|
{ title: '简单', key: '1' },
|
|
|
|
|
{ title: '中等', key: '2'},
|
|
|
|
|
{ title: '困难', key: '3' }
|
|
|
|
|
],
|
|
|
|
|
category: [
|
|
|
|
|
{ title: (<span style={{ color: 'rgba(0, 0, 0, 0.35)' }}>请选择</span>), key: '' },
|
|
|
|
|
{ title: '程序设计', key: '1' },
|
|
|
|
|
{ title: '算法', key: '2'}
|
|
|
|
|
],
|
|
|
|
@ -310,7 +313,7 @@ class EditTab extends React.Component {
|
|
|
|
|
>
|
|
|
|
|
<div style={{ marginTop: '15px'}}>
|
|
|
|
|
<QuillForEditor
|
|
|
|
|
style={{ height: '200px', 'overflowY': 'auto' }}
|
|
|
|
|
style={{ height: '200px' }}
|
|
|
|
|
placeholder="请输入描述信息"
|
|
|
|
|
onContentChange={handleContentChange}
|
|
|
|
|
options={quillConfig}
|
|
|
|
|