<template>
<d-breadcrumb :source="source"></d-breadcrumb>
</template>
<script>
import { defineComponent, reactive } from 'vue';
export default defineComponent({
name: 'DBreadcrumbDemoDropdown',
setup() {
const source = reactive([
{ title: 'Homepage', link: '/', linkType: 'routerLink', replace: true },
{ title: 'DevUI', link: '/', noNavigation: true },
{ title: 'breadcrumb', showMenu: true, link: '/components/breadcrumb/', target: '_blank', children: [
{
title: '基础面包屑',
link: '/components/breadcrumb/#基础面包屑'
},
{
title: '传入source'
},
{
title: '带下拉菜单的面包屑'
}
]}
]);
return {
source,
};
},
});
</script>