|
|
|
@ -1,34 +1,24 @@ |
|
|
|
<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 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> --> |
|
|
|
<image src="/assets/image/icon-search.png" style="height: 30rpx;width: 30rpx;margin-top: 20rpx;"></image> |
|
|
|
</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"/> |
|
|
|
<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}}" > |
|
|
|
<view style="padding: 0 20rpx;" wx:if="{{suffixIcon}}"> |
|
|
|
<!-- <slot name='suffix' ></slot> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="extreaBtn" wx:if='{{extreaWord}}' style="color:{{extreaColor}}" bindtap="extreaBtn"> |
|
|
|
<text>{{extreaWord}}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |