ElementUi 解决在table中使用el-switch无效

elementui表格中使用switch时,插槽一定要标明
slot-scope=“scope”

//正常切换
<template slot-scope="scope">
	<el-switch
   		v-model="value">
	</el-switch>
</template>

//无效切换
<template>
	<el-switch
   		v-model="value">
	</el-switch>
</template>

你可能感兴趣的:(Vue,elementui,vue.js,es6)