有关class的深层次的见解

  <div class="zhixing" :class="this.flowInfo.workflowTaskStatus|toClass">
      <div class="title">
  filters: {
    toCN(val) {
      if (!val) {
        return "成功";
      }

      return "失败";
    },
    toClass(val) {
      if (!val) {
        return "zhixingsuccess";
      }
      return "zhixingerror";
    }
  },
<style scoped>
.ppp {
  position: absolute;
  right: 5px;
   25px;
  margin-top: 3px;
}
.zhixing {
  position: absolute;
   300px;
  right: 1px;
  top: 0;
  z-index: 200;
}
.zhixing .title {
  border-bottom: 2px solid #00b4e1;
  line-height: 37px;
  height: 37px;
  color: rgb(55, 104, 155) !important;
  font-size: 14px;
  background: #fff;
}
.zhixing .content {
  min-height: 200px;
  background: #fff;
  -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}

.zhixing .swatch {
  float: right;
  padding-right: 10px;
}

.zhixing .resault {
  margin: 0 auto;
  height: 80px;
   80px;
  border-radius: 40px;
  border-top-right-radius: unset;
  margin: 20px;
  text-align: center;
  line-height: 80px;
  font-size: 16px;
  font-weight: bolder;
}

.zhixing .decoration {
  float: left;
  height: 20px;
  margin-top: 8px;
   8px;
  margin-right: 15px;
  margin-left: 15px;
}
.zhixing .huoying {
  margin-top: 10px;
  padding-right: 8px;
}

.zhixing .huoying .item {
  margin-bottom: 10px;
  word-break: break-word;
}

.zhixingsuccess .resault {
  color: #0a8039;
  border: 1px solid #0a8039;
  background: #edfff3;
}

.zhixingsuccess .decoration {
  background: #0a8039;
}

.zhixingerror .resault {
  border: 1px solid #9e3406;
  background: #ffefe6;
  color: #9e3406;
}

.zhixingerror .decoration {
  background: #9e3406;
}

.zhixingalarm .resault {
  border: 1px solid #ebb12b;
  background: #fff9e6;
  color: #ebb12b;
}

.zhixingalarm .decoration {
  background: #ebb12b;
}

.myDiagramDiv {
  height: 700px;
  background-size: 20px 20px;
  background-repeat: repeat;
}
.designer >>> .ivu-card-head,
.ab >>> .ivu-card-head {
  padding: 3px 16px;
  background-color: rgb(206, 237, 252);
}
.designer >>> .ivu-card-head p,
.ab >>> .ivu-card-head,
.designer >>> .ivu-card-head-inner,
.ab >>> .ivu-card-head-inner {
  font-weight: unset;
}
.designer >>> .ivu-card-body,
.ab >>> .ivu-card-body {
  padding: 0;
}
.txtTitle,
.txtTitle a {
  color: rgb(55, 104, 155) !important;
}
.hui {
  color: rgb(118, 130, 139);
}
.myOverviewDiv {
  position: absolute;
  height: 150px;
   250px;
  z-index: 19;
  right: 0;
  bottom: 3px;
  border: rgb(118, 130, 139) 1px solid;
  display: none;
  background: #f8f8f9;
}
.el-input__inner {
  height: 32px;
}
.el-input__inner {
  -webkit-appearance: none;
  background-color: #fff;
  background-image: none;
  border-radius: 4px;
  border: 1px solid #dcdfe6;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #606266;
  display: inline-block;
  font-size: inherit;
  height: 40px;
  line-height: 40px;
  outline: 0;
  padding: 0 15px;
  -webkit-transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
   100%;
}
</style>
原文地址:https://www.cnblogs.com/sexintercourse/p/12988935.html