mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-21 16:48:13 +00:00
perf: 优化录音效果
This commit is contained in:
parent
dbb1033911
commit
eaabc5852c
@ -297,11 +297,11 @@ export default {
|
|||||||
|
|
||||||
boxClass() {
|
boxClass() {
|
||||||
const array = [];
|
const array = [];
|
||||||
if (this.recordState === 'ing') {
|
if (['ready', 'ing'].includes(this.recordState)) {
|
||||||
if (this.recordDuration === 0) {
|
if (this.recordState === 'ing' && this.recordDuration > 0) {
|
||||||
array.push('record-ing');
|
|
||||||
} else {
|
|
||||||
array.push('record-progress');
|
array.push('record-progress');
|
||||||
|
} else {
|
||||||
|
array.push('record-ready');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.showMore) {
|
if (this.showMore) {
|
||||||
|
|||||||
@ -413,7 +413,7 @@ export default {
|
|||||||
|
|
||||||
wrapperClass() {
|
wrapperClass() {
|
||||||
if (['ready', 'ing'].includes(this.recordState)) {
|
if (['ready', 'ing'].includes(this.recordState)) {
|
||||||
return ['record-ing']
|
return ['record-ready']
|
||||||
}
|
}
|
||||||
return null
|
return null
|
||||||
},
|
},
|
||||||
|
|||||||
@ -5,13 +5,13 @@
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
&.record-ing {
|
&.record-ready {
|
||||||
.chat-input-wrapper {
|
.chat-input-wrapper {
|
||||||
.chat-toolbar {
|
.chat-toolbar {
|
||||||
> li {
|
> li {
|
||||||
&.chat-send {
|
&.chat-send {
|
||||||
&:before {
|
&:before {
|
||||||
transition: all 1s ease;
|
transition: all 0.6s ease;
|
||||||
transform: translate(-50%, -50%) scale(2);
|
transform: translate(-50%, -50%) scale(2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|
||||||
&.record-ing {
|
&.record-ready {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user