create product functionality and page

This commit is contained in:
María
2025-08-21 11:55:20 +02:00
parent 2633959ce8
commit 4a05f8915b
4 changed files with 212 additions and 58 deletions

View File

@@ -10,7 +10,7 @@
:src="croppieImage"
:stencil-props="{ aspectRatio: 1 }"
/>
<div>
<div class="buttons">
<button class="filter-button" @click.prevent="crop">Aplicar</button>
<button @click.prevent="cancel">Cancelar</button>
</div>
@@ -31,7 +31,7 @@ export default {
components: { Cropper },
props: {
imageUrl: {
type: String,
type: [String, Object],
default: null,
},
},
@@ -106,5 +106,10 @@ export default {
}
.input {
max-width: 100%;
margin-bottom: 1em;
}
.buttons {
margin-top: 1em;
}
</style>