mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
style(components): [select-v2] Uniform style consistent with select (#10501)
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
ref="selectionRef"
|
||||
:class="[
|
||||
nsSelectV2.e('wrapper'),
|
||||
nsSelectV2.is('focused', states.isComposing),
|
||||
nsSelectV2.is('focused', states.isComposing || expanded),
|
||||
nsSelectV2.is('hovering', states.comboBoxHovering),
|
||||
nsSelectV2.is('filterable', filterable),
|
||||
nsSelectV2.is('disabled', selectDisabled),
|
||||
@@ -254,8 +254,7 @@
|
||||
nsSelectV2.e('placeholder'),
|
||||
nsSelectV2.is(
|
||||
'transparent',
|
||||
states.isComposing ||
|
||||
(multiple ? modelValue.length === 0 : !hasModelValue)
|
||||
multiple ? modelValue.length === 0 : !hasModelValue
|
||||
),
|
||||
]"
|
||||
>
|
||||
|
||||
@@ -25,14 +25,15 @@ $input-inline-start: map.get($input-padding-horizontal, 'default') !default;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
cursor: pointer;
|
||||
padding: 1px 30px 1px 0;
|
||||
border: 1px solid getCssVar('border-color');
|
||||
border-radius: getCssVar('border-radius-base');
|
||||
transition: border-color getCssVar('transition-duration-fast')
|
||||
getCssVar('ease-in-out-bezier-function');
|
||||
background-color: getCssVar('fill-color', 'blank');
|
||||
transition: getCssVar('transition', 'duration');
|
||||
|
||||
&:hover {
|
||||
border-color: getCssVar('text-color', 'placeholder');
|
||||
}
|
||||
@@ -47,7 +48,7 @@ $input-inline-start: map.get($input-padding-horizontal, 'default') !default;
|
||||
|
||||
@include when(hovering) {
|
||||
&:not(.is-focused) {
|
||||
border-color: getCssVar('text-color', 'placeholder');
|
||||
border-color: getCssVar('border-color-hover');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -180,6 +181,7 @@ $input-inline-start: map.get($input-padding-horizontal, 'default') !default;
|
||||
#{$selector}__combobox-input {
|
||||
padding-right: 35px;
|
||||
display: block;
|
||||
color: getCssVar('text-color', 'regular');
|
||||
|
||||
&:focus {
|
||||
border-color: getCssVar('select-input-focus-border-color');
|
||||
@@ -236,7 +238,7 @@ $input-inline-start: map.get($input-padding-horizontal, 'default') !default;
|
||||
@include e(caret) {
|
||||
color: getCssVar('select-input-color');
|
||||
font-size: getCssVar('select-input-font-size');
|
||||
transition: transform getCssVar('transition-duration');
|
||||
transition: getCssVar('transition', 'duration');
|
||||
transform: rotateZ(180deg);
|
||||
cursor: pointer;
|
||||
|
||||
@@ -259,6 +261,7 @@ $input-inline-start: map.get($input-padding-horizontal, 'default') !default;
|
||||
|
||||
&.#{$namespace}-icon {
|
||||
height: inherit;
|
||||
|
||||
svg {
|
||||
vertical-align: middle;
|
||||
}
|
||||
@@ -273,15 +276,6 @@ $input-inline-start: map.get($input-padding-horizontal, 'default') !default;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
@include e(wrapper) {
|
||||
background-color: getCssVar('fill-color', 'blank');
|
||||
border: 1px solid getCssVar('border-color');
|
||||
border-radius: getCssVar('border-radius-base');
|
||||
position: relative;
|
||||
transition: all getCssVar('transition-duration')
|
||||
getCssVar('ease-in-out-bezier-function');
|
||||
}
|
||||
|
||||
@include e(input-calculator) {
|
||||
left: 0;
|
||||
position: absolute;
|
||||
|
||||
Reference in New Issue
Block a user