add airplay

This commit is contained in:
Harvey committed 2022-07-13 15:35:04 +08:00
1 parent 55c7560ce2
commit fbd1d2170a
20 files changed
+210 -17

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import { append } from '../utils';
export default function pip(option) {
return (art) => ({
...option,
tooltip: art.i18n.get('AirPlay'),
mounted: ($control) => {
const {
events: { proxy },
icons,
} = art;
append($control, icons.airplay);
proxy($control, 'click', () => art.airplay());
},
});
}