chore: import rc-util from path (#51087)

This commit is contained in:
afc163 2024-10-02 10:43:35 +08:00 committed by GitHub
parent 396d070ef7
commit 66222a296b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
14 changed files with 15 additions and 14 deletions

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import { useEvent } from 'rc-util';
import useEvent from 'rc-util/lib/hooks/useEvent';
import raf from 'rc-util/lib/raf';
import { ConfigContext } from '../../config-provider';

View File

@ -1,6 +1,6 @@
import * as React from 'react';
import classNames from 'classnames';
import { useEvent } from 'rc-util';
import useEvent from 'rc-util/lib/hooks/useEvent';
import scrollIntoView from 'scroll-into-view-if-needed';
import getScroll from '../_util/getScroll';

View File

@ -2,7 +2,7 @@ import * as React from 'react';
import type { BaseSliderProps } from '@rc-component/color-picker';
import classNames from 'classnames';
import { UnstableContext } from 'rc-slider';
import { useEvent } from 'rc-util';
import useEvent from 'rc-util/lib/hooks/useEvent';
import type { GetContextProp, GetProp } from '../../_util/type';
import Slider from '../../slider';

View File

@ -1,5 +1,6 @@
import * as React from 'react';
import { useEvent, useMergedState } from 'rc-util';
import useEvent from 'rc-util/lib/hooks/useEvent';
import useMergedState from 'rc-util/lib/hooks/useMergedState';
import { useLocale } from '../../locale';
import type { AggregationColor } from '../color';

View File

@ -3,7 +3,7 @@ import RightOutlined from '@ant-design/icons/RightOutlined';
import type { AlignType } from '@rc-component/trigger';
import classNames from 'classnames';
import RcDropdown from 'rc-dropdown';
import { useEvent } from 'rc-util';
import useEvent from 'rc-util/lib/hooks/useEvent';
import useMergedState from 'rc-util/lib/hooks/useMergedState';
import omit from 'rc-util/lib/omit';

View File

@ -3,7 +3,7 @@ import CloseOutlined from '@ant-design/icons/CloseOutlined';
import FileTextOutlined from '@ant-design/icons/FileTextOutlined';
import classNames from 'classnames';
import CSSMotion from 'rc-motion';
import { useEvent } from 'rc-util';
import useEvent from 'rc-util/lib/hooks/useEvent';
import useMergedState from 'rc-util/lib/hooks/useMergedState';
import { useZIndex } from '../_util/hooks/useZIndex';

View File

@ -1,6 +1,6 @@
import * as React from 'react';
import classNames from 'classnames';
import { useEvent } from 'rc-util';
import useEvent from 'rc-util/lib/hooks/useEvent';
import pickAttrs from 'rc-util/lib/pickAttrs';
import { getMergedStatus } from '../../_util/statusUtils';

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import { supportNodeRef, useComposeRef } from 'rc-util';
import { supportNodeRef, useComposeRef } from 'rc-util/lib/ref';
import ContextIsolator from '../_util/ContextIsolator';
import type { MenuProps } from './menu';

View File

@ -4,7 +4,7 @@ import EllipsisOutlined from '@ant-design/icons/EllipsisOutlined';
import classNames from 'classnames';
import type { MenuProps as RcMenuProps, MenuRef as RcMenuRef } from 'rc-menu';
import RcMenu from 'rc-menu';
import { useEvent } from 'rc-util';
import useEvent from 'rc-util/lib/hooks/useEvent';
import omit from 'rc-util/lib/omit';
import initCollapseMotion from '../_util/motion';

View File

@ -2,7 +2,7 @@
import React, { useState } from 'react';
import classNames from 'classnames';
import ResizeObserver from 'rc-resize-observer';
import { useEvent } from 'rc-util';
import useEvent from 'rc-util/lib/hooks/useEvent';
import type { GetProp } from '../_util/type';
import { devUseWarning } from '../_util/warning';

View File

@ -1,6 +1,6 @@
import * as React from 'react';
import copy from 'copy-to-clipboard';
import { useEvent } from 'rc-util';
import useEvent from 'rc-util/lib/hooks/useEvent';
import toList from '../../_util/toList';
import type { CopyConfig } from '../Base';

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import { useEvent } from 'rc-util';
import useEvent from 'rc-util/lib/hooks/useEvent';
export interface WatermarkContextProps {
add: (ele: HTMLElement) => void;

View File

@ -1,7 +1,7 @@
import React, { useEffect } from 'react';
import { useMutateObserver } from '@rc-component/mutate-observer';
import classNames from 'classnames';
import { useEvent } from 'rc-util';
import useEvent from 'rc-util/lib/hooks/useEvent';
import { useToken } from '../theme/internal';
import WatermarkContext from './context';

View File

@ -1,5 +1,5 @@
import React from 'react';
import { useEvent } from 'rc-util';
import useEvent from 'rc-util/lib/hooks/useEvent';
import raf from 'rc-util/lib/raf';
/**