[新增] breadcrumb 组件 separator 属性, 允许自定义分隔符

This commit is contained in:
就眠仪式
2021-10-03 22:24:28 +08:00
parent 2749a35963
commit 6f1aa4e2a5
3 changed files with 44 additions and 3 deletions

View File

@@ -5,5 +5,16 @@
</template>
<script setup name="LayBreadcrumb" lang="ts">
import { defineProps, provide, withDefaults } from 'vue'
const props = withDefaults(
defineProps<{
separator?: string
}>(),
{
separator: "/"
}
)
provide("separator",props.separator);
</script>