Browse Source

修复btnSubmitText出错的问题

narrowizard 5 years ago
parent
commit
f843662e0e

+ 2
- 2
assets/example.html View File

5
   <meta http-equiv="X-UA-Compatible" content="IE=edge">
5
   <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
   <title>通用评论 demo</title>
6
   <title>通用评论 demo</title>
7
   <meta name="viewport" content="width=device-width, initial-scale=1">
7
   <meta name="viewport" content="width=device-width, initial-scale=1">
8
-  <link rel="stylesheet" type="text/css" media="screen" href="./static/css/main.f42a6adc.css" />
8
+  <link rel="stylesheet" type="text/css" media="screen" href="./static/css/main.a3c3a441.css" />
9
 </head>
9
 </head>
10
 <body>
10
 <body>
11
   <div>
11
   <div>
20
   </div>
20
   </div>
21
   
21
   
22
   <script src="http://gosspublic.alicdn.com/aliyun-oss-sdk.min.js"></script>
22
   <script src="http://gosspublic.alicdn.com/aliyun-oss-sdk.min.js"></script>
23
-  <script type="text/javascript" src="./static/js/main.38751aad.js"></script>
23
+  <script type="text/javascript" src="./static/js/main.6b539ef0.js"></script>
24
   <script type="text/javascript" src="example.js"></script>
24
   <script type="text/javascript" src="example.js"></script>
25
 </body>
25
 </body>
26
 </html>
26
 </html>

assets/static/css/main.a3c3a441.css
File diff suppressed because it is too large
View File


+ 1
- 0
assets/static/css/main.a3c3a441.css.map
File diff suppressed because it is too large
View File


+ 0
- 1
assets/static/css/main.f42a6adc.css.map
File diff suppressed because it is too large
View File


+ 0
- 2
assets/static/js/main.38751aad.js
File diff suppressed because it is too large
View File


+ 0
- 1
assets/static/js/main.38751aad.js.map
File diff suppressed because it is too large
View File


+ 2
- 0
assets/static/js/main.6b539ef0.js
File diff suppressed because it is too large
View File


+ 1
- 0
assets/static/js/main.6b539ef0.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
lib/components/Editor/index.js View File

286
           autoFocus = _props.autoFocus;
286
           autoFocus = _props.autoFocus;
287
 
287
 
288
       var placeholder = this.props.placeholder || _reactIntlUniversal2.default.get("editor.placeholder");
288
       var placeholder = this.props.placeholder || _reactIntlUniversal2.default.get("editor.placeholder");
289
-      var btnSubmitText = this.props.placeholder || _reactIntlUniversal2.default.get("editor.SubmitBtn");
289
+      var btnSubmitText = this.props.btnSubmitText || _reactIntlUniversal2.default.get("editor.SubmitBtn");
290
       var handleSubmit = this.handleSubmit;
290
       var handleSubmit = this.handleSubmit;
291
       var disabledSubmit = btnDisabled || !this.props.value && !this.state.value && !this.state.fileList.length;
291
       var disabledSubmit = btnDisabled || !this.props.value && !this.state.value && !this.state.fileList.length;
292
       var inputValue = value || this.state.value;
292
       var inputValue = value || this.state.value;

+ 1
- 1
lib/components/Editor/index.js.map
File diff suppressed because it is too large
View File


+ 2
- 1
src/components/Editor/index.js View File

184
       autoFocus
184
       autoFocus
185
     } = this.props;
185
     } = this.props;
186
     let placeholder = this.props.placeholder || intl.get("editor.placeholder");
186
     let placeholder = this.props.placeholder || intl.get("editor.placeholder");
187
-    let btnSubmitText = this.props.placeholder || intl.get("editor.SubmitBtn");
187
+    let btnSubmitText =
188
+      this.props.btnSubmitText || intl.get("editor.SubmitBtn");
188
     const handleSubmit = this.handleSubmit;
189
     const handleSubmit = this.handleSubmit;
189
     const disabledSubmit =
190
     const disabledSubmit =
190
       btnDisabled ||
191
       btnDisabled ||