agregar console.logs para revisar cuando se actualizan las opciones de filtros
This commit is contained in:
parent
8cda3c1fbf
commit
2bfb927ddc
@ -70,6 +70,7 @@ var DraggableAttribute = exports.DraggableAttribute = function (_React$Component
|
||||
}, {
|
||||
key: 'matchesFilter',
|
||||
value: function matchesFilter(x) {
|
||||
console.log(' matchesFilter x ', x);
|
||||
return x.toLowerCase().trim().includes(this.state.filterText.toLowerCase().trim());
|
||||
}
|
||||
}, {
|
||||
@ -86,7 +87,7 @@ var DraggableAttribute = exports.DraggableAttribute = function (_React$Component
|
||||
var _this2 = this;
|
||||
|
||||
// const showMenu = Object.keys(this.props.attrValues).length < this.props.menuLimit;
|
||||
|
||||
console.log(' this.props.attrValues ', this.props.attrValues);
|
||||
var values = Object.keys(this.props.attrValues);
|
||||
var shown = values.filter(this.matchesFilter.bind(this)).sort(this.props.sorter);
|
||||
var truncatedShown = values.filter(this.matchesFilter.bind(this)).sort(this.props.sorter);
|
||||
@ -355,11 +356,13 @@ var PivotTableUI = function (_React$PureComponent2) {
|
||||
}, {
|
||||
key: 'componentDidUpdate',
|
||||
value: function componentDidUpdate() {
|
||||
console.log(' componentDidUpdate ');
|
||||
this.materializeInput(this.props.data);
|
||||
}
|
||||
}, {
|
||||
key: 'materializeInput',
|
||||
value: function materializeInput(nextData) {
|
||||
console.log(' materializeInput nextData ', nextData);
|
||||
if (this.state.data === nextData) {
|
||||
return;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -384,6 +384,8 @@ function makeRenderer() {
|
||||
);
|
||||
}),
|
||||
colKeys.map(function (colKey, j) {
|
||||
console.log(' rowKey ', rowKey);
|
||||
console.log(' colKey ', colKey);
|
||||
var aggregator = pivotData.getAggregator(rowKey, colKey);
|
||||
return _react2.default.createElement(
|
||||
'td',
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "v-react-pivottable",
|
||||
"version": "0.11.32",
|
||||
"version": "0.11.33",
|
||||
"description": "A React-based pivot table",
|
||||
"main": "PivotTableUI.js",
|
||||
"files": [
|
||||
|
Loading…
Reference in New Issue
Block a user