Merge branch 'develop' of https://gitee.com/layui-vue/layui-vue into develop

This commit is contained in:
落小梅
2022-03-24 18:26:01 +08:00
4 changed files with 37 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ const props = withDefaults(defineProps<LayCollapseItemProps>(), {
disabled: false,
});
const { accordion, activeValues, emit } = inject("layCollapse") as any;
const { accordion, activeValues, emit, isAmin } = inject("layCollapse") as any;
let isShow = computed(() => {
return activeValues.value.includes(props.id);
@@ -57,7 +57,7 @@ const showHandle = function () {
<slot name="title" :props="props">{{ title }}</slot>
<i class="layui-icon layui-colla-icon">{{ isShow ? "" : "" }}</i>
</h2>
<lay-transition>
<lay-transition :enable="isAmin">
<div v-if="isShow">
<div class="layui-colla-content">
<p>

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;