8000 input控件使用if控制隐藏时闪退 · Issue #1058 · alibaba/weex · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
input控件使用if控制隐藏时闪退 #1058
Closed
@pp1232

Description

@pp1232

使用if对input进行隐藏时候导致app闪退

<style>
    .input{
        width: 740;
        height: 80;
        font-size: 32;
        padding-left: 10;
        margin: 0;
        color:black;
    }
</style>

<template>
    <div style="flex-direction:column" >
        <div style="width:200;height:60;background-color:red;border-radius:20;flex-direction:row;justify-content:center;align-items:center;margin:20;" onclick="changeSelect">
            <text style="font-size:30">选择</text>
        </div>
        <input class="input" type="text" placeholder="给商家的留言(45字以内)" if={{show}}></input>
    </div>
</template>
<script>
    module.exports={
        data:{
            show:false,
        },  
        methods:{
            changeSelect:function(e){
                this.show=!this.show;
            }
        }
    }
</script>

使用weex版本为0.7
在华为mate7(android 4.4 )
华为5x(android 6.0)
红米note2(android 5.0)
上尝试都出现了闪退问题。

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0