mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 08:51:20 -08:00
update mobile demo
This commit is contained in:
1 parent
62ce58330e
commit
de9005cf20
6 files changed
+59
-17
No files matched your search
@@ -1,10 +1,10 @@
|
||||
import { append, tooltip } from '../utils';
|
||||
|
||||
export default function subtitle(option) {
|
||||
return art => ({
|
||||
return (art) => ({
|
||||
...option,
|
||||
tooltip: art.i18n.get('Hide Subtitle'),
|
||||
mounted: $control => {
|
||||
mounted: ($control) => {
|
||||
const {
|
||||
events: { proxy },
|
||||
icons,
|
||||
@@ -18,7 +18,7 @@ export default function subtitle(option) {
|
||||
subtitle.toggle = true;
|
||||
});
|
||||
|
||||
art.on('subtitle', value => {
|
||||
art.on('subtitle', (value) => {
|
||||
tooltip($control, i18n.get(value ? 'Hide Subtitle' : 'Show Subtitle'));
|
||||
});
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user