You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
3.1 KiB

<view class="{{['uni-easyinput data-v-5a0c425c',(msg)?'uni-easyinput-error':'']}}" style="{{'color:'+(inputBorder&&msg?'#dd524d':styles.color)+';'}}"><view class="{{['uni-easyinput__content data-v-5a0c425c',(inputBorder)?'is-input-border':'',(inputBorder&&msg)?'is-input-error-border':'',(type==='textarea')?'is-textarea':'',(disabled)?'is-disabled':'']}}" style="{{'border-color:'+(inputBorder&&msg?'#dd524d':styles.borderColor)+';'+('background-color:'+(disabled?styles.disableColor:'#fff')+';')}}"><block wx:if="{{prefixIcon}}"><uni-icons class="content-clear-icon data-v-5a0c425c" vue-id="3106ebac-1" type="{{prefixIcon}}" color="#c0c4cc" data-event-opts="{{[['^click',[['onClickIcon',['prefix']]]]]}}" bind:click="__e" bind:__l="__l"></uni-icons></block><block wx:if="{{type==='textarea'}}"><textarea class="{{['uni-easyinput__content-textarea data-v-5a0c425c',(inputBorder)?'input-padding':'']}}" name="{{name}}" placeholder="{{placeholder}}" placeholderStyle="{{placeholderStyle}}" disabled="{{disabled}}" maxlength="{{inputMaxlength}}" focus="{{focused}}" autoHeight="{{autoHeight}}" data-event-opts="{{[['input',[['onInput',['$event']]]],['blur',[['onBlur',['$event']]]],['focus',[['onFocus',['$event']]]],['confirm',[['onConfirm',['$event']]]]]}}" value="{{val}}" bindinput="__e" bindblur="__e" bindfocus="__e" bindconfirm="__e"></textarea></block><block wx:else><input class="uni-easyinput__content-input data-v-5a0c425c" style="{{'padding-right:'+(type==='password'||clearable||prefixIcon?'':'40rpx')+';'+('padding-left:'+(prefixIcon?'':'40rpx')+';')}}" type="{{type==='password'?'text':type}}" name="{{name}}" password="{{!showPassword&&type==='password'}}" placeholder="{{placeholder}}" placeholderStyle="{{placeholderStyle}}" disabled="{{disabled}}" maxlength="{{inputMaxlength}}" focus="{{focused}}" data-event-opts="{{[['focus',[['onFocus',['$event']]]],['blur',[['onBlur',['$event']]]],['input',[['onInput',['$event']]]],['confirm',[['onConfirm',['$event']]]]]}}" value="{{val}}" bindfocus="__e" bindblur="__e" bindinput="__e" bindconfirm="__e"/></block><block wx:if="{{type==='password'}}"><block wx:if="{{val!=''}}"><uni-icons class="{{['content-clear-icon data-v-5a0c425c',(type==='textarea')?'is-textarea-icon':'']}}" vue-id="3106ebac-2" type="{{showPassword?'eye-slash-filled':'eye-filled'}}" size="{{18}}" color="#c0c4cc" data-event-opts="{{[['^click',[['onEyes']]]]}}" bind:click="__e" bind:__l="__l"></uni-icons></block></block><block wx:else><block wx:if="{{suffixIcon}}"><block wx:if="{{suffixIcon}}"><uni-icons class="content-clear-icon data-v-5a0c425c" vue-id="3106ebac-3" type="{{suffixIcon}}" color="#c0c4cc" data-event-opts="{{[['^click',[['onClickIcon',['suffix']]]]]}}" bind:click="__e" bind:__l="__l"></uni-icons></block></block><block wx:else><block wx:if="{{clearable&&focused&&val}}"><uni-icons class="{{['content-clear-icon data-v-5a0c425c',(type==='textarea')?'is-textarea-icon':'']}}" vue-id="3106ebac-4" type="clear" size="{{clearSize}}" color="#c0c4cc" data-event-opts="{{[['^click',[['onClear']]]]}}" bind:click="__e" bind:__l="__l"></uni-icons></block></block></block></view></view>