update files

This commit is contained in:
Nuintun
2015-11-20 16:34:41 +08:00
parent 5950b48276
commit d280e911e7
4 changed files with 8 additions and 2 deletions

View File

@@ -34,6 +34,9 @@ module.exports = Vue.component('project-base', {
}
},
events: {
'directory-input-focus': function (){
this.pathError = '';
},
'clean-error': function (){
this.nameError = '';
this.pathError = '';

View File

@@ -1,6 +1,6 @@
<li>
<label>项目名称:</label>
<input type="text" v-model="name" placeholder="项目名称"/>
<input type="text" v-model="name" placeholder="项目名称" lazy @focus="focus('nameError')"/>
</li>
<li v-show="nameError" class="ui-item-error">
<label class="fn-invisible">&emsp;&emsp;&emsp;&emsp;&emsp;</label>