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',
|
key: 'matchesFilter',
|
||||||
value: function matchesFilter(x) {
|
value: function matchesFilter(x) {
|
||||||
|
console.log(' matchesFilter x ', x);
|
||||||
return x.toLowerCase().trim().includes(this.state.filterText.toLowerCase().trim());
|
return x.toLowerCase().trim().includes(this.state.filterText.toLowerCase().trim());
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
@ -86,7 +87,7 @@ var DraggableAttribute = exports.DraggableAttribute = function (_React$Component
|
|||||||
var _this2 = this;
|
var _this2 = this;
|
||||||
|
|
||||||
// const showMenu = Object.keys(this.props.attrValues).length < this.props.menuLimit;
|
// 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 values = Object.keys(this.props.attrValues);
|
||||||
var shown = values.filter(this.matchesFilter.bind(this)).sort(this.props.sorter);
|
var shown = values.filter(this.matchesFilter.bind(this)).sort(this.props.sorter);
|
||||||
var truncatedShown = 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',
|
key: 'componentDidUpdate',
|
||||||
value: function componentDidUpdate() {
|
value: function componentDidUpdate() {
|
||||||
|
console.log(' componentDidUpdate ');
|
||||||
this.materializeInput(this.props.data);
|
this.materializeInput(this.props.data);
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
key: 'materializeInput',
|
key: 'materializeInput',
|
||||||
value: function materializeInput(nextData) {
|
value: function materializeInput(nextData) {
|
||||||
|
console.log(' materializeInput nextData ', nextData);
|
||||||
if (this.state.data === nextData) {
|
if (this.state.data === nextData) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
@ -384,6 +384,8 @@ function makeRenderer() {
|
|||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
colKeys.map(function (colKey, j) {
|
colKeys.map(function (colKey, j) {
|
||||||
|
console.log(' rowKey ', rowKey);
|
||||||
|
console.log(' colKey ', colKey);
|
||||||
var aggregator = pivotData.getAggregator(rowKey, colKey);
|
var aggregator = pivotData.getAggregator(rowKey, colKey);
|
||||||
return _react2.default.createElement(
|
return _react2.default.createElement(
|
||||||
'td',
|
'td',
|
||||||
|
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.32",
|
"version": "0.11.33",
|
||||||
"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