NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
``` <el-table-column label="状态" prop="exp_status" align="center"> <template slot-scope="scope"> <el-switch v-if="scope.row.edit" v-model="scope.row.exp_status" :active-value="1" :inactive-value="2"> </el-switch> <el-switch v-else disabled v-model="scope.row.exp_status == 1" > </el-switch> </template> </el-table-column> ``` ``` <el-switch v-if="scope.row.edit" v-model="scope.row.exp_status" :active-value="1" :inactive-value="2"> </el-switch> ``` ``` v-model="scope.row.exp_status" :active-value="1" :inactive-value="2" ```