This commit is contained in:
2020-10-29 18:56:59 +00:00
parent 47cc5f131f
commit 656189fd8c
2 changed files with 52 additions and 7 deletions

View File

@@ -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() {