@@ -110,8 +110,8 @@ return /******/ (function(modules) { // webpackBootstrap
110
110
if ( false ) {
111
111
// When the styles change, update the <style> tags
112
112
if ( ! content . locals ) {
113
- module . hot . accept ( "!!./.. /../node_modules/.0.25.0@ css-loader/index.js!./.. /../node_modules/.10.3.0@ vue-loader/lib/style-rewriter.js?id=data-v-739f43f1!./.. /../node_modules/.4.1.1@ sass-loader/index.js!./.. /../node_modules/.10.3.0@ vue-loader/lib/selector.js?type=styles&index=0!./DataTables.vue" , function ( ) {
114
- var newContent = require ( "!!./.. /../node_modules/.0.25.0@ css-loader/index.js!./.. /../node_modules/.10.3.0@ vue-loader/lib/style-rewriter.js?id=data-v-739f43f1!./.. /../node_modules/.4.1.1@ sass-loader/index.js!./.. /../node_modules/.10.3.0@ vue-loader/lib/selector.js?type=styles&index=0!./DataTables.vue" ) ;
113
+ module . hot . accept ( "!!.. /../node_modules/css-loader/index.js!.. /../node_modules/vue-loader/lib/style-rewriter.js?id=data-v-739f43f1!.. /../node_modules/sass-loader/index.js!.. /../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./DataTables.vue" , function ( ) {
114
+ var newContent = require ( "!!.. /../node_modules/css-loader/index.js!.. /../node_modules/vue-loader/lib/style-rewriter.js?id=data-v-739f43f1!.. /../node_modules/sass-loader/index.js!.. /../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./DataTables.vue" ) ;
115
115
if ( typeof newContent === 'string' ) newContent = [ [ module . id , newContent , '' ] ] ;
116
116
update ( newContent ) ;
117
117
} ) ;
@@ -601,8 +601,6 @@ return /******/ (function(modules) { // webpackBootstrap
601
601
return this . colNotRowClick . concat ( [ 'innerRowActions' ] ) ;
602
602
} ,
603
603
tableData : function tableData ( ) {
604
- var _this = this ;
605
-
606
604
var newData = this . data . slice ( ) ;
607
605
608
606
var doFilter = function doFilter ( defaultFilterFunction , filter , value ) {
@@ -646,24 +644,22 @@ return /******/ (function(modules) { // webpackBootstrap
646
644
} ) ;
647
645
648
646
if ( this . sortData . order ) {
649
- ( function ( ) {
650
- var order = _this . sortData . order ;
651
- var prop = _this . sortData . prop ;
652
- var isDescending = order === 'descending' ;
653
-
654
- newData . sort ( function ( a , b ) {
655
- if ( a [ prop ] > b [ prop ] ) {
656
- return 1 ;
657
- } else if ( a [ prop ] < b [ prop ] ) {
658
- return - 1 ;
659
- } else {
660
- return 0 ;
661
- }
662
- } ) ;
663
- if ( isDescending ) {
664
- newData . reverse ( ) ;
647
+ var order = this . sortData . order ;
648
+ var prop = this . sortData . prop ;
649
+ var isDescending = order === 'descending' ;
650
+
651
+ newData . sort ( function ( a , b ) {
652
+ if ( a [ prop ] > b [ prop ] ) {
653
+ return 1 ;
654
+ } else if ( a [ prop ] < b [ prop ] ) {
655
+ return - 1 ;
656
+ } else {
657
+ return 0 ;
665
658
}
666
- } ) ( ) ;
659
+ } ) ;
660
+ if ( isDescending ) {
661
+ newData . reverse ( ) ;
662
+ }
667
663
}
668
664
669
665
this . $emit ( 'filtered-data' , newData ) ;
@@ -723,7 +719,7 @@ return /******/ (function(modules) { // webpackBootstrap
723
719
this . checkedFilters = checkedFilters ;
724
720
} ,
725
721
handleRowClick : function handleRowClick ( row , event , column ) {
726
- if ( this . innerColNotRowClick . indexOf ( column . property ) === - 1 ) {
722
+ if ( column && this . innerColNotRowClick . indexOf ( column . property ) === - 1 ) {
727
723
this . $emit ( 'row-click' , row ) ;
728
724
}
729
725
} ,
@@ -1387,8 +1383,8 @@ return /******/ (function(modules) { // webpackBootstrap
1387
1383
if ( false ) {
1388
1384
// When the styles change, update the <style> tags
1389
1385
if ( ! content . locals ) {
1390
- module . hot . accept ( "!!./.. /../node_modules/.0.25.0@ css-loader/index.js!./.. /../node_modules/.10.3.0@ vue-loader/lib/style-rewriter.js?id=data-v-5ef578ba!./.. /../node_modules/.4.1.1@ sass-loader/index.js!./.. /../node_modules/.10.3.0@ vue-loader/lib/selector.js?type=styles&index=0!./ScCheckboxGroup.vue" , function ( ) {
1391
- var newContent = require ( "!!./.. /../node_modules/.0.25.0@ css-loader/index.js!./.. /../node_modules/.10.3.0@ vue-loader/lib/style-rewriter.js?id=data-v-5ef578ba!./.. /../node_modules/.4.1.1@ sass-loader/index.js!./.. /../node_modules/.10.3.0@ vue-loader/lib/selector.js?type=styles&index=0!./ScCheckboxGroup.vue" ) ;
1386
+ module . hot . accept ( "!!.. /../node_modules/css-loader/index.js!.. /../node_modules/vue-loader/lib/style-rewriter.js?id=data-v-5ef578ba!.. /../node_modules/sass-loader/index.js!.. /../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./ScCheckboxGroup.vue" , function ( ) {
1387
+ var newContent = require ( "!!.. /../node_modules/css-loader/index.js!.. /../node_modules/vue-loader/lib/style-rewriter.js?id=data-v-5ef578ba!.. /../node_modules/sass-loader/index.js!.. /../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./ScCheckboxGroup.vue" ) ;
1392
1388
if ( typeof newContent === 'string' ) newContent = [ [ module . id , newContent , '' ] ] ;
1393
1389
update ( newContent ) ;
1394
1390
} ) ;
0 commit comments