index.less 5.04 KB
@import '~@qx/ui/src/style/variable.less';

.flowColSelect {
  position: relative;
  display: flex;
  width: 100%;

  .select {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-right: 34px;
  }

  .select.full {
    margin-right: 0;
  }

  .treeSelect {
    position: absolute;
    z-index: 1;
    width: 100%;
    margin-right: 10px;
  }

  .tag {
    max-width: 240px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: bottom;
  }
}

.qx-field-setter {
  display: flex;
  width: 100%;
  border: 1px solid @N4;
  border-radius: 4px;
  min-height: 32px;
  box-sizing: border-box;
  background-color: transparent;

  &__icon-text {
    color: @N9;
    font-size: 14px;
  }

  .ant-select,
  .ant-input,
  > .ant-input-number {
    flex: 1;
  }

  .ant-select-selector,
  .ant-input,
  > .ant-input-number {
    border: 0 !important;
    box-shadow: none;
  }

  .qx-tags-input.ant-input {
    width: calc(100% - 32px);
    padding: 0 4px 4px 8px;
    border-radius: 4px 0 0 4px;
    box-sizing: border-box;
  }

  .ant-select-single:not(.ant-select-customize-input) .ant-select-selector {
    padding: 0 4px 0 8px;
  }

  .ant-picker {
    padding: 4px 8px;
  }

  .ant-input-number-input {
    padding: 0 8px;
    line-height: 30px;
  }

  .ant-select.select.qx-filter-select {
    width: calc(100% - 32px);
    padding: 0;
    .ant-select-selector {
      border-radius: 6px 0 0 6px;
    }

    .ant-select-selector {
      min-height: 32px;
      padding: 0 4px 4px 8px;
    }

    .ant-select-selection-overflow-item {
      height: 28px;
    }

    .ant-select-selection-placeholder {
      left: 8px;
    }

    .ant-select-selection-overflow-item-suffix {
      padding-top: 4px;
    }
  }

  .ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input)
  .ant-select-selector {
    box-shadow: none;
  }

  .ant-picker {
    padding: 4px 8px;
  }

  .ant-tag {
    font-size: 14px;

    .anticon + span {
      margin-left: 0;
    }
  }

  // todo 目前表单名字过长导致页面变形
  .qx-tags-input.ant-input .ant-tag,
  .tag.qx-select-tag {
    position: relative;
    max-width: 100%;
    height: 24px;
    margin: 4px 4px 0 0;
    padding-right: 24px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-radius: 4px;

    .ant-tag-close-icon {
      position: absolute;
      top: 5px;
      right: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 12px;
      height: 12px;
      font-size: 8px;
    }
  }

  .qx-tags-input__box {
    margin-top: 4px;
    padding-left: 0;
  }

  .qx-tags-input.ant-input > .ant-tag:first-child {
    margin-left: unset;
  }

  .ant-tag-hidden {
    display: inline-block !important;
  }

  .ant-select.select.full {
    width: 100%;
  }
}

// 条件配置 禁用框背景色修改
.qx-field-setter--disabled {
  background-color: @N2;

  .qx-tags-input__box,
  .qx-tags-input,
  .ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector,
  .ant-input-number-disabled,
  .ant-input-disabled {
    background-color: @N2;
  }
}

.qx-field-setter--range {
  border: none;
}

.qx-field-setter__fields-btn {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 16px;
  padding: 0 8px 8px 8px;
  color: @N7;
  background-color: #fff;
  cursor: pointer;
  border-radius: 0 4px 4px 0;

  &:hover {
    .qx-field-setter__icon-text {
      color: @B8;
    }

    color: @B8;
    background-color: #fff;
  }
}

.qx-field-setter__fields-btn--disabled,
.qx-field-setter__fields-btn--disabled:hover {
  color: @N6;
  background-color: @N2;
  cursor: not-allowed;
}

.qx-pop-select {
  &.ant-popover {
    padding-top: 0;
  }

  .ant-popover-arrow {
    display: none;
  }

  .ant-popover-inner {
    padding: 0;
  }

  .ant-popover-inner-content {
    padding: 0;
  }
}

.qx-embed-param {
  position: absolute;
  right: 10px;
  bottom: 0;

  :hover {
    cursor: pointer;
  }
}

.qx-field-setter__param {
  position: absolute !important;
  top: initial !important;
  right: 0 !important;
  bottom: 0 !important;
  left: initial !important;
}

.qx-field-setter {
  .select.sel-user-show {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 4px 4px 8px;
    border-radius: 4px 0 0 4px;

    .ant-tag {
      position: relative;
      max-width: 100%;
      margin: 4px 4px 0 0;
      padding-right: 24px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      border-radius: 4px;

      .ant-tag-close-icon {
        position: absolute;
        top: 5px;
        right: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 12px;
        height: 12px;
        font-size: 8px;
      }
    }

    .ant-select-selection-placeholder {
      margin-top: 4px;
      line-height: 24px;
    }

    .qx-filter__setter--selected {
      margin-top: 4px;
      color: #bfbfbf;
    }
  }
}

.qx-field-setter__icon {
  width: 16px;
  margin: 0 4px !important;
  color: @N7;
  font-size: 12px;
}