效果:
官方:
<el-switch
v-model="hasOuters"
class="switchStyle"
active-color="#13ce66"
active-text="内"
active-value="0"
inactive-color="#708090"
inactive-text="外"
inactive-value="1"
@change ='changeInterOrExter()'>
</el-switch>
样式:
.switchStyle{