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

51 lines
851 B
Vue
Raw Normal View History

2021-09-01 07:04:46 +00:00
<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>