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