網(wǎng)站首頁 編程語言 正文
<template>
<div class="main">
<el-button @click="onCllick">切換</el-button>
<transition name="slideDown">
<div class="info" v-if="isShow">1111</div>
</transition>
</div>
</template>
<script lang="ts">
import { defineComponent, reactive, toRefs } from 'vue'
export default defineComponent({
name: 'login-account ',
components: {},
setup(props, { emit, slots, attrs }) {
const state = reactive({
isShow: false
})
const onCllick = () => {
console.log('切換')
state.isShow = !state.isShow
}
return {
...toRefs(state),
onCllick
}
}
})
</script>
<style lang="less">
.info {
width: 100px;
height: 400px;
background-color: skyblue;
margin: 0 auto;
}
.slideDown-enter-active,
.slideDown-leave-active {
transition: all 0.5s ease-in-out;
}
.slideDown-enter-from {
height: 0;
}
.slideDown-leave-to {
height: 0;
}
</style>
原文鏈接:https://blog.csdn.net/m0_62323730/article/details/133658217
- 上一篇:沒有了
- 下一篇:沒有了
相關(guān)推薦
- 2022-07-27 flask實現(xiàn)python方法轉(zhuǎn)換服務(wù)的方法_python
- 2023-02-27 nginx編譯安裝及常用參數(shù)詳解_nginx
- 2022-09-17 docker資源控制管理Cgroup的實現(xiàn)_docker
- 2022-06-28 C#開發(fā)Winform實現(xiàn)學(xué)生管理系統(tǒng)_C#教程
- 2022-08-17 jQuery初識之設(shè)計思想方法函數(shù)示例_jquery
- 2022-05-29 C#實現(xiàn)文本轉(zhuǎn)語音功能_C#教程
- 2022-05-09 shell腳本編程Makefile的使用_linux shell
- 2022-12-04 pyecharts如何旋轉(zhuǎn)折線圖的X軸標(biāo)簽_python
- 欄目分類
-
- 最近更新
-
- window11 系統(tǒng)安裝 yarn
- 超詳細(xì)win安裝深度學(xué)習(xí)環(huán)境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎(chǔ)操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區(qū)別,Jav
- spring @retryable不生效的一種
- Spring Security之認(rèn)證信息的處理
- Spring Security之認(rèn)證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權(quán)
- redisson分布式鎖中waittime的設(shè)
- maven:解決release錯誤:Artif
- restTemplate使用總結(jié)
- Spring Security之安全異常處理
- MybatisPlus優(yōu)雅實現(xiàn)加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務(wù)發(fā)現(xiàn)-Nac
- Spring Security之基于HttpR
- Redis 底層數(shù)據(jù)結(jié)構(gòu)-簡單動態(tài)字符串(SD
- arthas操作spring被代理目標(biāo)對象命令
- Spring中的單例模式應(yīng)用詳解
- 聊聊消息隊列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠(yuǎn)程分支