WIP: Add + on book list element
All checks were successful
Test / runtest (push) Successful in 2h10m39s
All checks were successful
Test / runtest (push) Successful in 2h10m39s
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
title: String,
|
title: String,
|
||||||
author: String,
|
author: String,
|
||||||
|
id: BigInt,
|
||||||
imagePath: String,
|
imagePath: String,
|
||||||
});
|
});
|
||||||
const imagePathOrDefault = (props.imagePath == "" || typeof props.imagePath === 'undefined') ? "../defaultbook.png" : props.imagePath;
|
const imagePathOrDefault = (props.imagePath == "" || typeof props.imagePath === 'undefined') ? "../defaultbook.png" : props.imagePath;
|
||||||
@@ -11,8 +12,15 @@ const imagePathOrDefault = (props.imagePath == "" || typeof props.imagePath ===
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="box container has-background-dark">
|
<div class="columns box container has-background-dark">
|
||||||
<div class="media">
|
<div class="column is-narrow">
|
||||||
|
<button class="button">
|
||||||
|
<span class="icon" title="Add">
|
||||||
|
<b-icon-plus />
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="media column">
|
||||||
<div class="media-left">
|
<div class="media-left">
|
||||||
<figure class="image mb-3">
|
<figure class="image mb-3">
|
||||||
<img v-bind:src="imagePathOrDefault" v-bind:alt="title">
|
<img v-bind:src="imagePathOrDefault" v-bind:alt="title">
|
||||||
|
|||||||
Reference in New Issue
Block a user