We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f69531b commit d00f7bbCopy full SHA for d00f7bb
src/ChatWindow/Message/AudioPlayer.vue
@@ -2,9 +2,13 @@
2
<div>
3
<div class="vac-audio-player">
4
<div class="vac-svg-button" @click="playback">
5
- <svg-icon :name="isPlaying ? 'audio-pause' : 'audio-play'" />
+ <slot v-if="isPlaying" name="audio-pause-icon">
6
+ <svg-icon name="audio-pause" />
7
+ </slot>
8
+ <slot v-else name="audio-play-icon">
9
+ <svg-icon name="audio-play" />
10
11
</div>
-
12
<audio-control
13
ref-id="progress"
14
:percentage="progress"
@@ -54,7 +58,7 @@ export default {
54
58
return null
55
59
},
56
60
time() {
57
- return this.isPlaying ? this.playedTime : this.duration
61
+ return this.progress > 1 ? this.playedTime : this.duration
62
}
63
64
0 commit comments