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>
7.23

 

上一篇:error: ‘gets’ was not declared in this scope gets(str);


下一篇:error: expat.h: No such file or directory 解决方法