Hide unfinish demo

This commit is contained in:
afc163 2015-10-22 23:54:56 +08:00
parent 83664dbd28
commit 6757dc8199
5 changed files with 45 additions and 31 deletions

View File

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

View File

@ -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'));
````

View File

@ -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'));
````

View File

@ -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'));
````

View File

@ -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);
}
});