3D旋转组件
- Source:
Members
(inner) props
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
data |
Array.<String> |
<optional> |
动画帧图片数组 |
|
width |
number |
<optional> |
400
|
画布宽度 |
height |
number |
<optional> |
500
|
画布高度 |
auto |
boolean |
<optional> |
false
|
自动转动 |
interval |
number |
<optional> |
125
|
自动旋转速度,每帧的切换时间,值越小越快, |
manual |
boolean |
<optional> |
true
|
可鼠标控制转动 |
step |
number |
<optional> |
0
|
自动转动几帧后停顿,0表示不停顿 |
wait |
number |
<optional> |
2000
|
停顿的时间,单位ms |
属性参数
Methods
(inner) next()
- Source:
下一帧
(inner) prev()
- Source:
上一帧
(inner) start()
- Source:
开始转动
(inner) stop()
- Source:
停止转动
Events
change
- Source:
帧切换时触发
Parameters:
Name | Type | Description |
---|---|---|
currentIndex |
number | 帧索引 |
loaded
- Source:
图片预加载完成时触发
progress
- Source:
预加载图片进度
Parameters:
Name | Type | Description |
---|---|---|
progress |
number | 已完成几张 |
total |
number | 总数 |
start
- Source:
开始转动时触发
stop
- Source:
停止转动时触发