update files

This commit is contained in:
nuintun 2015-11-23 19:42:00 +08:00
parent 71fdf17409
commit 75c28d020d
3 changed files with 8 additions and 7 deletions

View File

@ -372,14 +372,11 @@ header [class*=" icon-"] {
position: absolute; position: absolute;
top: 39px; top: 39px;
right: 0; right: 0;
line-height: 30px;
background-color: #eee; background-color: #eee;
} }
.ui-command-popup li { .ui-command-popup li {
float: none; float: none;
line-height: 30px;
}
.ui-command-popup li a {
padding: 0 10px;
} }
.ui-project-tree a, .ui-project-tree a,
.ui-command li a, .ui-command li a,

View File

@ -18,8 +18,8 @@
</a> </a>
</li> </li>
<li v-if="moreCommand.length" class="ui-command-more"> <li v-if="moreCommand.length" class="ui-command-more">
<a href="javascript:;">更多&nbsp;<i class="icon-expand"></i></a> <a href="javascript:;" @click="commandToggle">更多&nbsp;<i class="icon-expand"></i></a>
<ul class="ui-command-popup fn-hide"> <ul v-show="showMoreCommand" class="ui-command-popup">
<li v-for="moreCmd in moreCommand"> <li v-for="moreCmd in moreCommand">
<a href="javascript:;"> <a href="javascript:;">
<i class="icon-play"></i> <i class="icon-play"></i>

View File

@ -30,7 +30,8 @@ module.exports = Vue.component('app-main', {
}, },
data: function (){ data: function (){
return { return {
showSetting: false showSetting: false,
showMoreCommand: false
}; };
}, },
computed: { computed: {
@ -58,6 +59,9 @@ module.exports = Vue.component('app-main', {
setting: function (){ setting: function (){
this.showSetting = true; this.showSetting = true;
}, },
commandToggle: function (){
this.showMoreCommand = !this.showMoreCommand;
},
remove: function (){ remove: function (){
this.projects.splice(this.activeIndex, 1); this.projects.splice(this.activeIndex, 1);
this.activeIndex = 0; this.activeIndex = 0;