@ccs-ui/rc-pro 2.3.6-beta-3 → 2.3.6-beta-5

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/ccs.d.ts CHANGED
@@ -46,7 +46,7 @@ type TableInstance<T = any> = {
46
46
  /** 获取form表单数据,排序等条件数据 */
47
47
  formValues: Record<string, any>;
48
48
  /** 获取当前表单数据 */
49
- data: TableDataType<T>;
49
+ data: TableData<T>;
50
50
  /** 获取当前选中的数据 */
51
51
  selectedRows: T[];
52
52
  /** 查询数据,根据条件,从第一页开始显示 */
@@ -16,7 +16,7 @@ export type DialogButtonsProps<T> = Pick<CcsDialogModalProps, 'okText' | 'onClos
16
16
  export type DialogButtonRef = {
17
17
  onSetButtons: (e: React.ReactElement) => void;
18
18
  };
19
- export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<CcsDialogModalProps<TParams, TData>, "auth" | "request" | "onClose" | "onOk" | "extraBtn" | "requestFieldNames" | "preventRequestHandle"> & {
19
+ export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<CcsDialogModalProps<TParams, TData>, "auth" | "request" | "onOk" | "onClose" | "extraBtn" | "requestFieldNames" | "preventRequestHandle"> & {
20
20
  formRef: React.RefObject<DialogFormRef<TParams>>;
21
21
  formInitialValues: FormProps['initialValues'];
22
22
  buttonRef: RefObject<DialogButtonRef>;
package/es/table/index.js CHANGED
@@ -82,22 +82,27 @@ var CustomTable = function CustomTable(props) {
82
82
  if (!tableBody) return;
83
83
  var headerHeight = 0,
84
84
  pageHeight = 0,
85
- footerHeight = 0;
85
+ footerHeight = 0,
86
+ summaryHeight = 0;
86
87
  var _pagination = tableTarget.getElementsByClassName('ant-pagination');
87
88
  if (_pagination && _pagination.length > 0) {
88
89
  pageHeight = _pagination[0].clientHeight;
89
90
  }
90
91
  var header = tableTarget.getElementsByClassName('ant-table-header');
91
92
  var footer = tableTarget.getElementsByClassName('ant-table-footer');
93
+ var summary = tableTarget.getElementsByClassName('ant-table-summary');
92
94
  if (footer && footer.length > 0) {
93
95
  footerHeight = footer[0].clientHeight;
94
96
  }
95
97
  if (header && header.length > 0) {
96
98
  headerHeight = header[0].clientHeight;
97
99
  }
100
+ if (summary && summary.length > 0) {
101
+ summaryHeight = summary[0].clientHeight;
102
+ }
98
103
 
99
104
  // 计算table数据区高度
100
- var scrollHeight = (((_tableContentRef$curr = tableContentRef.current) === null || _tableContentRef$curr === void 0 ? void 0 : _tableContentRef$curr.clientHeight) || 0) - headerHeight - pageHeight - footerHeight;
105
+ var scrollHeight = (((_tableContentRef$curr = tableContentRef.current) === null || _tableContentRef$curr === void 0 ? void 0 : _tableContentRef$curr.clientHeight) || 0) - headerHeight - pageHeight - footerHeight - summaryHeight;
101
106
 
102
107
  // 固定tbody高度
103
108
  tableBody.style.height = "".concat(scrollHeight, "px");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "2.3.6-beta-3",
3
+ "version": "2.3.6-beta-5",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": {