Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
muse-ui-test
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2019-05-17 18:12:44 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
702ecb073afae8261e7ef05d4fc81a869ef2d87c
702ecb07
1 parent
a952f79d
fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
src/App.vue
src/App.vue
View file @
702ecb0
<template>
<div id="app">
<mu-drawer :open.sync="side_show" :docked="docked" :right="position === 'right'" :z-depth="1">
<mu-list>
<mu-list-item
v-for="(v, k) in side_menu" :key="k" :to="v.url" @click="goTo()" button
>
<mu-list
:value="default_list_index" @change="listChange"
>
<mu-list-item
:value="k" v-for="(v, k) in side_menu" :key="k" :to="v.url" @click="goTo()" button active-class="is-selected"
>
<mu-list-item-title>{{ v.title }}</mu-list-item-title>
</mu-list-item>
<!-- <mu-list-item @click="close" button>
...
...
@@ -59,6 +59,7 @@ export default {
},
data () {
return {
default_list_index: 0,
side_show: false,
screen_width: '',
docked: false,
...
...
@@ -90,6 +91,10 @@ export default {
},
goTo (v) {
this.resize($('body').width());
},
listChange (v) {
//
this.default_list_index = v
}
}
}
...
...
@@ -131,4 +136,8 @@ export default {
width: calc(100% - 256px)
}
// .mu-item.is-selected {
// color: #2196f3;
// }
</style>
...
...
Please
register
or
login
to post a comment