mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 03:01:12 +00:00
no message
This commit is contained in:
parent
6dc5ae1ae4
commit
a0aa04fd8c
@ -608,7 +608,7 @@ export default {
|
|||||||
|
|
||||||
recordConvertFooterStyle() {
|
recordConvertFooterStyle() {
|
||||||
const {recordConvertFocus, keyboardShow, keyboardHeight} = this;
|
const {recordConvertFocus, keyboardShow, keyboardHeight} = this;
|
||||||
return (recordConvertFocus && keyboardShow && keyboardHeight > 120) ? {
|
return (recordConvertFocus && keyboardShow && keyboardHeight > 120 && $A.isIos()) ? {
|
||||||
alignItems: 'flex-start',
|
alignItems: 'flex-start',
|
||||||
transform: 'translateY(12px)'
|
transform: 'translateY(12px)'
|
||||||
} : {}
|
} : {}
|
||||||
@ -715,7 +715,7 @@ export default {
|
|||||||
|
|
||||||
chatInputBoxStyle({iOSDevices, fullInput, keyboardShow, viewportHeight, safeAreaSize}) {
|
chatInputBoxStyle({iOSDevices, fullInput, keyboardShow, viewportHeight, safeAreaSize}) {
|
||||||
const style = {}
|
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'
|
style.height = Math.max(100, viewportHeight - 70 - safeAreaSize.top) + 'px'
|
||||||
} else {
|
} else {
|
||||||
style.paddingBottom = `${safeAreaSize.bottom}px`
|
style.paddingBottom = `${safeAreaSize.bottom}px`
|
||||||
|
|||||||
@ -819,7 +819,6 @@ export default {
|
|||||||
preventRangeLoad: 0, // 大于0阻止范围加载
|
preventRangeLoad: 0, // 大于0阻止范围加载
|
||||||
preventToBottom: false, // 阻止滚动到底部
|
preventToBottom: false, // 阻止滚动到底部
|
||||||
scrollToBottomRefresh: false, // 滚动到底部重新获取消息
|
scrollToBottomRefresh: false, // 滚动到底部重新获取消息
|
||||||
androidKeyboardVisible: false, // Android键盘是否可见
|
|
||||||
replyMsgAutoMention: false, // 允许回复消息后自动@
|
replyMsgAutoMention: false, // 允许回复消息后自动@
|
||||||
waitUnreadData: new Map(), // 等待未读数据
|
waitUnreadData: new Map(), // 等待未读数据
|
||||||
replyEmojiIngs: {}, // 是否回复表情中(避免重复回复)
|
replyEmojiIngs: {}, // 是否回复表情中(避免重复回复)
|
||||||
@ -881,6 +880,8 @@ export default {
|
|||||||
'cacheTranslationLanguage',
|
'cacheTranslationLanguage',
|
||||||
'longpressData',
|
'longpressData',
|
||||||
'viewportHeight',
|
'viewportHeight',
|
||||||
|
'keyboardShow',
|
||||||
|
'keyboardHeight',
|
||||||
]),
|
]),
|
||||||
|
|
||||||
...mapGetters(['isLoad', 'isMessengerPage', 'getDialogQuote']),
|
...mapGetters(['isLoad', 'isMessengerPage', 'getDialogQuote']),
|
||||||
@ -1022,23 +1023,23 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
isDefaultSize() {
|
isDefaultSize() {
|
||||||
return this.windowScrollY === 0 && !this.androidKeyboardVisible
|
return !(this.keyboardShow && this.keyboardHeight > 120)
|
||||||
},
|
},
|
||||||
|
|
||||||
quickShow() {
|
quickShow() {
|
||||||
return this.quickMsgs.length > 0 && this.isDefaultSize && this.quoteId === 0
|
return this.isDefaultSize && this.quickMsgs.length > 0 && this.quoteId === 0
|
||||||
},
|
},
|
||||||
|
|
||||||
todoShow() {
|
todoShow() {
|
||||||
return this.todoList.length > 0 && this.isDefaultSize && this.quoteId === 0
|
return this.isDefaultSize && this.todoList.length > 0 && this.quoteId === 0
|
||||||
},
|
},
|
||||||
|
|
||||||
typeShow() {
|
typeShow() {
|
||||||
return this.msgTypes.length > 1 && this.isDefaultSize && !this.searchShow
|
return this.isDefaultSize && this.msgTypes.length > 1 && !this.searchShow
|
||||||
},
|
},
|
||||||
|
|
||||||
topShow() {
|
topShow() {
|
||||||
return this.topMsg && this.isDefaultSize && !this.searchShow && this.msgType === ''
|
return this.isDefaultSize && this.topMsg && !this.searchShow && this.msgType === ''
|
||||||
},
|
},
|
||||||
|
|
||||||
wrapperClass() {
|
wrapperClass() {
|
||||||
@ -1385,7 +1386,6 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
windowHeight() {
|
windowHeight() {
|
||||||
this.androidKeyboardVisible = $A.isAndroid() && $A.eeuiAppKeyboardStatus()
|
|
||||||
requestAnimationFrame(_ => {
|
requestAnimationFrame(_ => {
|
||||||
this.$refs.input?.updateTools()
|
this.$refs.input?.updateTools()
|
||||||
})
|
})
|
||||||
@ -2272,7 +2272,7 @@ export default {
|
|||||||
|
|
||||||
onTouchStart() {
|
onTouchStart() {
|
||||||
// Android 阻止长按反馈导致失去焦点页面抖动
|
// Android 阻止长按反馈导致失去焦点页面抖动
|
||||||
if (this.androidKeyboardVisible) {
|
if (this.keyboardShow) {
|
||||||
$A.eeuiAppSetDisabledUserLongClickSelect(500);
|
$A.eeuiAppSetDisabledUserLongClickSelect(500);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -97,7 +97,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</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">
|
<Alert v-if="taskDetail.task_user !== undefined && getOwner.length === 0" class="receive-box" type="warning">
|
||||||
<span class="receive-text">{{$L('该任务尚未被领取,点击这里')}}</span>
|
<span class="receive-text">{{$L('该任务尚未被领取,点击这里')}}</span>
|
||||||
<EPopover
|
<EPopover
|
||||||
@ -758,7 +758,8 @@ export default {
|
|||||||
'taskFiles',
|
'taskFiles',
|
||||||
'taskPriority',
|
'taskPriority',
|
||||||
|
|
||||||
'formOptions'
|
'formOptions',
|
||||||
|
'keyboardShow'
|
||||||
]),
|
]),
|
||||||
|
|
||||||
projectName() {
|
projectName() {
|
||||||
@ -842,15 +843,17 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
taskDetailStyle() {
|
taskDetailStyle() {
|
||||||
const {modalMode, windowHeight, hasOpenDialog} = this;
|
const {modalMode, keyboardShow, windowHeight, hasOpenDialog} = this;
|
||||||
const height = Math.min(1100, windowHeight)
|
const style = {}
|
||||||
if (modalMode && hasOpenDialog) {
|
if (modalMode) {
|
||||||
const factor = height > 900 ? 200 : 70;
|
if (hasOpenDialog) {
|
||||||
return {
|
style.maxHeight = `${Math.min(1100, windowHeight) - (windowHeight > 900 ? 200 : 70) - 30}px`;
|
||||||
maxHeight: (height - factor - 30) + 'px'
|
}
|
||||||
|
if (keyboardShow && $A.isIos()) {
|
||||||
|
style.overflow = 'hidden'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return {}
|
return style
|
||||||
},
|
},
|
||||||
|
|
||||||
cutTime() {
|
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' : '',
|
labelWidth: windowWidth > 576 ? 'auto' : '',
|
||||||
},
|
},
|
||||||
|
|
||||||
// 键盘状态(仅iOS)
|
// 键盘状态
|
||||||
keyboardShow: false, // 键盘可见
|
keyboardShow: false, // 键盘可见
|
||||||
keyboardHeight: 0, // 键盘高度
|
keyboardHeight: 0, // 键盘高度
|
||||||
|
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
Subproject commit b9d4772f665d36e018f35d791f3c8b9a934c035e
|
Subproject commit 7be2bcdaa7ad68b1912099b6a60e92cb679aab46
|
||||||
Loading…
x
Reference in New Issue
Block a user