Closed
Description
使用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