Vue拼圖驗證組件使用教程


找一個你需要的
我這里選擇的是控制誤差的demo用。

使用方法:

npm i vue-puzzle-verification

在mian.js中引入

import PuzzleVerification from 'vue-puzzle-verification'
Vue.use(PuzzleVerification )

  

  <div class="login-box">
             <div class="puzzle-box">
                 <PuzzleVerification
                    v-model="isVerificationShow4"
                    :puzzleImgList="puzzleImgList"
                     deviation="20"
                     blockType="puzzle"
                    :onSuccess="handleSuccess"
                    />
              </div>
       </div>

登錄頁面使用后會出現報錯問題。


同事說是因為監聽沒有銷毀…
所以

 beforeDestory(){
       document.removeEventListener("mousemove",this.moving);
       document.removeEventListener("touchmove",this.moving);
       document.removeEventListener("mouseup",this.moveEnd);
       document.removeEventListener("touchend",this.moveEnd)
    },

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM