diff --git a/miniprogram_dist/index/index.js b/miniprogram_dist/index/index.js index 9a775c8..72afc4b 100644 --- a/miniprogram_dist/index/index.js +++ b/miniprogram_dist/index/index.js @@ -219,7 +219,7 @@ const handle = { } this.ctx.save(); this.ctx.moveTo(this.toPx(x), this.toPx(lineY)); - this.ctx.lineTo(this.toPx(x) + textWidth, this.toPx(lineY)); + this.ctx.lineTo(this.toPx(x) + this.toPx(textWidth), this.toPx(lineY)); this.ctx.setStrokeStyle(color); this.ctx.stroke(); this.ctx.restore(); diff --git a/package.json b/package.json index 690716e..bb844d7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wxa-plugin-canvas", - "version": "1.1.2", + "version": "1.1.3", "description": "小程序海报组件", "main": "index.js", "scripts": {