842 lines
		
	
	
		
			21 KiB
		
	
	
	
		
			SCSS
		
	
	
	
	
	
			
		
		
	
	
			842 lines
		
	
	
		
			21 KiB
		
	
	
	
		
			SCSS
		
	
	
	
	
	
@use "sass:list";
 | 
						|
 | 
						|
.vxe-input--readonly {
 | 
						|
  color: var(--vxe-ui-font-color);
 | 
						|
  display: inline-flex;
 | 
						|
}
 | 
						|
.vxe-input--wrapper {
 | 
						|
  flex-grow: 1;
 | 
						|
  overflow: hidden;
 | 
						|
}
 | 
						|
.vxe-input--inner {
 | 
						|
  display: block;
 | 
						|
  width: 100%;
 | 
						|
  height: 100%;
 | 
						|
  outline: 0;
 | 
						|
  margin: 0;
 | 
						|
  font-size: inherit;
 | 
						|
  font-family: inherit;
 | 
						|
  line-height: inherit;
 | 
						|
  padding: 0 0.5em;
 | 
						|
  color: var(--vxe-ui-font-color);
 | 
						|
  border: 0;
 | 
						|
  border-radius: var(--vxe-ui-base-border-radius);
 | 
						|
  background-color: inherit;
 | 
						|
  box-shadow: none;
 | 
						|
}
 | 
						|
