mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
no message
This commit is contained in:
parent
6dc5ae1ae4
commit
a0aa04fd8c
@ -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`
|
||||
|
||||
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
@ -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() {
|
||||
|
||||
2
resources/assets/js/store/state.js
vendored
2
resources/assets/js/store/state.js
vendored
@ -43,7 +43,7 @@ export default {
|
||||
labelWidth: windowWidth > 576 ? 'auto' : '',
|
||||
},
|
||||
|
||||
// 键盘状态(仅iOS)
|
||||
// 键盘状态
|
||||
keyboardShow: false, // 键盘可见
|
||||
keyboardHeight: 0, // 键盘高度
|
||||
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit b9d4772f665d36e018f35d791f3c8b9a934c035e
|
||||
Subproject commit 7be2bcdaa7ad68b1912099b6a60e92cb679aab46
|
||||
Loading…
x
Reference in New Issue
Block a user