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"> +
+
+ +
+
-