Skip to content

Commit

Permalink
prod
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Mar 10, 2017
1 parent 0085601 commit 2ec00d8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
18 changes: 12 additions & 6 deletions dist/react-bootstrap-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -1432,6 +1432,7 @@ return /******/ (function(modules) { // webpackBootstrap
children = _props3.children;

var enableShowOnlySelected = selectRow && selectRow.showOnlySelected;
var print = typeof this.props.options.printToolBar === 'undefined' ? true : this.props.options.printToolBar;
if (enableShowOnlySelected || insertRow || deleteRow || search || exportCSV || this.props.options.searchPanel || this.props.options.btnGroup || this.props.options.toolBar) {
var columns = void 0;
if (Array.isArray(children)) {
Expand Down Expand Up @@ -1461,7 +1462,7 @@ return /******/ (function(modules) { // webpackBootstrap
}
return _react2.default.createElement(
'div',
{ className: 'react-bs-table-tool-bar' },
{ className: 'react-bs-table-tool-bar ' + (print ? '' : 'hidden-print') },
_react2.default.createElement(_ToolBar2.default, {
ref: 'toolbar',
defaultSearch: this.props.options.defaultSearch,
Expand Down Expand Up @@ -1775,7 +1776,8 @@ return /******/ (function(modules) { // webpackBootstrap
expandRowBgColor: _react.PropTypes.string,
expandBy: _react.PropTypes.string,
expanding: _react.PropTypes.array,
beforeShowError: _react.PropTypes.func
beforeShowError: _react.PropTypes.func,
printToolBar: _react.PropTypes.bool
}),
fetchInfo: _react.PropTypes.shape({
dataTotalSize: _react.PropTypes.number
Expand Down Expand Up @@ -1917,7 +1919,8 @@ return /******/ (function(modules) { // webpackBootstrap
expandRowBgColor: undefined,
expandBy: _Const2.default.EXPAND_BY_ROW,
expanding: [],
beforeShowError: undefined
beforeShowError: undefined,
printToolBar: true
},
fetchInfo: {
dataTotalSize: 0
Expand Down Expand Up @@ -2291,7 +2294,9 @@ return /******/ (function(modules) { // webpackBootstrap
}, {
key: 'renderSelectRowHeader',
value: function renderSelectRowHeader(rowCount, rowKey) {
if (this.props.customComponent) {
if (this.props.hideSelectColumn) {
return null;
} else if (this.props.customComponent) {
var CustomComponent = this.props.customComponent;
return _react2.default.createElement(
_SelectRowHeaderColumn2.default,
Expand Down Expand Up @@ -2716,8 +2721,9 @@ return /******/ (function(modules) { // webpackBootstrap
}
return result;
}, this);

if (tableRows.length === 0 && !this.props.withoutNoDataText) {
tableRows.push(_react2.default.createElement(
tableRows = [_react2.default.createElement(
_TableRow2.default,
{ key: '##table-empty##' },
_react2.default.createElement(
Expand All @@ -2727,7 +2733,7 @@ return /******/ (function(modules) { // webpackBootstrap
className: 'react-bs-table-no-data' },
this.props.noDataText || _Const2.default.NO_DATA_TEXT
)
));
)];
}

return _react2.default.createElement(
Expand Down
2 changes: 1 addition & 1 deletion dist/react-bootstrap-table.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 2ec00d8

Please sign in to comment.