mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 23:51:20 -08:00
add bar
This commit is contained in:
1 parent
f58684991f
commit
e988f00cf8
15 files changed
+538
-140
No files matched your search
@@ -29,7 +29,7 @@ export default class Controls {
|
||||
this.add({
|
||||
control: Progress,
|
||||
disable: false,
|
||||
html: 'Progress',
|
||||
html: '',
|
||||
position: 'top',
|
||||
index: 10
|
||||
});
|
||||
@@ -37,7 +37,7 @@ export default class Controls {
|
||||
this.add({
|
||||
control: Highlight,
|
||||
disable: false,
|
||||
html: 'Highlight',
|
||||
html: '<div class="art-progress-highlight"></div>',
|
||||
position: 'top',
|
||||
index: 20
|
||||
});
|
||||
@@ -45,7 +45,7 @@ export default class Controls {
|
||||
this.add({
|
||||
control: Screenshot,
|
||||
disable: false,
|
||||
html: 'Screenshot',
|
||||
html: '<div class="art-progress-screenshot"></div>',
|
||||
position: 'top',
|
||||
index: 30
|
||||
});
|
||||
@@ -194,12 +194,12 @@ export default class Controls {
|
||||
}
|
||||
|
||||
show() {
|
||||
const { $container } = this.art.refs;
|
||||
$container.classList.add('controls-show');
|
||||
const { $player } = this.art.refs;
|
||||
$player.classList.add('controls-show');
|
||||
}
|
||||
|
||||
hide() {
|
||||
const { $container } = this.art.refs;
|
||||
$container.classList.remove('controls-show');
|
||||
const { $player } = this.art.refs;
|
||||
$player.classList.remove('controls-show');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user