Browse Source

update button disable demo

pull/10507/head
afc163 7 years ago
parent
commit
99dca86904
  1. 21
      components/button/__tests__/__snapshots__/demo.test.js.snap
  2. 7
      components/button/demo/disabled.md

21
components/button/__tests__/__snapshots__/demo.test.js.snap

@ -212,40 +212,43 @@ exports[`renders ./components/button/demo/disabled.md correctly 1`] = `
</button>
<br />
<button
class="ant-btn ant-btn-background-ghost"
class="ant-btn ant-btn-dashed"
type="button"
>
<span>
Ghost
Dashed
</span>
</button>
<button
class="ant-btn ant-btn-background-ghost"
class="ant-btn ant-btn-dashed"
disabled=""
type="button"
>
<span>
Ghost(disabled)
Dashed(disabled)
</span>
</button>
<br />
<div
style="padding:8px 8px 0 8px;background:rgb(190, 200, 200)"
>
<button
class="ant-btn ant-btn-dashed"
class="ant-btn ant-btn-background-ghost"
type="button"
>
<span>
Dashed
Ghost
</span>
</button>
<button
class="ant-btn ant-btn-dashed"
class="ant-btn ant-btn-background-ghost"
disabled=""
type="button"
>
<span>
Dashed(disabled)
Ghost(disabled)
</span>
</button>
</div>
</div>
`;

7
components/button/demo/disabled.md

@ -24,11 +24,12 @@ ReactDOM.render(
<Button>Default</Button>
<Button disabled>Default(disabled)</Button>
<br />
<Button ghost>Ghost</Button>
<Button ghost disabled>Ghost(disabled)</Button>
<br />
<Button type="dashed">Dashed</Button>
<Button type="dashed" disabled>Dashed(disabled)</Button>
<div style={{ padding: '8px 8px 0 8px', background: 'rgb(190, 200, 200)' }}>
<Button ghost>Ghost</Button>
<Button ghost disabled>Ghost(disabled)</Button>
</div>
</div>,
mountNode
);

Loading…
Cancel
Save