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) {
|
if (horizUnused) {
|
||||||
return _react2.default.createElement(
|
return _react2.default.createElement(
|
||||||
'table',
|
'table',
|
||||||
@ -647,13 +665,13 @@ var PivotTableUI = function (_React$PureComponent2) {
|
|||||||
{ onClick: function onClick() {
|
{ onClick: function onClick() {
|
||||||
return _this8.setState({ openDropdown: false });
|
return _this8.setState({ openDropdown: false });
|
||||||
} },
|
} },
|
||||||
this.props.hideConfiguration !== false && _react2.default.createElement(
|
_react2.default.createElement(
|
||||||
'tr',
|
'tr',
|
||||||
null,
|
null,
|
||||||
rendererCell,
|
rendererCell,
|
||||||
unusedAttrsCell
|
unusedAttrsCell
|
||||||
),
|
),
|
||||||
this.props.hideConfiguration !== false && _react2.default.createElement(
|
_react2.default.createElement(
|
||||||
'tr',
|
'tr',
|
||||||
null,
|
null,
|
||||||
aggregatorCell,
|
aggregatorCell,
|
||||||
@ -662,7 +680,7 @@ var PivotTableUI = function (_React$PureComponent2) {
|
|||||||
_react2.default.createElement(
|
_react2.default.createElement(
|
||||||
'tr',
|
'tr',
|
||||||
null,
|
null,
|
||||||
this.props.hideConfiguration !== false && { rowAttrsCell: rowAttrsCell },
|
rowAttrsCell,
|
||||||
outputCell
|
outputCell
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -677,7 +695,7 @@ var PivotTableUI = function (_React$PureComponent2) {
|
|||||||
{ onClick: function onClick() {
|
{ onClick: function onClick() {
|
||||||
return _this8.setState({ openDropdown: false });
|
return _this8.setState({ openDropdown: false });
|
||||||
} },
|
} },
|
||||||
this.props.hideConfiguration !== false && _react2.default.createElement(
|
_react2.default.createElement(
|
||||||
'tr',
|
'tr',
|
||||||
null,
|
null,
|
||||||
rendererCell,
|
rendererCell,
|
||||||
@ -687,8 +705,8 @@ var PivotTableUI = function (_React$PureComponent2) {
|
|||||||
_react2.default.createElement(
|
_react2.default.createElement(
|
||||||
'tr',
|
'tr',
|
||||||
null,
|
null,
|
||||||
this.props.hideConfiguration !== false && { unusedAttrsCell: unusedAttrsCell },
|
unusedAttrsCell,
|
||||||
this.props.hideConfiguration !== false && { rowAttrsCell: rowAttrsCell },
|
rowAttrsCell,
|
||||||
outputCell
|
outputCell
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "v-react-pivottable",
|
"name": "v-react-pivottable",
|
||||||
"version": "0.11.4",
|
"version": "0.11.5",
|
||||||
"description": "A React-based pivot table",
|
"description": "A React-based pivot table",
|
||||||
"main": "PivotTableUI.js",
|
"main": "PivotTableUI.js",
|
||||||
"files": [
|
"files": [
|
||||||
|
Loading…
Reference in New Issue
Block a user