ElementUI中el-radio再次点击取消选中
<el-radio-group v-model="radio"> <el-radio :label="1" @click.native.prevent="radioClick(1)">备选项</el-radio> </el-radio-group> //prevent阻止默认事件
data(){ return{ radio: '', } }
radioClick (e) { e === this.radio? (this.radio = ''):(this.radio = e) }
标签:el,再次,取消,点击,radio,选中 From: https://www.cnblogs.com/dianzan/p/17836422.html