mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
fix badge demo
This commit is contained in:
parent
330e1f7a4b
commit
a88f8fcc21
@ -399,7 +399,8 @@ exports[`renders ./components/badge/demo/change.md correctly 1`] = `
|
|||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span
|
||||||
class="ant-switch"
|
checked=""
|
||||||
|
class="ant-switch ant-switch-checked"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
|
@ -60,7 +60,7 @@ class Demo extends React.Component {
|
|||||||
<Badge dot={this.state.show}>
|
<Badge dot={this.state.show}>
|
||||||
<a href="#" className="head-example" />
|
<a href="#" className="head-example" />
|
||||||
</Badge>
|
</Badge>
|
||||||
<Switch onChange={this.onChange} />
|
<Switch onChange={this.onChange} checked={this.state.show} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user