Add title block component
This commit is contained in:
parent
56e658ec2f
commit
fb739b336a
9
src/components/TitleBlock.vue
Normal file
9
src/components/TitleBlock.vue
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<template>
|
||||||
|
<div class="bg-grey-lighter px-4 py-5 border-b-2 border-grey flex justify-between items-center">
|
||||||
|
<div class="w-full md:w-auto flex flex-col">
|
||||||
|
<slot name="left"></slot>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<slot name="right"></slot>
|
||||||
|
</div>
|
||||||
|
</template>
|
|
@ -7,10 +7,12 @@ Vue.config.productionTip = false
|
||||||
import HeaderButtons from '@/components/HeaderButtons'
|
import HeaderButtons from '@/components/HeaderButtons'
|
||||||
import Sidebar from '@/components/Sidebar'
|
import Sidebar from '@/components/Sidebar'
|
||||||
import Navbar from '@/components/Navbar'
|
import Navbar from '@/components/Navbar'
|
||||||
|
import TitleBlock from '@/components/TitleBlock'
|
||||||
|
|
||||||
Vue.component('header-buttons', HeaderButtons);
|
Vue.component('header-buttons', HeaderButtons);
|
||||||
Vue.component('navbar', Navbar);
|
Vue.component('navbar', Navbar);
|
||||||
Vue.component('sidebar', Sidebar);
|
Vue.component('sidebar', Sidebar);
|
||||||
|
Vue.component('title-block', TitleBlock);
|
||||||
|
|
||||||
new Vue({
|
new Vue({
|
||||||
render: h => h(App),
|
render: h => h(App),
|
||||||
|
|
Reference in a new issue