Skip to content

Commit ee072f0

Browse files
committed
build: Travis CI automatic compilation
1 parent 84bf37a commit ee072f0

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

dist/input/index.wxml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
<slot name="left"/>
1111
</view>
1212

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"/>
1415
<l-icon wx:if="{{showEye&&value}}" name="eye" catch:tap="onTapEyeIcon" size="40" l-class="l-eye l-eye-{{type}}"/>
1516
<view class="close" wx:if="{{clear&&value}}" mut-bind:tap="onClearTap">
1617
<view class="close-icon">

examples/dist/input/index.wxml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,25 @@
1313
</view>
1414
<!-- 小程序表单组件 -->
1515
<input
16+
wx:if="{{type !== 'password'}}"
1617
class="input {{hideLabel?'hideLabel':''}} l-input-class"
1718
value="{{ value }}"
1819
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}}"
2035
placeholder="{{placeholder}}"
2136
maxlength="{{maxlength}}"
2237
placeholder-class="pls-class"

0 commit comments

Comments
 (0)