mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 01:21:20 -08:00
update docs
This commit is contained in:
1 parent
7b0dd9618d
commit
c0ed71881b
62 files changed
+525
-396
No files matched your search
@@ -1,3 +1,5 @@
|
||||
import { inverseClass, queryAll } from '../utils';
|
||||
|
||||
export default function flip(art) {
|
||||
const { i18n } = art;
|
||||
|
||||
@@ -10,14 +12,23 @@ export default function flip(art) {
|
||||
return {
|
||||
width: 150,
|
||||
html: i18n.get('Video Flip'),
|
||||
selector: Object.keys(keys).map((key) => {
|
||||
selector: Object.keys(keys).map((item) => {
|
||||
return {
|
||||
html: i18n.get(keys[key]),
|
||||
default: key === 'normal',
|
||||
onSelect() {
|
||||
art.flip = key;
|
||||
},
|
||||
value: item,
|
||||
default: item === art.flip,
|
||||
html: i18n.get(keys[item]),
|
||||
};
|
||||
}),
|
||||
onSelect(item) {
|
||||
art.flip = item.value;
|
||||
},
|
||||
mounted: ($panel) => {
|
||||
art.on('flip', (value) => {
|
||||
const $current = queryAll('.art-setting-item', $panel).find((item) => item.dataset.value === value);
|
||||
if ($current) {
|
||||
inverseClass($current, 'art-current');
|
||||
}
|
||||
});
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user