✨(component): 优化 collapse 折叠面板动画
This commit is contained in:
parent
62c444a954
commit
16c0047620
@ -33,8 +33,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.layui-colla-icon {
|
.layui-colla-icon {
|
||||||
position: absolute;
|
|
||||||
left: 15px;
|
left: 15px;
|
||||||
top: 0;
|
top: 0;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
position: absolute;
|
||||||
}
|
}
|
@ -55,10 +55,8 @@ const showHandle = function () {
|
|||||||
:class="['layui-colla-title', { 'layui-disabled': disabled }]"
|
:class="['layui-colla-title', { 'layui-disabled': disabled }]"
|
||||||
@click="showHandle"
|
@click="showHandle"
|
||||||
>
|
>
|
||||||
<slot name="title" :props="props">{{ title }}</slot>
|
<slot name="title" :props="props">{{ title }}</slot> {{ collapseTransition }}
|
||||||
<i class="layui-icon layui-colla-icon">
|
<i class="layui-icon layui-colla-icon layui-icon-right" :style="{ 'transform' : isShow ? 'rotate(90deg)':'none', 'transition': collapseTransition ? 'all 0.2s ease 0s':'' }"></i>
|
||||||
{{ isShow ? "" : "" }}
|
|
||||||
</i>
|
|
||||||
</h2>
|
</h2>
|
||||||
<lay-transition :enable="collapseTransition">
|
<lay-transition :enable="collapseTransition">
|
||||||
<div v-if="isShow">
|
<div v-if="isShow">
|
||||||
|
Loading…
Reference in New Issue
Block a user