add placeholder

chromesetting
tangjiang 5 years ago
parent 610b45eeba
commit 02b5e0b7b0

@ -4,7 +4,7 @@
* @Github:
* @Date: 2019-11-20 10:35:40
* @LastEditors: tangjiang
* @LastEditTime: 2019-12-20 16:12:02
* @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'}
],

@ -4,7 +4,7 @@
* @Github:
* @Date: 2019-11-20 16:35:46
* @LastEditors: tangjiang
* @LastEditTime: 2019-12-19 17:20:48
* @LastEditTime: 2019-12-20 16:40:42
*/
import types from './actionTypes';
import CONST from '../../constants';

@ -4,7 +4,7 @@
* @Github:
* @Date: 2019-11-20 16:40:32
* @LastEditors: tangjiang
* @LastEditTime: 2019-12-17 16:19:04
* @LastEditTime: 2019-12-20 16:40:52
*/
import { Base64 } from 'js-base64';
import types from '../actions/actionTypes';
@ -14,8 +14,8 @@ const init = {
name: '', // 任务名称
language: '',
description: '',
difficult: 1,
category: 1,
difficult: '',
category: '',
// openOrNot: 1,
timeLimit: 3
},

Loading…
Cancel
Save