8.26提交

This commit is contained in:
zoujiandong
2025-08-26 17:21:01 +08:00
parent d292fec408
commit 7799c04883
7 changed files with 181 additions and 68 deletions
+2 -2
View File
@@ -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();