u-input.axml
2.5 KB
<view data-event-opts="{{[['tap',[['inputClick',['$event']]]]]}}" class="{{(((('u-input')+' '+'data-v-460c1d26')+' '+((border)?'u-input--border':''))+' '+((validateState)?'u-input--error':''))}}" style="{{'padding:'+('0 '+(border?20:0)+'rpx')+';'+('border-color:'+(borderColor)+';')+('text-align:'+(inputAlign)+';')}}" catchTap="__e"><block a:if="{{type=='textarea'}}"><textarea class="u-input__input u-input__textarea data-v-460c1d26" style="{{$root.s0}}" placeholder="{{placeholder}}" placeholderStyle="{{placeholderStyle}}" disabled="{{disabled}}" maxlength="{{inputMaxlength}}" fixed="{{fixed}}" focus="{{focus}}" autoHeight="{{autoHeight}}" selection-end="{{uSelectionEnd}}" selection-start="{{uSelectionStart}}" cursor-spacing="{{getCursorSpacing}}" show-confirm-bar="{{showConfirmbar}}" data-event-opts="{{[['input',[['handleInput',['$event']]]],['blur',[['handleBlur',['$event']]]],['focus',[['onFocus',['$event']]]],['confirm',[['onConfirm',['$event']]]]]}}" value="{{defaultValue}}" onInput="__e" onBlur="__e" onFocus="__e" onConfirm="__e"></textarea></block><block a:else><input class="u-input__input data-v-460c1d26" style="{{$root.s1}}" type="{{type=='password'?'text':type}}" password="{{type=='password'&&!showPassword}}" placeholder="{{placeholder}}" placeholderStyle="{{placeholderStyle}}" disabled="{{disabled||type==='select'}}" maxlength="{{inputMaxlength}}" focus="{{focus}}" confirmType="{{confirmType}}" cursor-spacing="{{getCursorSpacing}}" selection-end="{{uSelectionEnd}}" selection-start="{{uSelectionStart}}" show-confirm-bar="{{showConfirmbar}}" data-event-opts="{{[['focus',[['onFocus',['$event']]]],['blur',[['handleBlur',['$event']]]],['input',[['handleInput',['$event']]]],['confirm',[['onConfirm',['$event']]]]]}}" value="{{defaultValue}}" onFocus="__e" onBlur="__e" onInput="__e" onConfirm="__e"/></block><view class="u-input__right-icon u-flex data-v-460c1d26"><block a:if="{{clearable&&value!=''&&focused}}"><view data-event-opts="{{[['tap',[['onClear',['$event']]]]]}}" class="u-input__right-icon__clear u-input__right-icon__item data-v-460c1d26" onTap="__e"><u-icon vue-id="7b6e0876-1" size="32" name="close-circle-fill" color="#c0c4cc" class="data-v-460c1d26" onVueInit="__l"></u-icon></view></block><block a:if="{{passwordIcon&&type=='password'}}"><view class="u-input__right-icon__clear u-input__right-icon__item data-v-460c1d26"><u-icon vue-id="7b6e0876-2" size="32" name="{{!showPassword?'eye':'eye-fill'}}" color="#c0c4cc" data-event-opts="{{[['^click',[['e0']]]]}}" onClick="__e" class="data-v-460c1d26" onVueInit="__l"></u-icon></view></block></view></view>