taro icon indicating copy to clipboard operation
taro copied to clipboard

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

Open p2227 opened this issue 1 year ago • 2 comments

相关平台

微信小程序

复现仓库

[email protected]: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)}}"删除就可以正常的

p2227 avatar Sep 11 '23 04:09 p2227

这个问题可能和 https://developers.weixin.qq.com/community/develop/doc/00024a47bec5d843055092c4f6c800 有关.

iugo avatar Oct 10 '23 10:10 iugo

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

p2227 avatar Oct 19 '23 06:10 p2227