-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.vue
64 lines (60 loc) · 1.53 KB
/
Main.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<template>
<div id="main">
<mu-appbar title="Main" :zDepth="0" class="Appbar moveAble" :class="{'nav-hide': !openNav}">
<mu-icon-button @click="toggleNav" class="notMoveAble" icon="menu" slot="left"/>
<mu-icon-button class="notMoveAble" icon="clear" slot="right"/>
</mu-appbar>
<mu-drawer :open="openNav" :docked="docked" :overlay="docked" class="app-drawer" :zDepth="1">
<mu-appbar :zDepth="0" title="ILauncher">
</mu-appbar>
</mu-drawer>
<Login></Login>
</div>
</template>
<script>
require("muse-ui/dist/muse-ui.css")
require("muse-ui/dist/muse-ui.js")
import Login from './components/Login'
export default {
data() {
return {
openNav: true,
docked: true
}
},
methods: {
toggleNav() {
this.openNav = !this.openNav;
}
},
components: { Login }
}
</script>
<style scoped>
.moveAble {
-webkit-app-region: drag;
}
.notMoveAble {
-webkit-app-region: no-drag
}
.Appbar{
position: fixed;
left: 256px;
right: 0;
top: 0;
width: auto;
-webkit-transition: all .45s cubic-bezier(.23,1,.32,1);
transition: all .45s cubic-bezier(.23,1,.32,1)
}
.Appbar.nav-hide {
left: 0
}
</style>
<style>
html {
font-family: Microsoft YaHei;
}
</style>
<style lang="stylus">
@import '../assets/main'
</style>