mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-12 06:26:16 -08:00
21 lines
488 B
JavaScript
21 lines
488 B
JavaScript
import { append } from '../utils';
|
|
|
|
export default function screenshot(option) {
|
|
return art => ({
|
|
...option,
|
|
tooltip: art.i18n.get('Screenshot'),
|
|
mounted: $control => {
|
|
const {
|
|
events: { proxy },
|
|
icons,
|
|
player,
|
|
} = art;
|
|
|
|
append($control, icons.screenshot);
|
|
proxy($control, 'click', () => {
|
|
player.screenshot();
|
|
});
|
|
},
|
|
});
|
|
}
|