html:

 <Input name="a" v-model="formValidate.coName" placeholder="请输入姓名" v-bind:disabled="diasabledInput"></Input>

 

script
<script>
    export default {
      
        data () {
          
            return {
                diasabledInput:false,
            }
        },
     methods: {
            handleSubmit:function () {
                  if(this.diasabledInput){
                   this.diasabledInput=false;
                }else{
                   this.diasabledInput=true;
                }
            }
    }

 

相关文章:

  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
  • 2021-05-23
  • 2021-09-19
相关资源
相似解决方案