fuliqi
2024-01-24 29c1e7eb5ac16e90d8991a86c1c071bc312ec8d9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import Base from './base'
class Carousel extends Base {
  constructor (attr) {
    super(attr)
    this.banners = attr.banners || []
    this.fixedPosition = attr.fixedPosition || false
    this.closeBtn = attr.closeBtn || false
    this.connectMove = attr.connectMove || false
    this.indicatorPoint = attr.indicatorPoint || false
    this.indicatorPointActive = attr.indicatorPointActive || false
    this.indicatorPointActiveColor = attr.indicatorPointActiveColor || null
    this.indicatorPointDefault = attr.indicatorPointDefault || false
    this.indicatorPointDefaultColor = attr.indicatorPointDefaultColor || null
    this.switch = attr.switch || false
    this.isSwitchTime = attr.switch || false
    this.switchTime = attr.switchTime || null
    this.isSwitchAnimationTime = attr.isSwitchAnimationTime || null
    this.switchAnimationTime = attr.switchAnimationTime || null
  }
}
export default Carousel