Constructor
new Lock(pageContext, opts)
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
pageContext |
Object | page路由指针 | |||||||||||||||
opts |
Object | 组件所需参数
Properties
|
- Source:
Example
new Lock(this,{
canvasWidth: 300, //canvas画布宽度 px
canvasHeight: 300, //canvas画布高度 px
canvasId: 'canvasLock', //canvas画布id
drawColor: '#3985ff' //绘制颜色
})