forked from integrated_whb/integrated_whb_vue
增加动画
parent
92c577a110
commit
d7200aba12
|
@ -10,25 +10,30 @@
|
|||
<img :src="item.check ? item.imgSelect : item.img" alt="" />
|
||||
<div class="title">{{ item.title }}</div>
|
||||
<div class="child_container">
|
||||
<!-- <transition-->
|
||||
<!-- enter-active-class="animate__animated animate__bounceIn"-->
|
||||
<!-- leave-active-class="animate__animated animate__bounceOut"-->
|
||||
<!-- mode="out-in"-->
|
||||
<!-- >-->
|
||||
<div v-show="item.check" :class="['child_options', item.type]">
|
||||
<transition
|
||||
enter-active-class="animate__animated animate__bounceIn"
|
||||
leave-active-class="animate__animated animate__bounceOut"
|
||||
mode="out-in"
|
||||
>
|
||||
<div
|
||||
v-for="(item1, index1) in item.list"
|
||||
:key="item1.title"
|
||||
class="child_option"
|
||||
@click.stop="fnBottomChildOptionsListChange(index, item1, index1)"
|
||||
v-show="item.check"
|
||||
:class="['child_options', item.type, { active: item.check }]"
|
||||
>
|
||||
<img :src="item1.check ? item1.imgSelect : item1.img" alt="" />
|
||||
<div class="tit" :class="item1.check ? 'active' : ''">
|
||||
{{ item1.title }}
|
||||
<div
|
||||
v-for="(item1, index1) in item.list"
|
||||
:key="item1.title"
|
||||
class="child_option"
|
||||
@click.stop="
|
||||
fnBottomChildOptionsListChange(index, item1, index1)
|
||||
"
|
||||
>
|
||||
<img :src="item1.check ? item1.imgSelect : item1.img" alt="" />
|
||||
<div class="tit" :class="item1.check ? 'active' : ''">
|
||||
{{ item1.title }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- </transition>-->
|
||||
</transition>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -469,7 +474,10 @@ const fnBottomChildOptionsListChange = (index, item1, index1) => {
|
|||
1;
|
||||
border-left: none;
|
||||
border-right: none;
|
||||
display: flex;
|
||||
display: none;
|
||||
&.active {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.child_option {
|
||||
text-align: center;
|
||||
|
|
Loading…
Reference in New Issue