fix: tab's props not observable

This commit is contained in:
陈嘉涵
2017-09-27 10:48:50 +08:00
parent b6667ef0e6
commit 37a5c55ddb
3 changed files with 35 additions and 26 deletions

View File

@@ -84,8 +84,7 @@ export default {
},
isChecked() {
const currentValue = this.currentValue;
console.log('this.currentValue:', this.currentValue);
const { currentValue } = this;
if ({}.toString.call(currentValue) === '[object Boolean]') {
return currentValue;
} else if (currentValue !== null && currentValue !== undefined) {