mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 19:51:20 -08:00
add option.mount
This commit is contained in:
1 parent
13ffb722a1
commit
955dbc0ac2
5 files changed
+38
-3
No files matched your search
@@ -1,5 +1,9 @@
|
||||
<template>
|
||||
<div class="artplayer-plugin-danmuku">{{ test }}</div>
|
||||
<div class="artplayer-plugin-danmuku">
|
||||
<div class="apd-toggle"></div>
|
||||
<div class="apd-config"></div>
|
||||
<div class="apd-input"></div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
@@ -1,3 +1,15 @@
|
||||
.artplayer-plugin-danmuku {
|
||||
position: relative;
|
||||
|
||||
.apd-toggle {
|
||||
|
||||
}
|
||||
|
||||
.apd-config {
|
||||
|
||||
}
|
||||
|
||||
.apd-input {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,10 @@ export default function artplayerPluginDanmuku(option) {
|
||||
const danmuku = new Danmuku(art, option);
|
||||
const control = new Control(art, danmuku);
|
||||
|
||||
if (option.mount) {
|
||||
control.mount(option.mount);
|
||||
}
|
||||
|
||||
return {
|
||||
name: 'artplayerPluginDanmuku',
|
||||
emit: danmuku.emit.bind(danmuku),
|
||||
|
||||
Reference in new issue
Block a user