限制字符

This commit is contained in:
hc1913847458 2021-08-04 14:42:08 +08:00
parent c9802c26a4
commit ad7ab189b1
4 changed files with 7 additions and 7 deletions

View File

@ -53,7 +53,7 @@ function UpdateDescModal({form , visible , onCancel , onOk,desc,website,lesson_u
{getFieldDecorator("lesson_url",{
rules:[]
})(
<Input placeholder="实践课程链接"/>
<Input placeholder="实践课程链接" style="word-break: break-all" />
)}
</Form.Item>
</Form>

View File

@ -264,7 +264,7 @@ class MergeForm extends Component {
},
],
initialValue: title,
})(<Input placeholder="标题" />)}
})(<Input placeholder="标题" maxLength={50} />)}
</Form.Item>
<MDEditor
placeholder={"请输入合并请求的描述..."}

View File

@ -102,7 +102,7 @@ class NewMilepost extends Component {
required: true, message: '请输入标题'
}],
})(
<Input placeholder="标题" autoComplete="off"/>
<Input placeholder="标题" autoComplete="off" maxLength="30" />
)}
</Form.Item>
</div>
@ -113,7 +113,7 @@ class NewMilepost extends Component {
required: true, message: '请输入描述内容'
}],
})(
<TextArea placeholder="请输入描述内容..." style={{ height: "150px" }} />
<TextArea placeholder="请输入描述内容..." style={{ height: "150px" }} maxLength={500} />
)}
</Form.Item>

View File

@ -445,7 +445,7 @@ class NewTags extends Component {
message: "请填写标签名字",
},
],
})(<Input placeholder="标签名字" maxLength="20" />)}
})(<Input placeholder="名称10字以内" maxLength="10" />)}
</Form.Item>
<Form.Item className="inputcount">
@ -507,8 +507,8 @@ class NewTags extends Component {
>
<div className="dialogdiv">
<Input
placeholder="标签名字"
maxLength="20"
placeholder="称,10以内"
maxLength="10"
className="inptwidth"
value={this.state.name}
onChange={this.changmodelname}