@@ -190,9 +190,9 @@ export class TableDataStore {
190
190
let filterVal = filterObj [ key ] . toLowerCase ( ) ;
191
191
let targetVal = row [ key ] ;
192
192
if ( this . colInfos [ key ] ) {
193
- const { format, filterFormatted } = this . colInfos [ key ] ;
193
+ const { format, filterFormatted, formatExtraData } = this . colInfos [ key ] ;
194
194
if ( filterFormatted && format ) {
195
- targetVal = format ( row [ key ] , row ) ;
195
+ targetVal = format ( row [ key ] , row , formatExtraData ) ;
196
196
}
197
197
}
198
198
if ( targetVal . toString ( ) . toLowerCase ( ) . indexOf ( filterVal ) == - 1 ) {
@@ -228,10 +228,10 @@ export class TableDataStore {
228
228
searchTextArray . forEach ( text => {
229
229
let filterVal = text . toLowerCase ( ) ;
230
230
let targetVal = row [ key ] ;
231
- const { format, filterFormatted } = this . colInfos [ key ] ;
231
+ const { format, filterFormatted, formatExtraData } = this . colInfos [ key ] ;
232
232
233
233
if ( filterFormatted && format ) {
234
- targetVal = format ( targetVal , row ) ;
234
+ targetVal = format ( targetVal , row , formatExtraData ) ;
235
235
}
236
236
if ( targetVal . toString ( ) . toLowerCase ( ) . indexOf ( filterVal ) !== - 1 ) {
237
237
valid = true ;
0 commit comments