Develop #8
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
<!-- image finder (with Unsplash API) -->
|
<!-- image finder (with Unsplash API) -->
|
||||||
<ImageUnsplash
|
<ImageUnsplash
|
||||||
@getValue="getImage"
|
@getValue="url => (fruit.image = url)"
|
||||||
label="Image"
|
label="Image"
|
||||||
containerClass="form-field"
|
containerClass="form-field"
|
||||||
placeholder="Search: strawberry, apple ..."
|
placeholder="Search: strawberry, apple ..."
|
||||||
@@ -108,9 +108,6 @@ export default {
|
|||||||
document.body.classList.remove("is-overlayed");
|
document.body.classList.remove("is-overlayed");
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getImage(url) {
|
|
||||||
this.fruit.image = url;
|
|
||||||
},
|
|
||||||
async checkForm(e) {
|
async checkForm(e) {
|
||||||
this.fruit.expires = new Date(this.fruit.expires);
|
this.fruit.expires = new Date(this.fruit.expires);
|
||||||
await this.$store
|
await this.$store
|
||||||
@@ -189,25 +186,6 @@ export default {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
// :first-child {
|
|
||||||
// margin-right: 1rem;
|
|
||||||
// width: 60%;
|
|
||||||
|
|
||||||
// @media screen and (min-width: @sm) {
|
|
||||||
// width: 100%;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// [type="color"] {
|
|
||||||
// width: calc(40% - 1rem);
|
|
||||||
// flex-shrink: 0;
|
|
||||||
// height: 48px;
|
|
||||||
|
|
||||||
// @media screen and (min-width: @sm) {
|
|
||||||
// width: calc(35% - 1rem);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.actions {
|
.actions {
|
||||||
|
|||||||
Reference in New Issue
Block a user