编程知识 cdmana.com

Vue: several practical Vue custom instructions

A few practical ones Vue Custom instruction

Copy and paste instructions v-copy
Long instruction v-longpress
Input box anti shake command v-debounce
Expressions and special characters are prohibited v-emoji
Picture lazy loading v-LazyLoad
Authority verification instruction v-premission
Realize page watermark v-waterMarker
Drag and drop instructions v-draggable Insert picture description here

Code address :
https://github.com/mouday/Vue-Demo/tree/main/vue-directive

Reference resources

  1. https://cn.vuejs.org/v2/guide/custom-directive.html
  2. 8 A very practical Vue Custom instruction

版权声明
本文为[Peng Shiyu]所创,转载请带上原文链接,感谢
https://cdmana.com/2020/12/20201225150821728A.html

Scroll to Top