提交 7ea5d4cb 编写于 作者: Q qiang

fix: 修复 textarea 组件固定 box-sizing 导致部分情况显示异常的问题 question/121893

上级 f222a1cd
<template>
<uni-textarea v-on="$listeners">
<div class="uni-textarea-wrapper">
<div
ref="wrapper"
class="uni-textarea-wrapper"
>
<div
v-show="!(composing || valueSync.length)"
ref="placeholder"
......@@ -144,7 +147,8 @@ export default {
lineCount
})
if (this.autoHeight) {
this.$el.style.height = this.height + 'px'
this.$el.style.height = 'auto'
this.$refs.wrapper.style.height = this.height + 'px'
}
}
},
......@@ -246,7 +250,6 @@ uni-textarea {
line-height: normal;
white-space: pre-wrap;
word-break: break-all;
box-sizing: content-box !important;
}
uni-textarea[hidden] {
display: none;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册