mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 04:01:20 -08:00
update setting
This commit is contained in:
1 parent
0616d944c5
commit
12047d90ef
8 files changed
+31
-25
No files matched your search
@@ -1,10 +1,10 @@
|
||||
import { append, tooltip } from '../utils';
|
||||
|
||||
export default function setting(option) {
|
||||
return art => ({
|
||||
return (art) => ({
|
||||
...option,
|
||||
tooltip: art.i18n.get('Show Setting'),
|
||||
mounted: $control => {
|
||||
mounted: ($control) => {
|
||||
const {
|
||||
events: { proxy },
|
||||
icons,
|
||||
@@ -18,7 +18,7 @@ export default function setting(option) {
|
||||
setting.toggle = true;
|
||||
});
|
||||
|
||||
art.on('setting', value => {
|
||||
art.on('setting', (value) => {
|
||||
tooltip($control, i18n.get(value ? 'Hide Setting' : 'Show Setting'));
|
||||
});
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user