mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 13:51:20 -08:00
update setting
This commit is contained in:
1 parent
c9040e5eec
commit
e79d96f8f8
7 files changed
+3
-11
No files matched your search
@@ -27,7 +27,6 @@ export default function aspectRatio(art) {
|
||||
}),
|
||||
onSelect(item) {
|
||||
art.aspectRatio = item.value;
|
||||
return getI18n(item.value);
|
||||
},
|
||||
mounted: ($panel, item) => {
|
||||
update($panel, item._$description, art.aspectRatio);
|
||||
|
||||
@@ -29,7 +29,6 @@ export default function flip(art) {
|
||||
}),
|
||||
onSelect(item) {
|
||||
art.flip = item.value;
|
||||
return i18n.get(keys[item.value]);
|
||||
},
|
||||
mounted: ($panel, item) => {
|
||||
update($panel, item._$description, art.flip);
|
||||
|
||||
@@ -119,7 +119,7 @@ export default class Setting extends Component {
|
||||
addClass($item, 'art-current');
|
||||
}
|
||||
|
||||
if (item.value) {
|
||||
if (item.value !== undefined) {
|
||||
$item.dataset.value = item.value;
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@ export default function playbackRate(art) {
|
||||
}),
|
||||
onSelect(item) {
|
||||
art.playbackRate = item.value;
|
||||
return getI18n(item.value);
|
||||
},
|
||||
mounted: ($panel, item) => {
|
||||
update($panel, item._$description, art.playbackRate);
|
||||
|
||||
@@ -27,7 +27,6 @@ export default function subtitleOffset(art) {
|
||||
}),
|
||||
onSelect(item) {
|
||||
art.subtitleOffset = item.value;
|
||||
return getI18n(item.value);
|
||||
},
|
||||
mounted: ($panel, item) => {
|
||||
update($panel, item._$description, art.subtitleOffset);
|
||||
|
||||
Reference in new issue
Block a user