Browse Source

Merge branch 'master' into feature-3.8.0

pull/11525/head
afc163 6 years ago
parent
commit
a654d86d65
  1. 10
      components/card/__tests__/__snapshots__/demo.test.js.snap
  2. 5
      components/card/demo/tabs.md

10
components/card/__tests__/__snapshots__/demo.test.js.snap

@ -709,8 +709,8 @@ exports[`renders ./components/card/demo/tabs.md correctly 1`] = `
>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
aria-selected="true"
class="ant-tabs-tab-active ant-tabs-tab"
role="tab"
>
tab1
@ -733,11 +733,11 @@ exports[`renders ./components/card/demo/tabs.md correctly 1`] = `
</div>
<div
class="ant-tabs-content ant-tabs-content-animated"
style="display:none"
style="margin-left:0%"
>
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
aria-hidden="false"
class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel"
/>
<div

5
components/card/demo/tabs.md

@ -65,6 +65,7 @@ class TabsCard extends React.Component {
title="Card title"
extra={<a href="#">More</a>}
tabList={tabList}
activeTabKey={this.state.key}
onTabChange={(key) => { this.onTabChange(key, 'key'); }}
>
{contentList[this.state.key]}
@ -83,7 +84,5 @@ class TabsCard extends React.Component {
}
}
ReactDOM.render(
<TabsCard />,
mountNode);
ReactDOM.render(<TabsCard />, mountNode);
````

Loading…
Cancel
Save