Commit 594db8cf by chenshu

fix:修改编辑器

parent b06f8bfb
...@@ -167,10 +167,10 @@ class GraphicsEditor extends React.Component { ...@@ -167,10 +167,10 @@ class GraphicsEditor extends React.Component {
render() { render() {
const { editorId, textLength } = this.state; const { editorId, textLength } = this.state;
const { limitLength = 1000, isIntro } = this.props; const { limitLength = 1000, isIntro, maxLimit } = this.props;
return <div className={`graphics-editor-container${isIntro ? ' introduce' : ''}`}> return <div className={`graphics-editor-container${isIntro ? ' introduce' : ''}`}>
<div className="editor-box" id={`editor${editorId}`}></div> <div className="editor-box" id={`editor${editorId}`}></div>
<div className="editor-tips">({textLength}/100000)</div> <div className="editor-tips">({textLength}/{maxLimit || 100000})</div>
</div> </div>
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment