template
<textarea
class="chat-footer-content-input uni-textarea"
type="text"
placeholder="请输入内容"
:maxlength="300"
:auto-height="true"
:adjust-position="false"
@keyboardheightchange="onKeyboardheightchange"
></textarea>
script
onKeyboardheightchange: function (event: InputKeyboardHeightChangeEvent):void{
console.log(event.detail.height)
}
1***@qq.com
uniappx 没有该api
2024-03-27 11:24