Modify the directory structure

Modify the directory structure
This commit is contained in:
梁灏 2016-10-28 10:09:07 +08:00
parent 31fbef10e4
commit 4b05d84ea2
175 changed files with 48 additions and 46 deletions

View file

@ -0,0 +1,19 @@
export default {
bind () {
this.documentHandler = (e) => {
if (this.el.contains(e.target)) {
return false;
}
if (this.expression) {
this.vm[this.expression]();
}
};
document.addEventListener('click', this.documentHandler);
},
update () {
},
unbind () {
document.removeEventListener('click', this.documentHandler);
}
}