.vxe-input {
 | 
						|
  background-color: var(--vxe-ui-layout-background-color);
 | 
						|
  .vxe-input--inner {
 | 
						|
    &::placeholder {
 | 
						|
      color: var(--vxe-ui-input-placeholder-color);
 | 
						|
    }
 | 
						|
    &::-webkit-autofill {
 | 
						|
      background-color: var(--vxe-ui-layout-background-color);
 | 
						|
    }
 | 
						|
    &[type="number"] {
 | 
						|
      appearance: none;
 | 
						|
      -moz-appearance: textfield;
 | 
						|
    }
 | 
						|
    &[type="search"],
 | 
						|
    &[type="search"]::-webkit-search-cancel-button,
 | 
						|
    &[type="number"]::-webkit-outer-spin-button,
 | 
						|
    &[type="number"]::-webkit-inner-spin-button {
 | 
						|
      appearance: none;
 | 
						|
    }
 | 
						|
    &[disabled] {
 | 
						|
      cursor: not-allowed;
 | 
						|
      color: var(--vxe-ui-font-disabled-color);
 | 
						|
      background-color: var(--vxe-ui-input-disabled-background-color);
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
// 禁用
 | 
						|
.vxe-input {
 | 
						|
  &.is--disabled {
 | 
						|
    background-color: var(--vxe-ui-input-disabled-background-color);
 | 
						|
    .vxe-input--prefix,
 | 
						|
    .vxe-input--suffix,
 | 
						|
    .vxe-input--clear-icon,
 | 
						|
    .vxe-input--control-icon {
 | 
						|
      cursor: not-allowed;
 | 
						|
    }
 | 
						|
    .vxe-input--prefix,
 | 
						|
    .vxe-input--suffix {
 | 
						|
      background-color: var(--vxe-ui-input-disabled-background-color);
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
// 图标
 | 
						|
.vxe-input {
 | 
						|
  display: inline-flex;
 | 
						|
  flex-direction: row;
 | 
						|
  position: relative;
 | 
						|
  border-radius: var(--vxe-ui-base-border-radius);
 | 
						|
  width: 180px;
 | 
						|
  border: 1px solid var(--vxe-ui-input-border-color);
 | 
						|
  &.is--active {
 | 
						|
    border: 1px solid var(--vxe-ui-font-primary-color);
 | 
						|
  }
 | 
						|
  &.show--clear {
 | 
						|
    &:hover {
 | 
						|
      .vxe-input--clear-icon {
 | 
						|
        display: block;
 | 
						|
      }
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
.vxe-input--prefix {
 | 
						|
  border-radius: var(--vxe-ui-base-border-radius) 0 0 var(--vxe-ui-base-border-radius);
 | 
						|
}
 | 
						|
.vxe-input--suffix {
 | 
						|
  border-radius: 0 var(--vxe-ui-base-border-radius) var(--vxe-ui-base-border-radius) 0;
 | 
						|
}
 | 
						|
.vxe-input--prefix,
 | 
						|
.vxe-input--suffix {
 | 
						|
  display: flex;
 | 
						|
  flex-direction: row;
 | 
						|
  align-items: center;
 | 
						|
  flex-shrink: 0;
 | 
						|
  background-color: var(--vxe-ui-layout-background-color);
 | 
						|
}
 | 
						|
.vxe-input--clear-icon {
 | 
						|
  padding-right: 0.3em;
 | 
						|
  text-align: center;
 | 
						|
}
 | 
						|
.vxe-input--control-icon,
 | 
						|
.vxe-input--prefix-icon,
 | 
						|
.vxe-input--suffix-icon {
 | 
						|
  min-width: 1.8em;
 | 
						|
  text-align: center;
 | 
						|
}
 | 
						|
.vxe-input--prefix-icon,
 | 
						|
.vxe-input--suffix-icon {
 | 
						|
  height: 100%;
 | 
						|
  display: flex;
 | 
						|
  justify-content: center;
 | 
						|
  align-items: center;
 | 
						|
  color: var(--vxe-ui-input-placeholder-color);
 | 
						|
}
 | 
						|
.vxe-input--clear-icon,
 | 
						|
.vxe-input--control-icon {
 | 
						|
  height: 100%;
 | 
						|
  color: var(--vxe-ui-input-placeholder-color);
 | 
						|
  cursor: pointer;
 | 
						|
}
 | 
						|
.vxe-input--clear-icon {
 | 
						|
  display: none;
 | 
						|
  &:hover {
 | 
						|
    color: var(--vxe-ui-font-color);
 | 
						|
  }
 | 
						|
  &:active {
 | 
						|
    color: var(--vxe-ui-font-primary-color);
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
.vxe-input--number-btn {
 | 
						|
  height: 50%;
 | 
						|
  display: flex;
 | 
						|
  align-items: center;
 | 
						|
  justify-content: center;
 | 
						|
  &:hover {
 | 
						|
    color: var(--vxe-ui-font-color);
 | 
						|
  }
 | 
						|
  &:active {
 | 
						|
    color: var(--vxe-ui-font-primary-color);
 | 
						|
  }
 | 
						|
}
 | 
						|
.vxe-input--number-icon {
 | 
						|
  display: flex;
 | 
						|
  flex-direction: column;
 | 
						|
  height: 100%;
 | 
						|
  .vxe-input--number-btn {
 | 
						|
    &.is--disabled {
 | 
						|
      cursor: no-drop;
 | 
						|
      color: var(--vxe-ui-font-disabled-color);
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
// 统计字数
 | 
						|
.vxe-input--count {
 | 
						|
  flex-shrink: 0;
 | 
						|
  color: var(--vxe-ui-input-count-color);
 | 
						|
  background-color: var(--vxe-ui-layout-background-color);
 | 
						|
  padding-right: 0.6em;
 | 
						|
  &.is--error {
 | 
						|
    color: var(--vxe-ui-input-count-error-color);
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
// 对齐方式
 | 
						|
.vxe-input {
 | 
						|
  &.is--left {
 | 
						|
    .vxe-input--inner {
 | 
						|
      text-align: left;
 | 
						|
    }
 | 
						|
  }
 | 
						|
  &.is--center {
 | 
						|
    .vxe-input--inner {
 | 
						|
      text-align: center;
 | 
						|
    }
 | 
						|
  }
 | 
						|
  &.is--right {
 | 
						|
    .vxe-input--inner {
 | 
						|
      text-align: right;
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
.vxe-input--panel {
 | 
						|
  display: none;
 | 
						|
  position: absolute;
 | 
						|
  left: 0;
 | 
						|
  padding: 4px 0;
 | 
						|
  color: var(--vxe-ui-font-color);
 | 
						|
  font-size: var(--vxe-ui-font-size-default);
 | 
						|
  text-align: left;
 | 
						|
  &.is--transfer {
 | 
						|
    position: fixed;
 | 
						|
  }
 | 
						|
  &.ani--leave {
 | 
						|
    display: block;
 | 
						|
    opacity: 0;
 | 
						|
    transform: scaleY(0.5);
 | 
						|
    transition: transform .3s cubic-bezier(.23,1,.32,1), opacity .3s cubic-bezier(.23,1,.32,1);
 | 
						|
    transform-origin: center top;
 | 
						|
    backface-visibility: hidden;
 | 
						|
    transform-style: preserve-3d;
 | 
						|
    &[placement="top"] {
 | 
						|
      transform-origin: center bottom;
 | 
						|
    }
 | 
						|
  }
 | 
						|
  &.ani--enter {
 | 
						|
    opacity: 1;
 | 
						|
    transform: scaleY(1);
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
.vxe-input--panel {
 | 
						|
  pointer-events: none;
 | 
						|
}
 | 
						|
 | 
						|
.vxe-input--panel-wrapper,
 | 
						|
.vxe-input--panel-layout-wrapper {
 | 
						|
  pointer-events: auto;
 | 
						|
  background-color: var(--vxe-ui-layout-background-color);
 | 
						|
  border: 1px solid var(--vxe-ui-base-popup-border-color);
 | 
						|
  box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
 | 
						|
  border-radius: var(--vxe-ui-base-border-radius);
 | 
						|
}
 | 
						|
 | 
						|
.vxe-input--panel-wrapper {
 | 
						|
  overflow-x: hidden;
 | 
						|
  overflow-y: auto;
 | 
						|
}
 | 
						|
 | 
						|
.vxe-input--panel-layout-wrapper {
 | 
						|
  display: inline-flex;
 | 
						|
  flex-direction: row;
 | 
						|
}
 | 
						|
 | 
						|
.vxe-input--panel {
 | 
						|
  &.type--date,
 | 
						|
  &.type--week,
 | 
						|
  &.type--month,
 | 
						|
  &.type--quarter,
 | 
						|
  &.type--year {
 | 
						|
    user-select: none;
 | 
						|
  }
 | 
						|
  &.type--datetime {
 | 
						|
    .vxe-input--panel-right-wrapper {
 | 
						|
      display: flex;
 | 
						|
      flex-direction: column;
 | 
						|
      border-left: 1px solid var(--vxe-ui-input-border-color);
 | 
						|
    }
 | 
						|
  }
 | 
						|
  &.type--date,
 | 
						|
  &.type--datetime {
 | 
						|
    .vxe-input--date-picker-body {
 | 
						|
      th {
 | 
						|
        width: 14.28571%;
 | 
						|
      }
 | 
						|
    }
 | 
						|
  }
 | 
						|
  &.type--week {
 | 
						|
    .vxe-input--date-picker-body {
 | 
						|
      table {
 | 
						|
        th {
 | 
						|
          width: 12%;
 | 
						|
          &:first-child {
 | 
						|
            width: 14%;
 | 
						|
          }
 | 
						|
        }
 | 
						|
      }
 | 
						|
    }
 | 
						|
  }
 | 
						|
  &.type--quarter {
 | 
						|
    .vxe-input--date-picker-body {
 | 
						|
      table {
 | 
						|
        th {
 | 
						|
          width: 50%;
 | 
						|
        }
 | 
						|
      }
 | 
						|
    }
 | 
						|
  }
 | 
						|
  &.type--month,
 | 
						|
  &.type--year {
 | 
						|
    .vxe-input--date-picker-body {
 | 
						|
      td {
 | 
						|
        width: 25%;
 | 
						|
      }
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
.vxe-input--time-picker-title {
 | 
						|
  flex-grow: 1;
 | 
						|
  text-align: center;
 | 
						|
  border: 1px solid var(--vxe-ui-input-border-color);
 | 
						|
  border-radius: var(--vxe-ui-base-border-radius);
 | 
						|
  padding: 0 0.1em;
 | 
						|
  margin-right: 0.5em;
 | 
						|
}
 | 
						|
.vxe-input--time-picker-btn {
 | 
						|
  display: flex;
 | 
						|
  flex-shrink: 0;
 | 
						|
  &:active {
 | 
						|
    transform: scale(0.9);
 | 
						|
  }
 | 
						|
}
 | 
						|
.vxe-input--time-picker-confirm,
 | 
						|
.vxe-input--date-picker-confirm {
 | 
						|
  outline: 0;
 | 
						|
  border: 1px solid var(--vxe-ui-input-border-color);
 | 
						|
  border-radius: var(--vxe-ui-base-border-radius);
 | 
						|
  cursor: pointer;
 | 
						|
  color: var(--vxe-ui-input-date-time-confirm-button-color);
 | 
						|
  border-color: var(--vxe-ui-font-primary-color);
 | 
						|
  background-color: var(--vxe-ui-font-primary-color);
 | 
						|
  padding: 0 0.5em;
 | 
						|
  &:hover {
 | 
						|
    background-color: var(--vxe-ui-font-primary-lighten-color);
 | 
						|
    border-color: var(--vxe-ui-font-primary-lighten-color);
 | 
						|
  }
 | 
						|
  &:active {
 | 
						|
    background-color: var(--vxe-ui-font-primary-darken-color);
 | 
						|
    border-color: var(--vxe-ui-font-primary-darken-color);
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
.vxe-input--time-picker-header {
 | 
						|
  display: flex;
 | 
						|
  flex-direction: row;
 | 
						|
  position: relative;
 | 
						|
  flex-shrink: 0;
 | 
						|
}
 | 
						|
 | 
						|
.vxe-input--date-picker-header {
 | 
						|
  display: flex;
 | 
						|
  flex-direction: row;
 | 
						|
  user-select: none;
 | 
						|
  .vxe-input--date-picker-type-wrapper {
 | 
						|
    flex-grow: 1;
 | 
						|
  }
 | 
						|
  .vxe-input--date-picker-btn-wrapper {
 | 
						|
    flex-shrink: 0;
 | 
						|
    text-align: center;
 | 
						|
  }
 | 
						|
}
 | 
						|
.vxe-input--date-picker-type-wrapper {
 | 
						|
  .vxe-input--date-picker-label,
 | 
						|
  .vxe-input--date-picker-btn {
 | 
						|
    display: inline-block;
 | 
						|
  }
 | 
						|
}
 | 
						|
.vxe-input--date-picker-btn-wrapper {
 | 
						|
  display: flex;
 | 
						|
  flex-direction: row;
 | 
						|
}
 | 
						|
.vxe-input--date-picker-label,
 | 
						|
.vxe-input--date-picker-btn {
 | 
						|
  display: flex;
 | 
						|
  align-items: center;
 | 
						|
  justify-content: center;
 | 
						|
  background-color: var(--vxe-ui-layout-background-color);
 | 
						|
}
 | 
						|
.vxe-input--date-picker-btn {
 | 
						|
  &.is--disabled {
 | 
						|
    color: var(--vxe-ui-font-disabled-color);
 | 
						|
    cursor: no-drop;
 | 
						|
  }
 | 
						|
  &:not(.is--disabled) {
 | 
						|
    cursor: pointer;
 | 
						|
    &:hover {
 | 
						|
      background-color: #fff;
 | 
						|
    }
 | 
						|
    &:active {
 | 
						|
      background-color: #fff;
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
.vxe-input--date-picker-btns {
 | 
						|
  .vxe-input--date-picker-btn {
 | 
						|
    margin-left: 0.6em;
 | 
						|
    &:first-child {
 | 
						|
      margin-left: 0;
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
.vxe-input--date-picker-body {
 | 
						|
  border-radius: var(--vxe-ui-base-border-radius);
 | 
						|
  border: 1px solid var(--vxe-ui-base-popup-border-color);
 | 
						|
  user-select: none;
 | 
						|
  table {
 | 
						|
    border: 0;
 | 
						|
    width: 100%;
 | 
						|
    border-spacing: 0;
 | 
						|
    border-collapse: separate;
 | 
						|
    text-align: center;
 | 
						|
    table-layout: fixed
 | 
						|
  }
 | 
						|
  th,
 | 
						|
  td {
 | 
						|
    font-weight: normal;
 | 
						|
  }
 | 
						|
  th {
 | 
						|
    box-shadow: inset 0 -1px 0 0 var(--vxe-ui-base-popup-border-color);
 | 
						|
  }
 | 
						|
  td {
 | 
						|
    border: 1px solid transparent;
 | 
						|
    border-radius: 1em;
 | 
						|
    &.is--prev,
 | 
						|
    &.is--next {
 | 
						|
      color: var(--vxe-ui-font-disabled-color);
 | 
						|
      .vxe-input--date-label,
 | 
						|
      .vxe-input--date-festival {
 | 
						|
        color: var(--vxe-ui-font-disabled-color);
 | 
						|
      }
 | 
						|
    }
 | 
						|
    &.is--now {
 | 
						|
      box-shadow: inset 0 0 0 1px var(--vxe-ui-base-popup-border-color);
 | 
						|
      &:not(.is--selected) {
 | 
						|
        &.is--current {
 | 
						|
          color: var(--vxe-ui-font-primary-color);
 | 
						|
          .vxe-input--date-label,
 | 
						|
          .vxe-input--date-festival {
 | 
						|
            color: var(--vxe-ui-font-primary-color);
 | 
						|
          }
 | 
						|
        }
 | 
						|
      }
 | 
						|
    }
 | 
						|
    &.is--hover {
 | 
						|
      border-color: var(--vxe-ui-font-primary-color);
 | 
						|
      background-color: var(--vxe-ui-font-primary-tinge-color);
 | 
						|
    }
 | 
						|
    &.is--selected {
 | 
						|
      color: var(--vxe-ui-input-date-picker-selected-color);
 | 
						|
      background-color: var(--vxe-ui-font-primary-color);
 | 
						|
      &.is--hover {
 | 
						|
        box-shadow: 0 0px 6px 1px var(--vxe-ui-font-primary-color);
 | 
						|
      }
 | 
						|
      &.is--prev,
 | 
						|
      &.is--next {
 | 
						|
        background-color: var(--vxe-ui-font-primary-lighten-color);
 | 
						|
      }
 | 
						|
      .vxe-input--date-label,
 | 
						|
      .vxe-input--date-festival {
 | 
						|
        color: var(--vxe-ui-input-date-picker-festival-selected-color);
 | 
						|
      }
 | 
						|
      .vxe-input--date-label {
 | 
						|
        &.is-notice {
 | 
						|
          &:before {
 | 
						|
            background-color: var(--vxe-ui-input-date-picker-notice-selected-background-color);
 | 
						|
          }
 | 
						|
        }
 | 
						|
      }
 | 
						|
    }
 | 
						|
    &:not(.is--disabled) {
 | 
						|
      cursor: pointer;
 | 
						|
    }
 | 
						|
    &.is--disabled {
 | 
						|
      cursor: no-drop;
 | 
						|
      color: var(--vxe-ui-input-disabled-color);
 | 
						|
      background-color: var(--vxe-ui-input-disabled-background-color);
 | 
						|
      .vxe-input--date-label,
 | 
						|
      .vxe-input--date-festival {
 | 
						|
        color: var(--vxe-ui-input-disabled-color);
 | 
						|
      }
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
.vxe-input--date-week-view {
 | 
						|
  th {
 | 
						|
    &:first-child {
 | 
						|
      box-shadow: inset -1px -1px 0 0 var(--vxe-ui-base-popup-border-color);
 | 
						|
    }
 | 
						|
  }
 | 
						|
  td {
 | 
						|
    border-top-left-radius: 0;
 | 
						|
    border-top-right-radius: 0;
 | 
						|
    border-bottom-left-radius: 0;
 | 
						|
    border-bottom-right-radius: 0;
 | 
						|
    border-left-width: 0;
 | 
						|
    border-right-width: 0;
 | 
						|
    &:first-child {
 | 
						|
      border-bottom-left-radius: 1em;
 | 
						|
      border-top-left-radius: 1em;
 | 
						|
      border-left-width: 1px;
 | 
						|
      border-right-width: 1px;
 | 
						|
      border-right-color: var(--vxe-ui-base-popup-border-color);
 | 
						|
    }
 | 
						|
    &:last-child {
 | 
						|
      border-top-right-radius: 1em;
 | 
						|
      border-bottom-right-radius: 1em;
 | 
						|
      border-right-width: 1px;
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
.vxe-input--date-label,
 | 
						|
.vxe-input--date-festival {
 | 
						|
  display: block;
 | 
						|
  overflow: hidden;
 | 
						|
}
 | 
						|
 | 
						|
.vxe-input--date-label {
 | 
						|
  position: relative;
 | 
						|
  &.is-notice {
 | 
						|
    &:before {
 | 
						|
      content: "";
 | 
						|
      position: absolute;
 | 
						|
      width: 4px;
 | 
						|
      height: 4px;
 | 
						|
      left: 0.8em;
 | 
						|
      top: 0.1em;
 | 
						|
      transform: translateX(-50%);
 | 
						|
      border-radius: 100%;
 | 
						|
      background-color: var(--vxe-ui-input-date-notice-background-color);
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
.vxe-input--date-label--extra {
 | 
						|
  position: absolute;
 | 
						|
  right: 0.1em;
 | 
						|
  top: -0.2em;
 | 
						|
  font-size: 12px;
 | 
						|
  line-height: 12px;
 | 
						|
  transform: scale(0.7);
 | 
						|
  color: var(--vxe-ui-input-date-extra-color);
 | 
						|
  &.is-important {
 | 
						|
    color: var(--vxe-ui-input-date-extra-important-color);
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
.vxe-input--date-festival {
 | 
						|
  color: var(--vxe-ui-input-date-festival-color);
 | 
						|
  height: 14px;
 | 
						|
  line-height: 1;
 | 
						|
  overflow: hidden;
 | 
						|
  &.is-important {
 | 
						|
    color: var(--vxe-ui-input-date-festival-important-color);
 | 
						|
  }
 | 
						|
}
 | 
						|
.vxe-input--date-festival--label {
 | 
						|
  display: block;
 | 
						|
  font-size: 12px;
 | 
						|
  transform: scale(0.8);
 | 
						|
}
 | 
						|
 | 
						|
@keyframes festivalOverlap2 {
 | 
						|
  0%, 45%, 100% {
 | 
						|
    transform: translateY(0);
 | 
						|
  }
 | 
						|
  50%, 95% {
 | 
						|
    transform: translateY(-14px);
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
@keyframes festivalOverlap3 {
 | 
						|
  0%, 20%, 100% {
 | 
						|
    transform: translateY(0);
 | 
						|
  }
 | 
						|
  25%, 45%, 75%, 95% {
 | 
						|
    transform: translateY(-14px);
 | 
						|
  }
 | 
						|
  50%, 70% {
 | 
						|
    transform: translateY(-28px);
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
.vxe-input--date-festival--overlap {
 | 
						|
  display: block;
 | 
						|
  font-size: 12px;
 | 
						|
  &.overlap--2 {
 | 
						|
    animation: festivalOverlap2 6s infinite ease-in-out;
 | 
						|
  }
 | 
						|
  &.overlap--3 {
 | 
						|
    animation: festivalOverlap3 9s infinite ease-in-out;
 | 
						|
  }
 | 
						|
  & > span {
 | 
						|
    height: 14px;
 | 
						|
    display: block;
 | 
						|
    transform: scale(0.8);
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
.vxe-input--time-picker-body {
 | 
						|
  position: relative;
 | 
						|
  display: flex;
 | 
						|
  flex-direction: row;
 | 
						|
  border: 1px solid var(--vxe-ui-base-popup-border-color);
 | 
						|
  flex-grow: 1;
 | 
						|
  border-radius: var(--vxe-ui-base-border-radius);
 | 
						|
  user-select: none;
 | 
						|
  & > ul {
 | 
						|
    height: 100%;
 | 
						|
    overflow: hidden;
 | 
						|
    margin: 0;
 | 
						|
    padding: 0;
 | 
						|
    &:before,
 | 
						|
    &:after {
 | 
						|
      content: " ";
 | 
						|
      display: block;
 | 
						|
    }
 | 
						|
    &:hover {
 | 
						|
      overflow-y: auto;
 | 
						|
    }
 | 
						|
    & > li {
 | 
						|
      display: block;
 | 
						|
      &:hover {
 | 
						|
        background-color: var(--vxe-ui-input-date-picker-hover-background-color);
 | 
						|
        cursor: pointer;
 | 
						|
      }
 | 
						|
      &.is--selected {
 | 
						|
        font-weight: 700;
 | 
						|
        color: var(--vxe-ui-font-primary-color);
 | 
						|
      }
 | 
						|
    }
 | 
						|
  }
 | 
						|
  .vxe-input--time-picker-minute-list {
 | 
						|
    border-left: 1px solid var(--vxe-ui-base-popup-border-color);
 | 
						|
  }
 | 
						|
  .vxe-input--time-picker-second-list {
 | 
						|
    border-left: 1px solid var(--vxe-ui-base-popup-border-color);
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
.vxe-input {
 | 
						|
  font-size: var(--vxe-ui-font-size-default);
 | 
						|
  height: var(--vxe-ui-input-height-default);
 | 
						|
  line-height: var(--vxe-ui-input-height-default);
 | 
						|
  .vxe-input--inner {
 | 
						|
    &[type="date"]::-webkit-inner-spin-button,
 | 
						|
    &[type="month"]::-webkit-inner-spin-button,
 | 
						|
    &[type="week"]::-webkit-inner-spin-button {
 | 
						|
      margin-top: 6px;
 | 
						|
    }
 | 
						|
    &[type="date"]::-webkit-inner-spin-button,
 | 
						|
    &[type="month"]::-webkit-inner-spin-button,
 | 
						|
    &[type="week"]::-webkit-inner-spin-button,
 | 
						|
    &[type="number"]::-webkit-inner-spin-button {
 | 
						|
      height: 24px;
 | 
						|
    }
 | 
						|
  }
 | 
						|
  &.size--medium {
 | 
						|
    font-size: var(--vxe-ui-font-size-medium);
 | 
						|
    height: var(--vxe-ui-input-height-medium);
 | 
						|
    line-height: var(--vxe-ui-input-height-medium);
 | 
						|
    .vxe-input--inner {
 | 
						|
      &[type="date"]::-webkit-inner-spin-button,
 | 
						|
      &[type="month"]::-webkit-inner-spin-button,
 | 
						|
      &[type="week"]::-webkit-inner-spin-button {
 | 
						|
        margin-top: 4px;
 | 
						|
      }
 | 
						|
    }
 | 
						|
  }
 | 
						|
  &.size--small {
 | 
						|
    font-size: var(--vxe-ui-font-size-small);
 | 
						|
    height: var(--vxe-ui-input-height-small);
 | 
						|
    line-height: var(--vxe-ui-input-height-small);
 | 
						|
    .vxe-input--inner {
 | 
						|
      &[type="date"]::-webkit-inner-spin-button,
 | 
						|
      &[type="month"]::-webkit-inner-spin-button,
 | 
						|
      &[type="week"]::-webkit-inner-spin-button {
 | 
						|
        margin-top: 2px;
 | 
						|
      }
 | 
						|
    }
 | 
						|
  }
 | 
						|
  &.size--mini {
 | 
						|
    font-size: var(--vxe-ui-font-size-mini);
 | 
						|
    height: var(--vxe-ui-input-height-mini);
 | 
						|
    line-height: var(--vxe-ui-input-height-mini);
 | 
						|
    .vxe-input--inner {
 | 
						|
      &[type="date"]::-webkit-inner-spin-button,
 | 
						|
      &[type="month"]::-webkit-inner-spin-button,
 | 
						|
      &[type="week"]::-webkit-inner-spin-button {
 | 
						|
        margin-top: 0;
 | 
						|
      }
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
@mixin getPanelStyle ($sizeIndex) {
 | 
						|
  $fontSizeList: var(--vxe-ui-font-size-default), var(--vxe-ui-font-size-medium), var(--vxe-ui-font-size-small), var(--vxe-ui-font-size-mini);
 | 
						|
  $timeWeekRowHeightList: var(--vxe-ui-input-date-time-week-row-height-default), var(--vxe-ui-input-date-time-week-row-height-medium), var(--vxe-ui-input-date-time-week-row-height-small), var(--vxe-ui-input-date-time-week-row-height-mini);
 | 
						|
  $monthYearRowHeightList: var(--vxe-ui-input-date-month-year-row-height-default), var(--vxe-ui-input-date-month-year-row-height-medium), var(--vxe-ui-input-date-month-year-row-height-small), var(--vxe-ui-input-date-month-year-row-height-mini);
 | 
						|
  $quarterRowHeightList: var(--vxe-ui-input-date-quarter-row-height-default), var(--vxe-ui-input-date-quarter-row-height-medium), var(--vxe-ui-input-date-quarter-row-height-small), var(--vxe-ui-input-date-quarter-row-height-mini);
 | 
						|
  $titleRowHeightList: var(--vxe-ui-input-date-title-height-default), var(--vxe-ui-input-date-title-height-medium), var(--vxe-ui-input-date-title-height-small), var(--vxe-ui-input-date-title-height-mini);
 | 
						|
  
 | 
						|
  font-size: list.nth($fontSizeList, $sizeIndex);
 | 
						|
  .vxe-input--panel-wrapper {
 | 
						|
    max-height: 400px - $sizeIndex * 20;
 | 
						|
  }
 | 
						|
  &.type--date,
 | 
						|
  &.type--time,
 | 
						|
  &.type--week,
 | 
						|
  &.type--month,
 | 
						|
  &.type--quarter,
 | 
						|
  &.type--year {
 | 
						|
    .vxe-input--panel-wrapper {
 | 
						|
      padding: 12px - $sizeIndex;
 | 
						|
    }
 | 
						|
  }
 | 
						|
  &.type--date,
 | 
						|
  &.type--month,
 | 
						|
  &.type--quarter,
 | 
						|
  &.type--year {
 | 
						|
    .vxe-input--panel-wrapper {
 | 
						|
      $widthList: 336px, 336px, 312px, 288px;
 | 
						|
      width: list.nth($widthList, $sizeIndex);
 | 
						|
    }
 | 
						|
  }
 | 
						|
  &.type--week {
 | 
						|
    .vxe-input--panel-wrapper {
 | 
						|
      $widthList: 380px, 380px, 354px, 326px;
 | 
						|
      width: list.nth($widthList, $sizeIndex);
 | 
						|
    }
 | 
						|
  }
 | 
						|
  &.type--time {
 | 
						|
    .vxe-input--panel-wrapper {
 | 
						|
      display: inline-flex;
 | 
						|
      flex-direction: column;
 | 
						|
      $widthList: 170px, 168px, 154px, 146px;
 | 
						|
    }
 | 
						|
  }
 | 
						|
  &.type--datetime {
 | 
						|
    .vxe-input--panel-left-wrapper {
 | 
						|
      $widthList: 336px, 336px, 312px, 288px;
 | 
						|
      width: list.nth($widthList, $sizeIndex);
 | 
						|
    }
 | 
						|
    .vxe-input--panel-left-wrapper,
 | 
						|
    .vxe-input--panel-right-wrapper {
 | 
						|
      padding: 12px - $sizeIndex;
 | 
						|
    }
 | 
						|
  }
 | 
						|
  .vxe-input--time-picker-title {
 | 
						|
    height: 31px - $sizeIndex;
 | 
						|
    line-height: 31px - $sizeIndex;
 | 
						|
  }
 | 
						|
  .vxe-input--date-picker-label,
 | 
						|
  .vxe-input--date-picker-btn {
 | 
						|
    height: 31px - $sizeIndex;
 | 
						|
    line-height: 31px - $sizeIndex;
 | 
						|
  }
 | 
						|
  .vxe-input--date-picker-btn-wrapper {
 | 
						|
    .vxe-input--date-picker-btn {
 | 
						|
      margin-left: 9px - $sizeIndex;
 | 
						|
      &:active {
 | 
						|
        transform: scale(0.9);
 | 
						|
      }
 | 
						|
    }
 | 
						|
    .vxe-input--date-picker-prev-btn,
 | 
						|
    .vxe-input--date-picker-current-btn,
 | 
						|
    .vxe-input--date-picker-next-btn {
 | 
						|
      width: 31px - $sizeIndex;
 | 
						|
      border-radius: var(--vxe-ui-base-border-radius);
 | 
						|
      border: 1px solid var(--vxe-ui-input-border-color);
 | 
						|
    }
 | 
						|
  }
 | 
						|
  .vxe-input--date-picker-type-wrapper {
 | 
						|
    .vxe-input--date-picker-label,
 | 
						|
    .vxe-input--date-picker-btns {
 | 
						|
      padding: 0 10px - $sizeIndex;
 | 
						|
    }
 | 
						|
  }
 | 
						|
  .vxe-input--time-picker-header,
 | 
						|
  .vxe-input--date-picker-header {
 | 
						|
    $paddingBottomList: 8px, 7px, 6px, 5px;
 | 
						|
    padding-bottom: list.nth($paddingBottomList, $sizeIndex);
 | 
						|
  }
 | 
						|
  .vxe-input--date-picker-body table,
 | 
						|
  .vxe-input--time-picker-body {
 | 
						|
    height: calc(list.nth($timeWeekRowHeightList, $sizeIndex) * 6 + list.nth($titleRowHeightList, $sizeIndex));
 | 
						|
  }
 | 
						|
  .vxe-input--time-picker-body {
 | 
						|
    $ulWidthList: 48px, 48px, 44px, 42px;
 | 
						|
    & > ul {
 | 
						|
      width: list.nth($ulWidthList, $sizeIndex);
 | 
						|
      &:before,
 | 
						|
      &:after {
 | 
						|
        $heightList: 120px, 120px, 110px, 100px;
 | 
						|
        height: list.nth($heightList, $sizeIndex);
 | 
						|
      }
 | 
						|
      & > li {
 | 
						|
        height: 26px;
 | 
						|
        padding-left: 10px - $sizeIndex;
 | 
						|
      }
 | 
						|
    }
 | 
						|
    .vxe-input--time-picker-minute-list {
 | 
						|
      left: list.nth($ulWidthList, $sizeIndex);
 | 
						|
    }
 | 
						|
    .vxe-input--time-picker-second-list {
 | 
						|
      left: calc(list.nth($ulWidthList, $sizeIndex) * 2);
 | 
						|
    }
 | 
						|
  }
 | 
						|
  .vxe-input--date-day-view,
 | 
						|
  .vxe-input--date-week-view {
 | 
						|
    td {
 | 
						|
      height: list.nth($timeWeekRowHeightList, $sizeIndex);
 | 
						|
    }
 | 
						|
  }
 | 
						|
  .vxe-input--date-quarter-view {
 | 
						|
    td {
 | 
						|
      height: list.nth($quarterRowHeightList, $sizeIndex);
 | 
						|
    }
 | 
						|
  }
 | 
						|
  .vxe-input--date-month-view,
 | 
						|
  .vxe-input--date-year-view {
 | 
						|
    td {
 | 
						|
      height: list.nth($monthYearRowHeightList, $sizeIndex);
 | 
						|
    }
 | 
						|
  }
 | 
						|
  .vxe-input--date-picker-body {
 | 
						|
    th {
 | 
						|
      height: list.nth($titleRowHeightList, $sizeIndex);
 | 
						|
    }
 | 
						|
  }
 | 
						|
  .vxe-input--time-picker-confirm,
 | 
						|
  .vxe-input--date-picker-confirm {
 | 
						|
    height: 31px - $sizeIndex;
 | 
						|
  }
 | 
						|
  .vxe-input--date-label {
 | 
						|
    line-height: calc(list.nth($fontSizeList, $sizeIndex) + 1px);
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
.vxe-input--panel {
 | 
						|
  @include getPanelStyle(1);
 | 
						|
  &.size--medium {
 | 
						|
    @include getPanelStyle(2);
 | 
						|
  }
 | 
						|
  &.size--small {
 | 
						|
    @include getPanelStyle(3);
 | 
						|
  }
 | 
						|
  &.size--mini {
 | 
						|
    @include getPanelStyle(4);
 | 
						|
  }
 | 
						|
}
 |