mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-07 11:34:05 +08:00
update files
This commit is contained in:
parent
5950b48276
commit
d280e911e7
@ -1,3 +1,3 @@
|
||||
<label>{{label}}:</label>
|
||||
<input type="text" :title="path" :placeholder="label" v-model="path" lazy/>
|
||||
<input type="text" :title="path" :placeholder="label" v-model="path" lazy @focus="focus"/>
|
||||
<a title="选择项目" href="javascript:;" class="icon-ellipsis" @click="open"></a>
|
@ -26,6 +26,9 @@ module.exports = Vue.component('directory', {
|
||||
methods: {
|
||||
open: function (){
|
||||
ipc.send('open-directory', this.path, this._uid);
|
||||
},
|
||||
focus: function (){
|
||||
this.$dispatch('directory-input-focus');
|
||||
}
|
||||
},
|
||||
created: function (){
|
||||
|
@ -34,6 +34,9 @@ module.exports = Vue.component('project-base', {
|
||||
}
|
||||
},
|
||||
events: {
|
||||
'directory-input-focus': function (){
|
||||
this.pathError = '';
|
||||
},
|
||||
'clean-error': function (){
|
||||
this.nameError = '';
|
||||
this.pathError = '';
|
||||
|
@ -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">     </label>
|
||||
|
Loading…
x
Reference in New Issue
Block a user