diff --git a/components/_util/motion.tsx b/components/_util/motion.tsx index edac9ccda166..1c69a9f05a11 100644 --- a/components/_util/motion.tsx +++ b/components/_util/motion.tsx @@ -1,6 +1,5 @@ import { CSSMotionProps, MotionEventHandler, MotionEndEventHandler } from 'rc-motion'; import { MotionEvent } from 'rc-motion/lib/interface'; -import { tuple } from './type'; // ================== Collapse Motion ================== const getCollapsedHeight: MotionEventHandler = () => ({ height: 0, opacity: 0 }); @@ -26,21 +25,11 @@ const collapseMotion: CSSMotionProps = { motionDeadline: 500, }; -const SelectPlacements = tuple('bottomLeft', 'bottomRight', 'topLeft', 'topRight'); -export type SelectCommonPlacement = typeof SelectPlacements[number]; - -const getTransitionDirection = (placement: SelectCommonPlacement | undefined) => { - if (placement !== undefined && (placement === 'topLeft' || placement === 'topRight')) { - return `slide-down`; - } - return `slide-up`; -}; - const getTransitionName = (rootPrefixCls: string, motion: string, transitionName?: string) => { if (transitionName !== undefined) { return transitionName; } return `${rootPrefixCls}-${motion}`; }; -export { getTransitionName, getTransitionDirection }; +export { getTransitionName }; export default collapseMotion; diff --git a/components/breadcrumb/BreadcrumbItem.tsx b/components/breadcrumb/BreadcrumbItem.tsx index 860971e84714..fd29f24a85c6 100644 --- a/components/breadcrumb/BreadcrumbItem.tsx +++ b/components/breadcrumb/BreadcrumbItem.tsx @@ -30,7 +30,7 @@ const BreadcrumbItem: BreadcrumbItemInterface = ({ const renderBreadcrumbNode = (breadcrumbItem: React.ReactNode) => { if (overlay) { return ( - + {breadcrumbItem} @@ -62,7 +62,9 @@ const BreadcrumbItem: BreadcrumbItemInterface = ({ return ( {link} - {separator && {separator}} + {separator && ( + {separator} + )} ); } diff --git a/components/cascader/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/cascader/__tests__/__snapshots__/demo-extend.test.ts.snap index 7a472fce2b47..cec599fae5cd 100644 --- a/components/cascader/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/cascader/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -1674,241 +1674,6 @@ exports[`renders ./components/cascader/demo/multiple.md extend context correctly `; -exports[`renders ./components/cascader/demo/placement.md extend context correctly 1`] = ` -Array [ -
- - - - -
, -
, -
, -
-
- - - - - Please select - -
-
-
-
-
- -
-
-
-
- -
, -] -`; - exports[`renders ./components/cascader/demo/search.md extend context correctly 1`] = `