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

Taro 3.1.1 使用 vant-weapp 1.6.8 的 van-tabs 时无法正常绑定事件、属性 #8797

Closed
onlyling opened this issue Mar 2, 2021 · 0 comments · Fixed by #8819
Closed
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Milestone

Comments

@onlyling
Copy link
Contributor

onlyling commented Mar 2, 2021

相关平台

微信小程序

小程序基础库: 2.15.0
使用框架: React

复现步骤

业务代码

<van-tabs
  animated
  swipeable
  type="card"
  active="2"
  onChange={() => {
    console.log('???');
  }}
>
  <van-tab title="Tab 1" name="1">
    <View style={{ height: '300rpx' }}>
      <Text>内容 1</Text>
    </View>
  </van-tab>
  <van-tab title="Tab 2" name="2">
    <Text>内容 2</Text>
  </van-tab>
</van-tabs>

dist/base.wxml

<template name="tmpl_0_van-tabs">
  <van-tabs  id="{{i.uid}}">
    <block wx:for="{{i.cn}}" wx:key="uid">
      <template is="{{xs.e(cid 1)}}" data="{{i:item,l:l}}" />
    </block>
  </van-tabs>
</template>

期望结果

正常绑定事件、属性。

实际结果

van-tabs 相关所有绑定皆无效。

环境信息

Taro CLI 3.1.1 environment info:
    System:
      OS: macOS 10.15.7
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 12.14.1 - /usr/local/bin/node
      Yarn: 1.22.5 - ~/.yarn/bin/yarn
      npm: 7.6.0 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: ^3.1.1 => 3.1.1 
      @tarojs/components: 3.1.1 => 3.1.1 
      @tarojs/mini-runner: 3.1.1 => 3.1.1 
      @tarojs/react: 3.1.1 => 3.1.1 
      @tarojs/runtime: 3.1.1 => 3.1.1 
      @tarojs/taro: 3.1.1 => 3.1.1 
      @tarojs/webpack-runner: 3.1.1 => 3.1.1 
      babel-preset-taro: 3.1.1 => 3.1.1 
      eslint-config-taro: 3.1.1 => 3.1.1 
      react: ^17.0.0 => 17.0.1 
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
None yet
Development

Successfully merging a pull request may close this issue.

2 participants