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