|
|
@ -117,7 +117,7 @@ class MemoDetailMDEditor extends Component {
|
|
|
|
this.initMDEditor()
|
|
|
|
this.initMDEditor()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
const { match, history, memo, placeholder } = this.props
|
|
|
|
const { match, history, memo, placeholder, className } = this.props
|
|
|
|
const { isInited, errorMsg } = this.state
|
|
|
|
const { isInited, errorMsg } = this.state
|
|
|
|
if (!memo) {
|
|
|
|
if (!memo) {
|
|
|
|
return <div></div>
|
|
|
|
return <div></div>
|
|
|
@ -154,7 +154,7 @@ class MemoDetailMDEditor extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`}</style>
|
|
|
|
`}</style>
|
|
|
|
<div style={{ display: isInited ? 'none' : '', borderBottom: `${this.props.commentsLength == 0 ? 'none' : '1px solid #EEEEEE'}`}}
|
|
|
|
<div style={{ display: isInited ? 'none' : '', borderBottom: `${this.props.commentsLength == 0 ? 'none' : '1px solid #EEEEEE'}`}}
|
|
|
|
className="mockInputWrapper commentInput" >
|
|
|
|
className={`mockInputWrapper commentInput ${className}`} >
|
|
|
|
<input onClick={this.onMockInputClick} placeholder={placeholder || '我要回复'}></input>
|
|
|
|
<input onClick={this.onMockInputClick} placeholder={placeholder || '我要回复'}></input>
|
|
|
|
<a href="javascript:void(0)"
|
|
|
|
<a href="javascript:void(0)"
|
|
|
|
onClick={this.onMockInputClick} className="commentsbtn task-btn task-btn-blue">
|
|
|
|
onClick={this.onMockInputClick} className="commentsbtn task-btn task-btn-blue">
|
|
|
@ -172,7 +172,7 @@ class MemoDetailMDEditor extends Component {
|
|
|
|
`
|
|
|
|
`
|
|
|
|
} */}
|
|
|
|
} */}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
<div nhname={`new_message_${memo.id}`} className="commentInput commentInputs"
|
|
|
|
<div nhname={`new_message_${memo.id}`} className={`commentInput commentInputs ${className}`}
|
|
|
|
style={{ padding: '30px',boxSizing:"border-box", display: isInited ? '' : 'none', paddingBottom: '40px' }} >
|
|
|
|
style={{ padding: '30px',boxSizing:"border-box", display: isInited ? '' : 'none', paddingBottom: '40px' }} >
|
|
|
|
<div id="memo_comment_editorMd" className="editorMD" style={{ marginBottom: '0px'
|
|
|
|
<div id="memo_comment_editorMd" className="editorMD" style={{ marginBottom: '0px'
|
|
|
|
, border: errorMsg ? '1px solid red' : '1px solid #ddd'}}>
|
|
|
|
, border: errorMsg ? '1px solid red' : '1px solid #ddd'}}>
|
|
|
|