radio标签 之 状态切换

<radio style="transform:scale(0.8)" :checked='isXuanzhong' @click="radioCheck(isXuanzhong)" color="#ff7423"></radio>
export default {
  data() {     
return {
      
radiovle:"",
      isXuanzhong:
false,     }
  }
}
methods: {
    radioCheck(e){
    this.isXuanzhong = e ? false : true 
    },
}

 

posted @ 2023-01-02 13:54  I'am'notEnglish  阅读(106)  评论(0编辑  收藏  举报