.vue
<span>{{ item[keysMap[0].from] }}</span>
props: {
keysMap: {
type: Array,
default: () => {
return [{
from: "nc_courses_page_homesource.publish_time",
to: "time",
type: "text",
desc: "时间"
}];
},
},
},
json
{
"text": "字段映射",
"bindControlAttr": "keysMap",
"showType": "dialog",
"inCommonUse": true,
"config": {
"title": "字段映射",
"content": "DesKeysMapSetting",
"width": "1000px",
"height": "60vh"
}
}