Skip to content

Commit 71c05a6

Browse files
First commit
0 parents  commit 71c05a6

18 files changed

+18524
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
dist
3+
.tmp
4+
.sass-cache
5+
app/bower_components
6+
test/bower_components
7+
bower_components

README.md

Whitespace-only changes.

bower.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "vue.dragable.for",
3+
"authors": [
4+
"desmaisons_david <[email protected]>"
5+
],
6+
"description": "",
7+
"main": "src\\vuedragablefor.js",
8+
"keywords": [
9+
"vue",
10+
"list",
11+
"drag",
12+
"and",
13+
"drop"
14+
],
15+
"license": "MIT",
16+
"homepage": "",
17+
"ignore": [
18+
"**/.*",
19+
"node_modules",
20+
"bower_components",
21+
"test",
22+
"tests"
23+
],
24+
"dependencies": {
25+
"vue": "^1.0.25",
26+
"lodash": "^4.13.1",
27+
"Sortable": "^1.4.2"
28+
}
29+
}

build/vuedragablefor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!function(){var e=Vue.directive("for");Vue.directive("dragable-for",e)}();

examples/css/main.css

Whitespace-only changes.

examples/index.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!doctype html>
2+
<html class="no-js" lang="">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="x-ua-compatible" content="ie=edge">
6+
<title>Example</title>
7+
<meta name="description" content="">
8+
<meta name="viewport" content="width=device-width, initial-scale=1">
9+
10+
<!-- Place favicon.ico in the root directory -->
11+
12+
<link rel="stylesheet" href="css/main.css">
13+
</head>
14+
<body>
15+
16+
<div id="main">
17+
<h1>Vue Dragable For</h1>
18+
19+
<!-- <div v-dragable-for="element in list">
20+
{{element.name}}
21+
</div> -->
22+
<div class="list-group">
23+
<template v-dragable-for="element in list">
24+
<div class="list-group-item">{{element.name}}</div>
25+
</template>
26+
</div>
27+
28+
<script type="text/javascript" src="..\libs\vue\dist\vue.js"></script>
29+
<script type="text/javascript" src="..\libs\lodash\lodash.js"></script>
30+
<script type="text/javascript" src="..\libs\Sortable\Sortable.js"></script>
31+
<script type="text/javascript" src="src\vuedragablefor.js"></script>
32+
<script type="text/javascript" src="script\main.js"></script>
33+
34+
</div>
35+
</body>
36+
</html>

0 commit comments

Comments
 (0)