mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-22 13:21:20 -08:00
separate variable constants
This commit is contained in:
1 parent
57a14f63ac
commit
fc3abd7d1d
20 files changed
+143
-80
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { inverseClass, queryAll } from '../utils';
|
||||
|
||||
export default function flip(art) {
|
||||
const { i18n, icons } = art;
|
||||
const { i18n, icons, constructor } = art;
|
||||
|
||||
const keys = {
|
||||
normal: 'Normal',
|
||||
@@ -16,7 +16,7 @@ export default function flip(art) {
|
||||
}
|
||||
|
||||
return {
|
||||
width: 200,
|
||||
width: constructor.SETTING_ITEM_WIDTH,
|
||||
html: i18n.get('Video Flip'),
|
||||
tooltip: i18n.get(keys[art.flip]),
|
||||
icon: icons.config,
|
||||
|
||||
Reference in new issue
Block a user