Skip to content

Commit 909dbc5

Browse files
author
liuzhe
committed
fix: input 输入框添加clearable属性并输入内容,hover时宽度进行变化
1 parent 140df95 commit 909dbc5

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

style/web/components/input/_index.less

+5-7
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,9 @@
7878
}
7979

8080
&.@{prefix}-input--suffix > span.@{prefix}-input__clear {
81-
opacity: 0;
82-
visibility: hidden;
8381
transition: @input-inner-transition;
8482
}
8583

86-
&.@{prefix}-input--suffix:hover > span.@{prefix}-input__clear {
87-
opacity: 1;
88-
visibility: visible;
89-
}
90-
9184
// 输入框状态
9285
.input-status(success);
9386
.input-status(warning);
@@ -103,6 +96,11 @@
10396
cursor: pointer;
10497
}
10598

99+
.@{prefix}-input__suffix-clear-hidden {
100+
opacity: 0;
101+
visibility: hidden;
102+
}
103+
106104
// 输入框大小
107105
&.@{prefix}-size-l {
108106
height: @input-height-l;

0 commit comments

Comments
 (0)