ant-design-vue/components/page-header/demo/ghost.vue

51 lines
1.4 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<docs>
---
order: 2
title:
zh-CN: 白底模式
en-US: white background mode
---
## zh-CN
默认 PageHeader 是透明底色的在某些情况下PageHeader 需要自己的背景颜色
## en-US
The default PageHeader is a transparent background. In some cases, PageHeader needs its own background color.
</docs>
<template>
<div class="demo-page-header" style="background-color: #f5f5f5; padding: 24px">
<a-page-header
:ghost="false"
title="Title"
sub-title="This is a subtitle"
@back="() => $router.go(-1)"
>
<template #extra>
<a-button key="3">Operation</a-button>
<a-button key="2">Operation</a-button>
<a-button key="1" type="primary">Primary</a-button>
</template>
<a-descriptions size="small" :column="3">
<a-descriptions-item label="Created">Lili Qu</a-descriptions-item>
<a-descriptions-item label="Association">
<a>421421</a>
</a-descriptions-item>
<a-descriptions-item label="Creation Time">2017-01-10</a-descriptions-item>
<a-descriptions-item label="Effective Time">2017-10-10</a-descriptions-item>
<a-descriptions-item label="Remarks">
Gonghu Road, Xihu District, Hangzhou, Zhejiang, China
</a-descriptions-item>
</a-descriptions>
</a-page-header>
</div>
</template>
<style scoped>
.demo-page-header :deep(tr:last-child td) {
padding-bottom: 0;
}
</style>