25 lines
449 B
Plaintext
25 lines
449 B
Plaintext
<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>
|