HaloZhou opened a new issue #2528: 「Weex」input和textarea的disabled属性问题
URL: https://github.com/apache/incubator-weex/issues/2528
 
 
   动态控制 input 或者 textarea 的disabled属性的时候,会出现v-model绑定的数据在控件上面突然消失.
   工具:weexStudio
   版本:3.1.0-emas (3.1.0-emas) 
   操作系统:MacOS
   示例代码:
   
   <template>
       <div>
           <input type="text" v-model="content" :disabled='dis'>
           <input type="button" value="按钮" @click="fn()">
       </div>
   </template>
   
   <script>
   export default {
       data(){
           return{
               content:'1111',
               dis:true
           }
       },
     methods:{
       
       fn(){
           this.dis = !this.dis,
           this.content = '2222'
       }
       
     }
   }
   </script>
   
   
   <style scoped>
   
   </style>
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to