限制字符
This commit is contained in:
parent
c9802c26a4
commit
ad7ab189b1
|
@ -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>
|
||||
|
|
|
@ -264,7 +264,7 @@ class MergeForm extends Component {
|
|||
},
|
||||
],
|
||||
initialValue: title,
|
||||
})(<Input placeholder="标题" />)}
|
||||
})(<Input placeholder="标题" maxLength={50} />)}
|
||||
</Form.Item>
|
||||
<MDEditor
|
||||
placeholder={"请输入合并请求的描述..."}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue