remove player object

This commit is contained in:
zhw2590582 committed 2022-01-07 17:38:10 +08:00
1 parent 59a8ccce81
commit 59400eb3bf
58 files changed
+295 -313

No files matched your search

+3 -4
View File
@@ -1,19 +1,18 @@
import { append } from '../utils';
export default function screenshot(option) {
return art => ({
return (art) => ({
...option,
tooltip: art.i18n.get('Screenshot'),
mounted: $control => {
mounted: ($control) => {
const {
events: { proxy },
icons,
player,
} = art;
append($control, icons.screenshot);
proxy($control, 'click', () => {
player.screenshot();
art.screenshot();
});
},
});