@appcorp/app-corp-vista 0.3.51 → 0.3.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -128,9 +128,18 @@ var VistaTableBodyV1 = function (_a) {
|
|
|
128
128
|
else if (Array.isArray(key) &&
|
|
129
129
|
componentType === vista_table_type_1.VISTA_TABLE_CELL_TYPE.MULTIPLE_TEXT_LINES) {
|
|
130
130
|
if (expression) {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
if (Array.isArray(expression)) {
|
|
132
|
+
computedValue = key.map(function (k, index) {
|
|
133
|
+
return expression[index]
|
|
134
|
+
? expression[index](row[k], row)
|
|
135
|
+
: row[k];
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
computedValue = key.map(function (k) {
|
|
140
|
+
return expression(row[k], row);
|
|
141
|
+
});
|
|
142
|
+
}
|
|
134
143
|
}
|
|
135
144
|
else {
|
|
136
145
|
computedValue = key.map(function (k) { return row[k]; });
|