Skip to content

Commit 7f58649

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

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

style/web/components/form/_index.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@
139139
display: inline-block;
140140
margin-right: @form-item-margin-right-inline;
141141
}
142+
143+
.@{prefix}-input {
144+
width: @form-inline-content-width;
145+
}
142146
}
143147

144148
.@{prefix}-input__extra,

style/web/components/form/_var.less

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,6 @@
5050
@input-box-shadow-color-warning-focus: @warning-color-focus;
5151
@input-border-color-error: @error-color;
5252
@input-box-shadow-color-error-focus: @error-color-focus;
53+
54+
// inline
55+
@form-inline-content-width: 200px;

0 commit comments

Comments
 (0)