@ccs-ui/rc-pro 1.1.25-beta-23 → 1.1.25-beta-24
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,7 +1,7 @@
|
|
|
1
1
|
import { FormProps } from 'antd';
|
|
2
2
|
import { DialogFormRef } from './form';
|
|
3
3
|
import { CcsDialogModalProps } from './hook';
|
|
4
|
-
declare const DialogRequestButton: ({ auth, formRef, formInitialValues, request, onCancel, onRequestBefore, }: Pick<CcsDialogModalProps, "
|
|
4
|
+
declare const DialogRequestButton: ({ auth, formRef, formInitialValues, request, onCancel, onRequestBefore, }: Pick<CcsDialogModalProps, "auth" | "request" | "onRequestBefore" | "onCancel"> & {
|
|
5
5
|
formRef: React.RefObject<DialogFormRef>;
|
|
6
6
|
formInitialValues: FormProps['initialValues'];
|
|
7
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FormProps } from 'antd';
|
|
2
2
|
import { DialogFormRef } from './form';
|
|
3
3
|
import { CcsDialogModalProps } from './hook';
|
|
4
|
-
declare const DialogSelfOkButton: ({ auth, formRef, formInitialValues, onCancel, onOk, }: Pick<CcsDialogModalProps, "
|
|
4
|
+
declare const DialogSelfOkButton: ({ auth, formRef, formInitialValues, onCancel, onOk, }: Pick<CcsDialogModalProps, "auth" | "onOk" | "onCancel"> & {
|
|
5
5
|
formRef: React.RefObject<DialogFormRef>;
|
|
6
6
|
formInitialValues: FormProps['initialValues'];
|
|
7
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -15,11 +15,10 @@ import { MoreOutlined } from '@ant-design/icons';
|
|
|
15
15
|
import { useUpdate, useUpdateEffect } from 'ahooks';
|
|
16
16
|
import { Button, Dropdown, Empty, Tabs, theme } from 'antd';
|
|
17
17
|
import classnames from 'classnames';
|
|
18
|
-
import
|
|
19
|
-
import { useEffect, useMemo, useRef } from 'react';
|
|
18
|
+
import { useMemo, useRef } from 'react';
|
|
20
19
|
import { useLocation } from 'react-router';
|
|
21
20
|
import { useOutlet } from 'react-router-dom';
|
|
22
|
-
import {
|
|
21
|
+
import { CcsUtils } from '..';
|
|
23
22
|
import "./index.less";
|
|
24
23
|
import Page from "./page";
|
|
25
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -208,21 +207,9 @@ export default function KeepAliveTabs(_ref) {
|
|
|
208
207
|
type: "text"
|
|
209
208
|
})
|
|
210
209
|
});
|
|
211
|
-
var tabRef = useRef();
|
|
212
|
-
var resizeFn = _debounce(function (width) {
|
|
213
|
-
if (tabRef.current) tabRef.current.style.maxWidth = "".concat(width, "px");
|
|
214
|
-
}, 200);
|
|
215
|
-
useEffect(function () {
|
|
216
|
-
tabRef.current = document.getElementById('keep-alive-tabs');
|
|
217
|
-
});
|
|
218
|
-
var onResize = function onResize(size) {
|
|
219
|
-
resizeFn(size.width);
|
|
220
|
-
};
|
|
221
210
|
return /*#__PURE__*/_jsxs("div", {
|
|
222
211
|
className: classnames(className, "ccs-keep-alive"),
|
|
223
|
-
children: [/*#__PURE__*/_jsx(
|
|
224
|
-
onResize: onResize
|
|
225
|
-
}), /*#__PURE__*/_jsx(Tabs, {
|
|
212
|
+
children: [/*#__PURE__*/_jsx(Tabs, {
|
|
226
213
|
id: "keep-alive-tabs",
|
|
227
214
|
hideAdd: true,
|
|
228
215
|
size: "small",
|
package/es/pro-table/head.js
CHANGED
|
@@ -66,7 +66,6 @@ function HeadComponent(_ref) {
|
|
|
66
66
|
var itemLen = allFormItems.length;
|
|
67
67
|
var hasItem = itemLen > 0;
|
|
68
68
|
var hasMore = (((_formItemsRef$current = formItemsRef.current) === null || _formItemsRef$current === void 0 ? void 0 : _formItemsRef$current.scrollHeight) || 0) > 40;
|
|
69
|
-
console.log('hasMore', hasMore);
|
|
70
69
|
|
|
71
70
|
// 操作按钮
|
|
72
71
|
var renderSearchBtn = /*#__PURE__*/_jsxs("div", {
|