调整组件嵌入规则

This commit is contained in:
Harvey Zack committed 2018-11-22 16:09:56 +08:00
1 parent 88533c1023
commit 8619fa1b8b
22 files changed
+553 -392

No files matched your search

+13 -7
View File
@@ -1,10 +1,16 @@
import './style/index.scss';
import './index.scss';
import i18nMix from './i18nMix';
import contextmenuMix from './contextmenuMix';
import settingMix from './settingMix';
import ControlMix from './controlMix';
class ArtplayerPluginDanmu {
constructor() {
console.log(this);
}
function artplayerPluginDanmu(Artplayer) {
const art = Artplayer.prototype;
i18nMix(art);
contextmenuMix(art);
settingMix(art);
ControlMix(art);
}
window.ArtplayerPluginDanmu = ArtplayerPluginDanmu;
export default ArtplayerPluginDanmu;
window.artplayerPluginDanmu = artplayerPluginDanmu;
export default artplayerPluginDanmu;