Skip to content

Commit 21d6000

Browse files
committed
prod
1 parent e9c3a90 commit 21d6000

File tree

3 files changed

+52
-14
lines changed

3 files changed

+52
-14
lines changed

dist/react-bootstrap-table.js

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,14 @@ return /******/ (function(modules) { // webpackBootstrap
558558
sizePerPage: sizePerPage,
559559
reset: false
560560
});
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+
}
561569
}
562570

563571
// If setting the expanded rows is being handled externally
@@ -809,6 +817,14 @@ return /******/ (function(modules) { // webpackBootstrap
809817
reset: false
810818
});
811819
}
820+
}, {
821+
key: 'cleanSort',
822+
value: function cleanSort() {
823+
this.store.cleanSortInfo();
824+
this.setState({
825+
reset: false
826+
});
827+
}
812828
}, {
813829
key: '__handleSort__REACT_HOT_LOADER__',
814830
value: function __handleSort__REACT_HOT_LOADER__(order, sortField) {
@@ -4193,13 +4209,20 @@ return /******/ (function(modules) { // webpackBootstrap
41934209
if (Array.isArray(values)) {
41944210
(function () {
41954211
// 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+
}
41994222
return _react2.default.createElement(
42004223
'option',
4201-
{ key: 'option' + i, value: d },
4202-
rowValue
4224+
{ key: 'option' + i, value: value },
4225+
text
42034226
);
42044227
});
42054228
})();
@@ -14647,6 +14670,16 @@ return /******/ (function(modules) { // webpackBootstrap
1464714670
this.pageObj = {};
1464814671
this.selected = [];
1464914672
}
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+
}
1465014683
}, {
1465114684
key: 'setData',
1465214685
value: function setData(data) {
@@ -14717,6 +14750,11 @@ return /******/ (function(modules) { // webpackBootstrap
1471714750
}
1471814751
}
1471914752
}
14753+
}, {
14754+
key: 'cleanSortInfo',
14755+
value: function cleanSortInfo() {
14756+
this.sortList = [];
14757+
}
1472014758
}, {
1472114759
key: 'setSelectedRowKey',
1472214760
value: function setSelectedRowKey(selectedRowKeys) {

dist/react-bootstrap-table.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)