Make image blocks work

This commit is contained in:
Ramon Wenger 2018-10-11 16:07:02 +02:00
parent e1deb19ca8
commit 6772aba1c9
2 changed files with 8 additions and 2 deletions

View File

@ -20,7 +20,7 @@
class="contents-form__element-component"
:is="type(element)"
:class="{'contents-form__chooser': type(element) === 'content-block-element-chooser-widget'}"
:element="element" v-bind="element" :index="index"
v-bind="element" :index="index"
v-on:change-type="changeType"
v-on:link-change-url="changeLinkUrl"

View File

@ -1,7 +1,13 @@
<template>
<img src="https://picsum.photos/400?random" alt="" class="image-block">
<img :src="value.path" alt="" class="image-block">
</template>
<script>
export default {
props: ['value']
}
</script>
<style scoped lang="scss">
.image-block {
width: 100%;