mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 04:01:20 -08:00
20 lines
465 B
JavaScript
20 lines
465 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,
|
|
} = art;
|
|
|
|
append($control, icons.screenshot);
|
|
proxy($control, 'click', () => {
|
|
art.screenshot();
|
|
});
|
|
},
|
|
});
|
|
}
|