+
@@ -45,7 +45,13 @@ export default class LdThumbnail extends Vue {
loading: boolean = false;
pictureSrc() {
- if (this.item.thumbnail) return `${process.env.VUE_APP_DATA_URL}${this.item.thumbnail.resource}`;
+ const resource = this.item.thumbnail!.resource;
+ return `${process.env.VUE_APP_DATA_URL}${resource}`;
+ }
+
+ pictureStyle() {
+ const resolution = this.item.thumbnail!.resolution;
+ return { width: `${resolution.width}px`, height: `${resolution.height}px` };
}
getIcon() {
@@ -57,10 +63,6 @@ export default class LdThumbnail extends Vue {
--
cgit v1.2.3