UNPKG

@nutui/nutui-react-taro

Version:

京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序

28 lines (27 loc) 878 B
import { default as React, FunctionComponent } from 'react'; import { ITouchEvent } from '@tarojs/components'; import { AnimateType, AnimateAction } from './types'; import { BasicComponent } from '../../utils/typings'; export interface AnimateProps extends BasicComponent { /** * 动画类型,见下方type值说明 * @default shake */ type: AnimateType /** * 触发方式,'initial'初始化执行; 'click'点击执行 * @default initial */ action: AnimateAction /** * 是否循环执行。true循环执行;false执行一次 * @default false */ loop: boolean /** * 点击元素时触发 * @default - */ onClick: (event: React.MouseEvent<Element, MouseEvent> | ITouchEvent) => void } export declare const Animate: FunctionComponent<Partial<AnimateProps> & React.HTMLAttributes<HTMLDivElement>>;