vue draggable插件拖动排序效果
代码语言:html
所属分类:拖放
代码描述:vue draggable插件拖动排序效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>BFW NEW PAGE</title> <script type="text/javascript" src="http://repo.bfw.wiki/bfwrepo/js/vue@2.6.1-dev.js"></script> <script type="text/javascript" src="http://repo.bfw.wiki/bfwrepo/js/Sortable-1-8-4.js"></script> <script type="text/javascript" src="http://repo.bfw.wiki/bfwrepo/js/vuedraggable.umd.min.js"></script> <style> .item { cursor: pointer; height: 24px; line-height: 24px; background-color: #9c9c9c; border: 1px solid #d9d9d9; border-radius: 4px; color: #fff; padding: 10px; user-select: none; } </style> </head> <body> <div id="app"> <draggable v-model="data" group="people" @start="drag=true" @end="drag=false".........完整代码请登录后点击上方下载按钮下载查看
网友评论0