.ml-upload {
  position: relative;
  display: flex;
  flex-direction: column;
  &.is-dragger {
    .add-btn {
      width: 220px;
    }
  }
  .add-btn {
    margin: 5px;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    z-index: 6;
    border-radius: 4px;
    border: 1px dashed #dcdfe6;
    &.is-disabled {
      color: rgba(0,0,0,.25);
      background-color: #f5f5f5;
      cursor: no-drop;
    }
    &:not(.is-disabled) {
      cursor: pointer;
      &:hover,
      &.is-drag {
        color: #73b8ff;
        border-color: #73b8ff;
        .add-btn-text {
          color: #73b8ff;
        }
      }
      &.is-drag {
        border-width: 2px;
      }
    }
    .add-btn-icon,
    .add-btn-text {
      text-align: center;
    }
  }
  .dragger-add-btn {
    .add-btn-icon {
      font-size: 30px;
      line-height: 30px;
      margin-bottom: 5px;
    }
  }
  .file-normal-warpper {
    .file-normal-info {
      display: flex;
      flex-direction: row;
      flex-grow: 1;
    }
    .file-normal-name {
      cursor: pointer;
    }
    .file-normal-item {
      position: relative;
      display: flex;
      flex-direction: row;
    }
  }
  .file-list-warpper {
    max-height: 218px;
    overflow: auto;
  }
  .file-img-warpper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .file-img-item {
    .img-item {
      display: flex;
      align-items: center;
      justify-items: center;
    }
  }
  .file-img-item {
    position: relative;
    margin: 5px;
    .img-item {
      position: relative;
      width: 100px;
      height: 100px;
      padding: 5px;
      border: 1px solid #d9d9d9;
      border-radius: 4px;
      &:hover {
        &:before {
          opacity: 1;
        }
        .oper-btns {
          display: block;
        }
      }
      &:before {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 3;
        width: 100%;
        height: 100%;
        opacity: 0;
        background-color: rgba(0,0,0,.5);
        transition: all .3s;
        content: " ";
      }
      img {
        max-width: 100%;
        max-height: 100%;
        vertical-align: middle;
        margin: 0 auto;
      }
    }
    .oper-btns {
      display: none;
      width: 100%;
      text-align: center;
      position: absolute;
      top: 50%;
      left: 0;
      transform: translateY(-50%);
      z-index: 5;
    }
    .file-normal-progress-loading {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      line-height: 100px;
      text-align: center;
      color: #fff;
      background-color: rgba(0,0,0,.5);
      transition: all .3s;
      z-index: 3;
      .file-normal-progress-success {
        color: #67c23a;
      }
    }
  }
  .file-normal-list-item {
    .file-normal-info {
      overflow: hidden;
    }
    .file-normal-name {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .file-normal-item {
      &:hover {
        background-color: #e6f7ff;
      }
    }
    .preview-btn,
    .down-btn {
      color: rgba(0, 0, 0, 0.65);
    }
    .file-normal-progress-loading {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      text-align: center;
      color: #fff;
      background-color: rgba(0,0,0,.5);
      transition: all .3s;
      z-index: 3;
      .file-normal-progress-success {
        color: #67c23a;
      }
    }
  }
  .file-list-img-warpper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100px;
    .file-list-img-item {
      padding: 1.5px;
      .list-img-item {
        position: relative;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        height: 28px;
        width: 28px;
        border: 1px solid #d9d9d9;
        border-radius: 2px;
        cursor: pointer;
      }
      img {
        max-width: 24px;
        max-height: 24px;
      }
      .file-normal-progress-loading {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        line-height: 28px;
        text-align: center;
        color: #fff;
        background-color: rgba(0,0,0,.5);
        transition: all .3s;
        z-index: 3;
        font-size: 10px;
        .file-normal-progress-success {
          color: #67c23a;
        }
      }
    }
  }
  .img-item {
    .file-info {
      padding-top: 5px;
      text-align: center;
      overflow: hidden;
    }
    .file-icon {
      font-size: 40px;
      line-height: 40px;
    }
    .file-name {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      margin-top: 5px;
      font-size: 12px;
    }
  }
  &.size-large {
    .file-img-item {
      .img-item {
        width: 120px;
        height: 120px;
      }
    }
  }
  &.size-medium {
    .file-img-item {
      .img-item {
        width: 100px;
        height: 100px;
      }
    }
  }
  &.size-small {
    .file-img-item {
      .img-item {
        width: 80px;
        height: 80px;
      }
    }
  }
  &.size-mini {
    .file-img-item {
      .img-item {
        width: 60px;
        height: 60px;
      }
    }
  }
  .preview-btn,
  .del-btn,
  .down-btn {
    margin: 0 4px;
    color: #fff;
    &:hover {
      color: #1890ff;
    }
  }
  .del-btn {
    color: red;
    &:hover {
      color: red;
    }
  }
}
.ml-upload-preview-content {
  height: 100%;
  .img-warpper {
    position: relative;
    height: 100%;
    &:hover {
      .prev-arrow,
      .next-arrow {
        display: flex;
      }
    }
    .prev-arrow,
    .next-arrow {
      display: none;
      position: absolute;
      align-items: center;
      justify-content: center;
      top: 50%;
      transform: translateY(-50%);
      color: #ffffff;
      font-size: 18px;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      cursor: pointer;
      opacity: 0.5;
      background-color: #606266;
      &:hover {
        opacity: 0.8;
      }
    }
    .prev-arrow {
      left: 20px;
    }
    .next-arrow {
      right: 20px;
    }
  }
  .img-list {
    position: relative;
    height: 100%;
    text-align: center;
    overflow: hidden;
    .image {
      display: none;
      transition: transform 0.3s ease 0s;
      &.is-active {
        display: inline-block;
      }
    }
  }
  .video-warpper {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    video {
      max-width: 50vw;
      max-height: 80vh;
    }
  }
  .frame-warpper {
    width: 100%;
    height: 100%;
    border: 0;
  }
}
.ml-upload-preview-modal {
  &.vxe-modal--wrapper {
    .vxe-modal--box {
      border: 0;
      background: transparent;
    }
    .vxe-modal--box {
      .vxe-modal--header {
        background: transparent;
        border: 0;
      }
      .vxe-modal--header-right {
        color: #fff;
        font-size: 14px;
      }
      .vxe-modal--body {
        overflow: hidden;
        .vxe-modal--content {
          overflow: hidden;
        }
      }
    }
  }
}
.ml-upload-preview-actions {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  width: 282px;
  height: 44px;
  padding: 0 23px;
  background-color: #606266;
  border-color: #fff;
  border-radius: 22px;
  opacity: .8;
  cursor: pointer;
  .ml-upload-preview-btn {
    &.type--text {
      color: #ffffff;
      font-size: 16px;
      &:hover {
        color: #ffffff;
      }
    }
  }
}
.ml-upload-download-loading {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  user-select: none;
  background: rgba(0, 0, 0, 0.8);
}