y***@163.com
y***@163.com
  • 发布:2019-04-22 09:39
  • 更新:2019-04-22 11:51
  • 阅读:4334

使用新的编译模式后,uni-app的input组件后面的click事件无效?

分类:uni-app

使用新的编译模式后,uni-app的input组件后面的click事件无效?(所有终端都是,使用老版编译模式就不会这样


点击获取验证码无效

2019-04-22 09:39 负责人:无 分享
已邀请:
Trust

Trust - 少说废话

<template>  
    <view class="content">  
        <input type="text" value="" placeholder="我是input" />  
        <text @click.stop="onClick">点我</text>  
    </view>  
</template>  

<script>  
    export default {  
        data() {  
            return {}  
        },  
        onLoad() {  

        },  
        methods: {  
            onClick() {  
                console.log('input click');  
            }  
        }  
    }  
</script>  

<style>  
</style>

测试未重现,请上传一个可以重现问题的最简项目。

  • Trust

    回复 y***@163.com: 真机,自定义组件模式。

    2019-04-22 11:09

  • y***@163.com (作者)

    回复 Trust: 哎,算了,我还是用非自定义组件模式吧,本来还想把项目上传上来,但文件有点大;还有就是安卓打包后是直接白屏。

    2019-04-22 11:47

y***@163.com

y***@163.com (作者) - 智科研学淘

安卓启动报这个错,白屏

该问题目前已经被锁定, 无法添加新回复