2019-04-29 00:11:57 +00:00
|
|
|
<template>
|
|
|
|
<div class="lzyxtsnt">
|
2020-01-29 19:37:25 +00:00
|
|
|
<img v-if="image" :src="image.url" alt=""/>
|
2019-04-29 00:11:57 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
props: {
|
|
|
|
value: {
|
|
|
|
required: true
|
|
|
|
},
|
|
|
|
page: {
|
|
|
|
required: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
image: null,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
this.image = this.page.attachedFiles.find(x => x.id === this.value.fileId);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2020-01-29 19:37:25 +00:00
|
|
|
<style lang="scss" scoped>
|
|
|
|
.lzyxtsnt {
|
|
|
|
> img {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
}
|
2019-04-29 00:11:57 +00:00
|
|
|
</style>
|