<view class="uni-container">
<uni-forms ref="form" :modelValue="formData" validate-trigger="submit" err-show-type="toast">
<uni-forms-item name="unit_name" label="单位名称" required>
<uni-easyinput @focus="inputFocus" @blur="inputBlur" v-model="formData.unit_name" placeholder="单位名称"></uni-easyinput>
</uni-forms-item>
<uni-forms-item name="tax_number" label="税号" required>
<uni-easyinput @focus="inputFocus" @blur="inputBlur" v-model="formData.tax_number" placeholder="税号"></uni-easyinput>
</uni-forms-item>
<uni-forms-item name="unit_address" label="单位地址">
<uni-easyinput @focus="inputFocus" @blur="inputBlur" v-model="formData.unit_address" placeholder="单位地址"></uni-easyinput>
</uni-forms-item>
<uni-forms-item name="tel" label="电话号码">
<uni-easyinput v-model="formData.tel" placeholder="电话号码"></uni-easyinput>
</uni-forms-item>
<uni-forms-item name="open_account" label="开户银行">
<uni-easyinput v-model="formData.open_account" placeholder="开户银行"></uni-easyinput>
</uni-forms-item>
<uni-forms-item name="bank_number" label="银行账号">
<uni-easyinput v-model="formData.bank_number" placeholder="银行账号"></uni-easyinput>
</uni-forms-item>
<view class="uni-button-group">
<button type="primary" class="uni-button" @click="submit">提交</button>
</view>
</uni-forms>
</view>
- 发布:2022-05-28 09:13
- 更新:2023-04-21 16:45
- 阅读:301
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 21H1
HBuilderX类型: 正式
HBuilderX版本号: 3.4.12
第三方开发者工具版本号: 1.05.2204250
基础库版本号: 2.24.4
项目创建方式: HBuilderX
示例代码:
操作步骤:
使用schema2code生成多个input框的页面
使用schema2code生成多个input框的页面
预期结果:
点击input键盘无异常
点击input键盘无异常
实际结果:
点击input后键盘跳动两次后消失
点击input后键盘跳动两次后消失
bug描述:
scheam2code生成的代码,小程序真机调试.如果一个input已经获取焦点了,再点击下一个input框会连续触发两次blur,并不会触发focus.导致键盘弹两次后消失
1 个回复
4***@qq.com
你好解决了吗?