mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
add tabs add demo
This commit is contained in:
parent
5b448af596
commit
17b1ec14f8
@ -1,7 +1,6 @@
|
||||
# 添加
|
||||
|
||||
- order: 4
|
||||
- hidden: true
|
||||
|
||||
演示添加删除功能。
|
||||
|
||||
@ -23,9 +22,6 @@ var addStyle = {
|
||||
pointerEvents: 'auto',
|
||||
color: 'black',
|
||||
};
|
||||
var extraStyle = {
|
||||
float: 'right'
|
||||
};
|
||||
|
||||
var Test = React.createClass({
|
||||
getInitialState() {
|
||||
@ -77,7 +73,7 @@ var Test = React.createClass({
|
||||
return <Tabs
|
||||
onChange={this.onChange}
|
||||
activeKey={this.state.activeKey}
|
||||
tabBarExtraContent={<div style={extraStyle}><Button type="primary">其它操作</Button></div>}>
|
||||
tabBarExtraContent={<Button type="primary">其它操作</Button>}>
|
||||
{
|
||||
this.state.tabs.map((t)=>{
|
||||
return <TabPane key={t.title} tab={<div>{t.title} <Icon type="cross" style={closeStyle} onClick={this.remove.bind(this,t.title)}></Icon></div>}>
|
||||
|
Loading…
Reference in New Issue
Block a user