Open
Description
最小复现代码片段
<template>
<view>
<button hover-class="button-hover" @click="show = true">点我弹框</button>
<view v-show="temp">11111</view>
<uni-transition :mode-class="['slide-bottom']" :show="show">
<view>我是弹框内容</view>
<button @click="temp = !temp">操作dom</button>
<button @click="show = false">点我关闭</button></uni-transition
>
</view>
</template>
<script setup lang="ts">
import { ref } from "vue";
const show = ref(false);
const temp = ref(false);
</script>
<style scoped lang="scss"></style>
在弹出状态下操作 dom 时,translateY 会从 0 变为 100%
步骤:点我弹框 -> 操作dom
会出现弹框内容回到底部
uni-ui: 1.4.22
vue: 3.2.33
vite: 2.9.5