vue设置input不可编辑切换

<a-input name="a" v-model="formValidate.coName" placeholder="请输入姓名" v-bind:disabled="diasabledInput"></a-input>
export default {
       
     data () {
            return {
                diasabledInput:false,
            }
     },
     methods: {
            handleSubmit:function () {
                 if(this.diasabledInput){
                      this.diasabledInput=false;
                 }else{
                      this.diasabledInput=true;
                 }
            }
     }     
}
posted @ 2023-03-23 10:50  岁月淡忘了谁  阅读(478)  评论(0编辑  收藏  举报