Created
August 28, 2019 15:50
-
-
Save nanotroy/5ba64c3188d1087cde60dcb386923832 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<q-layout view="lHh Lpr lFf"> | |
<q-header elevated> | |
<q-toolbar> | |
<q-btn | |
flat | |
dense | |
round | |
@click="leftDrawerOpen = !leftDrawerOpen" | |
aria-label="Menu" | |
icon="menu" | |
/> | |
<q-toolbar-title>New York Times Quasar App</q-toolbar-title> | |
</q-toolbar> | |
</q-header> | |
<q-drawer v-model="leftDrawerOpen" bordered content-class="bg-grey-2"> | |
<q-list> | |
<q-item-label header>New York Times Quasar App</q-item-label> | |
<q-item to="/" exact> | |
<q-item-section avatar> | |
<q-icon name="home" /> | |
</q-item-section> | |
<q-item-section> | |
<q-item-label>Home</q-item-label> | |
</q-item-section> | |
</q-item> | |
<q-item to="/search" exact> | |
<q-item-section avatar> | |
<q-icon name="info" /> | |
</q-item-section> | |
<q-item-section> | |
<q-item-label>Search</q-item-label> | |
</q-item-section> | |
</q-item> | |
</q-list> | |
</q-drawer> | |
<q-page-container> | |
<router-view /> | |
</q-page-container> | |
</q-layout> | |
</template> | |
<script> | |
export default { | |
name: "LayoutDefault", | |
data() { | |
return { | |
leftDrawerOpen: false | |
}; | |
} | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment