dev_forum
hjm 6 years ago
parent 69b4eccccc
commit d896ead64c

@ -316,7 +316,7 @@ class BoardsNew extends Component{
max: 60, message: '最大限制为60个字符',
}],
})(
<Input placeholder="请输入帖子标题最大限制60个字符" />
<Input placeholder="请输入帖子标题最大限制60个字符" className="searchViewAfter"/>
)}
</Form.Item>

@ -371,6 +371,8 @@ class CommonWorkSetting extends Component{
componentDidMount() {
this.fetchList()
on('commonwork_fetch_all', this.fetchAllListener)
$("html").animate({ scrollTop: $('html').scrollTop() - 100 })
}
componentWillUnmount() {
off('commonwork_fetch_all', this.fetchAllListener)

@ -417,12 +417,25 @@ class NewWork extends Component{
height: 40px;
line-height: 40px;
}
.workContent.AboutInputForm.ant-form-item {
border-bottom: none;
padding-bottom: 0px !important;
}
.newWorkUpload {
padding: 0px 30px 30px 30px!important;
background: #fff;
width: 100%;
display: inline-block;
border-bottom: 1px solid #EDEDED;
}
`}</style>
{ <Form.Item
label="内容"
className="AboutInputForm"
className="AboutInputForm workContent mdInForm"
>
{getFieldDecorator('description', {
rules: [{
@ -432,14 +445,13 @@ class NewWork extends Component{
<TPMMDEditor ref={this.contentMdRef} placeholder="请在此输入作业内容和要求,最大限制5000个字符" mdID={'courseContentMD'} refreshTimeout={1500}
watch={false} className="courseMessageMD" initValue={this.state.description}></TPMMDEditor>
)}
<Upload {...uploadProps} className="upload_1">
<Button className="uploadBtn">
<Icon type="upload" /> 上传附件
</Button>
(单个文件150M以内)
</Upload>
</Form.Item> }
<Upload {...uploadProps} className="upload_1 newWorkUpload">
<Button className="uploadBtn">
<Icon type="upload" /> 上传附件
</Button>
(单个文件150M以内)
</Upload>
{ isGroup &&

@ -916,7 +916,7 @@ a.white-btn.use_scope-btn:hover{
.ml22{
margin-left:22px;
}
/* FORM START */
.ant-form label{
/* 为了覆盖antd的样式这里使用了importantTODO */
font-size: 16px !important;
@ -930,6 +930,12 @@ a.white-btn.use_scope-btn:hover{
.ant-form label.font-12 {
font-size: 12px !important;
}
/* md编辑器在form中时使用这个样式可以把错误信息绝对定位 */
.mdInForm .has-error .ant-form-explain {
position: absolute;
margin-top: -2px;
margin-left: -7px;
}
/*新建课堂*/

Loading…
Cancel
Save