@lemon-fe/components 1.5.7-alpha.3 → 1.5.7-alpha.4

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.
@@ -17,7 +17,7 @@ declare const Editors: {
17
17
  Text: React.ForwardRefExoticComponent<import("ag-grid-community").ICellEditorParams<any, any, any> & import("..").TextEditorParams<any> & React.RefAttributes<import("ag-grid-react").ICellEditorReactComp>>;
18
18
  Date: React.ForwardRefExoticComponent<import("ag-grid-community").ICellEditorParams<any, any, any> & import("..").DateEditorParams<any> & React.RefAttributes<import("ag-grid-react").ICellEditorReactComp>>;
19
19
  Number: React.ForwardRefExoticComponent<import("ag-grid-community").ICellEditorParams<any, any, any> & import("..").NumberEditorParams<any> & React.RefAttributes<import("ag-grid-react").ICellEditorReactComp>>;
20
- Select: React.ForwardRefExoticComponent<import("ag-grid-community").ICellEditorParams<any, any, any> & Pick<import("antd").SelectProps<any, import("antd/lib/select").BaseOptionType>, "disabled" | "allowClear" | "mode" | "showSearch" | "virtual" | "optionFilterProp" | "options" | "listHeight"> & {
20
+ Select: React.ForwardRefExoticComponent<import("ag-grid-community").ICellEditorParams<any, any, any> & Pick<import("antd").SelectProps<any, import("antd/lib/select").BaseOptionType>, "disabled" | "mode" | "virtual" | "allowClear" | "showSearch" | "optionFilterProp" | "options" | "listHeight"> & {
21
21
  fieldNames?: {
22
22
  label: string;
23
23
  value: string;
@@ -1021,26 +1021,25 @@ var InternalDataGrid = /*#__PURE__*/function (_Component) {
1021
1021
  }, {
1022
1022
  key: "getFullColumnDef",
1023
1023
  value: function getFullColumnDef(col) {
1024
- if (col.type === undefined) {
1025
- return col;
1026
- }
1027
1024
  var _this$props7 = this.props,
1028
1025
  mColumnTypes = _this$props7.columnTypes,
1029
1026
  mDefaultColDef = _this$props7.defaultColDef;
1030
- var colTypes = this.getMemoizedColumnTypes(mColumnTypes);
1031
1027
  var result = {};
1032
- var types;
1033
- if (typeof col.type === 'string') {
1034
- types = [col.type];
1035
- } else {
1036
- types = col.type;
1037
- }
1038
- types.forEach(function (type) {
1039
- var colType = colTypes[type];
1040
- if (colType !== undefined) {
1041
- Object.assign(result, colType);
1028
+ if (col.type !== undefined) {
1029
+ var colTypes = this.getMemoizedColumnTypes(mColumnTypes);
1030
+ var types;
1031
+ if (typeof col.type === 'string') {
1032
+ types = [col.type];
1033
+ } else {
1034
+ types = col.type;
1042
1035
  }
1043
- });
1036
+ types.forEach(function (type) {
1037
+ var colType = colTypes[type];
1038
+ if (colType !== undefined) {
1039
+ Object.assign(result, colType);
1040
+ }
1041
+ });
1042
+ }
1044
1043
  Object.assign(result, mDefaultColDef);
1045
1044
  return _objectSpread(_objectSpread({}, result), col);
1046
1045
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/components",
3
- "version": "1.5.7-alpha.3",
3
+ "version": "1.5.7-alpha.4",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "MIT",
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "registry": "https://registry.npmjs.org"
60
60
  },
61
- "gitHead": "2ac91e3697f76af6883a124f78461e3e119da69f"
61
+ "gitHead": "90aec9c179f56f47c778bf38e663ccc7fedb2889"
62
62
  }