修复 breadcrumb-item 无法正确传递 attrs 的问题

This commit is contained in:
就眠儀式 2022-09-20 20:16:50 +08:00
parent e1a41552c5
commit 85a7217c47
2 changed files with 3 additions and 8 deletions

View File

@ -1,11 +1,6 @@
<template> <template>
<a href="javascript:void(0);"> <a href="javascript:void(0);" v-bind="$attrs">
<template v-if="slot.default"> <slot>{{ title }}</slot>
<slot></slot>
</template>
<template v-else>
{{ title }}
</template>
</a> </a>
<span lay-separator>{{ separator }}</span> <span lay-separator>{{ separator }}</span>
</template> </template>

View File

@ -67,7 +67,7 @@ export default {
::: demo ::: demo
<template> <template>
<lay-breadcrumb separator="--"> <lay-breadcrumb separator="-">
<lay-breadcrumb-item>今天</lay-breadcrumb-item> <lay-breadcrumb-item>今天</lay-breadcrumb-item>
<lay-breadcrumb-item>有些</lay-breadcrumb-item> <lay-breadcrumb-item>有些</lay-breadcrumb-item>
<lay-breadcrumb-item>不开心</lay-breadcrumb-item> <lay-breadcrumb-item>不开心</lay-breadcrumb-item>