<el-switch v-model="state" active-value="a" nactive-value="b"></el-switch>
<el-switch v-model="state" :active-value="1" :inactive-value="0"></el-switch>