Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

微信小程序页面内有多个AtTabs时,切换有问题 #50

Closed
eki1563 opened this issue Sep 8, 2020 · 0 comments · Fixed by #52
Closed

微信小程序页面内有多个AtTabs时,切换有问题 #50

eki1563 opened this issue Sep 8, 2020 · 0 comments · Fixed by #52
Assignees

Comments

@eki1563
Copy link

eki1563 commented Sep 8, 2020

问题描述
RT,前面AtTabs的onClick事件会被最后一个AtTabs的onClick覆盖掉。点击前面的AtTabs会调用最后一个AtTabs绑定的事件。
且后面的AtTabsPane会有错位。
H5上没有发现问题。

复现步骤
git clone
cd taro-ui-vue-demo
yarn
yarn build:weapp
点击第一个tabs切换会调用最后一个tabs的onClick
微信开发者工具和真机预览都有问题

  <AtTabs
    :swipeable="false"
    :current="current1"
    :tabList="tabList1"
    :onClick="handleClick.bind(this, 'current1')"
  />
  <AtTabs
    :swipeable="false"
    scroll
    :current="current2"
    :tabList="tabList2"
    :onClick="handleClick.bind(this, 'current2')"
  />

期望行为
和H5一样,每个AtTabs的onClick事件能正确调用

报错信息

系统信息
Taro CLI 3.0.8 environment info:
System:
OS: Windows 10
Binaries:
Node: 14.5.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.14.5 - C:\Program Files\nodejs\npm.CMD

  • Taro 版本 [3.0.8]
  • Taro UI Vue 版本 [1.0.0-alpha.7]
  • 报错平台 [weapp]
@psaren psaren self-assigned this Sep 8, 2020
@psaren psaren added this to the V1.0.0-alpha.8 milestone Sep 9, 2020
psaren added a commit that referenced this issue Sep 9, 2020
psaren added a commit that referenced this issue Sep 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants