小程序源码
This commit is contained in:
31
source/wx/xzs-student/component/iView/input/index.wxml
Normal file
31
source/wx/xzs-student/component/iView/input/index.wxml
Normal file
@@ -0,0 +1,31 @@
|
||||
<view class="i-class i-cell i-input {{ error ? 'i-input-error' : '' }} {{ mode === 'wrapped' ? 'i-input-wrapped' : '' }}">
|
||||
<view wx:if="{{ title }}" class="i-cell-hd i-input-title">{{ title }}</view>
|
||||
<textarea
|
||||
wx:if="{{ type === 'textarea' }}"
|
||||
auto-height
|
||||
disabled="{{ disabled }}"
|
||||
focus="{{ autofocus }}"
|
||||
value="{{ value }}"
|
||||
placeholder="{{ placeholder }}"
|
||||
maxlength="{{ maxlength }}"
|
||||
class="i-input-input i-cell-bd {{ right ? 'i-input-input-right' : '' }}"
|
||||
placeholder-class="i-input-placeholder"
|
||||
bindinput="handleInputChange"
|
||||
bindfocus="handleInputFocus"
|
||||
bindblur="handleInputBlur"
|
||||
></textarea>
|
||||
<input
|
||||
wx:else
|
||||
type="{{ type }}"
|
||||
disabled="{{ disabled }}"
|
||||
focus="{{ autofocus }}"
|
||||
value="{{ value }}"
|
||||
placeholder="{{ placeholder }}"
|
||||
maxlength="{{ maxlength }}"
|
||||
class="i-input-input i-cell-bd {{ right ? 'i-input-input-right' : '' }}"
|
||||
placeholder-class="i-input-placeholder"
|
||||
bindinput="handleInputChange"
|
||||
bindfocus="handleInputFocus"
|
||||
bindblur="handleInputBlur"
|
||||
/>
|
||||
</view>
|
||||
Reference in New Issue
Block a user