mirror of
https://github.com/nuintun/command-manager.git
synced 2025-10-20 01:27:47 +08:00
update files
This commit is contained in:
@@ -14,6 +14,11 @@ require('../dynamic-item');
|
||||
module.exports = Vue.component('project-configure', {
|
||||
template: fs.readFileSync(path.join(__dirname, 'project-configure.html')).toString(),
|
||||
props: {
|
||||
show: {
|
||||
type: Boolean,
|
||||
twoWay: true,
|
||||
default: false
|
||||
},
|
||||
project: {
|
||||
type: Object,
|
||||
required: true
|
||||
@@ -52,11 +57,14 @@ module.exports = Vue.component('project-configure', {
|
||||
} else {
|
||||
// clean error
|
||||
this.submitError = '';
|
||||
|
||||
|
||||
// send message
|
||||
this.$dispatch('edit', this.projectClone);
|
||||
}
|
||||
}
|
||||
},
|
||||
cancel: function (){
|
||||
this.show = false;
|
||||
}
|
||||
},
|
||||
events: {
|
||||
|
@@ -1,9 +1,9 @@
|
||||
<div class="ui-project-setting">
|
||||
<form @submit.prevent="edit">
|
||||
<div v-show="show" class="ui-project-setting">
|
||||
<form @submit.prevent="edit" @focusin="focus">
|
||||
<div class="ui-control-bar fn-clear">
|
||||
<div class="fn-right">
|
||||
<input type="submit" class="ui-button" value="确认"/>
|
||||
<input type="button" class="ui-button ui-button-orange" value="取消"/>
|
||||
<input type="button" class="ui-button ui-button-orange" value="取消" @click="cancel"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-project-configure">
|
||||
|
Reference in New Issue
Block a user