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,6 +1,6 @@
{
"name": "@layui/layui-vue",
"version": "0.1.2",
"version": "0.1.3",
"description": "a component library for Vue 3 base on layui-vue",
"main": "lib/layui-vue.umd.js",
"module": "lib/layui-vue.es.js",

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>