mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-21 21:01:20 -08:00
fix miniProgressBar
This commit is contained in:
1 parent
cf5099f259
commit
64015fcec2
4 files changed
+20
-27
No files matched your search
@@ -3,20 +3,7 @@ export default function miniProgressBar(art) {
|
||||
|
||||
layers.add({
|
||||
name: 'miniProgressBar',
|
||||
style: {
|
||||
display: 'none',
|
||||
position: 'absolute',
|
||||
left: 0,
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
height: '2px',
|
||||
backgroundColor: 'var(--theme)',
|
||||
},
|
||||
mounted($progressBar) {
|
||||
art.on('control', (value) => {
|
||||
$progressBar.style.display = value ? 'none' : 'block';
|
||||
});
|
||||
|
||||
art.on('destroy', () => {
|
||||
$progressBar.style.display = 'none';
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user