提示可配置

dev_local_2
杨树明 6 years ago
parent c3435db3b5
commit 3eedd22ed0

@ -760,9 +760,9 @@ html>body #ajax-indicator { position: fixed; }
.paddingLeft28{padding-left:28px;} .paddingLeft28{padding-left:28px;}
.ant-modal-header{ /*.ant-modal-header{*/
border-radius: 10px; /*border-radius: 10px;*/
} /*}*/
.color656565{ .color656565{
color:#656565; color:#656565;

@ -25,9 +25,9 @@ body {
.ant-message{ .ant-message{
z-index: 20000; z-index: 20000;
} }
.ant-modal-header{ /*.ant-modal-header{*/
border-radius: 10px; /*border-radius: 10px;*/
} /*}*/
.ant-upload-list-item-info .anticon-loading, .ant-upload-list-item-info .anticon-paper-clip{ .ant-upload-list-item-info .anticon-loading, .ant-upload-list-item-info .anticon-paper-clip{
color: #29bd8b !important; color: #29bd8b !important;
} }

@ -339,6 +339,7 @@ class AccessoryModal extends Component{
</p> </p>
<WordNumberTextarea <WordNumberTextarea
thisPlaceholder={`请在此输入补交附件的原因,最大限制${this.props.maxFontLength}个字符`}
thisInput={(e)=>this.settextarea(e)} thisInput={(e)=>this.settextarea(e)}
thisValue={description} thisValue={description}
startFontLength={description===undefined?0:description.length} startFontLength={description===undefined?0:description.length}

@ -1,6 +1,6 @@
import React,{ Component } from "react"; import React,{ Component } from "react";
import { Modal,Checkbox,Upload,Button,Icon,message,Input} from "antd"; import { Modal,Checkbox,Upload,Button,Icon,message,Input} from "antd";
import { WordNumberTextarea } from 'educoder';
class ModulationModal extends Component{ class ModulationModal extends Component{
constructor(props){ constructor(props){
@ -78,12 +78,21 @@ class ModulationModal extends Component{
<div className="clearfix"> <div className="clearfix">
<textarea {/*<textarea*/}
className="winput-100-150" {/*className="winput-100-150"*/}
placeholder="请填写您对作品调分的原因" {/*placeholder="请填写您对作品调分的原因"*/}
value={textareaval} {/*value={textareaval}*/}
onInput={this.settextarea} {/*onInput={this.settextarea}*/}
></textarea> {/*></textarea>*/}
<WordNumberTextarea
thisPlaceholder={"请填写您对作品调分的原因"}
thisInput={(e)=>this.settextarea(e)}
thisValue={textareaval}
startFontLength={textareaval===undefined?0:textareaval.length}
maxFontLength={100}
/>
<li style={{height:"20px",lineHeight:"20px"}}><span className={textareavaltype===true?"color-red":"none"}>原因不能为空</span></li> <li style={{height:"20px",lineHeight:"20px"}}><span className={textareavaltype===true?"color-red":"none"}>原因不能为空</span></li>
</div> </div>
<li> <li>

@ -7,7 +7,7 @@ class WordNumberTextarea extends Component {
render() { render() {
return( return(
<div className="WordNumbernote"> <div className="WordNumbernote">
<textarea placeholder={`请在此输入补交附件的原因,最大限制${this.props.maxFontLength}个字符`} <textarea placeholder={this.props.thisPlaceholder}
className="WordNumberTextarea" className="WordNumberTextarea"
value={this.props.thisValue} value={this.props.thisValue}
onInput={(e)=>this.props.thisInput(e)} onInput={(e)=>this.props.thisInput(e)}

@ -761,9 +761,9 @@ html>body #ajax-indicator { position: fixed; }
.paddingLeft28{padding-left:28px;} .paddingLeft28{padding-left:28px;}
.ant-modal-header{ /*.ant-modal-header{*/
border-radius: 10px; /*border-radius: 10px;*/
} /*}*/
.color656565{ .color656565{
color:#656565; color:#656565;

Loading…
Cancel
Save