init
This commit is contained in:
5
src/component/breadcrumbItem/index.ts
Normal file
5
src/component/breadcrumbItem/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
24
src/component/breadcrumbItem/index.vue
Normal file
24
src/component/breadcrumbItem/index.vue
Normal file
@@ -0,0 +1,24 @@
|
||||
<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>
|
||||
0
src/component/breadcrumbItem/interface.ts
Normal file
0
src/component/breadcrumbItem/interface.ts
Normal file
Reference in New Issue
Block a user