debian-mirror-gitlab/app/assets/javascripts/notebook/cells/output/image.vue
2018-03-17 18:26:18 +05:30

26 lines
430 B
Vue

<script>
import Prompt from '../prompt.vue';
export default {
components: {
prompt: Prompt,
},
props: {
outputType: {
type: String,
required: true,
},
rawCode: {
type: String,
required: true,
},
},
};
</script>
<template>
<div class="output">
<prompt />
<img :src="'data:' + outputType + ';base64,' + rawCode" />
</div>
</template>