修改switch大小只需要加style='zoom:.7;'属性就行,即缩小到原来的0.7倍,
放大则style='zoom:1.7;',放大到原来的1.7倍
![](https://i-blog.csdnimg.cn/blog_migrate/af6b225d0af207442c115ea54de8cbca.png)
<template>
<el-switch v-model="value" style="zoom: .8"></el-switch>
<el-switch v-model="value"></el-switch>
<el-switch v-model="value" style="zoom: 1.8"></el-switch>
</template>