Reference domain
This commit is contained in:
@@ -5,12 +5,19 @@
|
|||||||
?
|
?
|
||||||
</Box>
|
</Box>
|
||||||
</div>
|
</div>
|
||||||
|
<template v-for="item, index in items" >
|
||||||
|
<div class="item" :key="item.id">
|
||||||
|
{{ index }} {{ item.title }} {{ item.artist }} {{ item.duration }}
|
||||||
|
<button :disabled="item.disabled" @click="orderItem(item)">Order</button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Component, Prop, Vue } from "vue-property-decorator";
|
import { Component, Prop, Vue } from "vue-property-decorator";
|
||||||
import posed from "vue-pose";
|
import posed from "vue-pose";
|
||||||
|
import domain from "@/domain/domain";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
components: {
|
components: {
|
||||||
@@ -23,7 +30,7 @@ import posed from "vue-pose";
|
|||||||
export default class CardComponent extends Vue {
|
export default class CardComponent extends Vue {
|
||||||
private isVisible: boolean;
|
private isVisible: boolean;
|
||||||
public data() {
|
public data() {
|
||||||
return { isVisible: this.isVisible };
|
return { isVisible: this.isVisible, items: domain.musicCatalog.get() };
|
||||||
}
|
}
|
||||||
public mounted() {
|
public mounted() {
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user