docs: 更新日志
This commit is contained in:
parent
06dbd4f4ca
commit
2ff45cc940
@ -11,6 +11,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<lay-timeline>
|
<lay-timeline>
|
||||||
<lay-timeline-item title="0.4.0">
|
<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>
|
<ul>
|
||||||
<a name="0-4-0"> </a>
|
<a name="0-4-0"> </a>
|
||||||
<li>
|
<li>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<transition name="fade">
|
<transition name="fade">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
@ -18,4 +17,4 @@
|
|||||||
.fade-leave-active {
|
.fade-leave-active {
|
||||||
transition: opacity 1s;
|
transition: opacity 1s;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<LayCollapseTransition v-if="type==='collapse'"><slot></slot></LayCollapseTransition>
|
<LayCollapseTransition v-if="type === 'collapse'"
|
||||||
<LayFadeTransition v-if="type==='fade'"><slot></slot></LayFadeTransition>
|
><slot></slot
|
||||||
|
></LayCollapseTransition>
|
||||||
|
<LayFadeTransition v-if="type === 'fade'"><slot></slot></LayFadeTransition>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
@ -14,10 +16,10 @@ import LayCollapseTransition from "./collapseTransition.vue";
|
|||||||
import LayFadeTransition from "./fadeTransition.vue";
|
import LayFadeTransition from "./fadeTransition.vue";
|
||||||
|
|
||||||
export interface LayTransitionProps {
|
export interface LayTransitionProps {
|
||||||
type?: string
|
type?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const props = withDefaults(defineProps<LayTransitionProps>(), {
|
const props = withDefaults(defineProps<LayTransitionProps>(), {
|
||||||
type: 'collapse',
|
type: "collapse",
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user