File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -1163,7 +1163,8 @@ class BootstrapTable extends Component {
11631163 btnGroup = { this . props . options . btnGroup }
11641164 toolBar = { this . props . options . toolBar }
11651165 reset = { this . state . reset }
1166- isValidKey = { this . store . isValidKey } />
1166+ isValidKey = { this . store . isValidKey }
1167+ insertFailIndicator = { this . props . options . insertFailIndicator || Const . INSERT_FAIL_INDICATOR } />
11671168 </ div >
11681169 ) ;
11691170 } else {
@@ -1448,7 +1449,8 @@ BootstrapTable.propTypes = {
14481449 expanding : PropTypes . array ,
14491450 onlyOneExpanding : PropTypes . bool ,
14501451 beforeShowError : PropTypes . func ,
1451- printToolBar : PropTypes . bool
1452+ printToolBar : PropTypes . bool ,
1453+ insertFailIndicator : PropTypes . string
14521454 } ) ,
14531455 fetchInfo : PropTypes . shape ( {
14541456 dataTotalSize : PropTypes . number
@@ -1595,7 +1597,8 @@ BootstrapTable.defaultProps = {
15951597 expanding : [ ] ,
15961598 onlyOneExpanding : false ,
15971599 beforeShowError : undefined ,
1598- printToolBar : true
1600+ printToolBar : true ,
1601+ insertFailIndicator : Const . INSERT_FAIL_INDICATOR
15991602 } ,
16001603 fetchInfo : {
16011604 dataTotalSize : 0
Original file line number Diff line number Diff line change @@ -54,7 +54,8 @@ const CONST_VAR = {
5454 REMOTE_DROP_ROW : 'dropRow' ,
5555 REMOTE_FILTER : 'filter' ,
5656 REMOTE_SEARCH : 'search' ,
57- REMOTE_EXPORT_CSV : 'exportCSV'
57+ REMOTE_EXPORT_CSV : 'exportCSV' ,
58+ INSERT_FAIL_INDICATOR : 'Form validate errors, please checking!'
5859} ;
5960
6061CONST_VAR . REMOTE = { } ;
Original file line number Diff line number Diff line change @@ -65,10 +65,7 @@ class ToolBar extends Component {
6565 }
6666
6767 displayCommonMessage = ( ) => {
68- notice (
69- 'error' ,
70- 'Form validate errors, please checking!' ,
71- '' ) ;
68+ notice ( 'error' , this . props . insertFailIndicator , '' ) ;
7269 }
7370
7471 validateNewRow ( newRow ) {
@@ -480,7 +477,8 @@ ToolBar.propTypes = {
480477 toolBar : PropTypes . func ,
481478 searchPosition : PropTypes . string ,
482479 reset : PropTypes . bool ,
483- isValidKey : PropTypes . func
480+ isValidKey : PropTypes . func ,
481+ insertFailIndicator : PropTypes . string
484482} ;
485483
486484ToolBar . defaultProps = {
You can’t perform that action at this time.
0 commit comments