From 94d177cc836e44df8f27795bde09e79c88974ddd Mon Sep 17 00:00:00 2001 From: Sergio Crisostomo Date: Sat, 14 Oct 2017 09:47:33 +0200 Subject: [PATCH 1/3] add width to expand icon so we can click on it easier --- src/styles/components/tree.less | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/styles/components/tree.less b/src/styles/components/tree.less index 60a43632..0d9a37e4 100644 --- a/src/styles/components/tree.less +++ b/src/styles/components/tree.less @@ -38,7 +38,10 @@ } &-arrow{ cursor: pointer; - i{ + width: 12px; + text-align: center; + display: inline-block; + i { transition: all @transition-time @ease-in-out; } &-open{ @@ -56,4 +59,4 @@ cursor: @cursor-disabled; } } -} \ No newline at end of file +} From d44420be721153feb22e150d3b05ecccfdc703d7 Mon Sep 17 00:00:00 2001 From: Sergio Crisostomo Date: Sat, 14 Oct 2017 09:49:13 +0200 Subject: [PATCH 2/3] refactor and make indeterminate accessible outside tree --- src/components/tree/node.vue | 54 +++-------- src/components/tree/tree.vue | 179 +++++++++++++++++++++-------------- 2 files changed, 118 insertions(+), 115 deletions(-) diff --git a/src/components/tree/node.vue b/src/components/tree/node.vue index 261b89d0..63e38f9d 100644 --- a/src/components/tree/node.vue +++ b/src/components/tree/node.vue @@ -1,6 +1,6 @@