【发布时间】:2019-04-02 07:41:26
【问题描述】:
我动态生成一组卡片。每张卡片都会生成一组桌子。每个表都会有不同的行跨度效果。我写了下面的代码,显然所有的表都会调用同一个方法objectSpanMethod。我想扩展跨度方法来添加一个参数来告诉不同的表。怎么样?
<el-card v-for="(f, i) in arrangedflightInDay" :key="f.id" :name="f.name" class="box-card" >
<div class="clearfix">
<el-table
:data="arrangedPlanInDay[i].content"
:span-method="objectSpanMethod"
@selection-change="selectionRecords">
<el-table-column type="selection" width="40"> </el-table-column>
</el-table>
</div>
</el-card>
【问题讨论】:
标签: vue.js element-ui