调整组件嵌入规则

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

@@ -0,0 +1,3 @@
export default function contextmenuMix(art) {
//
}
@@ -0,0 +1,9 @@
export default class ControlMix {
constructor(option) {
this.option = option;
}
apply(art, $control) {
//
}
}
@@ -0,0 +1,3 @@
export default function i18n(art) {
//
}
+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;
@@ -0,0 +1,3 @@
export default function setting(art) {
//
}