@nutui/nutui-react
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
16 lines (15 loc) • 675 B
TypeScript
import { default as React, CSSProperties, ReactNode } from 'react';
import { SwiperProps as TaroSwiperProps } from '@tarojs/components';
import { CommonEventFunction } from '@tarojs/components/types/common';
export interface SwiperProps extends Omit<TaroSwiperProps, 'ref'> {
width: number;
height: number | string;
direction: 'horizontal' | 'vertical';
indicator: ReactNode;
autoPlay: boolean;
loop: boolean;
defaultValue: number;
onChange: CommonEventFunction<TaroSwiperProps.onChangeEventDetail>;
style: CSSProperties;
}
export declare const Swiper: React.ForwardRefExoticComponent<Partial<SwiperProps> & React.RefAttributes<unknown>>;