mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-12 06:26:16 -08:00
build all packages
This commit is contained in:
1 parent
2fcd44e8e7
commit
baaaa4c56c
29 files changed
+189
-203
No files matched your search
@@ -17,18 +17,14 @@ export default function miniProgressBar(art) {
|
||||
background: theme,
|
||||
},
|
||||
mounted($progressBar) {
|
||||
art.on('controls:show', () => {
|
||||
$progressBar.style.display = 'none';
|
||||
art.on('control:toggle', value => {
|
||||
$progressBar.style.display = value ? 'none' : 'block';
|
||||
});
|
||||
|
||||
art.on('destroy', () => {
|
||||
$progressBar.style.display = 'none';
|
||||
});
|
||||
|
||||
art.on('controls:hide', () => {
|
||||
$progressBar.style.display = 'block';
|
||||
});
|
||||
|
||||
art.on('video:timeupdate', () => {
|
||||
$progressBar.style.width = `${player.played * 100}%`;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user