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.
30 lines
1.1 KiB
30 lines
1.1 KiB
<!-- input/input.wxml -->
|
|
<label class='form-item {{disabled? "disabled": ""}}'>
|
|
<view class='default-border {{border? "border": ""}} l-class'>
|
|
<view class='mask' wx:if="{{disabled}}"></view>
|
|
<!-- 小程序表单组件 -->
|
|
<textarea
|
|
class="{{autoHeight ? 'textarea-auto-height': 'textarea'}} l-inner-class"
|
|
type="{{type}}"
|
|
value="{{ value }}"
|
|
password="{{type==='password'}}"
|
|
placeholder="{{placeholder}}"
|
|
maxlength="{{maxlength}}"
|
|
placeholder-class="pls-class"
|
|
placeholder-style="{{placeholderStyle}}"
|
|
disabled="{{disabled}}"
|
|
focus="{{focus}}"
|
|
auto-height="{{autoHeight}}"
|
|
cursor-spacing="{{cursorSpacing}}"
|
|
bindinput="handleInputChange"
|
|
bindfocus="handleInputFocus"
|
|
bindblur="handleInputBlur"
|
|
bindconfirm="handleInputConfirm"
|
|
/>
|
|
<view
|
|
class="indicator"
|
|
wx:if="{{indicator}}">{{value.length + '/' + maxlength}}</view>
|
|
</view>
|
|
</label>
|
|
<l-error-tip l-error-text-class="l-error-text l-error-text-class" errorText="{{errorText}}" wx:if="{{errorText}}"/>
|