From 37a5c55ddb1a83fe4773ce9218aaa9bb9d838ae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Wed, 27 Sep 2017 10:48:50 +0800 Subject: [PATCH 1/2] fix: tab's props not observable --- packages/checkbox/index.vue | 3 +-- packages/tab/index.vue | 40 ++++++++++++++++++++++++++----------- packages/tabs/index.vue | 18 ++++++----------- 3 files changed, 35 insertions(+), 26 deletions(-) diff --git a/packages/checkbox/index.vue b/packages/checkbox/index.vue index 9518db5ee..7f7e30cbe 100644 --- a/packages/checkbox/index.vue +++ b/packages/checkbox/index.vue @@ -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) { diff --git a/packages/tab/index.vue b/packages/tab/index.vue index 232bd6b33..65933ef2e 100644 --- a/packages/tab/index.vue +++ b/packages/tab/index.vue @@ -1,35 +1,51 @@