如何从ElementUI表格的scope.row中获取嵌套数据?
elmentui table里的 scope.row如何取下面类型数据结构最内层的数据
<el-table v-loading="loading" :data="biddingList">
<el-table-column type="index" label="序号" width="244"/>
<el-table-column label="标名称" width="530" align="left">
<template slot-scope="scope">
<span>{{scope.row.bidTitle}}</span>
</template>
</el-table-column>
<el-table-column label="截至时间">
<template slot-scope="scope">
<span>{{scope.row.endTime}}</span>
</template>
</el-table-column>
</el-table>
1
回复
1个回答

test
2024-06-23
没太看懂,是不是要取endTime的值啊,你的endTime是在bidBidding这个对象下,可以使用scope.row.bidBidding.endTime,不知道我理解的对不对
为什么不行呢?效果图:html结构
data数据
回复

适合作为回答的
- 经过验证的有效解决办法
- 自己的经验指引,对解决问题有帮助
- 遵循 Markdown 语法排版,代码语义正确
不该作为回答的
- 询问内容细节或回复楼层
- 与题目无关的内容
- “赞”“顶”“同问”“看手册”“解决了没”等毫无意义的内容