File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ exports[`search Props :base 1`] = `
31
31
<wx-input
32
32
adjustPosition = " {{true}}"
33
33
alwaysEmbed = " {{false}}"
34
- class = " t-input__keyword t-class-input"
34
+ class = " t-input__keyword t-class-input "
35
35
confirmHold = " {{false}}"
36
36
confirmType = " search"
37
37
cursor = " {{0}}"
Original file line number Diff line number Diff line change 8
8
@search-padding : var (--td-search-padding , 16 rpx 24 rpx);
9
9
@search-placeholder-color : var (--td-search-placeholder-color , @text-color-placeholder);
10
10
@search-icon-color : var (--td-search-icon-color , @text-color-placeholder);
11
+ @search-disabled-text-color : var (--td-search-disabled-text-color , @text-color-disabled); // 输入框禁用态文本颜色
11
12
@search-icon-font-size : var (--td-search-icon-font-size , 48 rpx);
12
13
@search-square-radius : var (--td-search-square-radius , @radius-default);
13
14
@search-round-radius : calc (@search-height / 2 );
62
63
line-height : 48 rpx;
63
64
}
64
65
66
+ .@{prefix} -input--disabled {
67
+ color : @search-disabled-text-color ;
68
+ cursor : not-allowed ;
69
+ opacity : 1 ;
70
+ -webkit-text-fill-color : currentColor ; // fix disabled color in iOS
71
+ }
72
+
65
73
.@{prefix} -icon {
66
74
color : @search-icon-color ;
67
75
font-size : @search-icon-font-size ;
Original file line number Diff line number Diff line change 20
20
name="input"
21
21
maxlength="{{maxlength}}"
22
22
disabled="{{disabled || readonly}}"
23
- class="{{prefix}}-input__keyword {{prefix}}-class-input"
23
+ class="{{prefix}}-input__keyword {{prefix}}-class-input {{ disabled ? prefix + '-input--disabled' : ''}} "
24
24
focus="{{focus}}"
25
25
value="{{value}}"
26
26
confirm-type="{{confirmType}}"
You can’t perform that action at this time.
0 commit comments