@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 +1 -1
- package/es/dialog/button.d.ts +1 -1
- package/es/table/index.js +7 -2
- package/package.json +1 -1
package/es/ccs.d.ts
CHANGED
package/es/dialog/button.d.ts
CHANGED
|
@@ -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" | "
|
|
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");
|