UNPKG

zent

Version:

一套前端设计语言和基于React的实现

18 lines (17 loc) 636 B
import { PureComponent } from 'react'; export declare type IDotsType = 'line' | 'round'; export declare type IDotsTheme = 'light' | 'dark'; export interface ISwiperDotsProps { dotsColor: string; dotsSize?: 'normal' | 'small' | 'large'; dotsType?: 'line' | 'round'; items: React.ReactNode; currentIndex: number; onDotsClick(index: number): void; dotsTheme: IDotsTheme; } export default class SwiperDots extends PureComponent<ISwiperDotsProps> { isDotActive: (index: number, currentIndex: number, length: number) => boolean; isBuildInColor: (dotsColor: string) => boolean; render(): JSX.Element; }