feat: 新增 transition 组件 type 属性 fade 值, 提供淡入淡出效果
This commit is contained in:
parent
2ff45cc940
commit
6d3073a666
@ -17,6 +17,7 @@
|
||||
<h3>0.4.1 <span class="layui-badge-rim">2022-03-17</span></h3>
|
||||
<ul>
|
||||
<li>[新增] transition 组件 type 属性, 默认为 collapse 过渡。</li>
|
||||
<li>[新增] transition 组件 type 属性 fade 值, 提供淡出淡入效果。</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -5,16 +5,16 @@
|
||||
</template>
|
||||
|
||||
<style>
|
||||
.fade-enter {
|
||||
opacity: 0;
|
||||
}
|
||||
.fade-enter-active {
|
||||
transition: opacity 1s;
|
||||
}
|
||||
.fade-enter-from,
|
||||
.fade-leave-to {
|
||||
opacity: 0;
|
||||
}
|
||||
.fade-enter-to,
|
||||
.fade-leave-from {
|
||||
opacity: 1;
|
||||
}
|
||||
.fade-enter-active,
|
||||
.fade-leave-active {
|
||||
transition: opacity 1s;
|
||||
transition: opacity 1s ease;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user