king
2024-02-08 7067c6095571c19bbeeb04fa130afff54559aa82
src/mob/components/formdragelement/index.scss
@@ -1,16 +1,34 @@
.modal-fields-row {
  padding-bottom: 35px;
  .mob-col.ant-col {
  .ant-col {
    display: inline-block;
    float: none;
    vertical-align: top;
    padding-left: 1.2%;
    padding-right: 1.2%;
    padding-left: 0px;
    padding-right: 0px;
  }
  >.ant-col {
    padding-right: 10px;
  }
  >.ant-col:not(.ant-col-24) {
    .am-list-line .am-input-label {
      width: auto;
      padding-right: 10px;
    }
    .ant-form-item.no-boder {
      .am-list-item.input {
        .am-list-line {
          padding-right: 0px;
        }
        .am-input-control {
          border-bottom: 1px solid #ddd;
        }
      }
    }
  }
  .am-list-item {
    font-size: 16px;
    padding-left: 10px;
    // font-size: 16px;
    position: relative;
    display: flex;
    height: 44px;
@@ -22,18 +40,16 @@
    align-items: center;
    .am-list-line {
      border-bottom: 1PX solid #ddd;
      border-bottom: 1px solid #ddd;
      align-items: center;
      position: relative;
      display: flex;
      flex: 1 1;
      align-self: stretch;
      padding-right: 15px;
      padding-right: 10px;
      overflow: hidden;
      .am-input-label {
        width: 28%;
        color: #000;
        font-size: 16px;
        margin-left: 0;
        margin-right: 5px;
        text-align: left;
@@ -41,15 +57,21 @@
        overflow: hidden;
        padding: 2px 0;
        text-overflow: ellipsis;
        color: inherit;
        font-size: inherit;
        font-weight: inherit;
      }
      .am-list-switch {
        flex: 1;
        text-align: right;
      }
      .am-input-control {
        font-size: 16px;
        flex: 1 1;
        text-align: right;
        padding-right: 15px;
        font-size: 16px;
        font-weight: normal;
        color: rgba(0, 0, 0, 0.65);
      }
      .am-input-control.left {
        text-align: left;
@@ -59,10 +81,65 @@
        width: 15px;
        height: 15px;
        margin-left: 8px;
        i {
        font-size: 16px;
        font-weight: normal;
        color: rgba(0, 0, 0, 0.65);
        .anticon {
          vertical-align: top;
        }
      }
    }
  }
  .am-list-item:not(.up_down) {
    .am-list-line {
      .am-input-label {
        width: 28%;
        max-width: 120px;
      }
    }
  }
  .am-list-item.up_down {
    height: auto;
    .am-list-line {
      display: block;
      .am-input-label {
        width: auto;
        line-height: 32px;
      }
      .am-input-control {
        height: 40px;
        line-height: 24px;
      }
      .am-list-extra {
        position: absolute;
        top: 30px;
        right: 10px;
      }
    }
  }
  .am-list-item.picker:not(.up_down) {
    .am-list-line {
      .am-input-control {
        padding-right: 0px;
      }
    }
  }
  .am-list-item.up_down.picker {
    .am-list-line {
      .am-input-control {
        line-height: 40px;
        padding-right: 20px;
      }
      .am-list-extra {
        top: auto;
        right: 10px;
        bottom: 13px;
      }
    }
  }
  .ant-form-item.actived {
    .am-input-label {
      color: #1890ff;
    }
  }
  .am-list-item.check-card {
@@ -72,6 +149,19 @@
      display: block;
      .check-card-edit-box {
        margin-top: 0!important;
      }
      .am-input-label {
        width: auto;
      }
    }
  }
  .am-list-item.check-card.left_right {
    .am-list-line {
      display: flex;
      .am-input-label {
        width: 28%;
        max-width: 120px;
        line-height: 1;
      }
    }
  }
@@ -84,10 +174,22 @@
        line-height: 2;
      }
      .am-input-control {
        font-size: 14px;
        line-height: 1.5;
        text-align: left;
        padding-bottom: 5px;
        color: inherit;
        font-size: inherit;
        font-weight: inherit;
      }
    }
  }
  .am-list-item.formula {
    .am-list-line {
      .am-input-control {
        font-size: inherit;
        font-weight: inherit;
        color: inherit;
        padding-right: 0px;
      }
    }
  }
@@ -168,20 +270,67 @@
      }
    }
  }
  .am-list-item.checkbox.left_right {
    .am-list-line {
      display: flex;
      .ant-checkbox-group {
        float: right;
      }
      .am-input-control {
        padding-right: 0px;
      }
    }
  }
  .am-list-item.checkbox.mk-radio {
    .ant-checkbox-inner {
      border-radius: 50%;
    }
  }
  .am-list-item.checkbox:not(.line) {
    .ant-checkbox-group {
      .ant-checkbox-wrapper {
        float: left;
        margin-right: 15px;
        .ant-checkbox + span {
          border-bottom: none;
        }
      }
    }
    .mk-radio-group {
      .mk-radio-wrapper {
        float: left;
        margin-right: 15px;
      }
    }
  }
  .split-line {
    color: #1890ff;
    font-size: 16px;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    padding-left: 10px;
    padding-top: 10px;
    min-height: 15px;
    border-bottom: 1px solid #e9e9e9;
  }
  .check-card-edit-box .card-cell span {
    line-height: 1.5;
  }
  .split-wrap.ant-form-item {
    color: #1890ff;
    font-size: 16px;
  }
  .ant-form-item {
    cursor: move;
    display: flex;
    margin-bottom: 0px;
    color: #000;
    font-weight: normal;
    font-size: 14px;
    * {
      font-weight: inherit;
    }
    .ant-form-item-control-wrapper::after {
      content: '';
      position: absolute;
@@ -195,6 +344,9 @@
    .field-name {
      margin-left: 10px;
    }
    .ant-form-item-children {
      vertical-align: top;
    }
  }
  .ant-form-item.required {
    .am-input-label::before {
@@ -207,6 +359,25 @@
      content: '*';
    }
  }
  .ant-form-item:not(.required) {
    .am-input-label::before {
      display: inline-block;
      margin-right: 4px;
      color: transparent;
      font-size: 14px;
      font-family: SimSun, sans-serif;
      line-height: 1;
      content: '*';
    }
  }
  .ant-form-item.no-boder {
    .am-list-line {
      border-bottom: none;
    }
    .split-line {
      border: 0;
    }
  }
}
.mob-form.modal-fields-row {
  .page-card {