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.
33 lines
1.3 KiB
33 lines
1.3 KiB
<view class='box' style="position:{{position}};background:{{bgColor}};">
|
|
<view class="{{inputStyle == 0?'inputStyle':'inputStyles'}} {{inputStyle == 1 &&disabled?'disabled':''}}" style="border-radius:{{radius}};background:{{inputBg}};">
|
|
<!-- 前置图标 -->
|
|
<view style="margin: 2px 0 0 0.8em;" wx:if="{{prefixIcon}}">
|
|
<text class="cuIcon-search text-gray" style="font-size:16px;padding-top: 8rpx;"></text>
|
|
</view>
|
|
<input type="{{type}}"
|
|
style="color:{{color}}"
|
|
placeholder-style="color:{{color}}"
|
|
confirm-type="{{confirmType}}"
|
|
placeholder="{{placeholder}}"
|
|
value="{{value}}"
|
|
bindinput="getInput"
|
|
bindfocus="getFocus"
|
|
bindblur="getBlur"
|
|
bindconfirm="getConfirm"
|
|
password="{{password}}"
|
|
disabled="{{disabled}}"
|
|
focus="{{ focus }}"
|
|
class="input"/>
|
|
<!-- 删除 -->
|
|
<view class="deleStyle" wx:if="{{value && close}}" bindtap="close">
|
|
<text class="cuIcon-close text-gray" style="font-size:16px;"></text>
|
|
</view>
|
|
<!-- 后置图标 -->
|
|
<view style="padding: 0 20rpx;" wx:if="{{suffixIcon}}" >
|
|
<!-- <slot name='suffix' ></slot> -->
|
|
</view>
|
|
</view>
|
|
<view class="extreaBtn" wx:if='{{extreaWord}}' style="color:{{extreaColor}}" bindtap="extreaBtn">
|
|
<text>{{extreaWord}}</text>
|
|
</view>
|
|
</view>
|