mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 03:59:01 +08:00
chore: import rc-util from path (#51087)
This commit is contained in:
parent
396d070ef7
commit
66222a296b
@ -1,5 +1,5 @@
|
|||||||
import * as React from 'react';
|
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 raf from 'rc-util/lib/raf';
|
||||||
|
|
||||||
import { ConfigContext } from '../../config-provider';
|
import { ConfigContext } from '../../config-provider';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import classNames from 'classnames';
|
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 scrollIntoView from 'scroll-into-view-if-needed';
|
||||||
|
|
||||||
import getScroll from '../_util/getScroll';
|
import getScroll from '../_util/getScroll';
|
||||||
|
@ -2,7 +2,7 @@ import * as React from 'react';
|
|||||||
import type { BaseSliderProps } from '@rc-component/color-picker';
|
import type { BaseSliderProps } from '@rc-component/color-picker';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import { UnstableContext } from 'rc-slider';
|
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 type { GetContextProp, GetProp } from '../../_util/type';
|
||||||
import Slider from '../../slider';
|
import Slider from '../../slider';
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import * as React from 'react';
|
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 { useLocale } from '../../locale';
|
||||||
import type { AggregationColor } from '../color';
|
import type { AggregationColor } from '../color';
|
||||||
|
@ -3,7 +3,7 @@ import RightOutlined from '@ant-design/icons/RightOutlined';
|
|||||||
import type { AlignType } from '@rc-component/trigger';
|
import type { AlignType } from '@rc-component/trigger';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import RcDropdown from 'rc-dropdown';
|
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 useMergedState from 'rc-util/lib/hooks/useMergedState';
|
||||||
import omit from 'rc-util/lib/omit';
|
import omit from 'rc-util/lib/omit';
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import CloseOutlined from '@ant-design/icons/CloseOutlined';
|
|||||||
import FileTextOutlined from '@ant-design/icons/FileTextOutlined';
|
import FileTextOutlined from '@ant-design/icons/FileTextOutlined';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import CSSMotion from 'rc-motion';
|
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 useMergedState from 'rc-util/lib/hooks/useMergedState';
|
||||||
|
|
||||||
import { useZIndex } from '../_util/hooks/useZIndex';
|
import { useZIndex } from '../_util/hooks/useZIndex';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import classNames from 'classnames';
|
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 pickAttrs from 'rc-util/lib/pickAttrs';
|
||||||
|
|
||||||
import { getMergedStatus } from '../../_util/statusUtils';
|
import { getMergedStatus } from '../../_util/statusUtils';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import * as React from 'react';
|
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 ContextIsolator from '../_util/ContextIsolator';
|
||||||
import type { MenuProps } from './menu';
|
import type { MenuProps } from './menu';
|
||||||
|
@ -4,7 +4,7 @@ import EllipsisOutlined from '@ant-design/icons/EllipsisOutlined';
|
|||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import type { MenuProps as RcMenuProps, MenuRef as RcMenuRef } from 'rc-menu';
|
import type { MenuProps as RcMenuProps, MenuRef as RcMenuRef } from 'rc-menu';
|
||||||
import RcMenu 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 omit from 'rc-util/lib/omit';
|
||||||
|
|
||||||
import initCollapseMotion from '../_util/motion';
|
import initCollapseMotion from '../_util/motion';
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import ResizeObserver from 'rc-resize-observer';
|
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 type { GetProp } from '../_util/type';
|
||||||
import { devUseWarning } from '../_util/warning';
|
import { devUseWarning } from '../_util/warning';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import copy from 'copy-to-clipboard';
|
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 toList from '../../_util/toList';
|
||||||
import type { CopyConfig } from '../Base';
|
import type { CopyConfig } from '../Base';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { useEvent } from 'rc-util';
|
import useEvent from 'rc-util/lib/hooks/useEvent';
|
||||||
|
|
||||||
export interface WatermarkContextProps {
|
export interface WatermarkContextProps {
|
||||||
add: (ele: HTMLElement) => void;
|
add: (ele: HTMLElement) => void;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React, { useEffect } from 'react';
|
import React, { useEffect } from 'react';
|
||||||
import { useMutateObserver } from '@rc-component/mutate-observer';
|
import { useMutateObserver } from '@rc-component/mutate-observer';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import { useEvent } from 'rc-util';
|
import useEvent from 'rc-util/lib/hooks/useEvent';
|
||||||
|
|
||||||
import { useToken } from '../theme/internal';
|
import { useToken } from '../theme/internal';
|
||||||
import WatermarkContext from './context';
|
import WatermarkContext from './context';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useEvent } from 'rc-util';
|
import useEvent from 'rc-util/lib/hooks/useEvent';
|
||||||
import raf from 'rc-util/lib/raf';
|
import raf from 'rc-util/lib/raf';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user