shineout
Version:
Shein 前端组件库
21 lines (20 loc) • 692 B
TypeScript
import React, { ComponentType } from 'react';
import { GetHidableConsumerProps } from './Props';
import { ListAnimationType } from '../AnimationList/Props';
export declare const consumer: <U extends {}>(Origin: React.ComponentType<U>) => React.FC<U>;
interface HideableProps {
show?: boolean;
className?: string;
}
interface HidableConfig {
type: ListAnimationType[];
duration: number;
display?: string;
}
/**
* @param {*} Component
* @param {*} duration
* @param {*} type - fade, collapse, tranlate
*/
export default function <U extends HideableProps>(Component: React.ComponentType<U>, { type, duration, display }: HidableConfig): React.ComponentType<U>;
export {};