Vue2 element-ui2.12 table中展示swit
2019-10-23 本文已影响0人
IamaStupid
展示效果:

代码:
<el-table-column label="是否显示" min-width="140">
<template slot-scope="scope">
<el-switch
v-model="scope.row.status"
:active-value="1"
:inactive-value="0">
</el-switch>
</template>
</el-table-column>