自定义指令

1.v-text指令


2.自定义指令


welcome

自定义指令_第1张图片

3.自定义指令实现拖拽

div id="box3" :style="{width:'100px',height:'100px',background:'blue',position:'absolute',right :0,top:0}" v-drag>

 

你可能感兴趣的:(vue学习笔记)