From 07e243ffc1472a7149b353d30d5c0bea861a43eb Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Tue, 7 Feb 2017 13:41:09 +0800 Subject: [PATCH] update Checkbox indeterminate style --- src/components/tree/tree.vue | 1 + src/styles/mixins/checkbox.less | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 0 deletions(-) diff --git a/src/components/tree/tree.vue b/src/components/tree/tree.vue index 4b87cc4..929437a 100644 --- a/src/components/tree/tree.vue +++ b/src/components/tree/tree.vue @@ -10,6 +10,7 @@ diff --git a/src/styles/mixins/checkbox.less b/src/styles/mixins/checkbox.less index c72a07a..c0973e2 100644 --- a/src/styles/mixins/checkbox.less +++ b/src/styles/mixins/checkbox.less @@ -142,6 +142,24 @@ } } + // 半选状态 + .@{checkbox-prefix-cls}-indeterminate{ + .@{checkbox-inner-prefix-cls}:after{ + content: ''; + width: 8px; + height: 1px; + transform: scale(1); + position: absolute; + left: 2px; + top: 5px; + } + + .@{checkbox-inner-prefix-cls}{ + background-color: @primary-color; + border-color: @primary-color; + } + } + .@{checkbox-prefix-cls}-wrapper { cursor: pointer; font-size: @font-size-small; -- libgit2 0.21.4