We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<script setup lang="ts"> import { ref } from 'vue' const show = ref(false) </script> <template> <view class="flex h-screen w-screen items-center justify-center"> <button class="bg-white p-3" @click="show = !show">SHOW</button> </view> <uni-transition mode-class="fade" :show="show" :styles="{ position: 'fixed', left: 0, right: 0, bottom: 0, zIndex: 900, width: '100vw', height: '100vh', backgroundColor: 'rgba(0, 0, 0, 0.5)', }" > <view class="flex h-screen w-screen items-center justify-center"> <button class="bg-white p-3" @click="show = !show">HIDE</button> </view> </uni-transition> </template>
The text was updated successfully, but these errors were encountered:
我使用你上面的代码,我本地测试了 web 和小程序平台 ,没有出现你的问题 , 可以详细描述一下平台信息吗 ? vue2 还是vue3 ,小程序的基础库版本等?
Sorry, something went wrong.
npx degit dcloudio/uni-preset-vue#vite my-vue3-project
最小复现 👉 https://github.com/yeyuqh/uni-transition-bug-reproduction
No branches or pull requests
CleanShot.2025-04-03.at.16.43.09.mp4
The text was updated successfully, but these errors were encountered: