@hw-component/table 0.0.5-beta-v13 → 0.0.5-beta-v18
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/HTableBody/RowSelection.js +0 -1
- package/es/ModalTable/index.d.ts +1 -1
- package/es/ModalTable/index.js +7 -1
- package/lib/HTableBody/RowSelection.js +0 -1
- package/lib/ModalTable/index.d.ts +1 -1
- package/lib/ModalTable/index.js +7 -1
- package/package.json +1 -1
- package/src/components/HTableBody/RowSelection.tsx +0 -1
- package/src/components/ModalTable/index.tsx +2 -0
package/es/ModalTable/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ModalTableProps } from "../modal";
|
|
2
|
-
declare const _default: ({ configData: configDataProps, request: requestProps, tableProps, dialogTable, visible, onCancel, ...props }: ModalTableProps) => JSX.Element;
|
|
2
|
+
declare const _default: ({ configData: configDataProps, request: requestProps, tableProps, dialogTable, visible, onCancel, bodyStyle, ...props }: ModalTableProps) => JSX.Element;
|
|
3
3
|
export default _default;
|
package/es/ModalTable/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { Modal } from 'antd';
|
|
|
14
14
|
import Table from '../Table.js';
|
|
15
15
|
import { useVisible, useTableProps, useCurrentTable } from './hooks.js';
|
|
16
16
|
|
|
17
|
-
var _excluded = ["configData", "request", "tableProps", "dialogTable", "visible", "onCancel"];
|
|
17
|
+
var _excluded = ["configData", "request", "tableProps", "dialogTable", "visible", "onCancel", "bodyStyle"];
|
|
18
18
|
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
19
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20
20
|
var index = (function (_ref) {
|
|
@@ -25,6 +25,8 @@ var index = (function (_ref) {
|
|
|
25
25
|
_ref$visible = _ref.visible,
|
|
26
26
|
visible = _ref$visible === void 0 ? false : _ref$visible,
|
|
27
27
|
_onCancel = _ref.onCancel,
|
|
28
|
+
_ref$bodyStyle = _ref.bodyStyle,
|
|
29
|
+
bodyStyle = _ref$bodyStyle === void 0 ? {} : _ref$bodyStyle,
|
|
28
30
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
29
31
|
var _useVisible = useVisible(visible),
|
|
30
32
|
modalVisible = _useVisible.modalVisible,
|
|
@@ -79,6 +81,10 @@ var index = (function (_ref) {
|
|
|
79
81
|
},
|
|
80
82
|
destroyOnClose: true,
|
|
81
83
|
title: title,
|
|
84
|
+
bodyStyle: _objectSpread({
|
|
85
|
+
padding: 0,
|
|
86
|
+
paddingBottom: 24
|
|
87
|
+
}, bodyStyle),
|
|
82
88
|
children: jsx(Table, _objectSpread(_objectSpread({}, tableProps), {}, {
|
|
83
89
|
configData: configData || [],
|
|
84
90
|
table: currentTable,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ModalTableProps } from "../modal";
|
|
2
|
-
declare const _default: ({ configData: configDataProps, request: requestProps, tableProps, dialogTable, visible, onCancel, ...props }: ModalTableProps) => JSX.Element;
|
|
2
|
+
declare const _default: ({ configData: configDataProps, request: requestProps, tableProps, dialogTable, visible, onCancel, bodyStyle, ...props }: ModalTableProps) => JSX.Element;
|
|
3
3
|
export default _default;
|
package/lib/ModalTable/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var antd = require('antd');
|
|
|
17
17
|
var Table = require('../Table.js');
|
|
18
18
|
var hooks = require('./hooks.js');
|
|
19
19
|
|
|
20
|
-
var _excluded = ["configData", "request", "tableProps", "dialogTable", "visible", "onCancel"];
|
|
20
|
+
var _excluded = ["configData", "request", "tableProps", "dialogTable", "visible", "onCancel", "bodyStyle"];
|
|
21
21
|
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22
22
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23
23
|
var index = (function (_ref) {
|
|
@@ -28,6 +28,8 @@ var index = (function (_ref) {
|
|
|
28
28
|
_ref$visible = _ref.visible,
|
|
29
29
|
visible = _ref$visible === void 0 ? false : _ref$visible,
|
|
30
30
|
_onCancel = _ref.onCancel,
|
|
31
|
+
_ref$bodyStyle = _ref.bodyStyle,
|
|
32
|
+
bodyStyle = _ref$bodyStyle === void 0 ? {} : _ref$bodyStyle,
|
|
31
33
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
32
34
|
var _useVisible = hooks.useVisible(visible),
|
|
33
35
|
modalVisible = _useVisible.modalVisible,
|
|
@@ -82,6 +84,10 @@ var index = (function (_ref) {
|
|
|
82
84
|
},
|
|
83
85
|
destroyOnClose: true,
|
|
84
86
|
title: title,
|
|
87
|
+
bodyStyle: _objectSpread({
|
|
88
|
+
padding: 0,
|
|
89
|
+
paddingBottom: 24
|
|
90
|
+
}, bodyStyle),
|
|
85
91
|
children: jsxRuntime.jsx(Table.default, _objectSpread(_objectSpread({}, tableProps), {}, {
|
|
86
92
|
configData: configData || [],
|
|
87
93
|
table: currentTable,
|
package/package.json
CHANGED
|
@@ -86,7 +86,6 @@ export const RowSelectionTitle = ({
|
|
|
86
86
|
return <MenuEle onClick={change} items={configItems} />;
|
|
87
87
|
};
|
|
88
88
|
const disabled = dataLen === 0;
|
|
89
|
-
console.log(dataLen, "dadada");
|
|
90
89
|
if (allPageCheck) {
|
|
91
90
|
return (
|
|
92
91
|
<Dropdown overlay={menu} arrow placement={"bottom"} disabled={disabled}>
|
|
@@ -9,6 +9,7 @@ export default ({
|
|
|
9
9
|
dialogTable,
|
|
10
10
|
visible = false,
|
|
11
11
|
onCancel,
|
|
12
|
+
bodyStyle={},
|
|
12
13
|
...props
|
|
13
14
|
}: ModalTableProps) => {
|
|
14
15
|
const { modalVisible, setModalVisible } = useVisible(visible);
|
|
@@ -59,6 +60,7 @@ export default ({
|
|
|
59
60
|
}}
|
|
60
61
|
destroyOnClose
|
|
61
62
|
title={title}
|
|
63
|
+
bodyStyle={{padding:0,paddingBottom:24,...bodyStyle}}
|
|
62
64
|
>
|
|
63
65
|
<Table
|
|
64
66
|
{...tableProps}
|