@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 +2 -7
- package/es/render/Text.d.ts +1 -0
- package/lib/Table.js +2 -7
- package/lib/render/Text.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/Table.tsx +3 -5
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(
|
|
123
|
-
|
|
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,
|
package/es/render/Text.d.ts
CHANGED
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(
|
|
126
|
-
|
|
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,
|
package/lib/render/Text.d.ts
CHANGED
package/package.json
CHANGED
package/src/components/Table.tsx
CHANGED
|
@@ -88,10 +88,8 @@ export default ({
|
|
|
88
88
|
labelWidth,
|
|
89
89
|
}}
|
|
90
90
|
>
|
|
91
|
-
<
|
|
92
|
-
|
|
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
|
-
</
|
|
112
|
+
</div>
|
|
115
113
|
</HTableContext.Provider>
|
|
116
114
|
);
|
|
117
115
|
};
|