[组件] 初步集成 breadcrumb 面包屑

This commit is contained in:
就眠仪式
2021-09-30 14:56:36 +08:00
parent e412c41eb6
commit 7e2f6abc7b
10 changed files with 81 additions and 5 deletions

View File

@@ -0,0 +1,9 @@
import type { App } from 'vue'
import Component from './index.vue'
import type { IDefineComponent } from '../type/index'
Component.install = (app: App) => {
app.component(Component.name || 'LayBreadcrumbItem', Component)
}
export default Component as IDefineComponent

View File

@@ -0,0 +1,15 @@
<template>
<a href="">{{title}}</a>
<span lay-separator="">/</span>
</template>
<script setup name="LayBreadcrumbItem" lang="ts">
import { defineProps } from 'vue'
const props =
defineProps<{
title: string
}>()
</script>