From 9c7c074305f6e18007466adda1a10b0035110e1f Mon Sep 17 00:00:00 2001 From: busti Date: Sat, 16 Nov 2019 01:48:15 +0100 Subject: [PATCH] use slots to render a cards content --- src/App.vue | 13 ++++++++++++- src/components/Cards.vue | 16 ++++------------ 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/App.vue b/src/App.vue index 3e3f778..256441e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -16,7 +16,18 @@ :columns="['uid', 'description', 'box', 'image']" :items="loadedItems" :keyName="'uid'" - /> + v-slot="{ item }" + > + item +
+
{{ item.description }}
+
uid: {{ item.uid }} box: {{ item.box }}
+
+ diff --git a/src/components/Cards.vue b/src/components/Cards.vue index 73db069..5e53ec1 100644 --- a/src/components/Cards.vue +++ b/src/components/Cards.vue @@ -1,6 +1,6 @@