27 lines
		
	
	
		
			448 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			448 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
<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>
 |