Nuxt/examples/nested-components/components/post.vue

29 lines
371 B
Vue
Raw Normal View History

2016-11-07 01:34:58 +00:00
<template>
<div class="main">
<h1 class="title">{{ title }}</h1>
<slot/>
2016-11-07 01:34:58 +00:00
</div>
</template>
<script>
export default {
title: {
type: String,
default: ''
}
2016-11-07 01:34:58 +00:00
}
</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>