debian-mirror-gitlab/app/assets/javascripts/notebook/cells/output/image.vue

27 lines
430 B
Vue
Raw Normal View History

2017-08-17 22:00:37 +05:30
<script>
2018-03-17 18:26:18 +05:30
import Prompt from '../prompt.vue';
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
export default {
components: {
prompt: Prompt,
2017-08-17 22:00:37 +05:30
},
2018-03-17 18:26:18 +05:30
props: {
outputType: {
type: String,
required: true,
},
rawCode: {
type: String,
required: true,
},
2017-08-17 22:00:37 +05:30
},
2018-03-17 18:26:18 +05:30
};
2017-08-17 22:00:37 +05:30
</script>
2018-03-17 18:26:18 +05:30
<template>
<div class="output">
<prompt />
<img :src="'data:' + outputType + ';base64,' + rawCode" />
</div>
</template>