-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Has some problem use this in vue 2.0 #15
Comments
This library is not compatible with Vue.js 2.0 at the moment due to significant API changes in the new version. Update: there is a PR for supporting v2: #13 |
I added issue in vuejs repository vuejs/vue#4085 |
👍 |
谢谢 @FrankFang 提供的方案 #10 (comment) // your Vue
import Vue from 'vue'
import Sortable from 'sortablejs'
Vue.directive('sortable', {
inserted: function (el, binding) {
new Sortable(el, binding.value || {})
}
}) 之前自己的 // your Vue
import Sortable from 'sortablejs'
Vue.use(Sortable); // vue-sortable/vue-sortable.js
Vue.directive('sortable', function (el, options) {
options = options || {}
var sortable = new Sortable(el || this.el, options) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When use
v-sortable
directive , the code gives following exception:And nothing gets rendered.
Libraries versions used:
The text was updated successfully, but these errors were encountered: