data() { return { options: { 'key1': 'value1', 'key2': 'value2', 'key3': 'value3' }, selected: 'key1' } }
<el-radio-group v-model="selected"> <el-radio v-for="(option, key) in options" :key="key" :label="key">{{ option.label }}</el-radio> </el-radio-group>
selected 最终是 el-radio 的 label,一直以为 label是显示的,其实不是这样的,显示的值由标签的 innerHTML决定
标签:el,key1,selected,list,label,键值,radio From: https://www.cnblogs.com/nanfei/p/17212442.html