For similar code building blocks, how to simplify the code with different values?

using the element-UI framework and Vue framework for development, each label is different and the value of the content is also different, the code structure is similar, how to optimize the code?
Thank you!

Jun.14,2021

v-for traversal

forConfig:[{label:'ID',key:'id'}...]
<el-form-item v-for="item in forConfig" :label="item.label" :key="item.key" >
    <span>{{props.row[item.key]}}</span>
</el-form-item>
Menu