2021-09-30 06:56:36 +00:00
|
|
|
<template>
|
2021-10-15 02:46:34 +00:00
|
|
|
<a href="javascript:void(0);">
|
|
|
|
<template v-if="slot.default">
|
|
|
|
<slot></slot>
|
|
|
|
</template>
|
|
|
|
<template v-else>
|
|
|
|
{{ title }}
|
|
|
|
</template>
|
|
|
|
</a>
|
2021-10-13 13:43:23 +00:00
|
|
|
<span lay-separator>{{ separator }}</span>
|
2021-09-30 06:56:36 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup name="LayBreadcrumbItem" lang="ts">
|
2021-10-15 02:46:34 +00:00
|
|
|
import { defineProps, inject, useSlots } from 'vue'
|
2021-09-30 06:56:36 +00:00
|
|
|
|
2021-10-15 02:46:34 +00:00
|
|
|
const slot = useSlots()
|
|
|
|
|
|
|
|
const props =
|
|
|
|
defineProps<{
|
|
|
|
title: string
|
|
|
|
}>()
|
2021-10-03 14:24:28 +00:00
|
|
|
|
2021-10-12 03:30:07 +00:00
|
|
|
const separator = inject('separator')
|
2021-09-30 06:56:36 +00:00
|
|
|
</script>
|