以某列为例
<el-table-column prop="level" label="风险等级">
<template slot-scope="scope">
<span :class="'level'+scope.row.level">//动态绑定时无需使用反引号
{{`${levelMap[scope.row.level]}`}}//在内容上使用需要使用反引号
</span>
</template>
</el-table-column>
以某列为例
<el-table-column prop="level" label="风险等级">
<template slot-scope="scope">
<span :class="'level'+scope.row.level">//动态绑定时无需使用反引号
{{`${levelMap[scope.row.level]}`}}//在内容上使用需要使用反引号
</span>
</template>
</el-table-column>
1575

被折叠的 条评论
为什么被折叠?