Options
All
  • Public
  • Public/Protected
  • All
Menu

轮播组件

Hierarchy

  • ContainerBase
    • Carousel

Index

Constructors

constructor

  • Parameters

    • config: any

    Returns Carousel

Properties

$elemtInd

$elemtInd: any

anim

轮播切换动画方式

arrow

指示器位置( 默认 CarouseArrow.default ='hover')

autoplay

autoplay: boolean

是否自动切换

carouselItems

carouselItems: ICarouselItem[]

css

css: CarouselStyle

elemItem

elemItem: any

haveSlide

haveSlide: boolean

index

index: number

初始开始的条目索引

indicator

indicator: CarouseIndicator

指示器位置:inside/outside/none

interval

interval: number

自动切换的时间间隔,单位:ms(毫秒),不能低于800

theme

theme: string

主题

timer

timer: number

trigger

trigger: string

处罚方式 默认(click)

Methods

Private addIndex

  • addIndex(num: any): void
  • Parameters

    • num: any

    Returns void

Protected doArrow

  • doArrow(): void
  • Returns void

Protected doAutoplay

  • doAutoplay(): void
  • Returns void

Protected doGetClassName

  • doGetClassName(): any
  • Returns any

doGetCss

  • doGetCss(): CarouselStyle
  • Returns CarouselStyle

Protected doGetElemtHtml

  • doGetElemtHtml(): string
  • Returns string

Protected doGetItemHtml

  • Parameters

    Returns string

Protected doIndicator

  • doIndicator(): void
  • Returns void

doRender

  • doRender(): void
  • Returns void

getAttrEditors

  • getAttrEditors(): AttributeEditorBase[]
  • Returns AttributeEditorBase[]

Private initEvents

  • initEvents(): void
  • Returns void

Private nextIndex

  • nextIndex(): number
  • Returns number

onChange

  • onChange(func: onCarouselChangeHandle): void
  • 折叠时候发生

    Parameters

    • func: onCarouselChangeHandle

    Returns void

Private prevIndex

  • prevIndex(): number
  • Returns number

reload

  • 重置轮播

    Parameters

    Returns void

render

  • render(): void
  • Returns void

Private slide

  • slide(type?: any, num?: any): void
  • 滑动切换

    Parameters

    • Optional type: any

      类型 sub 递减(反方向) 否则正向

    • Optional num: any

    Returns void

Protected subIndex

  • subIndex(num: any): void
  • Parameters

    • num: any

    Returns void

Generated using TypeDoc