|
|
@@ -19,7 +19,6 @@ const resize = () => {
|
|
|
if (!el) return
|
|
|
el.style.height = 'auto' // 先清空旧高度
|
|
|
const scrollHeight = el.scrollHeight
|
|
|
- console.log('scrollHeight:', scrollHeight)
|
|
|
const maxHeight = 92 // 四行时高度
|
|
|
|
|
|
if (scrollHeight <= maxHeight) {
|
|
|
@@ -29,7 +28,6 @@ const resize = () => {
|
|
|
el.style.overflowY = 'auto'
|
|
|
el.style.height = maxHeight + 'px'
|
|
|
}
|
|
|
- console.log('New height:', el.style.height)
|
|
|
}
|
|
|
|
|
|
// 处理中文输入法
|