@hw-component/table 0.0.5-beta-v19 → 0.0.6-beta-v2

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/Table.js CHANGED
@@ -100,7 +100,9 @@ var Table = (function (_ref) {
100
100
  searchSpan: searchSpan,
101
101
  headerStyle: headerStyle
102
102
  }), jsx(Body, _objectSpread({
103
- tableStyle: tableStyle,
103
+ tableStyle: hideHeader ? _objectSpread({
104
+ paddingTop: 24
105
+ }, tableStyle) : tableStyle,
104
106
  paginationStyle: paginationStyle,
105
107
  rowKey: rowKey
106
108
  }, props))]
package/lib/Table.js CHANGED
@@ -103,7 +103,9 @@ var Table = (function (_ref) {
103
103
  searchSpan: searchSpan,
104
104
  headerStyle: headerStyle
105
105
  }), jsxRuntime.jsx(index$1.default, _objectSpread({
106
- tableStyle: tableStyle,
106
+ tableStyle: hideHeader ? _objectSpread({
107
+ paddingTop: 24
108
+ }, tableStyle) : tableStyle,
107
109
  paginationStyle: paginationStyle,
108
110
  rowKey: rowKey
109
111
  }, props))]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/table",
3
- "version": "0.0.5-beta-v19",
3
+ "version": "0.0.6-beta-v2",
4
4
  "description": "基于antd二次开发table组件",
5
5
  "keywords": [
6
6
  "table"
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@ant-design/pro-table": "2.70.0",
33
- "@hw-component/form": "0.0.9-beta-v12",
33
+ "@hw-component/form": "0.0.9-beta-v16",
34
34
  "ahooks": "2.10.9",
35
35
  "antd": "4.20.7",
36
36
  "core-js": "3",
@@ -68,7 +68,7 @@ export default ({
68
68
  <Header searchSpan={searchSpan} headerStyle={headerStyle} />
69
69
  )}
70
70
  <Body
71
- tableStyle={tableStyle}
71
+ tableStyle={hideHeader?{paddingTop:24,...tableStyle}:tableStyle}
72
72
  paginationStyle={paginationStyle}
73
73
  rowKey={rowKey}
74
74
  {...props}