test cambio de asignacion state
This commit is contained in:
parent
2e486233b5
commit
e66bc1d059
@ -364,7 +364,7 @@ var PivotTableUI = function (_React$PureComponent2) {
|
||||
attrValues: {},
|
||||
materializedInput: [],
|
||||
hideConfiguration: false,
|
||||
showSubtotales: props.showSubtotales,
|
||||
showSubtotales: false,
|
||||
headerClass: '',
|
||||
stylesHeaders: {}
|
||||
};
|
||||
@ -462,7 +462,8 @@ var PivotTableUI = function (_React$PureComponent2) {
|
||||
var newState = {
|
||||
data: nextData,
|
||||
attrValues: {},
|
||||
materializedInput: []
|
||||
materializedInput: [],
|
||||
showSubtotales: this.props.showSubtotales
|
||||
};
|
||||
var recordsProcessed = 0;
|
||||
_Utilities.PivotData.forEachRecord(newState.data, this.props.derivedAttributes, function (record) {
|
||||
@ -741,7 +742,7 @@ var PivotTableUI = function (_React$PureComponent2) {
|
||||
return !_this8.props.hiddenAttributes.includes(e) && !_this8.props.hiddenFromDragDrop.includes(e);
|
||||
});
|
||||
var toggleSubTotales = function toggleSubTotales() {
|
||||
var _showSubt = Boolean(_this8.props.showSubtotales);
|
||||
var _showSubt = _this8.props.showSubtotales === true ? true : false;
|
||||
_this8.propUpdater('showSubtotales')(!_showSubt);
|
||||
_this8.setState({ showSubtotales: !_showSubt });
|
||||
};
|
||||
@ -759,7 +760,7 @@ var PivotTableUI = function (_React$PureComponent2) {
|
||||
),
|
||||
_react2.default.createElement('input', {
|
||||
type: 'checkbox',
|
||||
checked: _this8.state.showSubtotales,
|
||||
checked: _this8.state.showSubtotales === true,
|
||||
className: 'via-checkbox h-5 w-5 cursor-pointer',
|
||||
onChange: function onChange() {
|
||||
toggleSubTotales();
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "v-react-pivottable",
|
||||
"version": "0.11.65",
|
||||
"version": "0.11.66",
|
||||
"description": "A React-based pivot table",
|
||||
"main": "PivotTableUI.js",
|
||||
"files": [
|
||||
|
Loading…
Reference in New Issue
Block a user