mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
8f06375589
* fix: The title of Card should be vertically aligned, close #10576 * Update index.less
193 lines
4.1 KiB
Plaintext
193 lines
4.1 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Card should still have padding when card which set padding to 0 is loading 1`] = `
|
|
<div
|
|
class="ant-card ant-card-loading ant-card-bordered"
|
|
>
|
|
<div
|
|
class="ant-card-body"
|
|
style="padding: 0px;"
|
|
>
|
|
<div
|
|
class="ant-card-loading-content"
|
|
style="padding: 24px;"
|
|
>
|
|
<div
|
|
class="ant-row"
|
|
style="margin-left: -4px; margin-right: -4px;"
|
|
>
|
|
<div
|
|
class="ant-col-22"
|
|
style="padding-left: 4px; padding-right: 4px;"
|
|
>
|
|
<div
|
|
class="ant-card-loading-block"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="ant-row"
|
|
style="margin-left: -4px; margin-right: -4px;"
|
|
>
|
|
<div
|
|
class="ant-col-8"
|
|
style="padding-left: 4px; padding-right: 4px;"
|
|
>
|
|
<div
|
|
class="ant-card-loading-block"
|
|
/>
|
|
</div>
|
|
<div
|
|
class="ant-col-15"
|
|
style="padding-left: 4px; padding-right: 4px;"
|
|
>
|
|
<div
|
|
class="ant-card-loading-block"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="ant-row"
|
|
style="margin-left: -4px; margin-right: -4px;"
|
|
>
|
|
<div
|
|
class="ant-col-6"
|
|
style="padding-left: 4px; padding-right: 4px;"
|
|
>
|
|
<div
|
|
class="ant-card-loading-block"
|
|
/>
|
|
</div>
|
|
<div
|
|
class="ant-col-18"
|
|
style="padding-left: 4px; padding-right: 4px;"
|
|
>
|
|
<div
|
|
class="ant-card-loading-block"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="ant-row"
|
|
style="margin-left: -4px; margin-right: -4px;"
|
|
>
|
|
<div
|
|
class="ant-col-13"
|
|
style="padding-left: 4px; padding-right: 4px;"
|
|
>
|
|
<div
|
|
class="ant-card-loading-block"
|
|
/>
|
|
</div>
|
|
<div
|
|
class="ant-col-9"
|
|
style="padding-left: 4px; padding-right: 4px;"
|
|
>
|
|
<div
|
|
class="ant-card-loading-block"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="ant-row"
|
|
style="margin-left: -4px; margin-right: -4px;"
|
|
>
|
|
<div
|
|
class="ant-col-4"
|
|
style="padding-left: 4px; padding-right: 4px;"
|
|
>
|
|
<div
|
|
class="ant-card-loading-block"
|
|
/>
|
|
</div>
|
|
<div
|
|
class="ant-col-3"
|
|
style="padding-left: 4px; padding-right: 4px;"
|
|
>
|
|
<div
|
|
class="ant-card-loading-block"
|
|
/>
|
|
</div>
|
|
<div
|
|
class="ant-col-16"
|
|
style="padding-left: 4px; padding-right: 4px;"
|
|
>
|
|
<div
|
|
class="ant-card-loading-block"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="ant-row"
|
|
style="margin-left: -4px; margin-right: -4px;"
|
|
>
|
|
<div
|
|
class="ant-col-8"
|
|
style="padding-left: 4px; padding-right: 4px;"
|
|
>
|
|
<div
|
|
class="ant-card-loading-block"
|
|
/>
|
|
</div>
|
|
<div
|
|
class="ant-col-6"
|
|
style="padding-left: 4px; padding-right: 4px;"
|
|
>
|
|
<div
|
|
class="ant-card-loading-block"
|
|
/>
|
|
</div>
|
|
<div
|
|
class="ant-col-8"
|
|
style="padding-left: 4px; padding-right: 4px;"
|
|
>
|
|
<div
|
|
class="ant-card-loading-block"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`Card title should be vertically aligned 1`] = `
|
|
<div
|
|
class="ant-card ant-card-bordered"
|
|
style="width: 300px;"
|
|
>
|
|
<div
|
|
class="ant-card-head"
|
|
>
|
|
<div
|
|
class="ant-card-head-wrapper"
|
|
>
|
|
<div
|
|
class="ant-card-head-title"
|
|
>
|
|
Card title
|
|
</div>
|
|
<div
|
|
class="ant-card-extra"
|
|
>
|
|
<button
|
|
class="ant-btn"
|
|
type="button"
|
|
>
|
|
<span>
|
|
Button
|
|
</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="ant-card-body"
|
|
>
|
|
<p>
|
|
Card content
|
|
</p>
|
|
</div>
|
|
</div>
|
|
`;
|