@ccs-ui/rc-pro 2.3.6-beta-28 → 2.3.6-beta-29

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.
@@ -1,8 +1,7 @@
1
1
  import { FormInstance } from 'antd';
2
2
  import React, { ReactElement } from 'react';
3
- import { PropsWithElementChildren } from '../ccs';
4
3
  import { CcsProTableProps } from './table';
5
- type PropsType<T> = Pick<CcsProTableProps<T>, 'toolbar' | 'formItems' | 'formInitValues' | 'expandForm' | 'title' | 'formItemLabelWidth'> & PropsWithElementChildren & {
4
+ type PropsType<T> = Pick<CcsProTableProps<T>, 'toolbar' | 'formItems' | 'formInitValues' | 'expandForm' | 'title' | 'formItemLabelWidth'> & {
6
5
  /** 更多查询条件 */
7
6
  hasMore?: boolean;
8
7
  /** table 操作栏 */
@@ -13,5 +12,5 @@ type PropsType<T> = Pick<CcsProTableProps<T>, 'toolbar' | 'formItems' | 'formIni
13
12
  formRef: React.RefObject<FormInstance<any>>;
14
13
  };
15
14
  /** 操作按钮、查询,重置、列筛选、 */
16
- declare function HeadComponent<T>({ title, toolbar, expandForm, formItems, formInitValues, formItemLabelWidth, tableOperation, formRef, children, onSearch, }: PropsType<T>): import("react/jsx-runtime").JSX.Element;
15
+ declare function HeadComponent<T>({ title, toolbar, expandForm, formItems, formInitValues, formItemLabelWidth, tableOperation, formRef, onSearch, }: PropsType<T>): import("react/jsx-runtime").JSX.Element;
17
16
  export default HeadComponent;
@@ -27,7 +27,6 @@ function HeadComponent(_ref) {
27
27
  formItemLabelWidth = _ref.formItemLabelWidth,
28
28
  tableOperation = _ref.tableOperation,
29
29
  formRef = _ref.formRef,
30
- children = _ref.children,
31
30
  onSearch = _ref.onSearch;
32
31
  var _Form$useForm = Form.useForm(),
33
32
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
@@ -169,8 +168,8 @@ function HeadComponent(_ref) {
169
168
  var token = theme.useToken().token;
170
169
  var controlHeight = token.rootValue ? "".concat((token.controlHeight / token.rootValue).toFixed(3), "rem") : token.controlHeight;
171
170
  var adaptationRef = useRef(null);
172
- return /*#__PURE__*/_jsxs(_Fragment, {
173
- children: [allFormItems.length > 0 && /*#__PURE__*/_jsxs(_Fragment, {
171
+ return /*#__PURE__*/_jsx(_Fragment, {
172
+ children: allFormItems.length > 0 && /*#__PURE__*/_jsxs(_Fragment, {
174
173
  children: [/*#__PURE__*/_jsx(CcsResizeObserver.Target, {
175
174
  targetRef: formItemsRef,
176
175
  onResize: onResize
@@ -211,7 +210,7 @@ function HeadComponent(_ref) {
211
210
  })]
212
211
  })
213
212
  })]
214
- }), children]
213
+ })
215
214
  });
216
215
  }
217
216
  export default HeadComponent;
@@ -633,8 +633,7 @@ var InternalProTable = function InternalProTable(props) {
633
633
  formItemLabelWidth: props.formItemLabelWidth,
634
634
  onSearch: _onSearch,
635
635
  title: props.title,
636
- tableOperation: renderTableOperation,
637
- children: toolbarExtra
636
+ tableOperation: renderTableOperation
638
637
  }), (toolbar || formItems.length === 0 && renderTableOperation) && /*#__PURE__*/_jsxs(Card, {
639
638
  styles: {
640
639
  cover: {
@@ -652,7 +651,8 @@ var InternalProTable = function InternalProTable(props) {
652
651
  borderRadius: 0,
653
652
  borderLeft: 0,
654
653
  borderBottom: 0,
655
- borderRight: 0
654
+ borderRight: 0,
655
+ borderTop: formItems.length === 0 ? 0 : undefined
656
656
  },
657
657
  children: [/*#__PURE__*/_jsx("div", {
658
658
  style: {
@@ -665,7 +665,7 @@ var InternalProTable = function InternalProTable(props) {
665
665
  },
666
666
  children: renderTableOperation
667
667
  })]
668
- }), children]
668
+ }), toolbarExtra]
669
669
  }), /*#__PURE__*/_jsxs("div", {
670
670
  className: "".concat(classPrefix, "-table-content"),
671
671
  style: _objectSpread(_objectSpread({}, styles === null || styles === void 0 ? void 0 : styles.table), {}, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "2.3.6-beta-28",
3
+ "version": "2.3.6-beta-29",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": {