ReportEditForm.less 2.04 KB
Newer Older
陈龙's avatar
陈龙 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
@import '~antd/es/style/themes/default.less';

.reportEditForm {
  :global {
    .@{ant-prefix}-form-item-label {
      width: 120px !important;
    }
    input[disabled] {
      background-color: rgb(250, 250, 250);
      cursor: default;
    }

    // 多行文本框
    .@{ant-prefix}-input[disabled] {
      color: rgba(0, 0, 0, 0.85);
      background-color: rgb(250, 250, 250);
      border-color: #d9d9d9;
      box-shadow: none;
      cursor: default;
      opacity: 1;
    }
    // 时间选择器的disabled样式
    .@{ant-prefix}-picker-disabled {
      color: rgba(0, 0, 0, 0.85);
      background-color: rgb(250, 250, 250);
      cursor: default;

      & + span {
        cursor: default;
      }
    }

    // radio的disabled样式
    .@{ant-prefix}-radio-disabled {
      cursor: default;

      & + span {
        cursor: default;
      }

      .@{ant-prefix}-radio-inner {
        cursor: default;
      }
    }
    // 下拉选已选的disabled样式
    .@{ant-prefix}-cascader-picker-disabled {
      color: rgba(0, 0, 0, 0.85);
      background-color: rgb(250, 250, 250);
      cursor: default;
    }

    // 按钮的disabled样式
    .@{ant-prefix}-btn[disabled] {
      text-shadow: none;
      background: #ffffff;
      border-color: #d9d9d9;
      box-shadow: none;
      cursor: default;

      &:hover,
      &:focus,
      &:active {
        color: rgba(0, 0, 0, 0.25);
        text-shadow: none;
        background: #ffffff;
        border-color: #d9d9d9;
        box-shadow: none;
      }
    }
    // 多选下的tag的disabled样式
    .@{ant-prefix}-select-disabled.@{ant-prefix}-select-multiple {
      .@{ant-prefix}-select-selection-item {
        color: #bfbfbf;
        border-color: #d9d9d9;
        cursor: default;
      }
    }

    .@{ant-prefix}-select-disabled.@{ant-prefix}-select:not(.@{ant-prefix}-select-customize-input) {
      .@{ant-prefix}-select-selector input {
        cursor: default;
      }
    }

    // 时间选择框
    .@{ant-prefix}-picker-input > input[disabled] {
      color: rgba(0, 0, 0, 0.85);
    }
  }
}