docs: 更新日志
This commit is contained in:
parent
06dbd4f4ca
commit
2ff45cc940
@ -11,6 +11,15 @@
|
||||
<template>
|
||||
<lay-timeline>
|
||||
<lay-timeline-item title="0.4.0">
|
||||
<ul>
|
||||
<a name="0-4-0"> </a>
|
||||
<li>
|
||||
<h3>0.4.1 <span class="layui-badge-rim">2022-03-17</span></h3>
|
||||
<ul>
|
||||
<li>[新增] transition 组件 type 属性, 默认为 collapse 过渡。</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<a name="0-4-0"> </a>
|
||||
<li>
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
<template>
|
||||
<transition name="fade">
|
||||
<slot></slot>
|
||||
@ -18,4 +17,4 @@
|
||||
.fade-leave-active {
|
||||
transition: opacity 1s;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
@ -1,6 +1,8 @@
|
||||
<template>
|
||||
<LayCollapseTransition v-if="type==='collapse'"><slot></slot></LayCollapseTransition>
|
||||
<LayFadeTransition v-if="type==='fade'"><slot></slot></LayFadeTransition>
|
||||
<LayCollapseTransition v-if="type === 'collapse'"
|
||||
><slot></slot
|
||||
></LayCollapseTransition>
|
||||
<LayFadeTransition v-if="type === 'fade'"><slot></slot></LayFadeTransition>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
@ -14,10 +16,10 @@ import LayCollapseTransition from "./collapseTransition.vue";
|
||||
import LayFadeTransition from "./fadeTransition.vue";
|
||||
|
||||
export interface LayTransitionProps {
|
||||
type?: string
|
||||
type?: string;
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<LayTransitionProps>(), {
|
||||
type: 'collapse',
|
||||
type: "collapse",
|
||||
});
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user