今天遇到一個問題 就是要獲取的數據在列表中的某個屬性中的列表中
比如 我想獲取contacts中的contactWin
獲取chineseName可以直接row.chineseName直接獲取到數據
<template slot-scope="{row}">
<span>
{{ row.chineseName }}
</span>
</template>
但是contacts下的數據需要用for遍歷contacts然後用item 取到contactWin的值
<template slot-scope="scope">
<span v-for="(item,index) in scope.row.contacts" :key="index">
{{ item.contactWin }}
</span>
</template>