修复 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>
<a href="javascript:void(0);">
<template v-if="slot.default">
<slot></slot>
</template>
<template v-else>
{{ title }}
</template>
<a href="javascript:void(0);" v-bind="$attrs">
<slot>{{ title }}</slot>
</a>
<span lay-separator>{{ separator }}</span>
</template>

View File

@ -67,7 +67,7 @@ export default {
::: demo
<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>