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

43 lines
730 B
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: 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" setup>
const routes = [
{
path: 'index',
breadcrumbName: 'First-level Menu',
},
{
path: 'first',
breadcrumbName: 'Second-level Menu',
},
{
path: 'second',
breadcrumbName: 'Third-level Menu',
},
];
</script>