https://github.com/shaoxiong789/vue-drag-sorting
https://github.com/shaoxiong789/vue-drag-sorting
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/shaoxiong789/vue-drag-sorting
- Owner: shaoxiong789
- Created: 2017-03-28T09:10:40.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-02T03:05:01.000Z (about 8 years ago)
- Last Synced: 2025-04-05T10:33:28.914Z (2 months ago)
- Language: JavaScript
- Homepage: https://shaoxiong789.github.io/vue-drag-sorting/build
- Size: 172 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vue-drag
The only required dependencies are:
* [Vue.js](http://vuejs.org/) (required ^v2.x.x, test with v2.0.3).## Installation
### NPM
```bash
$ npm install git://github.com/shaoxiong789/vue-drag.git --save
```
```js
{{props.item.name}}
import {dragboot} from 'vue-drag'
export default {
components:{dragboot},
data() {
return {
lists:[
{name:'1',color:'red'},
{name:'2',color:'orange'},
{name:'3',color:'yellow'},
{name:'4',color:'green'},
{name:'5',color:'indigo'},
{name:'6',color:'blue'},
{name:'7',color:'purple'}
]
}
}
}```