update files

This commit is contained in:
Nuintun
2015-11-20 17:45:23 +08:00
parent b31cda4eab
commit 37587ea685
5 changed files with 33 additions and 18 deletions

View File

@@ -29,8 +29,10 @@ module.exports = Vue.component('project-base', {
};
},
methods: {
focus: function (key){
this[key] = '';
focus: function (key, event){
if (event.target.type === 'text') {
this[key] = '';
}
}
},
events: {