@ccs-ui/rc-pro 1.1.25-beta-23 → 1.1.25-beta-25
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/dialog/DialogRequestButton.d.ts +1 -1
- package/es/dialog/DialogSelfOkButton.d.ts +1 -1
- package/es/layout-keep-alive/index.js +3 -16
- package/es/layout-keep-alive/index.less +1 -1
- package/es/pro-table/head.js +0 -1
- package/es/pro-table/table.d.ts +1 -1
- package/es/pro-table/table.js +4 -5
- package/package.json +1 -1
|
@@ -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", {
|
package/es/pro-table/table.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ type TableTitleType<T> = {
|
|
|
28
28
|
export type CcsTableProps<T> = Omit<TableProps<T>, 'columns' | 'title'> & {
|
|
29
29
|
data?: CCS.TableData<T>;
|
|
30
30
|
/** request 方法 */
|
|
31
|
-
request?: (params: any) => Promise<
|
|
31
|
+
request?: (params: any) => Promise<any>;
|
|
32
32
|
/** request 额外参数 */
|
|
33
33
|
requestParam?: ParamType;
|
|
34
34
|
/** class name */
|
package/es/pro-table/table.js
CHANGED
|
@@ -95,8 +95,6 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
95
95
|
data = _useState2[0],
|
|
96
96
|
setData = _useState2[1];
|
|
97
97
|
var treeRef = useRef(null);
|
|
98
|
-
var _theme$useToken = theme.useToken(),
|
|
99
|
-
token = _theme$useToken.token;
|
|
100
98
|
var _useState3 = useState([]),
|
|
101
99
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
102
100
|
selectedRows = _useState4[0],
|
|
@@ -105,6 +103,10 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
105
103
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
106
104
|
tableRowSize = _useState6[0],
|
|
107
105
|
setTableRowSize = _useState6[1];
|
|
106
|
+
// 暗黑模式
|
|
107
|
+
var _theme$useToken = theme.useToken(),
|
|
108
|
+
token = _theme$useToken.token;
|
|
109
|
+
var isDark = token._appTheme === 'dark';
|
|
108
110
|
|
|
109
111
|
// 权限判断
|
|
110
112
|
var isAuth = useMemo(function () {
|
|
@@ -506,9 +508,6 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
506
508
|
},
|
|
507
509
|
children: toolbarExtra
|
|
508
510
|
});
|
|
509
|
-
|
|
510
|
-
// 暗黑模式
|
|
511
|
-
var isDark = token._appTheme === 'dark';
|
|
512
511
|
var render = /*#__PURE__*/_jsxs("div", {
|
|
513
512
|
className: classNames(classPrefix, className, _defineProperty({}, 'dark-table', isDark)),
|
|
514
513
|
style: style,
|