Comments (12)
打个断点调试一下?
from vue-drag-drop-sort-demo.
要不像 https://www.v2ex.com/t/300047 那样,把 vm 挂载到 window 上?
from vue-drag-drop-sort-demo.
对了,本 demo 仅供 Vue 1.x 使用
from vue-drag-drop-sort-demo.
打断点是时候发现,this.vm.$parent是存在的,不知道什么情况
from vue-drag-drop-sort-demo.
哦哦,vue1.0之前没有接触过,需要怎么改造下么??求教
from vue-drag-drop-sort-demo.
果然是 Vue 1.x 才报错
from vue-drag-drop-sort-demo.
把本 demo 升级到 Vue 2.x 可用,请参考 https://cn.vuejs.org/v2/guide/migration.html
from vue-drag-drop-sort-demo.
在这里比较关键的是用到了 Vue 1.x 的父子组件间的双向绑定 .sync (twoWay)
from vue-drag-drop-sort-demo.
试验了 一上午,我用$emit 实现了双向绑定。migration做了vue1.x检测,更改了部分已经废弃的api,但是还是不行,仍然报那个错误,求问能否抽空兼容个vue 2.0 我会在组内推广下这个 插件
from vue-drag-drop-sort-demo.
试试这个方法共享状态就容易多了 https://github.com/kenberkeley/vue-state-management-alternative
from vue-drag-drop-sort-demo.
我看看吧,主要还没理解这个插件的思路在哪里,
from vue-drag-drop-sort-demo.
https://github.com/kenberkeley/vue2-drag-and-drop-demo
from vue-drag-drop-sort-demo.
Related Issues (4)
- 有没有vue2的写法? HOT 3
- 不支持vue2.0 HOT 2
- 挺好的一个插件 ,不支持2.0,怪可惜的! HOT 1
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-drag-drop-sort-demo.