fix(menu): layui-this 效果

This commit is contained in:
就眠仪式
2021-10-15 14:37:27 +08:00
parent 08569ef65e
commit 6023dfb620
2 changed files with 4 additions and 4 deletions

View File

@@ -1,8 +1,8 @@
<template>
<dd :class="[selectKey === id ? 'layui-this' : '']" @click="selectHandle()">
<a href="javascript:void(0)">
<slot v-if="slots.title" name="title"></slot>
<span v-else> {{ title }} </span>
<slot v-if="slots.title" name="title"></slot>
<a v-else href="javascript:void(0)">
{{title}}
</a>
</dd>
</template>