间接用一个demo来看
- item 对应 object 键值对中的
value
- key 对应 object 键值对中的
key
- index 对应 键值对的
索引
<a-radio-button v-for="(item, key, index) of statusObj" :key="key" :value="key"> {{ item }}-{{ key }}-{{ index }}</a-radio-button>
data () { return { statusObj: { 'doing' : '进行中', 'done': '已完结' }, }},