//change是radio-group标签的事件 <div> <el-radio-group v-model="radioSex" @change="changeHandler"> <el-radio class="radio" label="man">男</el-radio> <el-radio class="radio" label="woman">女</el-radio> </el-radio-group> </div> export default { name: 'Radio', data () { return { radioSex: 'man' } }, methods: { changeHandler(value) { console.log('改变之后的值是:' + value) } } }
所有评论(0)