vue取消单选按钮选中,所有类型通用简单明了

Posted MyAzhe0ci3

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vue取消单选按钮选中,所有类型通用简单明了相关的知识,希望对你有一定的参考价值。

<el-radio-group v-model="form.fundus" :disabled="detail">
                      <el-radio label="1" :disabled="detail"  @click.native="clickitemYandiTest($event)">正常</el-radio>
                      <el-radio label="2" :disabled="detail"  @click.native="clickitemYandiTest($event)">异常</el-radio>
                    </el-radio-group>
  clickitemYandiTest($event)
      let _this = this;
      let objVal = _this.form.fundus;
      // alert(this.yandiFlags)
      window.setTimeout(() => 
      if (!!objVal && objVal == $event.target.value) 

        $event.target.checked = false
        _this.form.fundus = ''
      
    , 0);

     
    

以上是关于vue取消单选按钮选中,所有类型通用简单明了的主要内容,如果未能解决你的问题,请参考以下文章