dtable-ui-component 6.0.89 → 6.0.91
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.
|
@@ -102,14 +102,7 @@ class RowExpandFormulaFormatter extends _react.default.Component {
|
|
|
102
102
|
return null;
|
|
103
103
|
}
|
|
104
104
|
const Formatter = _baseFormatterConfig.default[array_type];
|
|
105
|
-
|
|
106
|
-
let formatterProps = {
|
|
107
|
-
column: {
|
|
108
|
-
data: array_data
|
|
109
|
-
},
|
|
110
|
-
readOnly: true,
|
|
111
|
-
departments
|
|
112
|
-
};
|
|
105
|
+
let formatterProps = this.getFormatterProps(array_type, array_data, collaborators, departments);
|
|
113
106
|
if ((0, _utils.isArrayFormatColumn)(array_type)) {
|
|
114
107
|
formatterProps.value = value;
|
|
115
108
|
return this.renderBorder(this.createColumnFormatter(Formatter, formatterProps));
|
|
@@ -151,7 +144,7 @@ class RowExpandFormulaFormatter extends _react.default.Component {
|
|
|
151
144
|
}), this.createColumnFormatter(Formatter, formatterProps));
|
|
152
145
|
})));
|
|
153
146
|
};
|
|
154
|
-
this.getFormatterProps = (array_type, array_data, collaborators) => {
|
|
147
|
+
this.getFormatterProps = (array_type, array_data, collaborators, departments) => {
|
|
155
148
|
switch (array_type) {
|
|
156
149
|
case _dtableUtils.CellType.DURATION:
|
|
157
150
|
{
|
|
@@ -164,6 +157,16 @@ class RowExpandFormulaFormatter extends _react.default.Component {
|
|
|
164
157
|
}
|
|
165
158
|
case _dtableUtils.CellType.NUMBER:
|
|
166
159
|
case _dtableUtils.CellType.RATE:
|
|
160
|
+
case _dtableUtils.CellType.DEPARTMENT_SINGLE_SELECT:
|
|
161
|
+
{
|
|
162
|
+
return {
|
|
163
|
+
column: {
|
|
164
|
+
data: array_data
|
|
165
|
+
},
|
|
166
|
+
readOnly: true,
|
|
167
|
+
departments
|
|
168
|
+
};
|
|
169
|
+
}
|
|
167
170
|
case _dtableUtils.CellType.GEOLOCATION:
|
|
168
171
|
{
|
|
169
172
|
return {
|
|
@@ -235,7 +235,8 @@ class RowExpandFormatter extends _react.default.Component {
|
|
|
235
235
|
value: cellValue,
|
|
236
236
|
column: column,
|
|
237
237
|
collaborators: collaborators,
|
|
238
|
-
containerClassName: containerClassName
|
|
238
|
+
containerClassName: containerClassName,
|
|
239
|
+
departments: this.props.departments
|
|
239
240
|
});
|
|
240
241
|
}
|
|
241
242
|
case _dtableUtils.CellType.LINK:
|