Comments (9)
I'm using vuejs 2.0. Is this the reason?
from vue.draggable.
Hello @ninmesara, you are correct Vue.Dragable.For is currently only working with Vue.js 1. As directives have changed a lot in Vue.js 2.0, Vue.Dragable.For needs an important re-write. I am waiting for Vue 2.0 to stabilize before starting with work. I will rename this issue as a lembrete to make Vue.Dragable.For Vue 2.0 compatible.
from vue.draggable.
Vue 2.0 is pretty close, I can't imagine what would change at this point that would cause issues with rewriting it now.
from vue.draggable.
from vuejs/vue#2873:
Directive interface change
In general, in 2.0 directives have a greatly reduced scope of responsibility: they are now only used for applying low-level direct DOM manipulations. In most cases, you should prefer using Components as the main code-reuse abstraction.
Directives no longer have instances - this means there's no more this inside directive hooks and bind, update and unbind now receives everything as arguments.
Note the binding object is immutable, setting binding.value will have no effect, and properties added to it will not be persisted. You can persist directive state on el if you absolutely need to:
Directive have changed a lot indeed.
from vue.draggable.
Sorry, I'm not sure you understood my comment.
My point is Vue 2.0 is at a stable enough point that you can begin work on the next version of Vue.Dragable.For. I'm well aware of the directive changes :)
from vue.draggable.
I got you now! You are correct it seems to be a good time to begin to work on this migration.
from vue.draggable.
yes, vue 2.0 has been just officially released 4 days ago. :)
from vue.draggable.
@beeplin , true: I am already working on migration to 2.0, Next version will probably be a component as directive have drastically changed in Vue.js 2.0.
from vue.draggable.
Migration done: new component named draggable created
from vue.draggable.
Related Issues (20)
- 拖动到窗口下边缘的时候怎么触发滚动?
- Has anyone found a solution for Max depth nesting with vue-draggable? If there is any parameter for setting the maximum depth in the nested solution?
- 判断被拖拽元素是否在目标区域内并阻止拖拽
- TypeError: Cannot read properties of undefined (reading 'class')
- Draggable preventing scroll behavior HOT 1
- [feature request] typing for `change` event
- Has this project stopped updating and maintaining
- New draggable under maintenance HOT 1
- Incorrect display of the sheet after dragend HOT 2
- npm i -S vuedraggable 直接报错
- VueDraggable only @choose @unchoose events only getting triggered in vue2.7.15 version
- Please set the `latest` npm tag to v4
- Not working with Socket.io
- How to disable draggable in vue draggable HOT 1
- How to import nested-draggable component ? Vue2
- Triggering drag and drop programmatically
- Missing required prop: "itemKey"
- how to lock vuedraggable for specific array nested level
- Nested Draggable Input with v-model automatically blurs
- Incorrect Visual Representation After Transferring All Items Between Groups
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue.draggable.