dtable-ui-component 0.3.10 → 0.3.11
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.
|
@@ -140,19 +140,11 @@ var FormulaFormatter = /*#__PURE__*/function (_React$Component) {
|
|
|
140
140
|
if (Array.isArray(value)) {
|
|
141
141
|
value = getFormulaArrayValue(value);
|
|
142
142
|
|
|
143
|
-
if (array_type === CellType.
|
|
144
|
-
value = value.map(function (item) {
|
|
145
|
-
return item.replace('T', ' ').replace('Z', '');
|
|
146
|
-
});
|
|
147
|
-
} else if (array_type === CellType.LONG_TEXT) {
|
|
143
|
+
if (array_type === CellType.LONG_TEXT) {
|
|
148
144
|
value = value.map(function (item) {
|
|
149
145
|
return convertValueToDtableLongTextValue(item);
|
|
150
146
|
});
|
|
151
147
|
}
|
|
152
|
-
} else {
|
|
153
|
-
if (resultType === FORMULA_RESULT_TYPE.DATE) {
|
|
154
|
-
value = value.replace('T', ' ').replace('Z', '');
|
|
155
|
-
}
|
|
156
148
|
}
|
|
157
149
|
|
|
158
150
|
if (resultType === FORMULA_RESULT_TYPE.ARRAY) {
|
|
@@ -143,19 +143,11 @@ var RowExpandFormulaFormatter = /*#__PURE__*/function (_React$Component) {
|
|
|
143
143
|
if (Array.isArray(value)) {
|
|
144
144
|
value = getFormulaArrayValue(value);
|
|
145
145
|
|
|
146
|
-
if (array_type === CellType.
|
|
147
|
-
value = value.map(function (item) {
|
|
148
|
-
return item.replace('T', ' ').replace('Z', '');
|
|
149
|
-
});
|
|
150
|
-
} else if (array_type === CellType.LONG_TEXT) {
|
|
146
|
+
if (array_type === CellType.LONG_TEXT) {
|
|
151
147
|
value = value.map(function (item) {
|
|
152
148
|
return convertValueToDtableLongTextValue(item);
|
|
153
149
|
});
|
|
154
150
|
}
|
|
155
|
-
} else {
|
|
156
|
-
if (result_type === FORMULA_RESULT_TYPE.DATE && typeof value === 'string') {
|
|
157
|
-
value = value.replace('T', ' ').replace('Z', '');
|
|
158
|
-
}
|
|
159
151
|
}
|
|
160
152
|
|
|
161
153
|
if (result_type === FORMULA_RESULT_TYPE.ARRAY) {
|
|
@@ -82,7 +82,7 @@ var RowExpandLinkFormatter = /*#__PURE__*/function (_Component) {
|
|
|
82
82
|
|
|
83
83
|
return /*#__PURE__*/React.createElement(DateFormatter, {
|
|
84
84
|
key: "link-".concat(displayColumnType, "-").concat(index),
|
|
85
|
-
value: value
|
|
85
|
+
value: value,
|
|
86
86
|
format: format,
|
|
87
87
|
containerClassName: "row-expand-link-item"
|
|
88
88
|
});
|