• vue 手势解锁功能


    效果

    实现

    1. <template>
    2. <div class="flex flex-center flex-column">
    3. <BaseHead title="test">BaseHead>
    4. <h1>vue手势解锁功能h1>
    5. <canvas class="canvas" ref="canvasRef" @touchstart="touchstart" @touchmove="touchmove" @touchend="touchend">canvas>
    6. div>
    7. template>
    8. <style lang="scss" scoped>
    9. .page{
    10. width: 100vw;
    11. height: 100vh;
    12. box-sizing: border-box;
    13. overflow: hidden;
    14. }
    15. .canvas {
    16. position: fixed;
    17. top: 400px;
    18. left: 50%;
    19. transform: translateX(-50%);
    20. background-color: #ccc;
    21. }
    22. style>

  • 相关阅读:
    JS高级 之 防抖debounce - throttle节流
    Simulink仿真封装中的参数个对话框设置
    fastjson漏洞批量检测工具
    毕业设计-电子商务网站(一)
    八、ChatGPT能替代什么人?
    老卫带你学---leetcode刷题(19. 删除链表的倒数第 N 个结点)
    【图形学】13 UnityShader语义(一)
    自动群发节日祝福,1 行 Python 代码搞定,小白可用
    PyTorch分布式backends
    QMediaPlayer 类使用教程
  • 原文地址:https://blog.csdn.net/qq_41144591/article/details/136257335