@giteeteam/apps-team-components 1.0.6 → 1.0.7

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.
@@ -13,7 +13,7 @@ const reduceObjArr = ({ arr, keys }) => {
13
13
  return accumulatorStr + ',' + nextValue;
14
14
  }, undefined);
15
15
  };
16
- const transferItem = item => {
16
+ const transferItem = (item, readonly) => {
17
17
  var _a, _b, _c;
18
18
  if (typeof item === 'string' || typeof item === 'number') {
19
19
  return item;
@@ -31,9 +31,9 @@ const transferItem = item => {
31
31
  else if ((_c = item[0]) === null || _c === void 0 ? void 0 : _c.value) {
32
32
  return reduceObjArr({ arr: item, keys: ['value'] });
33
33
  }
34
- return _jsx(EmptyField, { readonly: true });
34
+ return _jsx(EmptyField, { readonly: readonly });
35
35
  }
36
- return _jsx(EmptyField, { readonly: true });
36
+ return _jsx(EmptyField, { readonly: readonly });
37
37
  };
38
38
  const EMPTY_ARRAY = [];
39
39
  const defaultValue = {};
@@ -59,7 +59,7 @@ const BaseTableCell = ({ className, cellData, column, rowData, readComponents =
59
59
  if (ReadComponent) {
60
60
  return (_jsx("div", { className: cls, onMouseOver: handleMouseOver, children: _jsx(ReadComponent, { readonly: readonly, value: cellData, ...column.property, userData: column.data, options: ((_c = column.data) === null || _c === void 0 ? void 0 : _c.customData) || EMPTY_ARRAY, itemValues: rowData }) }));
61
61
  }
62
- const text = transferItem(cellData !== null && cellData !== void 0 ? cellData : rowData[column.dataIndex]);
62
+ const text = transferItem(cellData !== null && cellData !== void 0 ? cellData : rowData[column.dataIndex], readonly);
63
63
  return _jsx("div", { className: cls, children: text });
64
64
  };
65
65
  export const TableCell = props => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giteeteam/apps-team-components",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",