dtable-ui-component 6.0.88 → 6.0.89

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.
@@ -16,6 +16,7 @@ function DepartmentSingleSelectFormatter(props) {
16
16
  containerClassName,
17
17
  tip
18
18
  } = props;
19
+ console.log('DepartmentSingleSelectFormatter', props);
19
20
  if (!value || !Array.isArray(departments)) return null;
20
21
  const deletedTip = tip || (0, _lang.getLocale)('Deleted_department');
21
22
  const department = departments.find(department => department.id === value);
@@ -91,7 +91,8 @@ class RowExpandFormulaFormatter extends _react.default.Component {
91
91
  const {
92
92
  value,
93
93
  column,
94
- collaborators
94
+ collaborators,
95
+ departments
95
96
  } = this.props;
96
97
  const {
97
98
  array_type,
@@ -106,7 +107,8 @@ class RowExpandFormulaFormatter extends _react.default.Component {
106
107
  column: {
107
108
  data: array_data
108
109
  },
109
- readOnly: true
110
+ readOnly: true,
111
+ departments
110
112
  };
111
113
  if ((0, _utils.isArrayFormatColumn)(array_type)) {
112
114
  formatterProps.value = value;
@@ -127,8 +129,6 @@ class RowExpandFormulaFormatter extends _react.default.Component {
127
129
  formulaEmail = cellValue[0];
128
130
  formulaEmail = formulaEmail ? formulaEmail.trim() : '';
129
131
  }
130
- console.log('Formatter', Formatter);
131
- console.log('formatterProps', formatterProps);
132
132
  return this.renderBorder( /*#__PURE__*/_react.default.createElement("div", {
133
133
  className: "dtable-ui formula-formatter multiple"
134
134
  }, cellValue.map((v, index) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.88",
3
+ "version": "6.0.89",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "4.0.2",