u-input.wxml 2.2 KB
<view class="{{['u-input','data-v-fdbb9fe6',inputClass]}}" style="{{$root.s0}}"><view class="u-input__content data-v-fdbb9fe6"><block wx:if="{{prefixIcon||$slots.prefix}}"><view class="u-input__content__prefix-icon data-v-fdbb9fe6"><block wx:if="{{$slots.prefix}}"><slot name="prefix"></slot></block><block wx:else><u-icon vue-id="8b778332-1" name="{{prefixIcon}}" size="18" customStyle="{{prefixIconStyle}}" class="data-v-fdbb9fe6" bind:__l="__l"></u-icon></block></view></block><view data-event-opts="{{[['tap',[['clickHandler',['$event']]]]]}}" class="u-input__content__field-wrapper data-v-fdbb9fe6" bindtap="__e"><input class="u-input__content__field-wrapper__field data-v-fdbb9fe6" style="{{$root.s1}}" type="{{type}}" focus="{{focus}}" cursor="{{cursor}}" auto-blur="{{autoBlur}}" disabled="{{disabled||readonly}}" maxlength="{{maxlength}}" placeholder="{{placeholder}}" placeholder-style="{{placeholderStyle}}" placeholder-class="{{placeholderClass}}" confirm-type="{{confirmType}}" confirm-hold="{{confirmHold}}" hold-keyboard="{{holdKeyboard}}" cursor-spacing="{{cursorSpacing}}" adjust-position="{{adjustPosition}}" selection-end="{{selectionEnd}}" selection-start="{{selectionStart}}" password="{{password||type==='password'||undefined}}" data-event-opts="{{[['input',[['onInput',['$event']]]],['blur',[['onBlur',['$event']]]],['focus',[['onFocus',['$event']]]],['confirm',[['onConfirm',['$event']]]],['keyboardheightchange',[['onkeyboardheightchange',['$event']]]]]}}" value="{{innerValue}}" bindinput="__e" bindblur="__e" bindfocus="__e" bindconfirm="__e" bindkeyboardheightchange="__e"/></view><block wx:if="{{isShowClear}}"><view data-event-opts="{{[['tap',[['onClear',['$event']]]]]}}" class="u-input__content__clear data-v-fdbb9fe6" bindtap="__e"><u-icon vue-id="8b778332-2" name="close" size="11" color="#ffffff" customStyle="line-height: 12px" class="data-v-fdbb9fe6" bind:__l="__l"></u-icon></view></block><block wx:if="{{suffixIcon||$slots.suffix}}"><view class="u-input__content__subfix-icon data-v-fdbb9fe6"><block wx:if="{{$slots.suffix}}"><slot name="suffix"></slot></block><block wx:else><u-icon vue-id="8b778332-3" name="{{suffixIcon}}" size="18" customStyle="{{suffixIconStyle}}" class="data-v-fdbb9fe6" bind:__l="__l"></u-icon></block></view></block></view></view>