mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 14:41:20 -08:00
调整组件嵌入规则
This commit is contained in:
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) {
|
||||
//
|
||||
}
|
||||
@@ -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;
|
||||
File renamed without changes.
@@ -0,0 +1,3 @@
|
||||
export default function setting(art) {
|
||||
//
|
||||
}
|
||||
Reference in new issue
Block a user