Nuxt/examples/dynamic-components/components/code.vue

20 lines
223 B
Vue
Raw Normal View History

2017-07-08 23:44:59 +00:00
<template>
<pre>{{ data }}</pre>
</template>
<script>
export default {
props: {
data: String
}
}
</script>
<style scoped>
pre {
background: #222;
color: #eee;
margin: 0;
padding: 20px;
}
</style>