删除多余事件

This commit is contained in:
Harvey committed 2019-11-28 10:10:29 +08:00
1 parent e0faa3fe68
commit 7ff61b4660
38 files changed
+266 -516

No files matched your search

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