修复modal标题属性首次如果没有值,再赋值的话就会没用

This commit is contained in:
H 2017-04-23 23:16:19 +08:00
parent ab249f7059
commit f024ab823a
2 changed files with 11 additions and 3 deletions

View file

@ -261,6 +261,11 @@
} else {
this.removeScrollEffect();
}
},
title (val) {
if (this.$slots.header === undefined) {
this.showHead = val?true:false;
}
}
}
};