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

skyline模式下, hover-stop-propagation导致hover-class不生效? #14513

Closed
p2227 opened this issue Sep 11, 2023 · 2 comments
Closed

skyline模式下, hover-stop-propagation导致hover-class不生效? #14513

p2227 opened this issue Sep 11, 2023 · 2 comments
Assignees
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@p2227
Copy link
Contributor

p2227 commented Sep 11, 2023

相关平台

微信小程序

复现仓库

git@github.com:p2227/bug-demo.git
小程序基础库: 3.0.1
使用框架: React

复现步骤

git clone
npm i
npm run dev

按照官方的配置启动skyline开发者环境
https://developers.weixin.qq.com/miniprogram/dev/framework/runtime/skyline/migration/

期望结果

点击黄色区域

期望点击时候会变成红色
image

实际结果

点击黄色区域,颜色没有变化
image

环境信息

👽 Taro v3.6.16


  Taro CLI 3.6.16 environment info:
    System:
      OS: macOS 13.3.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node
      Yarn: 1.22.18 - ~/.nvm/versions/node/v16.14.2/bin/yarn
      npm: 8.19.4 - ~/.nvm/versions/node/v16.14.2/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.16 => 3.6.16 
      @tarojs/components: 3.6.16 => 3.6.16 
      @tarojs/helper: 3.6.16 => 3.6.16 
      @tarojs/plugin-framework-react: 3.6.16 => 3.6.16 
      @tarojs/plugin-platform-alipay: 3.6.16 => 3.6.16 
      @tarojs/plugin-platform-h5: 3.6.16 => 3.6.16 
      @tarojs/plugin-platform-jd: 3.6.16 => 3.6.16 
      @tarojs/plugin-platform-qq: 3.6.16 => 3.6.16 
      @tarojs/plugin-platform-swan: 3.6.16 => 3.6.16 
      @tarojs/plugin-platform-tt: 3.6.16 => 3.6.16 
      @tarojs/plugin-platform-weapp: 3.6.16 => 3.6.16 
      @tarojs/react: 3.6.16 => 3.6.16 
      @tarojs/runtime: 3.6.16 => 3.6.16 
      @tarojs/shared: 3.6.16 => 3.6.16 
      @tarojs/taro: 3.6.16 => 3.6.16 
      @tarojs/taro-loader: 3.6.16 => 3.6.16 
      @tarojs/webpack5-runner: 3.6.16 => 3.6.16 
      babel-preset-taro: 3.6.16 => 3.6.16 
      eslint-config-taro: 3.6.16 => 3.6.16 
      react: ^18.0.0 => 18.2.0 
    npmGlobalPackages:
      typescript: 5.0.2

补充信息

<template name="tmpl_0_5">
  <view hover-class="{{xs.b(i.p1,'none')}}" hover-stop-propagation="{{xs.b(i.p4,!1)}}" hover-start-time="{{xs.b(i.p2,50)}}" hover-stay-time="{{xs.b(i.p3,400)}}" animation="{{i.p0}}" style="{{i.st}}" class="{{i.cl}}"  id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
    <block wx:for="{{i.cn}}" wx:key="sid">
      <template is="{{xs.a(c, item.nn, l)}}" data="{{i:item,c:c 1,l:xs.f(l,item.nn)}}" />
    </block>
  </view>
</template>

把 base.wxml里面的 hover-stop-propagation="{{xs.b(i.p4,!1)}}"删除就可以正常的

@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Sep 11, 2023
@iugo
Copy link
Contributor

iugo commented Oct 10, 2023

@p2227
Copy link
Contributor Author

p2227 commented Oct 19, 2023

这两个issues和社区的帖子都是我发的

@koppthe koppthe self-assigned this Apr 16, 2024
@tutuxxx tutuxxx closed this as completed Nov 7, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in Mini Program Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
Archived in project
Development

No branches or pull requests

4 participants