|
|
|
@ -218,7 +218,7 @@ class RepositoryAddFile extends Component {
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
.padding20-30{
|
|
|
|
|
padding:20px 30px 5px 30px;
|
|
|
|
|
padding:20px 30px 60px 30px;
|
|
|
|
|
}
|
|
|
|
|
.formStyle .ant-form-item{
|
|
|
|
|
margin-bottom:0px !important;
|
|
|
|
@ -231,31 +231,20 @@ class RepositoryAddFile extends Component {
|
|
|
|
|
<p className="ant-form-item-label">
|
|
|
|
|
<div className={"font-20 color-black"}>新建文件</div>
|
|
|
|
|
</p>
|
|
|
|
|
<Form.Item label="提交信息">
|
|
|
|
|
|
|
|
|
|
{getFieldDecorator('message', {
|
|
|
|
|
rules: [{
|
|
|
|
|
required: true, message: '请输入提交信息',
|
|
|
|
|
},{
|
|
|
|
|
whitespace: true, message: '请勿输入空格'
|
|
|
|
|
}],
|
|
|
|
|
})(
|
|
|
|
|
<Input placeholder="必填,描述主要修改内容(相当于Git Commit message的Header)" size="large" className="winput-300-35 fl "/>
|
|
|
|
|
)}
|
|
|
|
|
</Form.Item>
|
|
|
|
|
|
|
|
|
|
<div className={"mt50"}>
|
|
|
|
|
<Form.Item>
|
|
|
|
|
<div className={" mb50"}>
|
|
|
|
|
<Form.Item label="文件名称或文件路径">
|
|
|
|
|
{getFieldDecorator('path', {
|
|
|
|
|
rules: [{
|
|
|
|
|
required: true, message: '请输入提交信息',
|
|
|
|
|
required: true, message: '请输入文件名称或文件路径',
|
|
|
|
|
},{
|
|
|
|
|
whitespace: true, message: '请勿输入空格'
|
|
|
|
|
}],
|
|
|
|
|
})(
|
|
|
|
|
<span>
|
|
|
|
|
<span> </span><span><Input value={this.state.path} placeholder="文件名称或文件路径" className="fl" style={{ width: 200 }} size="large" onInput={(e)=>this.setinput(e)}/></span><span className={" ml10 fl"}>
|
|
|
|
|
提示:1.输入文件名可以创建一个新文件,2.输入新文件夹名/新文件名可以创建新文件夹和新文件。</span>
|
|
|
|
|
<span> </span><span><Input value={this.state.path} placeholder="请输入文件名称或文件路径" className="fl" style={{ width: 240 }} size="large" onInput={(e)=>this.setinput(e)}/></span><span className={" ml10 fl"}>
|
|
|
|
|
提示:1.输入文件名可以创建一个新文件;2.输入新文件夹名/新文件名可以创建新文件夹和新文件。(如:step1/HelloWorld.java)</span>
|
|
|
|
|
</span>
|
|
|
|
|
)}
|
|
|
|
|
</Form.Item>
|
|
|
|
@ -276,7 +265,18 @@ class RepositoryAddFile extends Component {
|
|
|
|
|
<div className="mt10 mb25 repoCMWrapper filecode">
|
|
|
|
|
<textarea className="" id="codemirror-file-edit" style={{display:'none'}} name="content"></textarea>
|
|
|
|
|
</div>
|
|
|
|
|
<Form.Item label="提交信息">
|
|
|
|
|
|
|
|
|
|
{getFieldDecorator('message', {
|
|
|
|
|
rules: [{
|
|
|
|
|
required: true, message: '请输入提交信息',
|
|
|
|
|
},{
|
|
|
|
|
whitespace: true, message: '请勿输入空格'
|
|
|
|
|
}],
|
|
|
|
|
})(
|
|
|
|
|
<Input placeholder="请输入本次提交的主要信息,合理的描述信息有利于代码历史记录的管理" size="large" className="winput-300-35 fl "/>
|
|
|
|
|
)}
|
|
|
|
|
</Form.Item>
|
|
|
|
|
{/*<Form.Item label="提交信息">*/}
|
|
|
|
|
{/* {getFieldDecorator('message', {*/}
|
|
|
|
|
{/* rules: [{required: true, message: "请输入提交信息"}],*/}
|
|
|
|
|