This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<v-row>
|
||||
<v-col
|
||||
v-for="(item, i) in TestItems()"
|
||||
v-for="(item, i) in dashItems()"
|
||||
:key="i"
|
||||
class="d-flex child-flex"
|
||||
cols="12"
|
||||
@@ -9,7 +9,11 @@
|
||||
lg="4"
|
||||
xl="3"
|
||||
>
|
||||
<gz-dash :title="'Dash-' + i" />
|
||||
<gz-dash
|
||||
:title="'Dash-' + i"
|
||||
:id="'dashitem-' + i"
|
||||
v-on:dash-remove="dashRemove"
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
@@ -40,12 +44,15 @@ export default {
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
TestItems: function() {
|
||||
dashItems: function() {
|
||||
let ret = [];
|
||||
for (var i = 0; i < 12; i++) {
|
||||
ret.push({ index: i, title: `Dash ${i}` });
|
||||
}
|
||||
return ret;
|
||||
},
|
||||
dashRemove: function(item) {
|
||||
console.log("home-dashboard:dashRemove", item);
|
||||
}
|
||||
},
|
||||
data() {
|
||||
|
||||
Reference in New Issue
Block a user