ant-design/components/tabs/demo/disabled.md

20 lines
394 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 1
title: 禁用
---
2015-06-12 20:21:13 +08:00
2015-06-17 20:28:02 +08:00
禁用某一项。
2015-06-12 20:21:13 +08:00
````jsx
import { Tabs } from 'antd';
const TabPane = Tabs.TabPane;
2015-06-12 20:21:13 +08:00
2015-10-20 16:47:55 +08:00
ReactDOM.render(
2015-12-27 16:20:59 +08:00
<Tabs defaultActiveKey="1">
2015-08-06 16:47:01 +08:00
<TabPane tab="选项卡一" key="1">选项卡一</TabPane>
2015-11-25 17:47:55 +08:00
<TabPane tab="选项卡二" disabled key="2">选项卡二</TabPane>
2015-08-06 16:47:01 +08:00
<TabPane tab="选项卡三" key="3">选项卡三</TabPane>
2015-06-15 19:56:58 +08:00
</Tabs>
, mountNode);
2015-06-12 20:21:13 +08:00
````