mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-14 12:42:51 +00:00
no message
This commit is contained in:
parent
6cffe9baed
commit
ec2e1e3152
@ -283,7 +283,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init() {
|
init() {
|
||||||
this.modalTransferIndex = window.modalTransferIndex = window.modalTransferIndex + 1
|
this.modalTransferIndex = ++window.modalTransferIndex
|
||||||
if (this.$route.query.id) {
|
if (this.$route.query.id) {
|
||||||
this.getInfo()
|
this.getInfo()
|
||||||
}
|
}
|
||||||
|
|||||||
@ -184,7 +184,7 @@
|
|||||||
<!-- 录音浮窗 -->
|
<!-- 录音浮窗 -->
|
||||||
<transition name="fade">
|
<transition name="fade">
|
||||||
<div
|
<div
|
||||||
v-if="['ready', 'ing'].includes(recordState)"
|
v-if="recordShow"
|
||||||
v-transfer-dom
|
v-transfer-dom
|
||||||
:data-transfer="true"
|
:data-transfer="true"
|
||||||
class="chat-input-record-transfer"
|
class="chat-input-record-transfer"
|
||||||
@ -207,7 +207,7 @@
|
|||||||
:style="recordTransferStyle">
|
:style="recordTransferStyle">
|
||||||
<div class="convert-box">
|
<div class="convert-box">
|
||||||
<div class="convert-body">
|
<div class="convert-body">
|
||||||
<div class="convert-content">
|
<div class="convert-content" :class="{'min-hight-mode': keyboardType === 'show'}">
|
||||||
<Input
|
<Input
|
||||||
type="textarea"
|
type="textarea"
|
||||||
class="convert-result no-dark-content"
|
class="convert-result no-dark-content"
|
||||||
@ -375,6 +375,8 @@ export default {
|
|||||||
recordInter: null,
|
recordInter: null,
|
||||||
recordState: "stop",
|
recordState: "stop",
|
||||||
recordDuration: 0,
|
recordDuration: 0,
|
||||||
|
recordIndex: window.modalTransferIndex,
|
||||||
|
|
||||||
recordConvertIng: false,
|
recordConvertIng: false,
|
||||||
recordConvertStatus: 0, // 0: 转换中 1: 转换成功 2: 转换失败
|
recordConvertStatus: 0, // 0: 转换中 1: 转换成功 2: 转换失败
|
||||||
recordConvertResult: '',
|
recordConvertResult: '',
|
||||||
@ -517,6 +519,7 @@ export default {
|
|||||||
|
|
||||||
'cacheKeyboard',
|
'cacheKeyboard',
|
||||||
|
|
||||||
|
'keyboardType',
|
||||||
'isModKey',
|
'isModKey',
|
||||||
]),
|
]),
|
||||||
|
|
||||||
@ -543,16 +546,25 @@ export default {
|
|||||||
return this.dialogData.type === 'user' && !this.dialogData.bot
|
return this.dialogData.type === 'user' && !this.dialogData.bot
|
||||||
},
|
},
|
||||||
|
|
||||||
|
recordShow() {
|
||||||
|
const {recordState} = this;
|
||||||
|
return ['ready', 'ing'].includes(recordState)
|
||||||
|
},
|
||||||
|
|
||||||
recordTransferStyle() {
|
recordTransferStyle() {
|
||||||
const {windowScrollY} = this;
|
const {windowScrollY, recordIndex} = this;
|
||||||
return windowScrollY > 0 ? {
|
const style = {
|
||||||
marginTop: (windowScrollY / 2) + 'px'
|
zIndex: recordIndex,
|
||||||
} : null
|
}
|
||||||
|
if (windowScrollY > 0) {
|
||||||
|
style.marginTop = windowScrollY + 'px'
|
||||||
|
}
|
||||||
|
return style
|
||||||
},
|
},
|
||||||
|
|
||||||
boxClass() {
|
boxClass() {
|
||||||
const array = [];
|
const array = [];
|
||||||
if (['ready', 'ing'].includes(this.recordState)) {
|
if (this.recordShow) {
|
||||||
if (this.recordState === 'ing' && this.recordDuration > 0) {
|
if (this.recordState === 'ing' && this.recordDuration > 0) {
|
||||||
array.push('record-progress');
|
array.push('record-progress');
|
||||||
} else {
|
} else {
|
||||||
@ -804,6 +816,18 @@ export default {
|
|||||||
this.$emit('on-record-state', state)
|
this.$emit('on-record-state', state)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
recordShow(show) {
|
||||||
|
if (show) {
|
||||||
|
this.recordIndex = ++window.modalTransferIndex
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
recordConvertIng(show) {
|
||||||
|
if (show) {
|
||||||
|
this.recordIndex = ++window.modalTransferIndex
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
fullInput(val) {
|
fullInput(val) {
|
||||||
this.quill?.enable(!val)
|
this.quill?.enable(!val)
|
||||||
},
|
},
|
||||||
|
|||||||
@ -768,6 +768,10 @@
|
|||||||
padding: 18px;
|
padding: 18px;
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
transform: translateY(12px);
|
transform: translateY(12px);
|
||||||
|
transition: transform 0.3s;
|
||||||
|
&.min-hight-mode {
|
||||||
|
transform: translateY(-12px);
|
||||||
|
}
|
||||||
&:before {
|
&:before {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -785,6 +789,7 @@
|
|||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
caret-color: #ffffff;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
outline: none;
|
outline: none;
|
||||||
resize: none;
|
resize: none;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user