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

21 lines
206 B
Vue
Raw Normal View History

2017-07-08 23:44:59 +00:00
<template>
<p v-html="data"/>
2017-07-08 23:44:59 +00:00
</template>
<script>
export default {
props: {
data: {
type: String,
default: ''
}
2017-07-08 23:44:59 +00:00
}
}
</script>
<style scoped>
p {
padding: 5px 20px;
}
</style>