ebaoferc 0.0.3-beta.4 → 0.0.3-beta.5

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.
@@ -73,9 +73,10 @@ export default function (props) {
73
73
  rowKey: "id",
74
74
  rowClassName: function rowClassName(record, index, indent) {
75
75
  var _props$rowClassName;
76
- var gapClass = index % 2 === 1 ? 'styledTableBgColor' : '';
77
76
  var origin = typeof (props === null || props === void 0 ? void 0 : props.rowClassName) === 'string' ? props === null || props === void 0 ? void 0 : props.rowClassName : props === null || props === void 0 || (_props$rowClassName = props.rowClassName) === null || _props$rowClassName === void 0 ? void 0 : _props$rowClassName.call(props, record, index, indent);
78
- return cls(gapClass, origin);
77
+ return cls(['styled-table-row', {
78
+ 'styled-table-zebra-stripe': index % 2 === 1
79
+ }], origin);
79
80
  },
80
81
  scroll: {
81
82
  x: 'max-content'
@@ -1,11 +1,17 @@
1
- .styledTableBgColor {
2
- background: #f9f9f9;
3
-
1
+ .styled-table-row {
4
2
  td {
5
- background: #f9f9f9 !important;
3
+ padding: 7.5px 16px !important;
6
4
  }
7
5
 
8
- :global(.ant-table-cell-row-hover) {
9
- background: #f0f0f0 !important;
6
+ &:hover {
7
+ td {
8
+ background-color: #f0f0f0 !important;
9
+ }
10
+ }
11
+ }
12
+
13
+ .styled-table-zebra-stripe {
14
+ td {
15
+ background: #f9f9f9 !important;
10
16
  }
11
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ebaoferc",
3
- "version": "0.0.3-beta.4",
3
+ "version": "0.0.3-beta.5",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",