只有在华为p40下出现文本框无法聚焦的情况,连placeholder也没有显示
<u-popup v-model="imgCommitShow" mode="bottom" border-radius="20" closeable="true"
close-icon-color="#333333" close-icon-size="28">
<view class="center commitTitle f30">上传图片</view>
<scroll-view scroll-y="true" style="height:500rpx;">
<textarea v-model="content" class="commitTxt f24" :cursor-spacing="10" placeholder="输入文字说明" cols="30" rows="10" :focus="true" :auto-focus="true"></textarea>
<view class="uploadBox">
<view class="uploadImg mr30" v-for="(imgItem,idx) in imgCommitList" :key="idx">
<image :src="imgItem.url" mode="" class="hadUpload"></image>
<image src="https://xcx.dst-zy.com/accessory/zhiyunjiao/images/deleteIcon.png" mode=""
class="deleteIcon" @click="deleteUploadImg(idx)"></image>
</view>
<view class="uploadBtn mr30" v-if="imgCommitList.length<3" @click="handleUploadImg">
<image src="https://xcx.dst-zy.com/accessory/zhiyunjiao/images/add.png" mode=""></image>
<text>{{imgCommitList.length==0?'上传图片':'继续上传'}} </text>
</view>
</view>
</scroll-view>
<view class="confirmBtn white boldFont f30" @click="addImageCommit">
确定
</view>
</u-popup>
使用变量来控制placeholder内容 和 自动聚焦 试下呢 或者 在textarea在scroll-view里面可以不设置fixed属性试下
需要价格延迟一到两秒才可以看到效果,我就是这么写的