mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 02:01:20 -08:00
add more file
This commit is contained in:
1 parent
506b34522b
commit
73283a838a
26 files changed
+435
-51
No files matched your search
+2
-2
@@ -5,7 +5,7 @@ export default class Notice {
|
||||
}
|
||||
|
||||
show(msg, autoHide) {
|
||||
const { refs: { $notice } } = this.art;
|
||||
const { $notice } = this.art.refs;
|
||||
$notice.style.display = 'block';
|
||||
$notice.innerHTML = msg instanceof Error ? msg.message.trim() : msg;
|
||||
if (autoHide) {
|
||||
@@ -18,7 +18,7 @@ export default class Notice {
|
||||
}
|
||||
|
||||
hide() {
|
||||
const { refs: { $notice } } = this.art;
|
||||
const { $notice } = this.art.refs;
|
||||
$notice.style.display = 'none';
|
||||
this.art.emit('notice:hide', $notice);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user