Skip to content

Commit ed9bb3c

Browse files
committed
prod
1 parent 29ffbdf commit ed9bb3c

File tree

3 files changed

+32
-16
lines changed

3 files changed

+32
-16
lines changed

dist/react-bootstrap-table.js

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9883,6 +9883,10 @@ return /******/ (function(modules) { // webpackBootstrap
98839883

98849884
var _react2 = _interopRequireDefault(_react);
98859885

9886+
var _classnames = __webpack_require__(3);
9887+
9888+
var _classnames2 = _interopRequireDefault(_classnames);
9889+
98869890
var _PageButton = __webpack_require__(181);
98879891

98889892
var _PageButton2 = _interopRequireDefault(_PageButton);
@@ -9965,10 +9969,8 @@ return /******/ (function(modules) { // webpackBootstrap
99659969
}
99669970
}, {
99679971
key: '__changeSizePerPage__REACT_HOT_LOADER__',
9968-
value: function __changeSizePerPage__REACT_HOT_LOADER__(e) {
9969-
e.preventDefault();
9970-
9971-
var selectSize = parseInt(e.currentTarget.getAttribute('data-page'), 10);
9972+
value: function __changeSizePerPage__REACT_HOT_LOADER__(pageNum) {
9973+
var selectSize = typeof pageNum === 'string' ? parseInt(pageNum, 10) : pageNum;
99729974
var currPage = this.props.currPage;
99739975

99749976
if (selectSize !== this.props.sizePerPage) {
@@ -10004,7 +10006,7 @@ return /******/ (function(modules) { // webpackBootstrap
1000410006

1000510007
this.totalPages = Math.ceil(dataSize / sizePerPage);
1000610008
this.lastPage = this.props.pageStartIndex + this.totalPages - 1;
10007-
var pageBtns = this.makePage();
10009+
var pageBtns = this.makePage(typeof paginationPanel === 'function');
1000810010
var dropdown = this.makeDropDown();
1000910011

1001010012
var offset = Math.abs(_Const2.default.PAGE_START_INDEX - pageStartIndex);
@@ -10032,6 +10034,7 @@ return /******/ (function(modules) { // webpackBootstrap
1003210034
sizePerPage: sizePerPage,
1003310035
sizePerPageList: sizePerPageList,
1003410036
pageStartIndex: pageStartIndex,
10037+
changePage: this.changePage,
1003510038
toggleDropDown: this.toggleDropDown,
1003610039
changeSizePerPage: this.changeSizePerPage,
1003710040
components: {
@@ -10104,7 +10107,10 @@ return /******/ (function(modules) { // webpackBootstrap
1010410107
{ role: 'menuitem',
1010510108
tabIndex: '-1', href: '#',
1010610109
'data-page': pageNum,
10107-
onClick: _this2.changeSizePerPage },
10110+
onClick: function onClick(e) {
10111+
e.preventDefault();
10112+
_this2.changeSizePerPage(pageNum);
10113+
} },
1010810114
pageText
1010910115
)
1011010116
);
@@ -10124,6 +10130,8 @@ return /******/ (function(modules) { // webpackBootstrap
1012410130
value: function makePage() {
1012510131
var _this3 = this;
1012610132

10133+
var isCustomPagingPanel = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
10134+
1012710135
var pages = this.getPages();
1012810136
var isStart = function isStart(page, _ref) {
1012910137
var currPage = _ref.currPage,
@@ -10155,9 +10163,10 @@ return /******/ (function(modules) { // webpackBootstrap
1015510163
page
1015610164
);
1015710165
}, this);
10166+
var classname = (0, _classnames2.default)(isCustomPagingPanel ? null : 'react-bootstrap-table-page-btns-ul', 'pagination');
1015810167
return _react2.default.createElement(
1015910168
'ul',
10160-
{ className: 'react-bootstrap-table-page-btns-ul pagination' },
10169+
{ className: classname },
1016110170
pageBtns
1016210171
);
1016310172
}
@@ -10608,7 +10617,9 @@ return /******/ (function(modules) { // webpackBootstrap
1060810617

1060910618
var delay = this.props.searchDelayTime ? this.props.searchDelayTime : 0;
1061010619
this.debounceCallback = this.handleDebounce(function () {
10611-
_this2.props.onSearch(_this2.refs.seachInput.getValue());
10620+
var seachInput = _this2.refs.seachInput;
10621+
10622+
seachInput && _this2.props.onSearch(seachInput.getValue());
1061210623
}, delay);
1061310624
}
1061410625
}, {
@@ -10619,8 +10630,10 @@ return /******/ (function(modules) { // webpackBootstrap
1061910630
}, {
1062010631
key: 'setSearchInput',
1062110632
value: function setSearchInput(text) {
10622-
if (this.refs.seachInput.value !== text) {
10623-
this.refs.seachInput.value = text;
10633+
var seachInput = this.refs.seachInput;
10634+
10635+
if (seachInput && seachInput.value !== text) {
10636+
seachInput.value = text;
1062410637
}
1062510638
}
1062610639
}, {
@@ -10753,7 +10766,9 @@ return /******/ (function(modules) { // webpackBootstrap
1075310766
}, {
1075410767
key: '__handleClearBtnClick__REACT_HOT_LOADER__',
1075510768
value: function __handleClearBtnClick__REACT_HOT_LOADER__() {
10756-
this.refs.seachInput.setValue('');
10769+
var seachInput = this.refs.seachInput;
10770+
10771+
seachInput && seachInput.setValue('');
1075710772
this.props.onSearch('');
1075810773
}
1075910774
}, {
@@ -13511,7 +13526,8 @@ return /******/ (function(modules) { // webpackBootstrap
1351113526
type: 'text',
1351213527
defaultValue: defaultValue,
1351313528
placeholder: placeholder || SearchField.defaultProps.placeholder,
13514-
onKeyUp: onKeyUp
13529+
onKeyUp: onKeyUp,
13530+
style: { zIndex: 0 }
1351513531
}, rest));
1351613532
}
1351713533
}]);

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)