ant-design/components/button/__tests__/__snapshots__/demo.test.js.snap

596 lines
9.4 KiB
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/button/demo/basic.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<button
class="ant-btn ant-btn-primary"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Primary
</span>
</button>
<button
class="ant-btn"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Default
</span>
</button>
<button
class="ant-btn ant-btn-dashed"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Dashed
2016-11-22 14:28:05 +08:00
</span>
</button>
<button
class="ant-btn ant-btn-danger"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Danger
2016-11-22 14:28:05 +08:00
</span>
</button>
</div>
`;
exports[`renders ./components/button/demo/button-group.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<h4>
Basic
</h4>
<div
class="ant-btn-group"
>
2016-11-22 14:28:05 +08:00
<button
class="ant-btn"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Cancel
</span>
</button>
<button
class="ant-btn ant-btn-primary"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
OK
</span>
</button>
</div>
<div
class="ant-btn-group"
>
2016-11-22 14:28:05 +08:00
<button
class="ant-btn"
disabled=""
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
L
</span>
</button>
<button
class="ant-btn"
disabled=""
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
M
</span>
</button>
<button
class="ant-btn"
disabled=""
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
R
</span>
</button>
</div>
<div
class="ant-btn-group"
>
2016-11-22 14:28:05 +08:00
<button
class="ant-btn ant-btn-primary"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
L
</span>
</button>
<button
class="ant-btn"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
M
</span>
</button>
<button
2017-02-04 22:35:33 +08:00
class="ant-btn"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
M
</span>
</button>
<button
class="ant-btn ant-btn-dashed"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
R
</span>
</button>
</div>
<h4>
With Icon
</h4>
<div
class="ant-btn-group"
>
2016-11-22 14:28:05 +08:00
<button
class="ant-btn ant-btn-primary"
type="button"
>
2016-11-22 14:28:05 +08:00
<i
class="anticon anticon-left"
/>
2016-11-22 14:28:05 +08:00
<span>
Go back
</span>
</button>
<button
class="ant-btn ant-btn-primary"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Go forward
</span>
<i
class="anticon anticon-right"
/>
2016-11-22 14:28:05 +08:00
</button>
</div>
<div
class="ant-btn-group"
>
2016-11-22 14:28:05 +08:00
<button
class="ant-btn ant-btn-primary ant-btn-icon-only"
type="button"
>
2016-11-22 14:28:05 +08:00
<i
class="anticon anticon-cloud"
/>
2016-11-22 14:28:05 +08:00
</button>
<button
class="ant-btn ant-btn-primary ant-btn-icon-only"
type="button"
>
2016-11-22 14:28:05 +08:00
<i
class="anticon anticon-cloud-download"
/>
2016-11-22 14:28:05 +08:00
</button>
</div>
</div>
`;
exports[`renders ./components/button/demo/disabled.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<button
class="ant-btn ant-btn-primary"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Primary
</span>
</button>
<button
class="ant-btn ant-btn-primary"
disabled=""
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Primary(disabled)
</span>
</button>
<br />
<button
class="ant-btn"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Default
</span>
</button>
<button
class="ant-btn"
disabled=""
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Default(disabled)
</span>
</button>
<br />
<button
2017-02-04 22:35:33 +08:00
class="ant-btn"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Ghost
</span>
</button>
<button
2017-02-04 22:35:33 +08:00
class="ant-btn"
2016-11-22 14:28:05 +08:00
disabled=""
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Ghost(disabled)
</span>
</button>
<br />
<button
class="ant-btn ant-btn-dashed"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Dashed
</span>
</button>
<button
class="ant-btn ant-btn-dashed"
disabled=""
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Dashed(disabled)
</span>
</button>
</div>
`;
exports[`renders ./components/button/demo/ghost.md correctly 1`] = `
<div
style="background:rgb(190, 200, 200);padding:26px 16px 16px;"
>
<button
class="ant-btn ant-btn-primary ant-btn-background-ghost"
type="button"
>
<span>
2017-03-18 16:33:55 +08:00
Primary
</span>
</button>
<button
class="ant-btn ant-btn-background-ghost"
type="button"
>
<span>
2017-03-18 16:33:55 +08:00
Default
</span>
</button>
<button
class="ant-btn ant-btn-dashed ant-btn-background-ghost"
type="button"
>
<span>
2017-03-18 16:33:55 +08:00
Dashed
</span>
</button>
<button
class="ant-btn ant-btn-danger ant-btn-background-ghost"
type="button"
>
<span>
danger
</span>
</button>
</div>
`;
exports[`renders ./components/button/demo/icon.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<button
class="ant-btn ant-btn-primary ant-btn-circle ant-btn-icon-only"
type="button"
>
2016-11-22 14:28:05 +08:00
<i
class="anticon anticon-search"
/>
2016-11-22 14:28:05 +08:00
</button>
<button
class="ant-btn ant-btn-primary"
type="button"
>
2016-11-22 14:28:05 +08:00
<i
class="anticon anticon-search"
/>
2016-11-22 14:28:05 +08:00
<span>
Search
</span>
</button>
<button
class="ant-btn ant-btn-circle ant-btn-icon-only"
type="button"
>
<i
class="anticon anticon-search"
/>
</button>
<button
class="ant-btn"
type="button"
>
<i
class="anticon anticon-search"
/>
<span>
Search
</span>
</button>
2016-11-22 14:28:05 +08:00
<br />
<button
2017-02-04 22:35:33 +08:00
class="ant-btn ant-btn-circle ant-btn-icon-only"
type="button"
>
2016-11-22 14:28:05 +08:00
<i
class="anticon anticon-search"
/>
2016-11-22 14:28:05 +08:00
</button>
<button
2017-02-04 22:35:33 +08:00
class="ant-btn"
type="button"
>
2016-11-22 14:28:05 +08:00
<i
class="anticon anticon-search"
/>
2016-11-22 14:28:05 +08:00
<span>
Search
</span>
</button>
<button
class="ant-btn ant-btn-dashed ant-btn-circle ant-btn-icon-only"
type="button"
>
<i
class="anticon anticon-search"
/>
</button>
<button
class="ant-btn ant-btn-dashed"
type="button"
>
<i
class="anticon anticon-search"
/>
<span>
Search
</span>
</button>
2016-11-22 14:28:05 +08:00
</div>
`;
exports[`renders ./components/button/demo/loading.md correctly 1`] = `
2017-04-15 14:52:58 +08:00
<span>
2016-11-22 14:28:05 +08:00
<button
class="ant-btn ant-btn-primary ant-btn-loading"
type="button"
>
2016-11-22 14:28:05 +08:00
<i
class="anticon anticon-spin anticon-loading"
/>
2016-11-22 14:28:05 +08:00
<span>
Loading
</span>
</button>
<button
class="ant-btn ant-btn-primary ant-btn-sm ant-btn-loading"
type="button"
>
2016-11-22 14:28:05 +08:00
<i
class="anticon anticon-spin anticon-loading"
/>
2016-11-22 14:28:05 +08:00
<span>
Loading
</span>
</button>
<br />
<button
class="ant-btn ant-btn-primary"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Click me!
</span>
</button>
<button
class="ant-btn ant-btn-primary"
type="button"
>
2016-11-22 14:28:05 +08:00
<i
class="anticon anticon-poweroff"
/>
2016-11-22 14:28:05 +08:00
<span>
Click me!
</span>
</button>
<br />
<button
class="ant-btn ant-btn-circle ant-btn-loading"
type="button"
>
<i
class="anticon anticon-spin anticon-loading"
/>
</button>
<button
class="ant-btn ant-btn-primary ant-btn-circle ant-btn-loading"
type="button"
>
<i
class="anticon anticon-spin anticon-loading"
/>
</button>
2017-04-15 14:52:58 +08:00
</span>
2016-11-22 14:28:05 +08:00
`;
exports[`renders ./components/button/demo/multiple.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<button
class="ant-btn ant-btn-primary"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
primary
</span>
</button>
<button
2017-02-04 22:35:33 +08:00
class="ant-btn"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
secondary
</span>
</button>
<button
2017-02-04 22:35:33 +08:00
class="ant-btn ant-dropdown-trigger"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
more
</span>
<i
class="anticon anticon-down"
/>
2016-11-22 14:28:05 +08:00
</button>
</div>
`;
exports[`renders ./components/button/demo/size.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<div
class="ant-radio-group"
>
<label
class="ant-radio-button-wrapper"
>
<span
class="ant-radio-button"
>
<input
class="ant-radio-button-input"
type="radio"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner"
/>
</span>
<span>
Large
</span>
</label>
<label
class="ant-radio-button-wrapper ant-radio-button-wrapper-checked"
>
<span
class="ant-radio-button ant-radio-button-checked"
>
<input
checked=""
class="ant-radio-button-input"
type="radio"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner"
/>
</span>
<span>
Default
</span>
</label>
<label
class="ant-radio-button-wrapper"
>
<span
class="ant-radio-button"
>
<input
class="ant-radio-button-input"
type="radio"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner"
/>
</span>
<span>
Small
</span>
</label>
</div>
<br />
<br />
2016-11-22 14:28:05 +08:00
<button
class="ant-btn ant-btn-primary ant-btn-circle ant-btn-icon-only"
type="button"
>
<i
class="anticon anticon-download"
/>
2016-11-22 14:28:05 +08:00
</button>
<button
class="ant-btn ant-btn-primary"
type="button"
>
<i
class="anticon anticon-download"
/>
2016-11-22 14:28:05 +08:00
<span>
Download
2016-11-22 14:28:05 +08:00
</span>
</button>
<button
class="ant-btn ant-btn-primary"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Normal
2016-11-22 14:28:05 +08:00
</span>
</button>
<br />
<div
class="ant-btn-group"
>
<button
class="ant-btn ant-btn-primary"
type="button"
>
<i
class="anticon anticon-left"
/>
<span>
Backward
</span>
</button>
<button
class="ant-btn ant-btn-primary"
type="button"
>
<span>
Forward
</span>
<i
class="anticon anticon-right"
/>
</button>
</div>
2016-11-22 14:28:05 +08:00
</div>
`;