Nuxt/examples/with-museui/pages/index.vue
pooya parsa e7cc2757c3 refactor: update eslint-config to 1.x
Co-authored-by: Alexander Lichter <manniL@gmx.net>
2019-07-10 15:15:49 +04:30

44 lines
948 B
Vue

<template>
<div>
<mu-appbar title="Nuxt.js">
<mu-icon-button slot="left" icon="menu" @click="toggle()" />
<mu-icon-menu slot="right" icon="expand_more">
<mu-menu-item value="1" title="One" />
<mu-menu-item value="2" title="Two" />
<mu-menu-item value="3" title="Three" />
</mu-icon-menu>
</mu-appbar>
<mu-drawer :open="open" :docked="false" @close="toggle()">
<mu-list>
<mu-list-item title="Menu Item 1" />
<mu-list-item title="Menu Item 2" />
<mu-list-item title="Menu Item 3" />
</mu-list>
</mu-drawer>
<div class="content">
<mu-raised-button label="Primary" class="demo-raised-button" primary />
</div>
</div>
</template>
<script>
export default {
data () {
return {
open: false
}
},
methods: {
toggle (flag) {
this.open = !this.open
}
}
}
</script>
<style>
.content {
margin: 10px
}
</style>