[组件] 初步集成 breadcrumb 面包屑
This commit is contained in:
9
src/module/breadcrumb/index.ts
Normal file
9
src/module/breadcrumb/index.ts
Normal 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 || 'LayBreadcrumb', Component)
|
||||
}
|
||||
|
||||
export default Component as IDefineComponent
|
||||
10
src/module/breadcrumb/index.vue
Normal file
10
src/module/breadcrumb/index.vue
Normal file
@@ -0,0 +1,10 @@
|
||||
<template>
|
||||
<span class="layui-breadcrumb" style="visibility: visible;">
|
||||
<slot></slot>
|
||||
</span>
|
||||
</template>
|
||||
|
||||
<script setup name="LayBreadcrumb" lang="ts">
|
||||
import { useSlots } from "vue";
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user