2017-03-17 18:56:30 +08:00
|
|
|
// 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"
|
2017-03-17 18:56:30 +08:00
|
|
|
style="width:300px;"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-card-head"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<h3
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-card-head-title"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
Card title
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-card-extra"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<a
|
2017-03-17 18:56:30 +08:00
|
|
|
href="#"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
More
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
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>
|
|
|
|
`;
|
|
|
|
|
2017-03-17 18:56:30 +08:00
|
|
|
exports[`renders ./components/card/demo/border-less.md correctly 1`] = `
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
style="background:#ECECEC;padding:30px;"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
|
|
|
class="ant-card"
|
2017-03-17 18:56:30 +08:00
|
|
|
style="width:300px;"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-card-head"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<h3
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-card-head-title"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
Card title
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
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>
|
|
|
|
`;
|
|
|
|
|
2017-07-07 13:36:54 +08:00
|
|
|
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"
|
2017-07-07 13:36:54 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-card-head"
|
|
|
|
>
|
|
|
|
<h3
|
|
|
|
class="ant-card-head-title"
|
|
|
|
>
|
2017-08-08 21:21:49 +08:00
|
|
|
Card Title
|
2017-07-07 13:36:54 +08:00
|
|
|
</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
|
2017-07-07 13:36:54 +08:00
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-card-grid"
|
|
|
|
style="width:25%;text-align:center;"
|
|
|
|
>
|
2017-08-08 21:21:49 +08:00
|
|
|
Content
|
2017-07-07 13:36:54 +08:00
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-card-grid"
|
|
|
|
style="width:25%;text-align:center;"
|
|
|
|
>
|
2017-08-08 21:21:49 +08:00
|
|
|
Content
|
2017-07-07 13:36:54 +08:00
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-card-grid"
|
|
|
|
style="width:25%;text-align:center;"
|
|
|
|
>
|
2017-08-08 21:21:49 +08:00
|
|
|
Content
|
2017-07-07 13:36:54 +08:00
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-card-grid"
|
|
|
|
style="width:25%;text-align:center;"
|
|
|
|
>
|
2017-08-08 21:21:49 +08:00
|
|
|
Content
|
2017-07-07 13:36:54 +08:00
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-card-grid"
|
|
|
|
style="width:25%;text-align:center;"
|
|
|
|
>
|
2017-08-08 21:21:49 +08:00
|
|
|
Content
|
2017-07-07 13:36:54 +08:00
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-card-grid"
|
|
|
|
style="width:25%;text-align:center;"
|
|
|
|
>
|
2017-08-08 21:21:49 +08:00
|
|
|
Content
|
2017-07-07 13:36:54 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`renders ./components/card/demo/in-column.md correctly 1`] = `
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
style="background:#ECECEC;padding:30px;"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-row"
|
2017-06-15 15:34:47 +08:00
|
|
|
style="margin-left:-8px;margin-right:-8px;"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-col-8"
|
2017-06-15 15:34:47 +08:00
|
|
|
style="padding-left:8px;padding-right:8px;"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-card"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-card-head"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<h3
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-card-head-title"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
Card title
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-card-body"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
Card content
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-col-8"
|
2017-06-15 15:34:47 +08:00
|
|
|
style="padding-left:8px;padding-right:8px;"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-card"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-card-head"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<h3
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-card-head-title"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
Card title
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-card-body"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
Card content
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-col-8"
|
2017-06-15 15:34:47 +08:00
|
|
|
style="padding-left:8px;padding-right:8px;"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-card"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-card-head"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<h3
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-card-head-title"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
Card title
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-card-body"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
Card content
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
style="width:34%;"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-card-head"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<h3
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-card-head-title"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
Card title
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
style="width:28%;"
|
|
|
|
/>
|
2016-12-21 12:19:48 +08:00
|
|
|
<span
|
|
|
|
class="ant-card-loading-block"
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
style="width:22%;"
|
|
|
|
/>
|
2016-12-21 12:19:48 +08:00
|
|
|
<span
|
|
|
|
class="ant-card-loading-block"
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
style="width:56%;"
|
|
|
|
/>
|
2016-12-21 12:19:48 +08:00
|
|
|
<span
|
|
|
|
class="ant-card-loading-block"
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
style="width:21%;"
|
|
|
|
/>
|
2016-12-21 12:19:48 +08:00
|
|
|
<span
|
|
|
|
class="ant-card-loading-block"
|
2017-03-17 18:56:30 +08:00
|
|
|
style="width:15%;"
|
|
|
|
/>
|
2016-12-21 12:19:48 +08:00
|
|
|
<span
|
|
|
|
class="ant-card-loading-block"
|
2017-03-17 18:56:30 +08:00
|
|
|
style="width:40%;"
|
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
style="width:240px;"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
|
|
|
class="ant-card-body"
|
2017-03-17 18:56:30 +08:00
|
|
|
style="padding:0;"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="custom-image"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<img
|
|
|
|
alt="example"
|
|
|
|
src="https://os.alipayobjects.com/rmsportal/QBnOOoLaAfKPirc.png"
|
2017-03-17 18:56:30 +08:00
|
|
|
width="100%"
|
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
</div>
|
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="custom-card"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<h3>
|
|
|
|
Europe Street beat
|
|
|
|
</h3>
|
|
|
|
<p>
|
|
|
|
www.instagram.com
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2017-03-17 18:56:30 +08:00
|
|
|
exports[`renders ./components/card/demo/simple.md correctly 1`] = `
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
|
|
|
class="ant-card ant-card-bordered"
|
2017-03-17 18:56:30 +08:00
|
|
|
style="width:300px;"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
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>
|
|
|
|
`;
|