king
2025-05-13 f18eef383f288e453b7b6d0a34237ddf6e6620e8
src/tabviews/custom/components/chart/antv-X6/index.scss
@@ -7,9 +7,10 @@
  background-size: cover;
  
  .mk-toolbar {
    position: relative;
    width: 100%;
    height: 40px;
    border: 1px solid #1890ff;
    border-bottom: 1px solid #dfe3e8;
    .left-tool {
      float: left;
@@ -20,13 +21,45 @@
        cursor: pointer;
      }
    }
    .flow-name {
      position: absolute;
      left: 50%;
      top: 6px;
      font-size: 16px;
      color: rgba(0, 0, 0, 0.85);
      transform: translateX(-50%);
    }
    .right-tool {
      float: right;
      line-height: 40px;
      .anticon {
        margin: 0 10px;
        font-size: 16px;
        cursor: pointer;
      .ant-switch {
        min-width: 60px;
        height: 28px;
        line-height: 28px;
        margin-top: -2px;
        .ant-switch-inner {
          font-size: 14px;
        }
      }
      .ant-switch:after {
        width: 24px;
        height: 24px;
      }
      .save, .save:hover, .save:active, .save:focus {
        border-color: var(--mk-sys-color);
        background-color: var(--mk-sys-color);
        color: #ffffff;
        margin: 0 15px;
        height: 30px;
      }
      .close {
        margin-right: 15px;
      }
      .close:hover, .close:active, .close:focus {
        border-color: var(--mk-sys-color);
        color: var(--mk-sys-color);
        height: 30px;
      }
    }
  }
@@ -53,8 +86,8 @@
    display: flex;
    .mk-stencil {
      width: 180px;
      min-width: 180px;
      width: 240px;
      min-width: 240px;
      height: 100%;
      position: relative;
      z-index: 2;
@@ -81,20 +114,6 @@
        border: 1px solid rgba(0, 0, 0, 0.07);
        background: rgba(0, 0, 0, 0);
      }
      .tool-control {
        position: absolute;
        right: -13px;
        top: 5px;
        z-index: 3;
        background: #ffffff;
        width: 25px;
        height: 25px;
        border: 1px solid #d8d8d8;
        border-radius: 30px;
        text-align: center;
        line-height: 25px;
        cursor: pointer;
      }
      .x6-widget-stencil-group[data-name="group3"] {
        .x6-graph-svg {
@@ -110,19 +129,6 @@
          text {
            transform: matrix(1,0,0,1,85,18)!important;
          }
        }
      }
    }
    .mk-stencil.merge {
      width: 0px;
      min-width: 0px;
      .tool-control {
        right: -25px;
        border-top-left-radius: 0px;
        border-bottom-left-radius: 0px;
        .anticon-double-left {
          transform: rotate(180deg);
        }
      }
    }
@@ -152,37 +158,6 @@
        padding-top: 20px;
        overflow-x: hidden;
        white-space: nowrap;
      }
      .tool-control {
        position: absolute;
        left: -13px;
        top: 5px;
        z-index: 3;
        background: #ffffff;
        width: 25px;
        height: 25px;
        border: 1px solid #d8d8d8;
        border-radius: 30px;
        text-align: center;
        line-height: 25px;
        cursor: pointer;
        .anticon-double-left {
          transform: rotate(180deg);
        }
      }
    }
    .mk-node-edit.merge {
      width: 0px;
      min-width: 0px;
      .tool-control {
        left: -25px;
        border-top-right-radius: 0px;
        border-bottom-right-radius: 0px;
        .anticon-double-left {
          transform: rotate(0deg);
        }
      }
    }
@@ -223,6 +198,22 @@
      opacity: 0;
    }
  }
  .only-show {
    .x6-port {
      display: none;
    }
    .x6-cell.x6-edge {
      cursor: default;
      path {
        cursor: default;
      }
    }
  }
  .only-show.switchable {
    .x6-cell.x6-node:not([data-shape="lane"]):not([data-shape="mk-text"]) {
      cursor: pointer;
    }
  }
  .chart-header {
    position: relative;
@@ -242,4 +233,24 @@
      z-index: 1;
    }
  }
  .loading-mask {
    position: absolute;
    left: 0px;
    top: 0;
    right: 0px;
    bottom: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: justify;
    z-index: 3;
    .ant-spin-blur {
      position: absolute;
      width: 100%;
      height: 100%;
      opacity: 0.5;
      background: #ffffff;
    }
  }
}