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

fix(Tab): fix init position incorrect #4521

Merged
merged 2 commits into from
Sep 26, 2021

Conversation

nemo-shen
Copy link
Collaborator

@nemo-shen nemo-shen commented Sep 25, 2021

#4513
历史issue:#4202
关联PR:#4221 #4263
skipInit 似乎在引发一些奇怪的问题(目前issues中好像还有几个tab的定位问题,可能都跟这个有关),暂时先去掉该值,目前测试两个历史case成功。

测试用例

<van-tabs active="{{ 16 }}" bind:change="onChange">
  <van-tab
    wx:for="{{ 19 }}"
    wx:key="index"
    title="{{ '标签 ' + item }}"
  >
    <view class="content">
      {{ '内容' + item }}
    </view>
  </van-tab>
</van-tabs>
<van-tabs active="{{ 88 }}" bind:change="onChange">
  <van-tab
    wx:for="{{ 100 }}"
    wx:key="index"
    title="{{ '标签 ' + item }}"
  >
    <view class="content">
      {{ '内容' + item }}
    </view>
  </van-tab>
</van-tabs>

@chenjiahan chenjiahan merged commit 56ecd55 into youzan:dev Sep 26, 2021
@chenjiahan
Copy link
Member

👍

@zhihuifanqiechaodan
Copy link

Finally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants