From 16599cb26ea35174d0ebc4f5e700d81328055409 Mon Sep 17 00:00:00 2001 From: kurbezz Date: Sat, 19 Sep 2020 16:18:08 +0300 Subject: [PATCH] Add photos in album view --- src/App.vue | 1 - src/components/Album.vue | 8 +--- src/components/Photo.vue | 99 ++++++++++++++++++++++++++++++++++++++++ src/views/Album.vue | 55 +++++++++++++++++++++- 4 files changed, 153 insertions(+), 10 deletions(-) create mode 100644 src/components/Photo.vue diff --git a/src/App.vue b/src/App.vue index 2560344..47faf2a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -122,7 +122,6 @@ export default class App extends Vue { @Watch('leftPanelClosed') onLeftPanelClosedChange(val: boolean, oldValue: boolean) { - console.log(val, oldValue); this.changeLeftPanelStatus(val); } } diff --git a/src/components/Album.vue b/src/components/Album.vue index a7b18fa..a1a2e9f 100644 --- a/src/components/Album.vue +++ b/src/components/Album.vue @@ -58,15 +58,9 @@ export default class Album extends Vue { } } - get backgroundMaskStyle() { - return { - 'margin-top': `-${this.height}` - }; - } - get coverStyle() { return { - 'background-image': `url('pictures/albums/${this.data.folderName}/${this.data.files[0]}')`, + 'background-image': `url('pictures/albums/${this.data.folderName}/${this.data.coverFileName}')`, }; } diff --git a/src/components/Photo.vue b/src/components/Photo.vue new file mode 100644 index 0000000..61bf070 --- /dev/null +++ b/src/components/Photo.vue @@ -0,0 +1,99 @@ + + + + + diff --git a/src/views/Album.vue b/src/views/Album.vue index a8a6482..a26ad48 100644 --- a/src/views/Album.vue +++ b/src/views/Album.vue @@ -4,26 +4,35 @@ :title="title" :description="description" :picture="picture"> +
+
+ +
+
-