fix, refactor aplicacion de prop, realizar un solo return
This commit is contained in:
parent
4fa8152357
commit
a1b02fd5ad
@ -638,6 +638,24 @@ var PivotTableUI = function (_React$PureComponent2) {
|
||||
}))
|
||||
);
|
||||
|
||||
if (this.props.hideConfiguration === true) {
|
||||
return _react2.default.createElement(
|
||||
'table',
|
||||
{ className: 'pvtUi' },
|
||||
_react2.default.createElement(
|
||||
'tbody',
|
||||
{ onClick: function onClick() {
|
||||
return _this8.setState({ openDropdown: false });
|
||||
} },
|
||||
_react2.default.createElement(
|
||||
'tr',
|
||||
null,
|
||||
outputCell
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
if (horizUnused) {
|
||||
return _react2.default.createElement(
|
||||
'table',
|
||||
@ -647,13 +665,13 @@ var PivotTableUI = function (_React$PureComponent2) {
|
||||
{ onClick: function onClick() {
|
||||
return _this8.setState({ openDropdown: false });
|
||||
} },
|
||||
this.props.hideConfiguration !== false && _react2.default.createElement(
|
||||
_react2.default.createElement(
|
||||
'tr',
|
||||
null,
|
||||
rendererCell,
|
||||
unusedAttrsCell
|
||||
),
|
||||
this.props.hideConfiguration !== false && _react2.default.createElement(
|
||||
_react2.default.createElement(
|
||||
'tr',
|
||||
null,
|
||||
aggregatorCell,
|
||||
@ -662,7 +680,7 @@ var PivotTableUI = function (_React$PureComponent2) {
|
||||
_react2.default.createElement(
|
||||
'tr',
|
||||
null,
|
||||
this.props.hideConfiguration !== false && { rowAttrsCell: rowAttrsCell },
|
||||
rowAttrsCell,
|
||||
outputCell
|
||||
)
|
||||
)
|
||||
@ -677,7 +695,7 @@ var PivotTableUI = function (_React$PureComponent2) {
|
||||
{ onClick: function onClick() {
|
||||
return _this8.setState({ openDropdown: false });
|
||||
} },
|
||||
this.props.hideConfiguration !== false && _react2.default.createElement(
|
||||
_react2.default.createElement(
|
||||
'tr',
|
||||
null,
|
||||
rendererCell,
|
||||
@ -687,8 +705,8 @@ var PivotTableUI = function (_React$PureComponent2) {
|
||||
_react2.default.createElement(
|
||||
'tr',
|
||||
null,
|
||||
this.props.hideConfiguration !== false && { unusedAttrsCell: unusedAttrsCell },
|
||||
this.props.hideConfiguration !== false && { rowAttrsCell: rowAttrsCell },
|
||||
unusedAttrsCell,
|
||||
rowAttrsCell,
|
||||
outputCell
|
||||
)
|
||||
)
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "v-react-pivottable",
|
||||
"version": "0.11.4",
|
||||
"version": "0.11.5",
|
||||
"description": "A React-based pivot table",
|
||||
"main": "PivotTableUI.js",
|
||||
"files": [
|
||||
|
Loading…
Reference in New Issue
Block a user