- 发布:2026-03-30 11:28
- 更新:2026-03-30 11:29
- 阅读:20
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 11
HBuilderX类型: 正式
HBuilderX版本号: 4.76
手机系统: Android
手机系统版本号: Android 16
手机厂商: 小米
手机机型: K80
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
<view v-else-if="issue.issue_status!=6" class="bg-gray padding-bottom-sm solid-top">
<view class="flex flex-row bg-gray align-center padding-sm">
<image @tap="toolShow" src="@/static/chat/add.png" class="block"
style="width:30px;height:30px;"></image>
<view class="flex-sub flex flex-row align-center bg-white margin-lr-sm padding-xs radius">
<view class="flex-sub">
<input ref="chatInput" v-model="content" placeholder="" maxlength="120"
adjust-position="false" confirm-type="send" style="height:30px;line-height:1rem;"
placeholder-class="text-gray" class="text-df text-black flex-sub padding-left-xs">
</view>
<button @tap="sendText" v-if="content.length>0" class="cu-btn bg-blue"
style="width:60px;height:30px;line-height:30px;border-radius:6px;">
<text class="text-sm text-bold">发 送</text>
</button>
</view>
<image @tap.stop="voiceShow" src="/static/chat/voice.png" class="block"
style="width:30px;height:30px;"></image>
</view>
<tool @upload="uploadMedia" v-if="toolModel" :height="toolHeight"></tool>
<voice @stop="voiceStop" v-if="voiceModel" :height="toolHeight"></voice>
</view>
</view>
<button @tap="sendText" v-if="content.length>0" class="cu-btn bg-blue"
style="width:60px;height:30px;line-height:30px;border-radius:6px;">
<text class="text-sm text-bold">发 送</text>
</button>
</view>
<image @tap.stop="voiceShow" src="/static/chat/voice.png" class="block"
style="width:30px;height:30px;"></image>
</view>
<tool @upload="uploadMedia" v-if="toolModel" :height="toolHeight"></tool>
<voice @stop="voiceStop" v-if="voiceModel" :height="toolHeight"></voice>
</view>
操作步骤:
z-paging示例代码-聊天页面
z-paging示例代码-聊天页面
预期结果:
输入法和聊天框中间贴合
输入法和聊天框中间贴合
实际结果:
输入法和聊天框中间有一大块空白
输入法和聊天框中间有一大块空白
bug描述:
<input :adjust-position="false">之前好好的,3月30日上班后打包就顶上去了,列表组件用的z-paging,我的项目和DEMO都有问题了,之前没有事的,之前还好好的
Ask小助手 - Ask社区AI助手
欢迎到专业群( uni-app 官方技术交流群 1 ) 咨询,群中有相关专业的管理员和群友。
这个 bug 反馈的内容不够完整,缺少关键信息,且知识库中暂未检索到关于 adjust-position 在特定小米机型上失效的相关记录。
反馈内容完整性评价:
-
问题描述不够详细:用户提到"3月30日上班后打包就顶上去了",但没有说明在此期间是否升级了 HBuilderX 版本、是否更新了手机系统版本、是否更换了打包方式或基础库版本。这些环境变更信息对定位"突然无效"的原因至关重要。
-
代码示例不完整:提供的代码片段依赖第三方组件
z-paging和自定义组件tool/voice,无法直接运行复现。缺少可独立运行的最小化复现示例(即不使用 z-paging,仅用原生 input 组件测试是否复现)。 -
复现步骤过于简略:仅描述为"z-paging示例代码-聊天页面",没有具体操作步骤(如:点击输入框后是否聚焦、是否弹出键盘、页面是否有滚动等),官方人员无法根据此描述稳定复现。
-
版本信息需更新:用户使用的是 HBuilderX 4.76 正式版,而当前最新正式版为 5.04(2026-03-18 更新),建议升级到最新版本验证问题是否已修复。
Bug 成立性分析:
根据现有知识库内容,暂未找到关于 adjust-position="false" 在小米 K80 或 Android 16 上失效的明确记录。由于 adjust-position 是 App 端原生输入法相关的属性,其表现受以下因素影响:
- 手机系统版本(Android 16 较新,可能存在系统级键盘弹出逻辑变更)
- 手机厂商定制系统(小米 HyperOS 对键盘弹出的处理机制)
- 第三方组件兼容性(z-paging 的滚动逻辑可能与键盘弹出事件冲突)
建议补充的信息:
- 请提供不依赖 z-paging 的最小化复现示例(仅用原生 input 组件测试),以确认是框架问题还是第三方组件兼容性问题。
- 请确认问题是否仅在 HBuilderX 4.76 打包后出现,建议升级到 HBuilderX 5.04 重新打包测试。
- 请检查 AndroidManifest.xml 中
windowSoftInputMode的配置是否被意外修改。 - 请确认是否为小米 K80 特定问题(测试其他品牌 Android 16 设备或小米其他机型是否复现)。
知识库中暂无相关解决方案,如升级版本后问题依旧,建议提供更详细的复现工程(不含第三方组件)以便进一步排查。