agregar console.log para debuggear cunción de aplicar formato
This commit is contained in:
parent
43e3abb8c7
commit
1914edfe7a
@ -257,11 +257,16 @@ function makeRenderer() {
|
||||
};
|
||||
|
||||
var getFormatedValue = function getFormatedValue(aggregator, rowKey, colKey) {
|
||||
console.log('--------------getFormatedValue-----------------');
|
||||
var valToFormat = aggregator.value();
|
||||
console.log('valToFormat', valToFormat);
|
||||
var resultValue = aggregator.format(valToFormat);
|
||||
var keyColumnaCalculo = _this2.props.vals != null && _this2.props.vals.length ? _this2.props.vals[0] : null;
|
||||
console.log('keyColumnaCalculo', keyColumnaCalculo);
|
||||
console.log('this.props.headersDefinitions', _this2.props.headersDefinitions);
|
||||
if (keyColumnaCalculo != null && _this2.props.headersDefinitions != null && _this2.props.headersDefinitions.length) {
|
||||
var _definition = _this2.props.headersDefinitions[keyColumnaCalculo];
|
||||
console.log('_definition', _definition);
|
||||
if (_definition != null && _definition.value != null) {
|
||||
if (_definition.value.startsWith('count_') || _definition.value.startsWith('countd_')) {
|
||||
resultValue = _this2.props.functions != null ? _this2.props.functions.formatedValue(valToFormat, '0,0', 'number', true, '') : resultValue;
|
||||
@ -369,7 +374,7 @@ function makeRenderer() {
|
||||
onClick: getClickHandler && getClickHandler(aggregator.value(), rowKey, colKey),
|
||||
style: valueCellColors(rowKey, colKey, aggregator.value())
|
||||
},
|
||||
aggregator.format(aggregator.value()),
|
||||
!(j < 10) && aggregator.format(aggregator.value()),
|
||||
j < 10 && getFormatedValue(aggregator, rowKey, colKey)
|
||||
);
|
||||
}),
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "v-react-pivottable",
|
||||
"version": "0.11.24",
|
||||
"version": "0.11.25",
|
||||
"description": "A React-based pivot table",
|
||||
"main": "PivotTableUI.js",
|
||||
"files": [
|
||||
|
Loading…
Reference in New Issue
Block a user