Nuxt/examples/nested-components/components/post.vue
Ricardo Gobbo de Souza 6315bd71f3 fix: nested-components example (#4535)
[skip ci]
2018-12-13 22:09:16 +03:30

33 lines
407 B
Vue
Executable File

<template>
<div class="main">
<h1 class="title">
{{ title }}
</h1>
<slot />
</div>
</template>
<script>
export default {
props: {
title: {
type: String,
default: ''
}
}
}
</script>
<style scoped>
.main {
font: 15px Helvetica, Arial;
border: 1px solid #eee;
padding: 0 10px;
}
.title {
font-size: 16px;
font-weight: bold;
margin: 10px 0
}
</style>