Nuxt/examples/nested-components/pages/index.vue
Jonas Galvez 3f1d634fb7 Consistent parens in arrow functions (#3630)
* Minor consistency enhancements

* Arrow parenthesis consistency

* Change linting rule

* Fix typo

* Update .eslintrc.js to only require parens for blocks

* Update style according to brace-only suggestion

* Remove --fix from lint

* Tweak no-loading time (failing test)

* Tweak no-loading time (failing test) (2)

* Tweak no-loading time (failing test) (3)

* Tweak no-loading time (failing test) (4)

* Tweak no-loading time (failing test) (5)
2018-08-06 02:12:44 +02:00

55 lines
906 B
Vue
Executable File

<template lang="html">
<div class="main">
<post title="My first blog post">
<v-p>Hello there</v-p>
<v-p>This is an example of a componentized blog post</v-p>
</post>
<v-hr/>
<post title="My second blog post">
<v-p>Hello there</v-p>
<v-p>This is another example.</v-p>
<v-p>Wa-hoo!</v-p>
</post>
<v-hr/>
<post title="The final blog post">
<v-p>C'est la fin !</v-p>
</post>
</div>
</template>
<script>
import Post from '~/components/post'
import vP from '~/components/paragraph'
const vHr = { render: h => h('hr', { class: 'hr' }) }
export default {
components: {
Post,
vP,
vHr
}
}
</script>
<style scoped>
.main {
margin: auto;
max-width: 420px;
padding: 10px;
}
.hr {
width: 100px;
border-width: 0;
margin: 20px auto;
text-align: center;
}
hr::before {
content: '***';
color: #ccc;
}
</style>