Closed mzKenny closed 6 years ago
Sorry, I do not have any experience with Vue.
But you should be able to require Draggabilly
npm install draggabilly
var Draggabilly = require('draggabilly');
var draggie = new Draggabilly( element );
@shouxianjun you need to
import * as Draggabilly from 'draggabilly/draggabilly';
This was months ago I'm sure you figured this out by now.
use directive
import Draggabilly from 'draggabilly'
export default {
bind(el, binding) {
new Draggabilly(el, binding.value)
},
}
i use npm install ,and when i use {var draggie = new Draggabilly()}, console.log is { ReferenceError: Draggabilly is not defined" }