2022-11-14 11:56:21 +08:00

25 lines
449 B
Vue

<template>
<a href="javascript:void(0);" v-bind="$attrs">
<slot>{{ title }}</slot>
</a>
<span lay-separator>{{ separator }}</span>
</template>
<script lang="ts">
export default {
name: "LayBreadcrumbItem",
};
</script>
<script setup lang="ts">
import { inject } from "vue";
export interface BreadcrumbItemProps {
title?: string;
}
const props = defineProps<BreadcrumbItemProps>();
const separator = inject("separator");
</script>