8.26提交
This commit is contained in:
@@ -67,7 +67,7 @@ Component({
|
||||
prevPosition: [0, 0], // 手指触摸的所在位置
|
||||
background: '', // 背景图片,即导入的图片
|
||||
colors: ["#FFFFFF", "#000000", "#ff0000", "#ffff00", "#00CC00", "#99CCFF", "#0000ff", "#ff00ff"],
|
||||
selectColor:"#99CCFF",
|
||||
selectColor:"#000000",
|
||||
btnInfo: [
|
||||
{
|
||||
type: 'width',
|
||||
@@ -247,7 +247,7 @@ Component({
|
||||
},
|
||||
|
||||
clearCanvas: function (e) {
|
||||
this.tapBtn(e)
|
||||
//this.tapBtn(e)
|
||||
let ctx = wx.createCanvasContext('myCanvas',this);
|
||||
ctx.clearRect(0, 0, this.data.canvasWidth, this.data.canvasHeight);
|
||||
ctx.draw();
|
||||
|
||||
Reference in New Issue
Block a user