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