This commit is contained in:
zhigang.li 2018-06-08 15:57:08 +08:00
parent efc955c466
commit 5850519420
1 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,8 @@ const importDirective = Vue => {
* 拖拽指令 v-draggable="options"
* options = {
* trigger: /这里传入作为拖拽触发器的CSS选择器/,
* body: /这里传入需要移动容器的CSS选择器/
* body: /这里传入需要移动容器的CSS选择器/,
* recover: /拖动结束之后是否恢复到原来的位置/
* }
*/
Vue.directive('draggable', directive.draggable)