<el-table :data="tableData" border style="width: 100%" class="table"> <el-table-column label="是否可用" > <template #default="scope"> <el-switch v-model="scope.row.isactive" @change="isactiveChanged(scope.row)" /> </template> </el-table-column> </el-table>
标签:el,switch,嵌入,表格,table From: https://www.cnblogs.com/junwuxiao/p/17757533.html