vue-sign-canvas icon indicating copy to clipboard operation
vue-sign-canvas copied to clipboard

希望能添加个锁,避免绘制

Open mahy50 opened this issue 2 years ago • 1 comments

有时候可能会需要锁主canvas, 不让绘制。

 <canvas
    :ref="domId"
    class="app-sign-canvas"
    :id="domId"
    @mousedown.prevent.stop="(e) => !lock && handleMousedown(e)"
    @mousemove.prevent.stop="(e) => !lock && handleMousemove(e)"
    @mouseup.prevent.stop="(e) => !lock && handleMouseup(e)"
    @mouseleave.prevent.stop="(e) => !lock && handleMouseleave(e)"
    @touchstart.prevent.stop="(e) => !lock && handleTouchstart(e)"
    @touchmove.prevent.stop="(e) => !lock && handleTouchmove(e)"
    @touchend.prevent.stop="(e) => !lock && handleTouchend(e)"
  >
    您的浏览器不支持canvas技术,请升级浏览器!
  </canvas>
props: {
  lock: {
    type: [Boolean],
    default: false,
  },
},

mahy50 avatar Aug 11 '21 08:08 mahy50

感谢反馈,这段时间忙完了来加功能,我已经一个月没休息了。。。

langyuxiansheng avatar Sep 29 '21 13:09 langyuxiansheng

最近开始逐渐修复这些bug, 开始提上日程了。

langyuxiansheng avatar Apr 26 '24 13:04 langyuxiansheng