@hw-component/table 1.9.14 → 1.9.15

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
@@ -17,7 +17,6 @@ import Body from './HTableBody/index.js';
17
17
  import useCurrentTable from './hooks/useCurrentTable.js';
18
18
  import useRowObj from './hooks/useRowObj.js';
19
19
  import { HTableContext } from './context.js';
20
- import { Space } from 'antd';
21
20
  import useReq from './hooks/useReq.js';
22
21
  import useDispatch from './hooks/useDispatch.js';
23
22
  import { useState } from 'react';
@@ -119,12 +118,8 @@ var Table = (function (_ref) {
119
118
  hideLabel: hideLabel,
120
119
  labelWidth: labelWidth
121
120
  },
122
- children: jsxs(Space, {
123
- direction: "vertical",
124
- size: 0,
125
- style: _objectSpread({
126
- width: "100%"
127
- }, style),
121
+ children: jsxs("div", {
122
+ style: _objectSpread({}, style),
128
123
  className: _concatInstanceProperty(_context = "".concat(contentClassName, " ")).call(_context, className),
129
124
  children: [!hideHeader && jsx(Header, {
130
125
  searchSpan: searchSpan,
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
package/lib/Table.js CHANGED
@@ -20,7 +20,6 @@ var index$2 = require('./HTableBody/index.js');
20
20
  var useCurrentTable = require('./hooks/useCurrentTable.js');
21
21
  var useRowObj = require('./hooks/useRowObj.js');
22
22
  var context = require('./context.js');
23
- var antd = require('antd');
24
23
  var useReq = require('./hooks/useReq.js');
25
24
  var useDispatch = require('./hooks/useDispatch.js');
26
25
  var React = require('react');
@@ -122,12 +121,8 @@ var Table = (function (_ref) {
122
121
  hideLabel: hideLabel,
123
122
  labelWidth: labelWidth
124
123
  },
125
- children: jsxRuntime.jsxs(antd.Space, {
126
- direction: "vertical",
127
- size: 0,
128
- style: _objectSpread({
129
- width: "100%"
130
- }, style),
124
+ children: jsxRuntime.jsxs("div", {
125
+ style: _objectSpread({}, style),
131
126
  className: _concatInstanceProperty(_context = "".concat(contentClassName, " ")).call(_context, className),
132
127
  children: [!hideHeader && jsxRuntime.jsx(index$1.default, {
133
128
  searchSpan: searchSpan,
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/table",
3
- "version": "1.9.14",
3
+ "version": "1.9.15",
4
4
  "description": "基于antd二次开发table组件",
5
5
  "keywords": [
6
6
  "table"
@@ -88,10 +88,8 @@ export default ({
88
88
  labelWidth,
89
89
  }}
90
90
  >
91
- <Space
92
- direction={"vertical"}
93
- size={0}
94
- style={{ width: "100%" ,...style}}
91
+ <div
92
+ style={{ ...style}}
95
93
  className={`${contentClassName} ${className}`}
96
94
  >
97
95
  {!hideHeader && (
@@ -111,7 +109,7 @@ export default ({
111
109
  rowKey={rowKey}
112
110
  {...props}
113
111
  />
114
- </Space>
112
+ </div>
115
113
  </HTableContext.Provider>
116
114
  );
117
115
  };