2020-05-14 20:47:05 +08:00
|
|
|
.#{$ns}ResultBox {
|
|
|
|
@include input-input();
|
2021-11-19 00:16:00 +08:00
|
|
|
@include input-border();
|
2022-06-14 11:53:36 +08:00
|
|
|
flex-wrap: nowrap;
|
2022-07-08 19:38:39 +08:00
|
|
|
padding: 0 px2rem(12px);
|
2020-12-21 10:08:40 +08:00
|
|
|
min-height: var(--Form-input-height);
|
2020-05-14 20:47:05 +08:00
|
|
|
align-items: center;
|
2022-02-18 14:04:48 +08:00
|
|
|
border-radius: 3px;
|
|
|
|
position: relative;
|
2023-02-20 12:34:43 +08:00
|
|
|
color: var(--Form-select-color);
|
|
|
|
font-size: var(--select-base-default-fontSize);
|
|
|
|
font-weight: var(--select-base-default-fontWeight);
|
|
|
|
border-width: var(--Form-select-borderWidth);
|
|
|
|
border-style: var(--select-base-default-top-border-style)
|
|
|
|
var(--select-base-default-right-border-style)
|
|
|
|
var(--select-base-default-bottom-border-style)
|
|
|
|
var(--select-base-default-left-border-style);
|
|
|
|
border-color: var(--Form-select-borderColor);
|
|
|
|
background: var(--Form-select-bg);
|
|
|
|
border-radius: var(--Form-select-borderRadius);
|
|
|
|
min-height: var(--Form-selectOption-height);
|
|
|
|
padding: var(--select-base-default-paddingTop)
|
|
|
|
var(--select-base-default-paddingRight)
|
|
|
|
var(--select-base-default-paddingBottom)
|
|
|
|
var(--select-base-default-paddingLeft);
|
2022-02-18 14:04:48 +08:00
|
|
|
|
2020-05-14 20:47:05 +08:00
|
|
|
&.is-error {
|
2020-12-21 10:08:40 +08:00
|
|
|
border-color: var(--Form-input-onError-borderColor);
|
|
|
|
background: var(--Form-input-onError-bg);
|
2020-05-14 20:47:05 +08:00
|
|
|
}
|
|
|
|
|
2020-07-03 17:11:32 +08:00
|
|
|
&.is-focused,
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
2023-02-20 12:34:43 +08:00
|
|
|
background: var(--Form-select-onHover-bg);
|
|
|
|
border-width: var(--select-base-hover-top-border-width)
|
|
|
|
var(--select-base-hover-right-border-width)
|
|
|
|
var(--select-base-hover-bottom-border-width)
|
|
|
|
var(--select-base-hover-left-border-width);
|
|
|
|
border-style: var(--select-base-hover-top-border-style)
|
|
|
|
var(--select-base-hover-right-border-style)
|
|
|
|
var(--select-base-hover-bottom-border-style)
|
|
|
|
var(--select-base-hover-left-border-style);
|
|
|
|
border-color: var(--select-base-hover-top-border-color)
|
|
|
|
var(--select-base-hover-right-border-color)
|
|
|
|
var(--select-base-hover-bottom-border-color)
|
|
|
|
var(--select-base-hover-left-border-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-active,
|
|
|
|
&.is-opened {
|
|
|
|
border-width: var(--select-base-active-top-border-width)
|
|
|
|
var(--select-base-active-right-border-width)
|
|
|
|
var(--select-base-active-bottom-border-width)
|
|
|
|
var(--select-base-active-left-border-width);
|
|
|
|
border-style: var(--select-base-active-top-border-style)
|
|
|
|
var(--select-base-active-right-border-style)
|
|
|
|
var(--select-base-active-bottom-border-style)
|
|
|
|
var(--select-base-active-left-border-style);
|
|
|
|
border-color: var(--select-base-active-top-border-color)
|
|
|
|
var(--select-base-active-right-border-color)
|
|
|
|
var(--select-base-active-bottom-border-color)
|
|
|
|
var(--select-base-active-left-border-color);
|
|
|
|
box-shadow: var(--select-base-active-shadow);
|
|
|
|
background: var(--select-base-active-bg-color);
|
2020-05-14 20:47:05 +08:00
|
|
|
}
|
|
|
|
|
2020-07-15 20:15:38 +08:00
|
|
|
&.is-clickable:not(.is-disabled) {
|
2020-06-12 14:39:21 +08:00
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover {
|
2023-02-20 12:34:43 +08:00
|
|
|
background: var(--Form-select-onHover-bg);
|
|
|
|
border-width: var(--select-base-hover-top-border-width)
|
|
|
|
var(--select-base-hover-right-border-width)
|
|
|
|
var(--select-base-hover-bottom-border-width)
|
|
|
|
var(--select-base-hover-left-border-width);
|
|
|
|
border-style: var(--select-base-hover-top-border-style)
|
|
|
|
var(--select-base-hover-right-border-style)
|
|
|
|
var(--select-base-hover-bottom-border-style)
|
|
|
|
var(--select-base-hover-left-border-style);
|
|
|
|
border-color: var(--select-base-hover-top-border-color)
|
|
|
|
var(--select-base-hover-right-border-color)
|
|
|
|
var(--select-base-hover-bottom-border-color)
|
|
|
|
var(--select-base-hover-left-border-color);
|
2020-06-12 14:39:21 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-14 20:47:05 +08:00
|
|
|
&.is-error.is-focused {
|
2020-12-21 10:08:40 +08:00
|
|
|
border-color: var(--Form-input-onError-borderColor);
|
2020-05-14 20:47:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-disabled {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--text--muted-color);
|
2021-02-05 17:51:13 +08:00
|
|
|
pointer-events: none;
|
2023-02-20 12:34:43 +08:00
|
|
|
border-width: var(--select-base-disabled-top-border-width)
|
|
|
|
var(--select-base-disabled-right-border-width)
|
|
|
|
var(--select-base-disabled-bottom-border-width)
|
|
|
|
var(--select-base-disabled-left-border-width);
|
|
|
|
border-style: var(--select-base-disabled-top-border-style)
|
|
|
|
var(--select-base-disabled-right-border-style)
|
|
|
|
var(--select-base-disabled-bottom-border-style)
|
|
|
|
var(--select-base-disabled-left-border-style);
|
|
|
|
border-color: var(--select-base-disabled-top-border-color)
|
|
|
|
var(--select-base-disabled-right-border-color)
|
|
|
|
var(--select-base-disabled-bottom-border-color)
|
|
|
|
var(--select-base-disabled-left-border-color);
|
|
|
|
background: var(--select-base-disabled-bg-color);
|
2022-05-18 10:03:56 +08:00
|
|
|
|
|
|
|
div.#{$ns}ResultBox-value {
|
|
|
|
background: var(--TabsTransfer-border-color);
|
|
|
|
|
|
|
|
.#{$ns}ResultBox-valueLabel {
|
|
|
|
color: var(--Pagination-light-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.#{$ns}NestedSelect {
|
|
|
|
padding-left: var(--gap-base);
|
2020-05-14 20:47:05 +08:00
|
|
|
}
|
|
|
|
|
2022-06-14 11:53:36 +08:00
|
|
|
&-value-wrap {
|
|
|
|
flex-grow: 1;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-actions {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-shrink: 0;
|
2022-07-28 21:24:18 +08:00
|
|
|
padding-left: px2rem(5px);
|
2022-06-14 11:53:36 +08:00
|
|
|
|
|
|
|
> * {
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-right: px2rem(5px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-11 18:31:02 +08:00
|
|
|
&-singleValue {
|
2022-06-14 11:53:36 +08:00
|
|
|
flex-grow: 1;
|
2021-09-29 19:32:31 +08:00
|
|
|
display: inline-block;
|
|
|
|
max-width: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2023-04-23 14:44:08 +08:00
|
|
|
word-break: break-all; // 避免超长单词撑开
|
2020-06-11 18:31:02 +08:00
|
|
|
}
|
|
|
|
|
2022-02-18 14:04:48 +08:00
|
|
|
&-pc-arrow {
|
|
|
|
height: 100%;
|
|
|
|
margin: auto 0;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
transition: transform var(--animation-duration) ease;
|
2022-05-18 10:03:56 +08:00
|
|
|
transform: rotate(90deg);
|
2022-07-28 21:24:18 +08:00
|
|
|
|
2022-02-18 14:04:48 +08:00
|
|
|
> svg {
|
|
|
|
width: px2rem(10px);
|
|
|
|
height: px2rem(10px);
|
2022-07-28 21:24:18 +08:00
|
|
|
top: 0;
|
2022-05-18 10:03:56 +08:00
|
|
|
color: var(--default-icon-color);
|
2022-02-18 14:04:48 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-opened &-pc-arrow {
|
2022-05-18 10:03:56 +08:00
|
|
|
transform: rotate(270deg);
|
2022-02-18 14:04:48 +08:00
|
|
|
}
|
|
|
|
|
2020-05-14 20:47:05 +08:00
|
|
|
&-clear {
|
|
|
|
@include input-clear();
|
2022-02-18 14:04:48 +08:00
|
|
|
height: 100%;
|
|
|
|
margin: auto 0;
|
|
|
|
background-color: unset;
|
|
|
|
|
|
|
|
&-wrap {
|
|
|
|
width: px2rem(16px);
|
|
|
|
height: px2rem(16px);
|
|
|
|
border-radius: 50%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-with-arrow {
|
|
|
|
right: 33px;
|
|
|
|
}
|
2020-05-14 20:47:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
> svg {
|
|
|
|
display: inline-block;
|
2020-05-15 16:47:08 +08:00
|
|
|
width: px2rem(14px);
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--icon-color);
|
2020-05-14 20:47:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
> a {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-value {
|
2020-12-21 10:08:40 +08:00
|
|
|
background: var(--ResultBox-value-bg);
|
|
|
|
color: var(--ResultBox-value-color);
|
2023-02-20 12:34:43 +08:00
|
|
|
font-size: var(--select-multiple-fontSize);
|
2022-05-27 18:34:25 +08:00
|
|
|
min-height: var(--ResultBox-tag-height);
|
2020-05-14 20:47:05 +08:00
|
|
|
flex-wrap: nowrap;
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
2023-02-20 12:34:43 +08:00
|
|
|
padding: var(--select-multiple-paddingTop)
|
|
|
|
var(--select-multiple-paddingRight) var(--select-multiple-paddingBottom)
|
|
|
|
var(--select-multiple-paddingLeft);
|
|
|
|
margin: var(--select-multiple-marginTop) var(--select-multiple-marginRight)
|
|
|
|
var(--ResultBox-tag-marginBottom) var(--select-multiple-marginLeft);
|
2020-05-14 20:47:05 +08:00
|
|
|
user-select: none;
|
2023-02-20 12:34:43 +08:00
|
|
|
border-radius: var(--select-multiple-top-left-border-radius)
|
|
|
|
var(--select-multiple-top-right-border-radius)
|
|
|
|
var(--select-multiple-bottom-right-border-radius)
|
|
|
|
var(--select-multiple-bottom-left-border-radius);
|
2020-05-14 20:47:05 +08:00
|
|
|
|
|
|
|
> a {
|
|
|
|
cursor: pointer;
|
2022-05-18 10:03:56 +08:00
|
|
|
margin-left: px2rem(10px);
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--ResultBox-icon-color);
|
2022-07-28 21:24:18 +08:00
|
|
|
|
2020-05-14 20:47:05 +08:00
|
|
|
&:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--ResultBox-icon--onHover-color);
|
2020-05-14 20:47:05 +08:00
|
|
|
}
|
2020-05-15 16:47:08 +08:00
|
|
|
|
|
|
|
> svg {
|
|
|
|
width: px2rem(10px);
|
|
|
|
height: px2rem(10px);
|
2022-07-28 21:24:18 +08:00
|
|
|
|
2022-02-18 14:04:48 +08:00
|
|
|
&.icon {
|
|
|
|
top: 0;
|
|
|
|
}
|
2020-05-15 16:47:08 +08:00
|
|
|
}
|
2020-05-14 20:47:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
background: var(--ResultBox-value--onHover-bg);
|
2020-05-14 20:47:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-disabled {
|
|
|
|
pointer-events: none;
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--ResultBox-value--onDisabled-color);
|
2020-05-14 20:47:05 +08:00
|
|
|
|
|
|
|
> a {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--ResultBox-icon--onDisabled-color);
|
2020-05-14 20:47:05 +08:00
|
|
|
}
|
|
|
|
}
|
2023-01-12 14:14:44 +08:00
|
|
|
|
|
|
|
&.is-invalid {
|
|
|
|
color: var(--Form-selectValue-onInvalid-color);
|
|
|
|
}
|
2020-05-14 20:47:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-placeholder {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--Form-input-placeholderColor);
|
2022-06-14 11:53:36 +08:00
|
|
|
flex-grow: 1;
|
2020-05-14 20:47:05 +08:00
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
> input {
|
|
|
|
padding-left: 8px;
|
|
|
|
min-height: 24px;
|
|
|
|
}
|
2021-12-30 13:12:56 +08:00
|
|
|
|
2022-02-17 10:19:19 +08:00
|
|
|
&.#{$ns}TransferDropDown {
|
2022-05-18 10:03:56 +08:00
|
|
|
&.is-group {
|
|
|
|
> .#{$ns}TransferDropDown-icon {
|
|
|
|
margin-right: var(--gap-sm);
|
|
|
|
}
|
|
|
|
|
|
|
|
> .#{$ns}ResultBox-placeholder {
|
|
|
|
padding-left: var(--gap-sm);
|
|
|
|
}
|
|
|
|
}
|
2022-02-17 10:19:19 +08:00
|
|
|
|
|
|
|
> .#{$ns}ResultBox-value {
|
|
|
|
background: var(--Form-select-value-bgColor);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: var(--Form-selectValue-onHover-bgColor);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-04-20 18:12:26 +08:00
|
|
|
|
2022-05-27 18:34:25 +08:00
|
|
|
&-overflow {
|
|
|
|
&-wrapper {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row wrap;
|
|
|
|
justify-content: flex-start;
|
|
|
|
align-items: center;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
max-height: calc(
|
|
|
|
(var(--ResultBox-tag-height) + var(--ResultBox-tag-marginBottom)) * 5
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.#{$ns}Tooltip--dark {
|
|
|
|
.#{$ns}ResultBox-overflow-wrapper {
|
|
|
|
.#{$ns}ResultBox-value {
|
|
|
|
color: var(--white);
|
|
|
|
background-color: var(--Form-select-value-bgColor--dark);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--ResultBox-value--onHover-bg--dark);
|
|
|
|
}
|
|
|
|
|
|
|
|
& > a {
|
|
|
|
color: var(--Form-select-valueIcon-color--dark);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-30 13:12:56 +08:00
|
|
|
&.is-mobile {
|
|
|
|
min-height: calc(var(--Form-input-lineHeight) * var(--fontSizeLg));
|
|
|
|
border: none;
|
|
|
|
padding: 0;
|
|
|
|
font-size: var(--fontSizeLg);
|
|
|
|
border: none;
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
2022-02-18 14:04:48 +08:00
|
|
|
.#{$ns}ResultBox-clear {
|
|
|
|
@include input-clear();
|
|
|
|
width: px2rem(26px);
|
|
|
|
height: px2rem(26px);
|
|
|
|
margin: 0 px2rem(-2px);
|
|
|
|
margin-left: auto;
|
|
|
|
padding: px2rem(4px);
|
|
|
|
position: unset;
|
|
|
|
right: 0;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
background-color: unset;
|
|
|
|
}
|
|
|
|
|
2021-12-30 13:12:56 +08:00
|
|
|
.#{$ns}ResultBox-arrow {
|
|
|
|
margin-right: var(--gap-xs);
|
|
|
|
// margin-left: var(--gap-xs);
|
|
|
|
width: var(--gap-md);
|
|
|
|
text-align: center;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
line-height: 1;
|
|
|
|
margin-left: 4px;
|
|
|
|
|
|
|
|
> svg {
|
|
|
|
transition: transform var(--animation-duration);
|
|
|
|
display: inline-block;
|
|
|
|
color: var(--Form-select-caret-iconColor);
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
top: 0;
|
|
|
|
transform: rotate(-90deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-05-14 20:47:05 +08:00
|
|
|
}
|