@yibozhang/pro-table 16.0.5 → 16.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yibozhang/pro-table",
3
- "version": "16.0.5",
3
+ "version": "16.0.6",
4
4
  "description": "基于 Angular11 和 ng-zorro-antd 的高级表格组件库",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -29,7 +29,7 @@
29
29
  &.ant-select-allow-clear .ant-select-selector {
30
30
  padding-right: 0 !important;
31
31
  }
32
- .ant-select-selection-item{
32
+ .ant-select-selection-item {
33
33
  margin-right: 2px !important;
34
34
  padding-left: 4px !important;
35
35
  }
@@ -44,29 +44,20 @@
44
44
  .ant-table-row {
45
45
  height: 36px !important;
46
46
  }
47
- .ant-table-tbody > .ant-table-custom-row-even {
47
+ .ant-table-tbody > tr.ant-table-custom-row-even > td {
48
48
  background-color: @custom-table-row-even-bg;
49
49
  }
50
- .ant-table-tbody > .ant-table-custom-row-odd {
50
+ .ant-table-tbody > tr.ant-table-custom-row-odd > td {
51
51
  background-color: @custom-table-row-odd-bg;
52
52
  }
53
- .ant-table-tbody > .ant-table-custom-row-selected {
53
+ .ant-table-tbody > tr.ant-table-custom-row-selected > td {
54
54
  background-color: @table-row-hover-bg;
55
55
  }
56
56
 
57
- .ant-table-tbody > .ant-table-row:nth-child(even) {
58
- .ant-table-cell-fix-left,
59
- .ant-table-cell-fix-right {
60
- background-color: @custom-table-row-odd-bg;
61
- }
62
- }
63
- // 偶数行 hover 时同步覆盖固定列背景色,保持与行 hover 一致
64
- .ant-table-tbody > .ant-table-row:nth-child(even):hover {
65
- .ant-table-cell-fix-left,
66
- .ant-table-cell-fix-right {
67
- background-color: @table-row-hover-bg;
68
- }
57
+ .ant-table-tbody > tr:hover > td {
58
+ background-color: @table-row-hover-bg;
69
59
  }
60
+
70
61
  .ant-table-tbody > tr > td:not([class*="nz-disable-td"]) {
71
62
  padding: @custom-table-padding-vertical @custom-table-padding-horizontal !important;
72
63
  }
@@ -194,7 +185,7 @@
194
185
  height: 23px;
195
186
  line-height: 23px;
196
187
  }
197
- .ant-form-item{
188
+ .ant-form-item {
198
189
  margin-bottom: 8px !important;
199
190
  }
200
191
  }