<!--
* @Descripttion: appid管理技术后台(正式环境)
* @version:
* @Author: zhangfan
* @email: 2207044692@qq.com
* @Date: 2021-04-12 15:27:34
* @LastEditors: zhangfan
* @LastEditTime: 2021-04-27 10:08:15
-->
<el-switch
class="switch"
v-model="scope.row.enabled"
active-color="#13ce66"
inactive-color="#ff4949"
active-value="ENABLED"
inactive-value="DISABLE"
active-text="启用"
inactive-text="禁用"
@change="changStatus($event, scope.row)"
>
>
</el-switch>
/* switch按钮样式 */
/deep/.switch .el-switch__label {
position: absolute;
display: none;
color: #fff !important;
}
/*打开时文字位置设置*/
/deep/.switch .el-switch__label--right {
z-index: 1;
}
/* 调整打开时文字的显示位子 */
/deep/.switch .el-switch__label--right span{
margin-right: 9px;
}
/*关闭时文字位置设置*/
/deep/.switch .el-switch__label--left {
z-index: 1;
}
/* 调整关闭时文字的显示位子 */
/deep/.switch .el-switch__label--left span{
margin-left: 9px;
}
/*显示文字*/
/deep/.switch .el-switch__label.is-active {
display: block;
}
/* 调整按钮的宽度 */
/deep/.switch.el-switch .el-switch__core,
/deep/.el-switch .el-switch__label {
width: 70px !important;
margin: 0;
}
10-25
518

01-02
558
