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

344 lines
5.8 KiB
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/card/demo/basic.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
class="ant-card ant-card-bordered"
style="width:300px;"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-card-head"
>
2016-11-22 14:28:05 +08:00
<h3
class="ant-card-head-title"
>
2016-11-22 14:28:05 +08:00
Card title
</h3>
</div>
<div
class="ant-card-extra"
>
2016-11-22 14:28:05 +08:00
<a
href="#"
>
2016-11-22 14:28:05 +08:00
More
</a>
</div>
<div
class="ant-card-body"
>
2016-11-22 14:28:05 +08:00
<p>
Card content
</p>
<p>
Card content
</p>
<p>
Card content
</p>
</div>
</div>
`;
exports[`renders ./components/card/demo/border-less.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
style="background:#ECECEC;padding:30px;"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-card"
style="width:300px;"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-card-head"
>
2016-11-22 14:28:05 +08:00
<h3
class="ant-card-head-title"
>
2016-11-22 14:28:05 +08:00
Card title
</h3>
</div>
<div
class="ant-card-body"
>
2016-11-22 14:28:05 +08:00
<p>
Card content
</p>
<p>
Card content
</p>
<p>
Card content
</p>
</div>
</div>
</div>
`;
exports[`renders ./components/card/demo/grid-card.md correctly 1`] = `
<div
2017-07-14 16:10:52 +08:00
class="ant-card ant-card-bordered ant-card-no-hovering ant-card-contain-grid"
>
<div
class="ant-card-head"
>
<h3
class="ant-card-head-title"
>
2017-08-08 21:21:49 +08:00
Card Title
</h3>
</div>
<div
class="ant-card-body"
>
<div
class="ant-card-grid"
style="width:25%;text-align:center;"
>
2017-08-08 21:21:49 +08:00
Content
</div>
<div
class="ant-card-grid"
style="width:25%;text-align:center;"
>
2017-08-08 21:21:49 +08:00
Content
</div>
<div
class="ant-card-grid"
style="width:25%;text-align:center;"
>
2017-08-08 21:21:49 +08:00
Content
</div>
<div
class="ant-card-grid"
style="width:25%;text-align:center;"
>
2017-08-08 21:21:49 +08:00
Content
</div>
<div
class="ant-card-grid"
style="width:25%;text-align:center;"
>
2017-08-08 21:21:49 +08:00
Content
</div>
<div
class="ant-card-grid"
style="width:25%;text-align:center;"
>
2017-08-08 21:21:49 +08:00
Content
</div>
<div
class="ant-card-grid"
style="width:25%;text-align:center;"
>
2017-08-08 21:21:49 +08:00
Content
</div>
</div>
</div>
`;
exports[`renders ./components/card/demo/in-column.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
style="background:#ECECEC;padding:30px;"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-row"
2017-06-15 15:34:47 +08:00
style="margin-left:-8px;margin-right:-8px;"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-col-8"
2017-06-15 15:34:47 +08:00
style="padding-left:8px;padding-right:8px;"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-card"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-card-head"
>
2016-11-22 14:28:05 +08:00
<h3
class="ant-card-head-title"
>
2016-11-22 14:28:05 +08:00
Card title
</h3>
</div>
<div
class="ant-card-body"
>
2016-11-22 14:28:05 +08:00
Card content
</div>
</div>
</div>
<div
class="ant-col-8"
2017-06-15 15:34:47 +08:00
style="padding-left:8px;padding-right:8px;"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-card"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-card-head"
>
2016-11-22 14:28:05 +08:00
<h3
class="ant-card-head-title"
>
2016-11-22 14:28:05 +08:00
Card title
</h3>
</div>
<div
class="ant-card-body"
>
2016-11-22 14:28:05 +08:00
Card content
</div>
</div>
</div>
<div
class="ant-col-8"
2017-06-15 15:34:47 +08:00
style="padding-left:8px;padding-right:8px;"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-card"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-card-head"
>
2016-11-22 14:28:05 +08:00
<h3
class="ant-card-head-title"
>
2016-11-22 14:28:05 +08:00
Card title
</h3>
</div>
<div
class="ant-card-body"
>
2016-11-22 14:28:05 +08:00
Card content
</div>
</div>
</div>
</div>
</div>
`;
exports[`renders ./components/card/demo/loading.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
class="ant-card ant-card-loading ant-card-bordered"
style="width:34%;"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-card-head"
>
2016-11-22 14:28:05 +08:00
<h3
class="ant-card-head-title"
>
2016-11-22 14:28:05 +08:00
Card title
</h3>
</div>
<div
class="ant-card-body"
>
2017-08-02 21:11:20 +08:00
<div
class="ant-card-loading-content"
>
2016-12-21 12:19:48 +08:00
<p
class="ant-card-loading-block"
style="width:94%;"
/>
2016-11-22 14:28:05 +08:00
<p>
2016-12-21 12:19:48 +08:00
<span
class="ant-card-loading-block"
style="width:28%;"
/>
2016-12-21 12:19:48 +08:00
<span
class="ant-card-loading-block"
style="width:62%;"
/>
2016-11-22 14:28:05 +08:00
</p>
<p>
2016-12-21 12:19:48 +08:00
<span
class="ant-card-loading-block"
style="width:22%;"
/>
2016-12-21 12:19:48 +08:00
<span
class="ant-card-loading-block"
style="width:66%;"
/>
2016-11-22 14:28:05 +08:00
</p>
<p>
2016-12-21 12:19:48 +08:00
<span
class="ant-card-loading-block"
style="width:56%;"
/>
2016-12-21 12:19:48 +08:00
<span
class="ant-card-loading-block"
style="width:39%;"
/>
2016-11-22 14:28:05 +08:00
</p>
<p>
2016-12-21 12:19:48 +08:00
<span
class="ant-card-loading-block"
style="width:21%;"
/>
2016-12-21 12:19:48 +08:00
<span
class="ant-card-loading-block"
style="width:15%;"
/>
2016-12-21 12:19:48 +08:00
<span
class="ant-card-loading-block"
style="width:40%;"
/>
2016-11-22 14:28:05 +08:00
</p>
</div>
</div>
</div>
`;
exports[`renders ./components/card/demo/no-padding.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
class="ant-card ant-card-bordered"
style="width:240px;"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-card-body"
style="padding:0;"
>
2016-11-22 14:28:05 +08:00
<div
class="custom-image"
>
2016-11-22 14:28:05 +08:00
<img
alt="example"
src="https://os.alipayobjects.com/rmsportal/QBnOOoLaAfKPirc.png"
width="100%"
/>
2016-11-22 14:28:05 +08:00
</div>
<div
class="custom-card"
>
2016-11-22 14:28:05 +08:00
<h3>
Europe Street beat
</h3>
<p>
www.instagram.com
</p>
</div>
</div>
</div>
`;
exports[`renders ./components/card/demo/simple.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
class="ant-card ant-card-bordered"
style="width:300px;"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-card-body"
>
2016-11-22 14:28:05 +08:00
<p>
Card content
</p>
<p>
Card content
</p>
<p>
Card content
</p>
</div>
</div>
`;