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

swiper前后出现多余白块 #9941

Closed
collincheng opened this issue Jul 30, 2021 · 5 comments · Fixed by #10115 or #10120
Closed

swiper前后出现多余白块 #9941

collincheng opened this issue Jul 30, 2021 · 5 comments · Fixed by #10115 or #10120
Labels
F-vue3 Framework - Vue 3 T-swan Target - 编译到百度小程序 V-3 Version - 3.x
Milestone

Comments

@collincheng
Copy link

相关平台

百度小程序

小程序基础库: 3.320.32
使用框架: Vue 3

复现步骤

swiper-item 是动态遍历的 前后会出现白块

期望结果

消除白块

实际结果

产生多余的白块

环境信息

  Taro CLI 3.3.1 environment info:
    System:
      OS: macOS 11.4
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 14.17.3 - ~/.nvm/versions/node/v14.17.3/bin/node
      Yarn: 1.22.5 - ~/.yarn/bin/yarn
      npm: 6.14.13 - ~/.nvm/versions/node/v14.17.3/bin/npm
    npmPackages:
      @tarojs/cli: ^3.3.1 => 3.3.1 
      @tarojs/components: ^3.3.1 => 3.3.1 
      @tarojs/mini-runner: 3.3.1 => 3.3.1 
      @tarojs/runtime: ^3.3.1 => 3.3.1 
      @tarojs/taro: ^3.3.1 => 3.3.1 
      @tarojs/webpack-runner: 3.3.1 => 3.3.1 
      babel-preset-taro: 3.3.1 => 3.3.1 
      eslint-config-taro: 3.3.1 => 3.3.1 
@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-swan Target - 编译到百度小程序 V-3 Version - 3.x labels Jul 30, 2021
@DyanWtt
Copy link

DyanWtt commented Jul 30, 2021

我也遇到这个问题了!!!

@DyanWtt
Copy link

DyanWtt commented Jul 30, 2021

  <swiper
      @change="changeHandle"
      @tap="jumpRoute('/pages/shopImpression/index')"
      circular
      class="indexSwiper__swiper"
  >
      <swiper-item :key="index" v-for="(picture, index) in pictureList">
          <image :src="picture" class="indexSwiper__swiperItem" />
      </swiper-item>
  </swiper>

@collincheng
Copy link
Author

只要是vfor就出现前后白块的,有人解决一下吗

@Chen-jj
Copy link
Contributor

Chen-jj commented Aug 25, 2021

应该是 v-for 生成的注释节点影响到了,和支付宝一样 #9618

@collincheng
Copy link
Author

@Chen-jj 我升级到了3.3.20 百度小程序还是存在空白 不用v-for循环 swiper滑动不了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue3 Framework - Vue 3 T-swan Target - 编译到百度小程序 V-3 Version - 3.x
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants