7.23
作者:互联网
15.
table表格中放入selector做成这种形式
<plx-table-column min-width="130" align="right">
<template slot="header" slot-scope="scope">
<el-select v-model="targetMetric" size="mini" placeholder="选择指标">
<el-option
v-for="(item, index) in ['合计值', '平均值']"
:key="index"
:label="item"
:value="item"
>
</el-option>
</el-select>
</template>
<template slot-scope="scope">
{{ targetMetric === '合计值' ? scope.row.total : scope.row.avg }}
</template>
</plx-table-column>
标签:index,total,7.23,item,scope,合计,row 来源: https://www.cnblogs.com/linAnAn/p/15050536.html