parent
e2fb524f23
commit
245569cabe
@ -0,0 +1,52 @@
|
|||||||
|
import React, { Component } from 'react';
|
||||||
|
import { ActionBtn } from 'educoder'
|
||||||
|
|
||||||
|
import { Form , Modal } from 'antd'
|
||||||
|
|
||||||
|
class RepositoryAddFile extends Component {
|
||||||
|
constructor(props) {
|
||||||
|
super(props);
|
||||||
|
this.state={
|
||||||
|
visible:false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
addFile = () =>{
|
||||||
|
this.setState({
|
||||||
|
visible:true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
cancelAdd = () =>{
|
||||||
|
this.setState({
|
||||||
|
visible:false
|
||||||
|
})
|
||||||
|
}
|
||||||
|
render(){
|
||||||
|
let { visible } = this.state
|
||||||
|
return(
|
||||||
|
<React.Fragment>
|
||||||
|
<ActionBtn style="orangeLine" className="ml20" onClick={this.addFile}>+添加文件</ActionBtn>
|
||||||
|
<Modal
|
||||||
|
className={"RepositioryModal"}
|
||||||
|
title={'添加文件'}
|
||||||
|
visible={visible}
|
||||||
|
closable={false}
|
||||||
|
footer={null}
|
||||||
|
destroyOnClose={true}
|
||||||
|
width="550px"
|
||||||
|
>
|
||||||
|
<div className="task-popup-content">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div className="clearfix mt30 edu-txt-center mb10">
|
||||||
|
<a className="task-btn color-white mr30" onClick={this.cancelAdd}>取消</a>
|
||||||
|
<a className="task-btn task-btn-orange">提交</a>
|
||||||
|
</div>
|
||||||
|
</Modal>
|
||||||
|
</React.Fragment>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const WrappedRepositoryAddFile = Form.create({name: 'taskRepositoryAddFile'})(RepositoryAddFile);
|
||||||
|
// RouteHOC()
|
||||||
|
export default (WrappedRepositoryAddFile);
|
Loading…
Reference in new issue