@lemon-fe/components 1.4.4 → 1.4.6

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.
@@ -1754,7 +1754,6 @@ var InternalDataGrid = /*#__PURE__*/function (_Component) {
1754
1754
  maintainColumnOrder: true,
1755
1755
  suppressCsvExport: true,
1756
1756
  suppressExcelExport: true,
1757
- enableCellTextSelection: true,
1758
1757
  noRowsOverlayComponent: this.NoRowsOverlay,
1759
1758
  getMainMenuItems: this.getMainMenuItems,
1760
1759
  rowBuffer: 20,
@@ -418,7 +418,6 @@
418
418
  box-sizing: border-box;
419
419
  width: 100%;
420
420
  height: ~'min(var(--ag-internal-calculated-line-height), var(--ag-internal-padded-row-height))';
421
- padding: 0 2px;
422
421
  overflow: hidden;
423
422
  background-color: transparent;
424
423
  border-radius: 4px;
@@ -442,8 +441,13 @@
442
441
  content: '';
443
442
  }
444
443
 
445
- .ag-cell-inline-editing & {
446
- box-shadow: 0 0 0 2px ~'var(--@{ant-prefix}-primary-5)' inset;
444
+ .ag-cell-focus&-cell::after {
445
+ border-color: ~'var(--@{ant-prefix}-primary-5)';
446
+ }
447
+
448
+ .ag-cell-focus & {
449
+ padding: 2px;
450
+ line-height: ~'calc(min(var(--ag-internal-calculated-line-height), var(--ag-internal-padded-row-height)) - 4px)';
447
451
  }
448
452
 
449
453
  &-text {
@@ -588,6 +592,11 @@
588
592
  background-color: transparent;
589
593
  }
590
594
 
595
+ .ag-cell-wrapper {
596
+ // fix:enableCellTextSelect 启用后文本省略不起作用的问题
597
+ min-width: 0;
598
+ }
599
+
591
600
  .ag-ltr
592
601
  .ag-context-menu-open
593
602
  .ag-cell-focus:not(.ag-cell-range-selected):not(.ag-cell-inline-editing),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/components",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
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": "7682801e725b1204d58cdb2ffde7b70657982496"
61
+ "gitHead": "06d482ae76eb0ad7101dde6076ac379184298ec5"
62
62
  }