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
ec2e1e3152
commit
f6ee630615
@ -189,7 +189,7 @@
|
|||||||
:data-transfer="true"
|
:data-transfer="true"
|
||||||
class="chat-input-record-transfer"
|
class="chat-input-record-transfer"
|
||||||
:class="recordClassName"
|
:class="recordClassName"
|
||||||
:style="recordTransferStyle"
|
:style="recordStyle"
|
||||||
@click="stopRecord">
|
@click="stopRecord">
|
||||||
<div v-if="recordDuration > 0" class="record-duration">{{recordFormatDuration}}</div>
|
<div v-if="recordDuration > 0" class="record-duration">{{recordFormatDuration}}</div>
|
||||||
<div v-else class="record-loading"><Loading type="pure"/></div>
|
<div v-else class="record-loading"><Loading type="pure"/></div>
|
||||||
@ -204,20 +204,22 @@
|
|||||||
v-transfer-dom
|
v-transfer-dom
|
||||||
:data-transfer="true"
|
:data-transfer="true"
|
||||||
class="chat-input-convert-transfer"
|
class="chat-input-convert-transfer"
|
||||||
:style="recordTransferStyle">
|
:style="recordConvertStyle">
|
||||||
<div class="convert-box">
|
<div class="convert-box">
|
||||||
<div class="convert-body">
|
<div class="convert-body">
|
||||||
<div class="convert-content" :class="{'min-hight-mode': keyboardType === 'show'}">
|
<div class="convert-content">
|
||||||
<Input
|
<Input
|
||||||
type="textarea"
|
type="textarea"
|
||||||
class="convert-result no-dark-content"
|
class="convert-result no-dark-content"
|
||||||
v-model="recordConvertResult"
|
v-model="recordConvertResult"
|
||||||
:rows="1"
|
:rows="1"
|
||||||
:autosize="{minRows: 1, maxRows: 5}"
|
:autosize="{minRows: 1, maxRows: 5}"
|
||||||
:placeholder="recordConvertStatus === 0 ? '...' : ''"/>
|
:placeholder="recordConvertStatus === 0 ? '...' : ''"
|
||||||
|
@on-focus="recordConvertFocus=true"
|
||||||
|
@on-blur="recordConvertFocus=false"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ul class="convert-footer">
|
<ul class="convert-footer" :style="recordConvertFooterStyle">
|
||||||
<li @click="recordConvertIng=false">
|
<li @click="recordConvertIng=false">
|
||||||
<i class="taskfont"></i>
|
<i class="taskfont"></i>
|
||||||
<span>{{$L('取消')}}</span>
|
<span>{{$L('取消')}}</span>
|
||||||
@ -376,8 +378,9 @@ export default {
|
|||||||
recordState: "stop",
|
recordState: "stop",
|
||||||
recordDuration: 0,
|
recordDuration: 0,
|
||||||
recordIndex: window.modalTransferIndex,
|
recordIndex: window.modalTransferIndex,
|
||||||
|
|
||||||
recordConvertIng: false,
|
recordConvertIng: false,
|
||||||
|
recordConvertFocus: false,
|
||||||
recordConvertStatus: 0, // 0: 转换中 1: 转换成功 2: 转换失败
|
recordConvertStatus: 0, // 0: 转换中 1: 转换成功 2: 转换失败
|
||||||
recordConvertResult: '',
|
recordConvertResult: '',
|
||||||
|
|
||||||
@ -519,7 +522,6 @@ export default {
|
|||||||
|
|
||||||
'cacheKeyboard',
|
'cacheKeyboard',
|
||||||
|
|
||||||
'keyboardType',
|
|
||||||
'isModKey',
|
'isModKey',
|
||||||
]),
|
]),
|
||||||
|
|
||||||
@ -551,17 +553,32 @@ export default {
|
|||||||
return ['ready', 'ing'].includes(recordState)
|
return ['ready', 'ing'].includes(recordState)
|
||||||
},
|
},
|
||||||
|
|
||||||
recordTransferStyle() {
|
recordStyle() {
|
||||||
const {windowScrollY, recordIndex} = this;
|
const {windowScrollY, recordIndex} = this;
|
||||||
const style = {
|
const style = {
|
||||||
zIndex: recordIndex,
|
zIndex: recordIndex,
|
||||||
}
|
}
|
||||||
if (windowScrollY > 0) {
|
if (windowScrollY > 0) {
|
||||||
style.marginTop = windowScrollY + 'px'
|
style.marginTop = (windowScrollY / 2) + 'px'
|
||||||
}
|
}
|
||||||
return style
|
return style
|
||||||
},
|
},
|
||||||
|
|
||||||
|
recordConvertStyle() {
|
||||||
|
const {recordIndex} = this;
|
||||||
|
return {
|
||||||
|
zIndex: recordIndex,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
recordConvertFooterStyle() {
|
||||||
|
const {recordConvertFocus} = this;
|
||||||
|
return recordConvertFocus ? {
|
||||||
|
alignItems: 'flex-start',
|
||||||
|
transform: 'translateY(12px)'
|
||||||
|
} : {}
|
||||||
|
},
|
||||||
|
|
||||||
boxClass() {
|
boxClass() {
|
||||||
const array = [];
|
const array = [];
|
||||||
if (this.recordShow) {
|
if (this.recordShow) {
|
||||||
@ -1327,6 +1344,7 @@ export default {
|
|||||||
this.recordBlob = blob;
|
this.recordBlob = blob;
|
||||||
this.recordDuration = duration;
|
this.recordDuration = duration;
|
||||||
if (isConvert === true) {
|
if (isConvert === true) {
|
||||||
|
this.blur();
|
||||||
this.convertRecord();
|
this.convertRecord();
|
||||||
} else {
|
} else {
|
||||||
this.uploadRecord();
|
this.uploadRecord();
|
||||||
|
|||||||
@ -769,9 +769,6 @@
|
|||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
transform: translateY(12px);
|
transform: translateY(12px);
|
||||||
transition: transform 0.3s;
|
transition: transform 0.3s;
|
||||||
&.min-hight-mode {
|
|
||||||
transform: translateY(-12px);
|
|
||||||
}
|
|
||||||
&:before {
|
&:before {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -817,6 +814,7 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
margin-top: 64px;
|
||||||
margin-bottom: 64px;
|
margin-bottom: 64px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
> i {
|
> i {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user