Browse Source

Hide unfinish demo

pull/432/head
afc163 9 years ago
parent
commit
6757dc8199
  1. 5
      components/tabs/demo/add.md
  2. 21
      components/tabs/demo/vertical-left.md
  3. 20
      components/tabs/demo/vertical-right.md
  4. 28
      components/tabs/demo/vertical.md
  5. 2
      site/theme.js

5
components/tabs/demo/add.md

@ -1,8 +1,9 @@
# 添加
- order: 5
- order: 4
- hidden: true
演示添加删除功能
演示添加删除功能
---

21
components/tabs/demo/vertical-left.md

@ -0,0 +1,21 @@
# 垂直
- order: 6
选项卡在左边。
---
````jsx
var Tabs = antd.Tabs;
var TabPane = Tabs.TabPane;
ReactDOM.render(
<Tabs defaultActiveKey="1" tabPosition="left">
<TabPane tab="选项卡一" key="1">选项卡一内容</TabPane>
<TabPane tab="选项卡二" key="2">选项卡二内容</TabPane>
<TabPane tab="选项卡三长" key="3">选项卡三内容</TabPane>
</Tabs>
, document.getElementById('components-tabs-demo-vertical-left'));
````

20
components/tabs/demo/vertical-right.md

@ -0,0 +1,20 @@
# 垂直
- order: 7
选项卡在右边。
---
````jsx
var Tabs = antd.Tabs;
var TabPane = Tabs.TabPane;
ReactDOM.render(
<Tabs defaultActiveKey="1" tabPosition="right">
<TabPane tab="选项卡一" key="1">选项卡一内容</TabPane>
<TabPane tab="选项卡二" key="2">选项卡二内容</TabPane>
<TabPane tab="选项卡三长" key="3">选项卡三内容</TabPane>
</Tabs>
, document.getElementById('components-tabs-demo-vertical-right'));
````

28
components/tabs/demo/vertical.md

@ -1,28 +0,0 @@
# 垂直
- order: 4
分成左右两种。
---
````jsx
var Tabs = antd.Tabs;
var TabPane = Tabs.TabPane;
ReactDOM.render(<div>
<h3 style={{margin: '0 0 20px'}}>页签在左边</h3>
<Tabs defaultActiveKey="1" tabPosition="left">
<TabPane tab="选项卡一" key="1">选项卡一内容</TabPane>
<TabPane tab="选项卡二" key="2">选项卡二内容</TabPane>
<TabPane tab="选项卡三长" key="3">选项卡三内容</TabPane>
</Tabs>
<h3 style={{margin: '40px 0 20px'}}>页签在右边</h3>
<Tabs defaultActiveKey="1" tabPosition="right">
<TabPane tab="选项卡一" key="1">选项卡一内容</TabPane>
<TabPane tab="选项卡二" key="2">选项卡二内容</TabPane>
<TabPane tab="选项卡三长" key="3">选项卡三内容</TabPane>
</Tabs>
</div>, document.getElementById('components-tabs-demo-vertical'));
````

2
site/theme.js

@ -107,7 +107,7 @@ module.exports = function(nico) {
find_demo_in_component: function(pages, directory) {
var ret = [];
getAllPosts(pages).forEach(function(post) {
if (post.filepath.indexOf(directory + '/demo/') === 0) {
if (post.filepath.indexOf(directory + '/demo/') === 0 && !post.meta.hidden) {
ret.push(post);
}
});

Loading…
Cancel
Save