el-element plus已经实现了该功能了,其实主要就是改样式。 效果图 样式修改 <el-switchv-model="value"active-color="#13ce66"active-text="在读"inactive-text="毕业"inactive-color="#ff4949"></el-switch> .el-switch__core{width:65px!important; }.el-switch__label--left{position: absolute;left:...