-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support functional component as draggable element
- Loading branch information
1 parent
3ea7d72
commit fe73e01
Showing
7 changed files
with
17,110 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<!doctype html> | ||
<html class="no-js" lang=""> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="x-ua-compatible" content="ie=edge"> | ||
<title>Basic example</title> | ||
<meta name="description" content=""> | ||
|
||
<link href="vuetify/vuetify.css" rel="stylesheet"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui"> | ||
|
||
</head> | ||
|
||
<body> | ||
<div id="app"> | ||
<v-app> | ||
<main> | ||
<v-container> | ||
Hello world | ||
|
||
<draggable element="v-layout" :list="listA" :options="sortOptions"> | ||
<v-flex v-for="(element, index) in listA" :key="element.name"> | ||
<span>{{ element.name }}</span> | ||
</v-flex> | ||
</draggable> | ||
|
||
</v-container> | ||
</main> | ||
</v-app> | ||
</div> | ||
|
||
<script type="text/javascript" src="libs\vue\dist\vue.2.5.13.js"></script> | ||
<script type="text/javascript" src="vuetify\vuetify.js"></script> | ||
<script type="text/javascript" src="libs\Sortable\Sortable.js"></script> | ||
<script type="text/javascript" src="src\vuedraggable.js"></script> | ||
<script type="text/javascript" src="script\component2.js"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Vue.config.devtools = true | ||
|
||
|
||
var App = new Vue({ | ||
el: '#app', | ||
data() { | ||
return { | ||
sortOptions: { | ||
group: 'sample', | ||
animation: 150, | ||
}, | ||
listA: [ | ||
{ id: 1, name: 'some'}, | ||
{ id: 2, name: 'more'}, | ||
{ id: 2, name: 'samples'}, | ||
], | ||
listB: [ | ||
{ id: 3, name: 'other'}, | ||
{ id: 4, name: 'examples'}, | ||
], | ||
}; | ||
} | ||
}) |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.