From 997087f182d55a3e18b91db7f7c08ce83054dcd4 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 22 Apr 2020 15:48:54 +0000 Subject: [PATCH] --- ayanova/src/components/attachment-control.vue | 89 ++++++------------- 1 file changed, 28 insertions(+), 61 deletions(-) diff --git a/ayanova/src/components/attachment-control.vue b/ayanova/src/components/attachment-control.vue index 11fa2979..f574f92a 100644 --- a/ayanova/src/components/attachment-control.vue +++ b/ayanova/src/components/attachment-control.vue @@ -13,18 +13,22 @@
- + + + @@ -69,67 +73,30 @@ export default { data() { return { height: 300, - items: [ + attachedFiles: [ { + id: 1, icon: "fa-file-image", - title: "drawings.pdf", - subtitle: "2020-01-09, Notes, here are some notes, notes notes notes.\n Secondary line text Lorem ipsum dolor sit amet, consectetur adipiscing elit.Notes, here are some notes, notes notes notes.\n Secondary line text Lorem ipsum dolor sit amet, consectetur adipiscing elit.Notes, here are some notes, notes notes notes.\n Secondary line text Lorem ipsum dolor sit amet, consectetur adipiscing elit.Notes, here are some notes, notes notes notes.\n Secondary line text Lorem ipsum dolor sit amet, consectetur adipiscing elit. " + name: "drawings.pdf", + date: "2020-01-09", + notes: + "Notes, here are some notes, notes notes notes.\n Secondary line text Lorem ipsum dolor sit amet, consectetur adipiscing elit.Notes, here are some notes, notes notes notes.\n Secondary line text Lorem ipsum dolor sit amet, consectetur adipiscing elit.Notes, here are some notes, notes notes notes.\n Secondary line text Lorem ipsum dolor sit amet, consectetur adipiscing elit.Notes, here are some notes, notes notes notes.\n Secondary line text Lorem ipsum dolor sit amet, consectetur adipiscing elit. " }, { - icon: "fa-image", - title: "Recipes", - subtitle: "Jan 17, 2014" + id: 2, + icon: "fa-file-image", + name: "drawings.pdf", + date: "2020-01-09", + notes: + "Notes, here are some notes, notes notes notes.\n Secondary line text Lorem ipsum dolor sit amet, consectetur adipiscing elit.Notes, here are some notes, notes notes notes.\n Secondary line text Lorem ipsum dolor sit amet, consectetur adipiscing elit.Notes, here are some notes, notes notes notes.\n Secondary line text Lorem ipsum dolor sit amet, consectetur adipiscing elit.Notes, here are some notes, notes notes notes.\n Secondary line text Lorem ipsum dolor sit amet, consectetur adipiscing elit. " }, { - icon: "fa-pen", - title: "Work", - subtitle: "Jan 28, 2014" - }, - { - icon: "fa-file", - title: "2drawings.pdf", - subtitle: "2020-01-09" - }, - { - icon: "fa-image", - title: "2Recipes", - subtitle: "Jan 17, 2014" - }, - { - icon: "fa-pen", - title: "2Work", - subtitle: "Jan 28, 2014" - }, - { - icon: "fa-file", - title: "3drawings.pdf", - subtitle: "2020-01-09" - }, - { - icon: "fa-image", - title: "3Recipes", - subtitle: "Jan 17, 2014" + id: 3, + icon: "fa-file-image", + name: "drawings.pdf", + date: "2020-01-09", + notes: null } - // { - // icon: "fa-pen", - // title: "3Work", - // subtitle: "Jan 28, 2014" - // }, - // { - // icon: "fa-file", - // title: "4drawings.pdf", - // subtitle: "2020-01-09" - // }, - // { - // icon: "fa-image", - // title: "4Recipes", - // subtitle: "Jan 17, 2014" - // }, - // { - // icon: "fa-pen", - // title: "4Work", - // subtitle: "Jan 28, 2014" - // } ], notes: null, tab: null, @@ -175,8 +142,8 @@ export default { // }); // } }, - aClick() { - console.log("CLICK"); + download(item) { + console.log("CLICK", item); } }