clsnull
clsnull
  • 发布:2023-03-18 14:40
  • 更新:2023-03-23 10:12
  • 阅读:470

【报Bug】在微信小程序开发工具真机调试下 使用input 组件 v-model 数据没有双向绑定 添加 input 事件也接收不到

分类:uni-app

产品分类: uniapp/小程序/微信

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10

HBuilderX类型: 正式

HBuilderX版本号: 3.7.3

第三方开发者工具版本号: 1.06.2303060win32-x64

基础库版本号: 8.0.33

项目创建方式: HBuilderX

示例代码:
<template>  
    <view class="content">  
        <image class="logo" src="/static/logo.png"></image>  
        <view class="text-area">  
            <text class="title">{{title}}</text>  
            <input v-model="title" placeholder="请输入内容" @input="handleInput">  
        </view>  
    </view>  
</template>  

<script>  
    export default {  
        data() {  
            return {  
                title: 'Hello'  
            }  
        },  
        onLoad() {  

        },  
        methods: {  
            handleInput(e){  
                console.log(e)  
            }  
        }  
    }  
</script>  

<style>  
    .content {  
        display: flex;  
        flex-direction: column;  
        align-items: center;  
        justify-content: center;  
    }  

    .logo {  
        height: 200rpx;  
        width: 200rpx;  
        margin-top: 200rpx;  
        margin-left: auto;  
        margin-right: auto;  
        margin-bottom: 50rpx;  
    }  

    .text-area {  
        display: flex;  
        justify-content: center;  
    }  

    .title {  
        font-size: 36rpx;  
        color: #8f8f94;  
    }  
</style>  

操作步骤:

在微信小程序开发工具真机调试下 使用input 组件 v-model 数据没有双向绑定 添加 input 事件也接收不到

预期结果:

数据双向绑定 input事件触发

实际结果:

数据没有双向绑定 input事件没有触发

bug描述:

在微信小程序开发工具真机调试下 使用input 组件 v-model 数据没有双向绑定 添加 input 事件也接收不到

2023-03-18 14:40 负责人:无 分享
已邀请:
DCloud_UNI_WZF

DCloud_UNI_WZF

测试下原生小程序开发是否存在该问题?如确认框架问题,提供下vue,HBuilderX版本等详细信息

  • clsnull (作者)

    试了一下,原生小程序有问题

    2023-03-23 09:58

  • clsnull (作者)

    版本 1.06.2301160

    2023-03-23 09:59

易者

易者

clsnull

clsnull (作者)

切换到真机调试2.0就没问题了

  • 7***@qq.com

    请问怎么切换到2.0,谢谢!

    2023-04-23 15:51

  • clsnull (作者)

    回复 7***@qq.com: 微信小程序,真机调试,他的弹窗有个切换版本的

    2023-05-24 08:54

要回复问题请先登录注册