From b923c8187ceed0370ab40ce66c64d700e993fc7a Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Tue, 7 Feb 2017 13:34:16 +0800 Subject: [PATCH] update Tree --- src/components/checkbox/checkbox.vue | 7 ++++++- src/components/collapse/panel.vue | 2 +- src/components/tree/tree.vue | 31 ++++++++++++++++++++----------- src/styles/components/tree.less | 48 ++++++++++++++++++++++++++---------------------- test/routers/tree.vue | 6 +++--- 5 files changed, 56 insertions(+), 38 deletions(-) diff --git a/src/components/checkbox/checkbox.vue b/src/components/checkbox/checkbox.vue index 853925a..90d99b7 100644 --- a/src/components/checkbox/checkbox.vue +++ b/src/components/checkbox/checkbox.vue @@ -36,6 +36,10 @@ checked: { type: Boolean, default: false + }, + indeterminate: { + type: Boolean, + default: false } }, data () { @@ -62,7 +66,8 @@ `${prefixCls}`, { [`${prefixCls}-checked`]: this.selected, - [`${prefixCls}-disabled`]: this.disabled + [`${prefixCls}-disabled`]: this.disabled, + [`${prefixCls}-indeterminate`]: this.indeterminate } ]; }, diff --git a/src/components/collapse/panel.vue b/src/components/collapse/panel.vue index 6b28805..bcfc94f 100644 --- a/src/components/collapse/panel.vue +++ b/src/components/collapse/panel.vue @@ -10,7 +10,7 @@