You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/page-header/demo/breadcrumb.vue

51 lines
851 B

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: 3
title:
zh-CN: 带面包屑页头
en-US: Use with breadcrumbs
---
## zh-CN
带面包屑页头适合层级比较深的页面让用户可以快速导航
## en-US
With breadcrumbs, it is suitable for deeper pages, allowing users to navigate quickly.
</docs>
<template>
<a-page-header
style="border: 1px solid rgb(235, 237, 240)"
title="Title"
:breadcrumb="{ routes }"
sub-title="This is a subtitle"
/>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
const routes = [
{
path: 'index',
breadcrumbName: 'First-level Menu',
},
{
path: 'first',
breadcrumbName: 'Second-level Menu',
},
{
path: 'second',
breadcrumbName: 'Third-level Menu',
},
];
export default defineComponent({
setup() {
return {
routes,
};
},
});
</script>