File tree Expand file tree Collapse file tree 3 files changed +48
-2
lines changed Expand file tree Collapse file tree 3 files changed +48
-2
lines changed Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta charset ="utf-8 ">
5
5
< meta http-equiv ="x-ua-compatible " content ="ie=edge ">
6
- < title > Basic example</ title >
6
+ < title > Footer slot example</ title >
7
7
< meta name ="description " content ="">
8
8
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
9
9
Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta charset ="utf-8 ">
5
5
< meta http-equiv ="x-ua-compatible " content ="ie=edge ">
6
- < title > Basic example</ title >
6
+ < title > Header and footer example</ title >
7
7
< meta name ="description " content ="">
8
8
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
9
9
Original file line number Diff line number Diff line change
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 >
You can’t perform that action at this time.
0 commit comments