From ad02ebe11481aa7994e03e3f0db2383009d2b8f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=84=B6=E5=88=99?= Date: Mon, 17 Aug 2015 00:24:39 +0800 Subject: [PATCH] up mixin fn --- style/components/checkbox.less | 6 +++++- style/components/tree.less | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/style/components/checkbox.less b/style/components/checkbox.less index eacd0a2b8c..adda7d8a78 100644 --- a/style/components/checkbox.less +++ b/style/components/checkbox.less @@ -1,4 +1,6 @@ -@checkboxWrapPrefixCls: ant-checkbox; +.checkboxFn(); +.checkboxFn(@checkboxPrefixCls: ant-checkbox) { +@checkboxWrapPrefixCls: @checkboxPrefixCls; @checkboxInnerPrefixCls: ~"@{checkboxWrapPrefixCls}-inner"; /* 一般状态 */ @@ -149,3 +151,5 @@ .@{checkboxWrapPrefixCls} + span { margin-left: 8px; } + +} diff --git a/style/components/tree.less b/style/components/tree.less index a99f610fe2..d845dc9bca 100644 --- a/style/components/tree.less +++ b/style/components/tree.less @@ -1,6 +1,5 @@ @treePrefixCls: ant-tree; -@import "./checkbox"; -@checkboxWrapPrefixCls: ant-tree-checkbox; +.checkboxFn(@checkboxPrefixCls: ant-tree-checkbox); @import "../mixins/iconfont"; @openIcon: '\e60f'; .switcher_icon() {