Skip to content
New issue

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

Vue3 <Transition>标签使用受限 动画未能正确触发 #15938

Open
649683137 opened this issue Jun 19, 2024 · 3 comments
Open

Vue3 <Transition>标签使用受限 动画未能正确触发 #15938

649683137 opened this issue Jun 19, 2024 · 3 comments
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@649683137
Copy link

相关平台

微信小程序

复现仓库

https://gitee.com/huang_zhenjian/taro-bug.git
小程序基础库: 3.3.1
使用框架: Vue 3

复现步骤

运行项目即可

期望结果

组件在嵌套元素有绑定事件等条件下正常实现动画功能

实际结果

组件在嵌套元素有绑定事件等条件下未能实现动画功能

环境信息

👽 Taro v3.5.7


  Taro CLI 3.5.7 environment info:
    System:
      OS: macOS 13.5.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 14.17.0 - ~/.nvm/versions/node/v14.17.0/bin/node
      Yarn: 1.22.19 - ~/.nvm/versions/node/v14.17.0/bin/yarn
      npm: 6.14.13 - ~/.nvm/versions/node/v14.17.0/bin/npm
    npmPackages:
      @tarojs/components: 3.5.7 => 3.5.7 
      @tarojs/mini-runner: 3.5.7 => 3.5.7 
      @tarojs/plugin-framework-vue3: 3.5.7 => 3.5.7 
      @tarojs/runtime: 3.5.7 => 3.5.7 
      @tarojs/taro: 3.5.7 => 3.5.7 
      @tarojs/webpack-runner: 3.5.7 => 3.5.7 
      babel-preset-taro: 3.5.7 => 3.5.7 
      eslint-config-taro: 3.5.7 => 3.5.7 

补充信息

按照文档给出的hack方法编写,给嵌套元素绑定点击事件后,v-show和v-if状态变化后都无法正常触发进入和离开动画,且使用v-if状态变化时报错

TypeError: Cannot read property '_num' of undefined
@x1911
Copy link

x1911 commented Jun 20, 2024

同问,transition组件不生效

@TheKonka TheKonka added V-3 Version - 3.x F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 labels Jun 20, 2024
This was referenced Jun 22, 2024
@parox2014
Copy link

我也遇到了,请问现在有解决吗?就很迷,有时进入没动画,有时离开没动画,有时全没动画

@zybieku
Copy link

zybieku commented Sep 19, 2024

+1
小程序 style绑定 animationDuration 也不管用 ,关闭的时候 不行
h5又正常
nutui 有时看着可以 ,
可以试下用 transitionDuration 使用s做单位

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
Status: Todo
Development

No branches or pull requests

5 participants