File tree Expand file tree Collapse file tree 4 files changed +8
-1
lines changed Expand file tree Collapse file tree 4 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,7 @@ class BootstrapTable extends Component {
200
200
export : column . props . export ,
201
201
expandable : column . props . expandable ,
202
202
attrs : column . props . tdAttr ,
203
+ editAttrs : column . props . editTdAttr ,
203
204
style : column . props . tdStyle
204
205
} ;
205
206
Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ class TableBody extends Component {
73
73
completeEdit = { this . handleCompleteEditCell }
74
74
// add by bluespring for column editor customize
75
75
editable = { editable }
76
+ attrs = { column . editAttrs }
76
77
customEditor = { column . customEditor }
77
78
format = { column . format ? format : false }
78
79
key = { i }
Original file line number Diff line number Diff line change @@ -189,7 +189,8 @@ class TableEditColumn extends Component {
189
189
customEditor,
190
190
isFocus,
191
191
customStyleWithNav,
192
- row
192
+ row,
193
+ attrs
193
194
} = this . props ;
194
195
const { shakeEditor } = this . state ;
195
196
const attr = {
@@ -241,6 +242,7 @@ class TableEditColumn extends Component {
241
242
242
243
return (
243
244
< td ref = 'td'
245
+ { ...attrs }
244
246
style = { style }
245
247
className = { className }
246
248
onClick = { this . handleClick } >
@@ -275,6 +277,7 @@ TableEditColumn.propTypes = {
275
277
className : PropTypes . any ,
276
278
beforeShowError : PropTypes . func ,
277
279
isFocus : PropTypes . bool ,
280
+ attrs : PropTypes . object ,
278
281
customStyleWithNav : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . object ] )
279
282
} ;
280
283
Original file line number Diff line number Diff line change @@ -269,6 +269,7 @@ TableHeaderColumn.propTypes = {
269
269
export : PropTypes . bool ,
270
270
expandable : PropTypes . bool ,
271
271
tdAttr : PropTypes . object ,
272
+ editTdAttr : PropTypes . object ,
272
273
tdStyle : PropTypes . object ,
273
274
thStyle : PropTypes . object ,
274
275
keyValidator : PropTypes . bool ,
@@ -305,6 +306,7 @@ TableHeaderColumn.defaultProps = {
305
306
sortIndicator : true ,
306
307
expandable : true ,
307
308
tdAttr : undefined ,
309
+ editTdAttr : undefined ,
308
310
tdStyle : undefined ,
309
311
thStyle : undefined ,
310
312
keyValidator : false ,
You can’t perform that action at this time.
0 commit comments