diff --git a/components/tabs/demo/icon.md b/components/tabs/demo/icon.md new file mode 100644 index 0000000000..d07d72974a --- /dev/null +++ b/components/tabs/demo/icon.md @@ -0,0 +1,28 @@ +# 图标 + +- order: 2 + +带有图标。 + +--- + +````jsx +var Tab = antd.Tab; +var TabPane = Tab.TabPane; + +function callback() {} + +var tabContent = [ + tab 1, + tab 2, + tab 3, +] + +React.render( + + 选项卡一 + 选项卡一 + 选项卡一 + +, document.getElementById('components-tabs-demo-icon')); +```` diff --git a/style/components/tab.less b/style/components/tab.less index bbb449b243..30dea05e1f 100644 --- a/style/components/tab.less +++ b/style/components/tab.less @@ -152,6 +152,14 @@ font-weight: 500; display: block; color: #666; + + .anticon { + width: 14px; + height: 14px; + margin-right: 12px; + top: -1px; + } + } > a:hover {