<view class="u-textarea" :class="textareaClass" :style="[textareaStyle]">
<textarea class="u-textarea__field" :value="innerValue" :style="{ height: $u.addUnit(height) }"
:placeholder="placeholder" :placeholder-style="$u.addStyle(placeholderStyle, 'string')"
:placeholder-class="placeholderClass" :disabled="disabled" :focus="focus" :autoHeight="autoHeight"
:fixed="fixed" :cursorSpacing="cursorSpacing" :cursor="cursor" :showConfirmBar="showConfirmBar"
:selectionStart="selectionStart" :selectionEnd="selectionEnd" :adjust-position="false"
:disableDefaultPadding="disableDefaultPadding" :holdKeyboard="holdKeyboard" :maxlength="maxlength"
:confirmType="confirmType" :ignoreCompositionEvent="ignoreCompositionEvent" @focus="onFocus" @blur="onBlur"
@linechange="onLinechange" @input="onInput" @confirm="onConfirm"
@keyboardheightchange="onKeyboardheightchange"></textarea>
<text class="u-textarea__count" :style="{
'background-color': disabled ? 'transparent' : '#fff',
}" v-if="count">{{ innerValue.length }}/{{ maxlength }}</text>
</view>
可以查看到:adjust-position="false"直接强制设置为false
0 个回复