|
@@ -3,18 +3,13 @@
|
|
|
<view class="nut-input-label">
|
|
<view class="nut-input-label">
|
|
|
<view v-if="label" class="label-string">{{ label }}</view>
|
|
<view v-if="label" class="label-string">{{ label }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view v-if="readonly" class="input-text">
|
|
|
|
|
- {{ modelValue }}
|
|
|
|
|
- </view>
|
|
|
|
|
<input
|
|
<input
|
|
|
- v-else
|
|
|
|
|
class="input-text"
|
|
class="input-text"
|
|
|
:style="styles"
|
|
:style="styles"
|
|
|
:type="type"
|
|
:type="type"
|
|
|
:maxlength="maxLength"
|
|
:maxlength="maxLength"
|
|
|
:placeholder="placeholder"
|
|
:placeholder="placeholder"
|
|
|
- :disabled="disabled"
|
|
|
|
|
- :readonly="readonly"
|
|
|
|
|
|
|
+ :disabled="disabled || readonly"
|
|
|
:value="modelValue"
|
|
:value="modelValue"
|
|
|
@input="valueChange"
|
|
@input="valueChange"
|
|
|
@focus="valueFocus"
|
|
@focus="valueFocus"
|