@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.
@@ -98,7 +98,6 @@ var RowSelectionTitle = function RowSelectionTitle(_ref) {
98
98
  });
99
99
  };
100
100
  var disabled = dataLen === 0;
101
- console.log(dataLen, "dadada");
102
101
  if (allPageCheck) {
103
102
  return jsx(Dropdown, {
104
103
  overlay: menu,
@@ -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;
@@ -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,
@@ -99,7 +99,6 @@ var RowSelectionTitle = function RowSelectionTitle(_ref) {
99
99
  });
100
100
  };
101
101
  var disabled = dataLen === 0;
102
- console.log(dataLen, "dadada");
103
102
  if (allPageCheck) {
104
103
  return jsxRuntime.jsx(antd.Dropdown, {
105
104
  overlay: menu,
@@ -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;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/table",
3
- "version": "0.0.5-beta-v13",
3
+ "version": "0.0.5-beta-v18",
4
4
  "description": "基于antd二次开发table组件",
5
5
  "keywords": [
6
6
  "table"
@@ -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}