2.0.3
Win10/Chrome 62.0.3202.75
2.5.3
https://codepen.io/bin20060407/pen/dZNYdq?editors=1111
loop el-radio,when default is empty
<template>
<div>
<el-radio-group>
<el-radio-button v-for="attr in attrOptions" :key="attr.id" :label="attr.id">{{attr.name}}
</el-radio-button>
</el-radio-group>
</div>
</template>
<script>
export default {
name: 'test',
data() {
return {
attrOptions: []
};
},
created() {
this.getApiData();
},
methods: {
// ajax get
getApiData() {
let me = this;
setTimeout(function() {
me.attrOptions = [
{
id: 1,
name: '北京'
},
{
id: 2,
name: '上海'
},
{
id: 3,
name: '广州'
},
{
id: 4,
name: '武汉'
}
];
}, 500);
}
}
};
</script>
radio show
radio shows, but the console error:
found in
--->
Translation of this issue:
2.0.3
Win10/Chrome 62.0.3202.75
2.5.3
https://raw.githubusercontent.com/bin20060407/clutter/master/el-radio.js
Loop el-radio, when default is empty
.
.
Radio show
Radio shows, but the console error:
Found in
I
Most helpful comment
Fixed in https://github.com/ElemeFE/element/pull/8100/commits/00cf0586b4557c0bca23d4cd1215e0bc3972649a