提交 4f3327a7 编写于 作者: C Catouse

* fix valueOperator in column not work sometimes.

上级 ccfa596e
......@@ -903,13 +903,12 @@
type = 'cell';
value = config.data && config.data[that.options.dataItemIsArray ? colIndex : col.name];
}
if (rowIndex > 0 && config.valueType) {
var valueOperator = config.valueOperator || that.options.valueOperator;
if (valueOperator) {
var typeOperator = valueOperator[config.valueType];
if (typeOperator && typeOperator.getter) {
value = typeOperator.getter(value, cell, that);
}
if (rowIndex > 0) {
var optionsValueOperator = that.options.valueOperator;
var valueType = config.valueType;
var valueOperator = config.valueOperator || (optionsValueOperator && valueType ? optionsValueOperator[valueType] : null);
if (valueOperator && valueOperator.getter) {
value = valueOperator.getter(value, cell, that);
}
}
var cell = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册