build all packages

This commit is contained in:
zhw2590582 committed 2019-05-25 12:50:02 +08:00
1 parent 416e79705c
commit 0af2403bb8
8 files changed
+43 -17

No files matched your search

+8
View File
@@ -1,12 +1,20 @@
import config from './config';
import { clamp, getExt } from './utils';
export default class Mobile {
constructor(art) {
const {
option,
events: { proxy },
template: { $video },
} = art;
config.video.events.forEach(eventName => {
proxy($video, eventName, event => {
art.emit(`video:${event.type}`, event);
});
});
Object.keys(option.moreVideoAttr).forEach(key => {
$video[key] = option.moreVideoAttr[key];
});