修复 breadcrumb-item 无法正确传递 attrs 的问题
This commit is contained in:
parent
e1a41552c5
commit
85a7217c47
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user