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; } } } }