Skip to content

uniapp vue2版本ios26中H5的兼容问题 #5774

@shiminJ

Description

@shiminJ

发行方式

None

具体平台

系统版本:IOS 26.0
手机型号:任意苹果手机

开发环境

None

项目创建方式

CLI命令行

依赖版本

"@dcloudio/uni-h5": "^2.0.1-36420220922001"

问题描述

使用unicli搭建的项目,ios26版本中会出现scroll-view中内容不显示的问题,切后台在返回又显示。

7551680193099081232.MP4

重现步骤

<template>
  <view class="page">
    <scroll-view scroll-y class="scroller">
      <view v-if="isShow">
        <view class="box"></view>
      </view>
    </scroll-view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      isShow: false
    }
  },
  mounted() {
    setTimeout(() => {
      this.isShow = true
    }, 800)
  },
}
</script>

<style lang="scss" scoped>
.page {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.scroller {
  flex: 1;
  height: 0;
  overflow-y: scroll;
}

.box {
  width: 100%;
  height: 200px;
  background-color: #f00;
}
</style>

期望行为

No response

实际行为

No response

截图或录屏

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions