Ai
2 Star 0 Fork 0

react-component/queue-anim

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.d.ts 2.15 KB
一键复制 编辑 原始数据 按行查看 历史
jljsj33 提交于 2019-01-29 21:47 +08:00 . remove className
// Type definitions for rc-queue-anim 1.6
// Project: https://github.com/react-component/queue-anim
// Definitions by: jljsj33 <https://github.com/jljsj33>
// Definitions: https://github.com/react-component/queue-anim
import * as React from 'react';
export type IQueueType = 'alpha' | 'left' | 'right' | 'top' | 'bottom' | 'scale' | 'scaleBig' | 'scaleX' | 'scaleY';
export type INumberOrArrayOrFunc = number | [number, number] | ((e: { key: string, index: number }) => number | [number, number]);
export type IEaseType = 'linear' |
'easeInSine' | 'easeOutSine' | 'easeInOutSine' |
'easeInQuad' | 'easeOutQuad' | 'easeInOutQuad' |
'easeInCubic' | 'easeOutCubic' | 'easeInOutCubic' |
'easeInQuart' | 'easeOutQuart' | 'easeInOutQuart' |
'easeInQuint' | 'easeOutQuint' | 'easeInOutQuint' |
'easeInExpo' | 'easeInOutExpo' | 'easeInOutExpo' |
'easeInCirc' | 'easeOutCirc' | 'easeInOutCirc' |
'easeInBack' | 'easeOutBack' | 'easeInOutBack' |
'easeInElastic' | 'easeOutElastic' | 'easeInOutElastic' |
'easeInBounce' | 'easeOutBounce' | 'easeInOutBounce' | [number, number, number, number] |
((t: number, b: number, c: number, d: number) => number); // TweenOne ease path;
export type IQueueTypeOrArrayOrFunc = IQueueType | [IQueueType, IQueueType] | ((e: { key: string, index: number }) => IQueueType | [IQueueType, IQueueType]);
export type IEaseTypeOrArrayOrFunc = IEaseType | [IEaseType, IEaseType] | ((e: { key: string, index: number }) => IEaseType | [IEaseType, IEaseType]);
export type IAnimConfigOrArrayOrFunc = {} | [{}] | ((e: { key: string, index: number }) => {} | [{}, {}]);
export interface IProps<T> extends React.HTMLAttributes<T> {
type?: IQueueTypeOrArrayOrFunc;
animConfig?: IAnimConfigOrArrayOrFunc;
delay?: INumberOrArrayOrFunc;
duration?: INumberOrArrayOrFunc;
interval?: INumberOrArrayOrFunc;
leaveReverse?: boolean;
ease?: IEaseTypeOrArrayOrFunc;
appear?: boolean;
component?: string | React.ReactNode;
componentProps?: {};
animatingClassName?: [string, string];
forcedReplay?: boolean;
onEnd?: (e: { key: string, type: string, target: HTMLElement }) => void;
}
export default class RcQueueAnim<T> extends React.Component<IProps<T>> { }
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_react-component/queue-anim.git
git@gitee.com:mirrors_react-component/queue-anim.git
mirrors_react-component
queue-anim
queue-anim
master

搜索帮助