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 {
194194 */
195195 get ( column ) {
196196 if ( typeof column === 'string' ) {
197- return this . obj [ column ] ;
197+ return this . obj [ this . table . columns . indexOf ( column ) ] ;
198198 } else {
199199 return this . arr [ column ] ;
200200 }
@@ -241,7 +241,7 @@ class TableRow {
241241 getNum ( column ) {
242242 let ret ;
243243 if ( typeof column === 'string' ) {
244- ret = parseFloat ( this . obj [ column ] ) ;
244+ ret = parseFloat ( this . obj [ this . table . columns . indexOf ( column ) ] ) ;
245245 } else {
246246 ret = parseFloat ( this . arr [ column ] ) ;
247247 }
@@ -295,7 +295,7 @@ class TableRow {
295295 */
296296 getString ( column ) {
297297 if ( typeof column === 'string' ) {
298- return this . obj [ column ] . toString ( ) ;
298+ return this . obj [ this . table . columns . indexOf ( column ) ] . toString ( ) ;
299299 } else {
300300 return this . arr [ column ] . toString ( ) ;
301301 }
You can’t perform that action at this time.
0 commit comments