mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 16:11:20 -08:00
update
This commit is contained in:
1 parent
454982ab4f
commit
4d73f41e38
6 files changed
+27
-1
No files matched your search
@@ -8,6 +8,7 @@ export default class Notice {
|
||||
}
|
||||
|
||||
set show(msg) {
|
||||
if (!msg) return removeClass($player, 'art-notice-show');
|
||||
const { $player, $noticeInner } = this.art.template;
|
||||
$noticeInner.innerText = msg instanceof Error ? msg.message.trim() : msg;
|
||||
addClass($player, 'art-notice-show');
|
||||
|
||||
@@ -14,6 +14,7 @@ export default function switchMix(art, player) {
|
||||
player.flip = 'normal';
|
||||
player.autoSize = option.autoSize;
|
||||
player.currentTime = currentTime;
|
||||
art.notice.show = '';
|
||||
if (playing) {
|
||||
player.play();
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ import { errorHandle, query, addClass } from './utils';
|
||||
export default class Template {
|
||||
constructor(art) {
|
||||
this.art = art;
|
||||
this.art.query = this.query.bind(this);
|
||||
|
||||
if (art.option.container instanceof Element) {
|
||||
this.$container = art.option.container;
|
||||
|
||||
Reference in new issue
Block a user