Skip to content

Commit b9e55a8

Browse files
Add examples
1 parent e1e2bf1 commit b9e55a8

File tree

3 files changed

+48
-2
lines changed

3 files changed

+48
-2
lines changed

examples/footerslot.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<meta http-equiv="x-ua-compatible" content="ie=edge">
6-
<title>Basic example</title>
6+
<title>Footer slot example</title>
77
<meta name="description" content="">
88
<meta name="viewport" content="width=device-width, initial-scale=1">
99

examples/headerfooterslot.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<meta http-equiv="x-ua-compatible" content="ie=edge">
6-
<title>Basic example</title>
6+
<title>Header and footer example</title>
77
<meta name="description" content="">
88
<meta name="viewport" content="width=device-width, initial-scale=1">
99

examples/headerslot.html

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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>c</title>
7+
<meta name="description" content="">
8+
<meta name="viewport" content="width=device-width, initial-scale=1">
9+
10+
<link rel="stylesheet" href="css/main.css">
11+
</head>
12+
<body>
13+
14+
<div id="main">
15+
<h1>Vue Draggable</h1>
16+
17+
<div :class="dragging? 'list-dragging' : 'drag'">
18+
<h2>Draggable</h2>
19+
<draggable :list="list" @start="dragging=true" @end="dragging=false" :options="{draggable:'.itemd'}">
20+
<div v-for="element in list" class="itemd" :key="element.id">{{element.name}}</div>
21+
<button slot="header" @click="add">Add People (Header)</button>
22+
</draggable>
23+
</div>
24+
25+
<div class="normal">
26+
<h2>Normal v-for</h2>
27+
<div >
28+
<div v-for="element in list">{{element.name}}</div>
29+
</div>
30+
</div>
31+
32+
<button @click="replace">Replace</button>
33+
<br>
34+
35+
<a href="Two_Lists.html">See 2 lists example</a>
36+
<a href="Two_Lists_Clone.html">See clone element example</a>
37+
<a href="Two_Lists_Clone_If.html">See clone v-if element example</a>
38+
39+
</div>
40+
41+
<script type="text/javascript" src="libs\vue\dist\vue.js"></script>
42+
<script type="text/javascript" src="libs\Sortable\Sortable.js"></script>
43+
<script type="text/javascript" src="src\vuedraggable.js"></script>
44+
<script type="text/javascript" src="script\main.js"></script>
45+
</body>
46+
</html>

0 commit comments

Comments
 (0)