Constructor
new Shake(pageContext, opts)
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
pageContext |
Object | page路由指针 | |||||||||
opts |
Object | 组件所需参数
Properties
|
- Source:
Example
new Shake(this,{
shakeThreshold: 70, //阈值
callback: (idx, award) => {
//结束回调, 参数对应宫格索引,对应奖项
}
})