no message

This commit is contained in:
kuaifan 2025-04-12 15:08:33 +08:00
parent 6dc5ae1ae4
commit a0aa04fd8c
5 changed files with 24 additions and 21 deletions

View File

@ -608,7 +608,7 @@ export default {
recordConvertFooterStyle() {
const {recordConvertFocus, keyboardShow, keyboardHeight} = this;
return (recordConvertFocus && keyboardShow && keyboardHeight > 120) ? {
return (recordConvertFocus && keyboardShow && keyboardHeight > 120 && $A.isIos()) ? {
alignItems: 'flex-start',
transform: 'translateY(12px)'
} : {}
@ -715,7 +715,7 @@ export default {
chatInputBoxStyle({iOSDevices, fullInput, keyboardShow, viewportHeight, safeAreaSize}) {
const style = {}
if (iOSDevices && fullInput && keyboardShow && viewportHeight > 0) {
if (iOSDevices && fullInput && keyboardShow && viewportHeight > 0 && $A.isIos()) {
style.height = Math.max(100, viewportHeight - 70 - safeAreaSize.top) + 'px'
} else {
style.paddingBottom = `${safeAreaSize.bottom}px`

View File

@ -819,7 +819,6 @@ export default {
preventRangeLoad: 0, // 0
preventToBottom: false, //
scrollToBottomRefresh: false, //
androidKeyboardVisible: false, // Android
replyMsgAutoMention: false, // @
waitUnreadData: new Map(), //
replyEmojiIngs: {}, //
@ -881,6 +880,8 @@ export default {
'cacheTranslationLanguage',
'longpressData',
'viewportHeight',
'keyboardShow',
'keyboardHeight',
]),
...mapGetters(['isLoad', 'isMessengerPage', 'getDialogQuote']),
@ -1022,23 +1023,23 @@ export default {
},
isDefaultSize() {
return this.windowScrollY === 0 && !this.androidKeyboardVisible
return !(this.keyboardShow && this.keyboardHeight > 120)
},
quickShow() {
return this.quickMsgs.length > 0 && this.isDefaultSize && this.quoteId === 0
return this.isDefaultSize && this.quickMsgs.length > 0 && this.quoteId === 0
},
todoShow() {
return this.todoList.length > 0 && this.isDefaultSize && this.quoteId === 0
return this.isDefaultSize && this.todoList.length > 0 && this.quoteId === 0
},
typeShow() {
return this.msgTypes.length > 1 && this.isDefaultSize && !this.searchShow
return this.isDefaultSize && this.msgTypes.length > 1 && !this.searchShow
},
topShow() {
return this.topMsg && this.isDefaultSize && !this.searchShow && this.msgType === ''
return this.isDefaultSize && this.topMsg && !this.searchShow && this.msgType === ''
},
wrapperClass() {
@ -1385,7 +1386,6 @@ export default {
},
windowHeight() {
this.androidKeyboardVisible = $A.isAndroid() && $A.eeuiAppKeyboardStatus()
requestAnimationFrame(_ => {
this.$refs.input?.updateTools()
})
@ -2272,7 +2272,7 @@ export default {
onTouchStart() {
// Android
if (this.androidKeyboardVisible) {
if (this.keyboardShow) {
$A.eeuiAppSetDisabledUserLongClickSelect(500);
}
},

View File

@ -97,7 +97,7 @@
</div>
</div>
</div>
<Scrollbar ref="scroller" class="scroller">
<Scrollbar ref="scroller" class="scroller" :touch-content-blur="false">
<Alert v-if="taskDetail.task_user !== undefined && getOwner.length === 0" class="receive-box" type="warning">
<span class="receive-text">{{$L('该任务尚未被领取,点击这里')}}</span>
<EPopover
@ -758,7 +758,8 @@ export default {
'taskFiles',
'taskPriority',
'formOptions'
'formOptions',
'keyboardShow'
]),
projectName() {
@ -842,15 +843,17 @@ export default {
},
taskDetailStyle() {
const {modalMode, windowHeight, hasOpenDialog} = this;
const height = Math.min(1100, windowHeight)
if (modalMode && hasOpenDialog) {
const factor = height > 900 ? 200 : 70;
return {
maxHeight: (height - factor - 30) + 'px'
const {modalMode, keyboardShow, windowHeight, hasOpenDialog} = this;
const style = {}
if (modalMode) {
if (hasOpenDialog) {
style.maxHeight = `${Math.min(1100, windowHeight) - (windowHeight > 900 ? 200 : 70) - 30}px`;
}
if (keyboardShow && $A.isIos()) {
style.overflow = 'hidden'
}
}
return {}
return style
},
cutTime() {

View File

@ -43,7 +43,7 @@ export default {
labelWidth: windowWidth > 576 ? 'auto' : '',
},
// 键盘状态仅iOS
// 键盘状态
keyboardShow: false, // 键盘可见
keyboardHeight: 0, // 键盘高度

@ -1 +1 @@
Subproject commit b9d4772f665d36e018f35d791f3c8b9a934c035e
Subproject commit 7be2bcdaa7ad68b1912099b6a60e92cb679aab46