File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 10
10
<slot name="left"/>
11
11
</view>
12
12
13
- <input class="input {{hideLabel?'hideLabel':''}} l-input-class" value="{{ value }}" type="{{type}}" password="{{type==='password'}}" placeholder="{{placeholder}}" maxlength="{{maxlength}}" placeholder-class="pls-class" placeholder-style="{{placeholderStyle}}" disabled="{{disabled}}" focus="{{focus}}" bindinput="handleInputChange" bindfocus="handleInputFocus" bindblur="handleInputBlur" bindconfirm="handleInputConfirm"/>
13
+ <input wx:if="{{type !== 'password'}}" class="input {{hideLabel?'hideLabel':''}} l-input-class" value="{{ value }}" type="{{type}}" placeholder="{{placeholder}}" maxlength="{{maxlength}}" placeholder-class="pls-class" placeholder-style="{{placeholderStyle}}" disabled="{{disabled}}" focus="{{focus}}" bindinput="handleInputChange" bindfocus="handleInputFocus" bindblur="handleInputBlur" bindconfirm="handleInputConfirm"/>
14
+ <input wx:else class="input {{hideLabel?'hideLabel':''}} l-input-class" value="{{ value }}" password="{{true}}" placeholder="{{placeholder}}" maxlength="{{maxlength}}" placeholder-class="pls-class" placeholder-style="{{placeholderStyle}}" disabled="{{disabled}}" focus="{{focus}}" bindinput="handleInputChange" bindfocus="handleInputFocus" bindblur="handleInputBlur" bindconfirm="handleInputConfirm"/>
14
15
<l-icon wx:if="{{showEye&&value}}" name="eye" catch:tap="onTapEyeIcon" size="40" l-class="l-eye l-eye-{{type}}"/>
15
16
<view class="close" wx:if="{{clear&&value}}" mut-bind:tap="onClearTap">
16
17
<view class="close-icon">
Original file line number Diff line number Diff line change 13
13
</view>
14
14
<!-- 小程序表单组件 -->
15
15
<input
16
+ wx:if="{{type !== 'password'}}"
16
17
class="input {{hideLabel?'hideLabel':''}} l-input-class"
17
18
value="{{ value }}"
18
19
type="{{type}}"
19
- password="{{type==='password'}}"
20
+ placeholder="{{placeholder}}"
21
+ maxlength="{{maxlength}}"
22
+ placeholder-class="pls-class"
23
+ placeholder-style="{{placeholderStyle}}"
24
+ disabled="{{disabled}}"
25
+ focus="{{focus}}"
26
+ bindinput="handleInputChange"
27
+ bindfocus="handleInputFocus"
28
+ bindblur="handleInputBlur"
29
+ bindconfirm="handleInputConfirm" />
30
+ <input
31
+ wx:else
32
+ class="input {{hideLabel?'hideLabel':''}} l-input-class"
33
+ value="{{ value }}"
34
+ password="{{true}}"
20
35
placeholder="{{placeholder}}"
21
36
maxlength="{{maxlength}}"
22
37
placeholder-class="pls-class"
You can’t perform that action at this time.
0 commit comments