微信小程序 canvas-2d 绘图工具🖌️🧑🎨 | 支持按需加载🍃,支持内容配置🧩,支持功能扩展🔥 | 适配各种机型📱,超轻量☁️,超易用⚪,无需学习📚️,直接上手🚀
画矩形的时候,边框不是必须的,但是如果不传lineStyle会报错,添加默认值可以简化用法 ```javascript import { Rect } from 'wx-canvas-2d' canvas.draw({ series: [ { type: Rect, x: 40, y: 40, width: 520, height: 520, bgColor: '#0ff', lineStyle: {}, // 不需要边框,但必须传参 } ] }) ```
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by Jasery and has received 0 comments.