File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ class TableRow {
194
194
*/
195
195
get ( column ) {
196
196
if ( typeof column === 'string' ) {
197
- return this . obj [ column ] ;
197
+ return this . obj [ this . table . columns . indexOf ( column ) ] ;
198
198
} else {
199
199
return this . arr [ column ] ;
200
200
}
@@ -241,7 +241,7 @@ class TableRow {
241
241
getNum ( column ) {
242
242
let ret ;
243
243
if ( typeof column === 'string' ) {
244
- ret = parseFloat ( this . obj [ column ] ) ;
244
+ ret = parseFloat ( this . obj [ this . table . columns . indexOf ( column ) ] ) ;
245
245
} else {
246
246
ret = parseFloat ( this . arr [ column ] ) ;
247
247
}
@@ -295,7 +295,7 @@ class TableRow {
295
295
*/
296
296
getString ( column ) {
297
297
if ( typeof column === 'string' ) {
298
- return this . obj [ column ] . toString ( ) ;
298
+ return this . obj [ this . table . columns . indexOf ( column ) ] . toString ( ) ;
299
299
} else {
300
300
return this . arr [ column ] . toString ( ) ;
301
301
}
You can’t perform that action at this time.
0 commit comments