update files

This commit is contained in:
nuintun
2015-11-23 16:12:00 +08:00
parent ea69932db8
commit 034871ef5d
8 changed files with 64 additions and 28 deletions

View File

@@ -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: {

View File

@@ -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">