聊天输入框高度自适应
This commit is contained in:
parent
b63d268712
commit
bf8f2c90e6
@ -931,6 +931,10 @@ export struct ChatP2PPage {
|
|||||||
this.chatViewModel.sendTextMessage(text, this.replyMsg)
|
this.chatViewModel.sendTextMessage(text, this.replyMsg)
|
||||||
this.clearInput(true)
|
this.clearInput(true)
|
||||||
},
|
},
|
||||||
|
onChangeInputHeight:(height:number)=> {
|
||||||
|
this.bottomHeight = height+10
|
||||||
|
this.computeScrollHeight()
|
||||||
|
},
|
||||||
inputStyle: this.inputStyle
|
inputStyle: this.inputStyle
|
||||||
}).alignRules({
|
}).alignRules({
|
||||||
left: { anchor: "chat_input", align: HorizontalAlign.Start },
|
left: { anchor: "chat_input", align: HorizontalAlign.Start },
|
||||||
|
|||||||
@ -851,6 +851,9 @@ export struct ChatTeamPage {
|
|||||||
this.aitManager.cleanAit()
|
this.aitManager.cleanAit()
|
||||||
this.builderSpans.splice(0, this.builderSpans.length)
|
this.builderSpans.splice(0, this.builderSpans.length)
|
||||||
},
|
},
|
||||||
|
onChangeInputHeight:(height:number)=>{
|
||||||
|
this.bottomHeight = height
|
||||||
|
},
|
||||||
inputStyle: this.inputStyle,
|
inputStyle: this.inputStyle,
|
||||||
mute: this.chatViewModel.isMuteModel,
|
mute: this.chatViewModel.isMuteModel,
|
||||||
teamId: this.chatTeamInfo.team?.teamId,
|
teamId: this.chatTeamInfo.team?.teamId,
|
||||||
|
|||||||
@ -14,7 +14,7 @@ export struct ApplyViews {
|
|||||||
Row() {
|
Row() {
|
||||||
Column(){
|
Column(){
|
||||||
Row({space:10}){
|
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'))
|
.alt($r('app.media.userPhoto_default'))
|
||||||
.width(50).height(50).borderRadius(5)
|
.width(50).height(50).borderRadius(5)
|
||||||
Column(){
|
Column(){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user