限制字符
This commit is contained in:
parent
4bde5da97c
commit
de636eed6d
|
@ -53,7 +53,7 @@ function UpdateDescModal({form , visible , onCancel , onOk,desc,website,lesson_u
|
||||||
{getFieldDecorator("lesson_url",{
|
{getFieldDecorator("lesson_url",{
|
||||||
rules:[]
|
rules:[]
|
||||||
})(
|
})(
|
||||||
<Input placeholder="实践课程链接"/>
|
<Input placeholder="实践课程链接" style="word-break: break-all" />
|
||||||
)}
|
)}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Form>
|
</Form>
|
||||||
|
|
|
@ -264,7 +264,7 @@ class MergeForm extends Component {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
initialValue: title,
|
initialValue: title,
|
||||||
})(<Input placeholder="标题" />)}
|
})(<Input placeholder="标题" maxLength={50} />)}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<MDEditor
|
<MDEditor
|
||||||
placeholder={"请输入合并请求的描述..."}
|
placeholder={"请输入合并请求的描述..."}
|
||||||
|
|
|
@ -102,7 +102,7 @@ class NewMilepost extends Component {
|
||||||
required: true, message: '请输入标题'
|
required: true, message: '请输入标题'
|
||||||
}],
|
}],
|
||||||
})(
|
})(
|
||||||
<Input placeholder="标题" autoComplete="off"/>
|
<Input placeholder="标题" autoComplete="off" maxLength="30" />
|
||||||
)}
|
)}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</div>
|
</div>
|
||||||
|
@ -113,7 +113,7 @@ class NewMilepost extends Component {
|
||||||
required: true, message: '请输入描述内容'
|
required: true, message: '请输入描述内容'
|
||||||
}],
|
}],
|
||||||
})(
|
})(
|
||||||
<TextArea placeholder="请输入描述内容..." style={{ height: "150px" }} />
|
<TextArea placeholder="请输入描述内容..." style={{ height: "150px" }} maxLength={500} />
|
||||||
|
|
||||||
)}
|
)}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
|
@ -445,7 +445,7 @@ class NewTags extends Component {
|
||||||
message: "请填写标签名字",
|
message: "请填写标签名字",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
})(<Input placeholder="标签名字" maxLength="20" />)}
|
})(<Input placeholder="名称,10字以内" maxLength="10" />)}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
<Form.Item className="inputcount">
|
<Form.Item className="inputcount">
|
||||||
|
@ -507,8 +507,8 @@ class NewTags extends Component {
|
||||||
>
|
>
|
||||||
<div className="dialogdiv">
|
<div className="dialogdiv">
|
||||||
<Input
|
<Input
|
||||||
placeholder="标签名字"
|
placeholder="名称,10字以内"
|
||||||
maxLength="20"
|
maxLength="10"
|
||||||
className="inptwidth"
|
className="inptwidth"
|
||||||
value={this.state.name}
|
value={this.state.name}
|
||||||
onChange={this.changmodelname}
|
onChange={this.changmodelname}
|
||||||
|
|
Loading…
Reference in New Issue