"path": "pages/zgdjt/list/list3",
"style": {
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"backgroundColor": "#f7f7f7",
"app-plus": {
"scrollIndicator": "none",
"bounce": "vertical",
"pullToRefresh": {
"support": true,
"style": "circle"
},
"titleNView": {
"searchInput": {
"backgroundColor": "#f0f0f0",
"placeholder": "请输入所搜索的内容",
"align": "left",
"borderRadius": "20px",
"autoFocus": true
},
"buttons": [{
"text": "取消",
"color": "#BBBBBB",
"float": "right",
"fontSize": "30rpx",
"width": "56px"
}]
}
}
}
}
- 发布:2022-11-10 18:06
- 更新:2022-11-11 14:47
- 阅读:158
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX类型: 正式
HBuilderX版本号: 3.6.8
手机系统: Android
手机系统版本号: Android 12
手机厂商: 华为
手机机型: 小米11
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
{
"path": "pages/zgdjt/list/list3",
"style": {
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"backgroundColor": "#f7f7f7",
"app-plus": {
"scrollIndicator": "none",
"bounce": "vertical",
"pullToRefresh": {
"support": true,
"style": "circle"
},
"titleNView": {
"searchInput": {
"backgroundColor": "#f0f0f0",
"placeholder": "请输入所搜索的内容",
"align": "left",
"borderRadius": "20px",
"autoFocus": true
},
"buttons": [{
"text": "取消",
"color": "#BBBBBB",
"float": "right",
"fontSize": "30rpx",
"width": "56px"
}]
}
}
}
}
{
"path": "pages/zgdjt/list/list3",
"style": {
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"backgroundColor": "#f7f7f7",
"app-plus": {
"scrollIndicator": "none",
"bounce": "vertical",
"pullToRefresh": {
"support": true,
"style": "circle"
},
"titleNView": {
"searchInput": {
"backgroundColor": "#f0f0f0",
"placeholder": "请输入所搜索的内容",
"align": "left",
"borderRadius": "20px",
"autoFocus": true
},
"buttons": [{
"text": "取消",
"color": "#BBBBBB",
"float": "right",
"fontSize": "30rpx",
"width": "56px"
}]
}
}
}
}
预期结果:
自动聚焦,弹出键盘
自动聚焦,弹出键盘
实际结果:
不聚焦,键盘不弹出
不聚焦,键盘不弹出
bug描述:
我试过了,安卓手机全不行,但是苹果手机可以自动聚焦并弹出键盘
1***@qq.com (作者)
我的是3.6.4 就是正式版目前最高的那个版本
2022-11-11 18:15
Firstmeet初见
回复 1***@qq.com: 最新版3.6.5.20221121也有这个问题,应该是有聚焦,但是莫名又取消掉了。
2022-12-02 14:08
DCloud_Android_ST
回复 1***@qq.com: HX3.6.8+alpha版本
2022-12-02 14:33