聊天输入框高度自适应

This commit is contained in:
xiaoxiao 2025-08-15 17:16:19 +08:00
parent b63d268712
commit bf8f2c90e6
3 changed files with 8 additions and 1 deletions

View File

@ -931,6 +931,10 @@ export struct ChatP2PPage {
this.chatViewModel.sendTextMessage(text, this.replyMsg)
this.clearInput(true)
},
onChangeInputHeight:(height:number)=> {
this.bottomHeight = height+10
this.computeScrollHeight()
},
inputStyle: this.inputStyle
}).alignRules({
left: { anchor: "chat_input", align: HorizontalAlign.Start },

View File

@ -851,6 +851,9 @@ export struct ChatTeamPage {
this.aitManager.cleanAit()
this.builderSpans.splice(0, this.builderSpans.length)
},
onChangeInputHeight:(height:number)=>{
this.bottomHeight = height
},
inputStyle: this.inputStyle,
mute: this.chatViewModel.isMuteModel,
teamId: this.chatTeamInfo.team?.teamId,

View File

@ -14,7 +14,7 @@ export struct ApplyViews {
Row() {
Column(){
Row({space:10}){
Image(this.isApply?this.applyItme.photo:BasicConstant.urlImage+this.historyItem.patient_photo)
Image(this.isApply?BasicConstant.urlImage+this.applyItme.photo:BasicConstant.urlImage+this.historyItem.patient_photo)
.alt($r('app.media.userPhoto_default'))
.width(50).height(50).borderRadius(5)
Column(){