mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 03:29:59 +08:00
Hide unfinish demo
This commit is contained in:
parent
83664dbd28
commit
6757dc8199
@ -1,8 +1,9 @@
|
||||
# 添加
|
||||
|
||||
- order: 5
|
||||
- order: 4
|
||||
- hidden: true
|
||||
|
||||
演示添加删除功能
|
||||
演示添加删除功能。
|
||||
|
||||
---
|
||||
|
||||
|
21
components/tabs/demo/vertical-left.md
Normal file
21
components/tabs/demo/vertical-left.md
Normal 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'));
|
||||
````
|
||||
|
20
components/tabs/demo/vertical-right.md
Normal file
20
components/tabs/demo/vertical-right.md
Normal 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'));
|
||||
````
|
@ -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'));
|
||||
````
|
||||
|
@ -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…
Reference in New Issue
Block a user