@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, "onCancel" | "auth" | "request" | "onRequestBefore"> & {
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, "onCancel" | "auth" | "onOk"> & {
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 _debounce from 'lodash/debounce';
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 { CcsResizeObserver, CcsUtils } from '..';
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(CcsResizeObserver, {
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",
@@ -1,8 +1,8 @@
1
1
  .ccs-keep-alive {
2
2
  flex: 1 1 auto;
3
- // background: #f0f2f5;
4
3
  display: flex;
5
4
  flex-direction: column;
5
+ overflow: hidden;
6
6
 
7
7
  &-tabs-colorful {
8
8
  & > .ant-tabs-nav {
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "1.1.25-beta-23",
3
+ "version": "1.1.25-beta-24",
4
4
  "description": "验证码组件兼容暗黑模式;proTable封装rowselection代码;proTable添加自适应布局模式;",
5
5
  "license": "MIT",
6
6
  "author": {