init
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<script lang="ts">
|
||||
export default {
|
||||
name: "LayBreadcrumb",
|
||||
};
|
||||
</script>
|
||||
|
||||
<script setup lang="ts">
|
||||
import "./index.less";
|
||||
import { provide, withDefaults } from "vue";
|
||||
|
||||
export interface BreadcrumbProps {
|
||||
separator?: string;
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<BreadcrumbProps>(), {
|
||||
separator: "/",
|
||||
});
|
||||
|
||||
provide("separator", props.separator);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<span class="layui-breadcrumb">
|
||||
<slot></slot>
|
||||
</span>
|
||||
</template>
|
||||
Reference in New Issue
Block a user