fix(menu): layui-this 效果
This commit is contained in:
parent
08569ef65e
commit
6023dfb620
@ -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",
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user