@@ -558,6 +558,14 @@ return /******/ (function(modules) { // webpackBootstrap
558
558
sizePerPage: sizePerPage,
559
559
reset: false
560
560
});
561
+
562
+ if (this.store.isSearching && options.afterSearch) {
563
+ options.afterSearch(this.store.searchText, this.store.getDataIgnoringPagination());
564
+ }
565
+
566
+ if (this.store.isFiltering && options.afterColumnFilter) {
567
+ options.afterColumnFilter(this.store.filterObj, this.store.getDataIgnoringPagination());
568
+ }
561
569
}
562
570
563
571
// If setting the expanded rows is being handled externally
@@ -809,6 +817,14 @@ return /******/ (function(modules) { // webpackBootstrap
809
817
reset: false
810
818
});
811
819
}
820
+ }, {
821
+ key: 'cleanSort',
822
+ value: function cleanSort() {
823
+ this.store.cleanSortInfo();
824
+ this.setState({
825
+ reset: false
826
+ });
827
+ }
812
828
}, {
813
829
key: '__handleSort__REACT_HOT_LOADER__',
814
830
value: function __handleSort__REACT_HOT_LOADER__(order, sortField) {
@@ -4193,13 +4209,20 @@ return /******/ (function(modules) { // webpackBootstrap
4193
4209
if (Array.isArray(values)) {
4194
4210
(function () {
4195
4211
// only can use arrray data for options
4196
- var rowValue = void 0;
4197
- options = values.map(function (d, i) {
4198
- rowValue = format ? format(d) : d;
4212
+ var text = void 0;
4213
+ var value = void 0;
4214
+ options = values.map(function (option, i) {
4215
+ if ((typeof option === 'undefined' ? 'undefined' : _typeof(option)) === 'object') {
4216
+ text = option.text;
4217
+ value = option.value;
4218
+ } else {
4219
+ text = format ? format(option) : option;
4220
+ value = option;
4221
+ }
4199
4222
return _react2.default.createElement(
4200
4223
'option',
4201
- { key: 'option' + i, value: d },
4202
- rowValue
4224
+ { key: 'option' + i, value: value },
4225
+ text
4203
4226
);
4204
4227
});
4205
4228
})();
@@ -14647,6 +14670,16 @@ return /******/ (function(modules) { // webpackBootstrap
14647
14670
this.pageObj = {};
14648
14671
this.selected = [];
14649
14672
}
14673
+ }, {
14674
+ key: 'isSearching',
14675
+ value: function isSearching() {
14676
+ return this.searchText !== null;
14677
+ }
14678
+ }, {
14679
+ key: 'isFiltering',
14680
+ value: function isFiltering() {
14681
+ return this.filterObj !== null;
14682
+ }
14650
14683
}, {
14651
14684
key: 'setData',
14652
14685
value: function setData(data) {
@@ -14717,6 +14750,11 @@ return /******/ (function(modules) { // webpackBootstrap
14717
14750
}
14718
14751
}
14719
14752
}
14753
+ }, {
14754
+ key: 'cleanSortInfo',
14755
+ value: function cleanSortInfo() {
14756
+ this.sortList = [];
14757
+ }
14720
14758
}, {
14721
14759
key: 'setSelectedRowKey',
14722
14760
value: function setSelectedRowKey(selectedRowKeys) {
0 commit comments