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