update tabs demos

This commit is contained in:
afc163 2015-06-17 20:28:02 +08:00
parent db457cbe78
commit 757a1b3f8b
4 changed files with 14 additions and 12 deletions

View File

@ -1,8 +1,8 @@
# 基本
- order: 2
- order: 0
基本用法
默认选中第二项
---
@ -10,7 +10,9 @@
var Tabs = antd.Tabs;
var TabPane = Tabs.TabPane;
function callback() {}
function callback(key) {
console.log(key);
}
React.render(
<Tabs defaultActiveKey="2" onChange={callback}>

View File

@ -1,8 +1,8 @@
# 带有禁用
# 禁用
- order: 2
- order: 1
禁用某一项
禁用某一项
---
@ -10,7 +10,7 @@
var Tabs = antd.Tabs;
var TabPane = Tabs.TabPane;
function callback() {}
function callback(key) {}
React.render(
<Tabs defaultActiveKey="1" onChange={callback}>

View File

@ -2,7 +2,7 @@
- order: 2
有图标。
有图标的标签
---
@ -10,7 +10,7 @@
var Tabs = antd.Tabs;
var TabPane = Tabs.TabPane;
function callback() {}
function callback(key) {}
var tabContent = [
<span><i className="anticon anticon-lock"></i>tab 1</span>,

View File

@ -1,8 +1,8 @@
# 滑动
- order: 2
- order: 3
可以滑动
可以左右滑动,容纳更多标签。
---
@ -10,7 +10,7 @@
var Tabs = antd.Tabs;
var TabPane = Tabs.TabPane;
function callback() {}
function callback(key) {}
React.render(
<Tabs defaultActiveKey="1" onChange={callback}>