Skip to content

Commit

Permalink
fix: input 输入框添加clearable属性并输入内容,hover时宽度进行变化
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzhe committed Jun 23, 2023
1 parent 140df95 commit 909dbc5
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions style/web/components/input/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,9 @@
}

&.@{prefix}-input--suffix > span.@{prefix}-input__clear {
opacity: 0;
visibility: hidden;
transition: @input-inner-transition;
}

&.@{prefix}-input--suffix:hover > span.@{prefix}-input__clear {
opacity: 1;
visibility: visible;
}

// 输入框状态
.input-status(success);
.input-status(warning);
Expand All @@ -103,6 +96,11 @@
cursor: pointer;
}

.@{prefix}-input__suffix-clear-hidden {
opacity: 0;
visibility: hidden;
}

// 输入框大小
&.@{prefix}-size-l {
height: @input-height-l;
Expand Down

0 comments on commit 909dbc5

Please sign in to comment.