-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdragdropflex-3.js
43 lines (40 loc) · 1006 Bytes
/
dragdropflex-3.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
(function() {
"use strict";
window.addEventListener("load", function() {
Vue.component('draggable-box', {
template: '#draggable-box-template',
props: ['item'],
data() {
return {
}
},
/*
computed: {
flexOrder: function() {
return { 'order': this.item.order };
},
},
*/
methods: {}
});
window.app = new Vue({
el: '#drag-drop-flex-app',
data: {
inventions: [
{ order: 3, name: 'Printing press' },
{ order: 1, name: 'Lightbulb' },
{ order: 2, name: 'Airplane' },
{ order: 0, name: 'Personal computer' },
{ order: 4, name: 'Vaccines' },
{ order: 5, name: 'Automobile' },
{ order: 6, name: 'Clock' },
{ order: 7, name: 'Telephone' },
{ order: 8, name: 'Refrigeration' },
{ order: 9, name: 'Camera' },
],
},
computed: {},
methods: {},
});
}, false);
}());