mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 20:21:20 -08:00
弹幕暴露isHide属性
This commit is contained in:
1 parent
18e8629641
commit
e96c57c4c1
3 files changed
+27
-3
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import Danmuku from './danmuku';
|
||||
|
||||
export default function artplayerPluginDanmuku(option) {
|
||||
return art => {
|
||||
return (art) => {
|
||||
const danmuku = new Danmuku(art, option);
|
||||
return {
|
||||
name: 'artplayerPluginDanmuku',
|
||||
@@ -9,6 +9,9 @@ export default function artplayerPluginDanmuku(option) {
|
||||
config: danmuku.config.bind(danmuku),
|
||||
hide: danmuku.hide.bind(danmuku),
|
||||
show: danmuku.show.bind(danmuku),
|
||||
get isHide() {
|
||||
return danmuku.isHide;
|
||||
},
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user