fix: switch slot

This commit is contained in:
就眠儀式 2022-03-24 17:57:00 +08:00
parent a51c2b086c
commit 0530d2ee90
2 changed files with 5 additions and 1 deletions

View File

@ -50,7 +50,10 @@ const showHandle = function () {
<template>
<div class="layui-colla-item">
<h2 :class="['layui-colla-title', { 'layui-disabled': disabled }]" @click="showHandle">
<h2
:class="['layui-colla-title', { 'layui-disabled': disabled }]"
@click="showHandle"
>
<slot name="title" :props="props">{{ title }}</slot>
<i class="layui-icon layui-colla-icon">{{ isShow ? "" : "" }}</i>
</h2>

View File

@ -23,6 +23,7 @@
top: 3px;
width: 16px;
height: 16px;
line-height: 16px;
border-radius: 20px;
background-color: @global-neutral-color-6;
-webkit-transition: 0.1s linear;