Merge branch 'develop' of https://gitee.com/layui-vue/layui-vue into develop
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user