u--textarea 文本域自动高度问题

<u--textarea class="textarea-content" v-model="healthModel.currentConditionConsequence"
                        placeholder="请输入现患疾病引起后果描述" autoHeight maxlength='255' count border='none'>
                    </u--textarea>

设置autoHeight 和最大值   count 是统计字数

.textarea-content {
width: 97%;
min-height: 230upx;
background: #F6F8F9;
border-radius: 10upx;
margin-top: 20upx;
padding: 10upx 20upx 40upx 20upx;
box-sizing: border-box;
}

设置最小高度,padding是怕字数统计那有遮挡

posted @ 2024-05-24 17:45  prince11  阅读(173)  评论(0编辑  收藏  举报