fix: fix /es path to /lib path (#48914)

This commit is contained in:
lijianan 2024-05-14 13:56:18 +08:00 committed by GitHub
parent 787cd94125
commit 4eefc49e8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 10 deletions

View File

@ -3,7 +3,7 @@ import classNames from 'classnames';
import CSSMotion from 'rc-motion'; import CSSMotion from 'rc-motion';
import raf from 'rc-util/lib/raf'; import raf from 'rc-util/lib/raf';
import { render, unmount } from 'rc-util/lib/React/render'; import { render, unmount } from 'rc-util/lib/React/render';
import { composeRef } from 'rc-util/es/ref'; import { composeRef } from 'rc-util/lib/ref';
import { TARGET_CLS } from './interface'; import { TARGET_CLS } from './interface';
import type { ShowWaveEffect } from './interface'; import type { ShowWaveEffect } from './interface';
@ -129,13 +129,7 @@ const WaveEffect: React.FC<WaveEffectProps> = (props) => {
{({ className: motionClassName }, ref) => ( {({ className: motionClassName }, ref) => (
<div <div
ref={composeRef(divRef, ref)} ref={composeRef(divRef, ref)}
className={classNames( className={classNames(className, { 'wave-quick': isSmallComponent }, motionClassName)}
className,
{
'wave-quick': isSmallComponent,
},
motionClassName,
)}
style={waveStyle} style={waveStyle}
/> />
)} )}

View File

@ -7,7 +7,7 @@ import ExclamationCircleFilled from '@ant-design/icons/ExclamationCircleFilled';
import InfoCircleFilled from '@ant-design/icons/InfoCircleFilled'; import InfoCircleFilled from '@ant-design/icons/InfoCircleFilled';
import classNames from 'classnames'; import classNames from 'classnames';
import CSSMotion from 'rc-motion'; import CSSMotion from 'rc-motion';
import { composeRef } from 'rc-util/es/ref'; import { composeRef } from 'rc-util/lib/ref';
import pickAttrs from 'rc-util/lib/pickAttrs'; import pickAttrs from 'rc-util/lib/pickAttrs';
import type { ClosableType } from '../_util/hooks/useClosable'; import type { ClosableType } from '../_util/hooks/useClosable';

View File

@ -2,7 +2,7 @@ import React, { useContext, useEffect, useState } from 'react';
import VerticalAlignTopOutlined from '@ant-design/icons/VerticalAlignTopOutlined'; import VerticalAlignTopOutlined from '@ant-design/icons/VerticalAlignTopOutlined';
import classNames from 'classnames'; import classNames from 'classnames';
import CSSMotion from 'rc-motion'; import CSSMotion from 'rc-motion';
import { composeRef } from 'rc-util/es/ref'; import { composeRef } from 'rc-util/lib/ref';
import getScroll from '../_util/getScroll'; import getScroll from '../_util/getScroll';
import scrollTo from '../_util/scrollTo'; import scrollTo from '../_util/scrollTo';