File tree Expand file tree Collapse file tree 4 files changed +19
-7
lines changed Expand file tree Collapse file tree 4 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 6
6
}
7
7
.#{$devui-prefix } -menu-vertical {
8
8
padding : 0 ;
9
- transition :
10
- width $devui-animation-duration-slow $devui-animation-ease-in-smooth ,
9
+ transition : width $devui-animation-duration-slow $devui-animation-ease-in-smooth ,
11
10
padding $devui-animation-duration-slow $devui-animation-ease-in-smooth ;
12
11
border-right : $devui-line 1px solid ;
13
- background : $devui-area !important ;
14
12
15
13
::after {
16
14
transition : all $devui-animation-duration-fast $devui-animation-ease-in-smooth ;
60
58
color : $devui-menu-item ;
61
59
background : $devui-block ;
62
60
display : flex ;
61
+ transition : background-color $devui-animation-duration-fast $devui-animation-ease-in-out-smooth ;
62
+
63
+ & :hover {
64
+ color : $devui-list-item-hover-text ;
65
+ background-color : $devui-list-item-hover-bg ;
66
+ }
63
67
64
68
span :nth-child (2 ) {
65
69
// flex: auto;
88
92
padding : 0 ;
89
93
.#{$devui-prefix } -menu-item {
90
94
display : flex ;
91
- background : $devui-area ;
92
95
93
96
& > span {
94
97
flex : auto ;
109
112
padding-left : 18px ;
110
113
align-items : center ;
111
114
color : $devui-menu-item ;
115
+ transition : background-color $devui-animation-duration-fast $devui-animation-ease-in-out-smooth ;
116
+
117
+ & :hover {
118
+ color : $devui-list-item-hover-text ;
119
+ background-color : $devui-list-item-hover-bg ;
120
+ }
112
121
113
122
& :nth-child (1 ) {
114
123
font-size : $devui-font-size-lg ;
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ export default function useSelect(
124
124
125
125
const getInjectOptions = ( values : KeyType < OptionObjectItem , 'value' > [ ] ) => {
126
126
return values . map ( ( value ) => {
127
- if ( props . multiple && props . allowCreate ) {
127
+ if ( props . allowCreate ) {
128
128
const option = injectOptions . value . get ( value ) ;
129
129
if ( option ) {
130
130
return option ;
@@ -208,6 +208,9 @@ export default function useSelect(
208
208
}
209
209
getMultipleSelected ( checkedItems ) ;
210
210
} else {
211
+ if ( item . create ) {
212
+ filterQuery . value = '' ;
213
+ }
211
214
ctx . emit ( 'update:modelValue' , item . value ) ;
212
215
getSingleSelected ( item ) ;
213
216
toggleChange ( false ) ;
Original file line number Diff line number Diff line change 18
18
width : 100% ;
19
19
height : 62.5% ;
20
20
border-radius : $devui-border-radius-full ;
21
- background : $devui-line ;
21
+ background : $devui-shape-icon-fill ;
22
22
border : 1px solid $devui-line ;
23
23
position : relative ;
24
24
display : inline-block ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-devui" ,
3
- "version" : " 1.6.6 " ,
3
+ "version" : " 1.6.7 " ,
4
4
"license" : " MIT" ,
5
5
"description" : " DevUI components based on Vite and Vue3" ,
6
6
"keywords" : [
You can’t perform that action at this time.
0 commit comments