We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9813498 commit 84bf37aCopy full SHA for 84bf37a
1 file changed
src/input/index.wxml
@@ -13,10 +13,25 @@
13
</view>
14
<!-- 小程序表单组件 -->
15
<input
16
+ wx:if="{{type !== 'password'}}"
17
class="input {{hideLabel?'hideLabel':''}} l-input-class"
18
value="{{ value }}"
19
type="{{type}}"
- 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}}"
35
placeholder="{{placeholder}}"
36
maxlength="{{maxlength}}"
37
placeholder-class="pls-class"
0 commit comments