vue开关灯效果,点击切换显示不同背景色

vue开关灯效果,点击切换显示不同背景色,第1张

全选菜单
 



data(){
  return:{
     activeall: "",
      activegou: "",
      activen: "",
      v: true,
}
},
methods:{
     selectall() {
      if (this.v == true) {
        this.activeall = "background-color:rgb(64,158,255);";
        this.activegou = "border:1px solid rgb(64,158,255); border-left:none;border-radius: 4px;";
        this.activen = "color:rgb(64,158,255); ";
        this.v = false;
      } else {
        this.activeall = "";
        this.activegou = "";
        this.activen = "";
        this.v = true;
      }
    },
}



 .selectall {
        background-color: rgb(210, 210, 210);
        border: transparent;
        color: #fff;
        font-size: 16px;
      }
      .gou {
        width: 35px;
        height: 40px;
        margin-right: 10px;
        border: 1px solid rgb(235, 235, 235);
        border-left: none;
        .el-icon-check {
          font-size: 34px;
          color: rgb(194, 194, 200);
        }
      }
    }

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/web/1322772.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-06-12
下一篇2022-06-12

发表评论

登录后才能评论

评论列表(0条)

    保存