@lemon-fe/components 1.5.7-alpha.1 → 1.5.7-alpha.2
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.
- package/es/data-grid/index.js +2 -1
- package/package.json +2 -2
package/es/data-grid/index.js
CHANGED
|
@@ -114,6 +114,7 @@ var defaultColDef = {
|
|
|
114
114
|
initialWidth: 140,
|
|
115
115
|
suppressMenu: true
|
|
116
116
|
};
|
|
117
|
+
var ESTIMATE_INITIAL_COLUMN_MAX_WIDTH = 400;
|
|
117
118
|
var defaultComponents = {
|
|
118
119
|
agColumnHeader: HeaderRenderer,
|
|
119
120
|
agColumnGroupHeader: HeaderRenderer,
|
|
@@ -1094,7 +1095,7 @@ var InternalDataGrid = /*#__PURE__*/function (_Component) {
|
|
|
1094
1095
|
opts.headerName = title.toString();
|
|
1095
1096
|
}
|
|
1096
1097
|
if (enableEstimateInitialColumnWidth && opts.headerName && !keepInitialWidthWhenEstimate) {
|
|
1097
|
-
opts.initialWidth = getTextWidth(opts.headerName) * 14 + 36 + (opts.headerComponentParams !== undefined ? 24 : 0);
|
|
1098
|
+
opts.initialWidth = Math.min(getTextWidth(opts.headerName) * 14 + 36 + (opts.headerComponentParams !== undefined ? 24 : 0), ESTIMATE_INITIAL_COLUMN_MAX_WIDTH);
|
|
1098
1099
|
}
|
|
1099
1100
|
|
|
1100
1101
|
// render
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lemon-fe/components",
|
|
3
|
-
"version": "1.5.7-alpha.
|
|
3
|
+
"version": "1.5.7-alpha.2",
|
|
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": "
|
|
61
|
+
"gitHead": "f4344479e739f297b7901b3ed3f3d91e45b5074a"
|
|
62
62
|
}
|