remover validacion de length porque no es array, remover console.log}
This commit is contained in:
parent
017b23d2c3
commit
12aa058e95
@ -264,16 +264,11 @@ function makeRenderer() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var getFormatedValue = function getFormatedValue(aggregator, rowKey, colKey) {
|
var getFormatedValue = function getFormatedValue(aggregator, rowKey, colKey) {
|
||||||
console.log('--------------getFormatedValue-----------------');
|
|
||||||
var valToFormat = aggregator.value();
|
var valToFormat = aggregator.value();
|
||||||
console.log('valToFormat', valToFormat);
|
|
||||||
var resultValue = aggregator.format(valToFormat);
|
var resultValue = aggregator.format(valToFormat);
|
||||||
var keyColumnaCalculo = isNotNullish(_this2.props.vals) && _this2.props.vals.length ? _this2.props.vals[0] : null;
|
var keyColumnaCalculo = isNotNullish(_this2.props.vals) && _this2.props.vals.length ? _this2.props.vals[0] : null;
|
||||||
console.log('keyColumnaCalculo', keyColumnaCalculo);
|
if (isNotNullish(keyColumnaCalculo) && isNotNullish(_this2.props.headersDefinitions)) {
|
||||||
console.log('this.props.headersDefinitions', _this2.props.headersDefinitions);
|
|
||||||
if (isNotNullish(keyColumnaCalculo) && isNotNullish(_this2.props.headersDefinitions) && _this2.props.headersDefinitions.length) {
|
|
||||||
var _definition = _this2.props.headersDefinitions[keyColumnaCalculo];
|
var _definition = _this2.props.headersDefinitions[keyColumnaCalculo];
|
||||||
console.log('_definition', _definition);
|
|
||||||
if (isNotNullish(_definition) && isNotNullish(_definition.value)) {
|
if (isNotNullish(_definition) && isNotNullish(_definition.value)) {
|
||||||
if (_definition.value.startsWith('count_') || _definition.value.startsWith('countd_')) {
|
if (_definition.value.startsWith('count_') || _definition.value.startsWith('countd_')) {
|
||||||
resultValue = isNotNullish(_this2.props.functions) ? _this2.props.functions.formatedValue(valToFormat, '0,0', 'number', true, '') : resultValue;
|
resultValue = isNotNullish(_this2.props.functions) ? _this2.props.functions.formatedValue(valToFormat, '0,0', 'number', true, '') : resultValue;
|
||||||
|
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.26",
|
"version": "0.11.27",
|
||||||
"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