mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
31 lines
384 B
Vue
Executable File
31 lines
384 B
Vue
Executable File
<template>
|
|
<div class="main">
|
|
<h1 class="title">
|
|
{{ title }}
|
|
</h1>
|
|
<slot />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
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>
|