mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 00:31:20 -08:00
add loading
This commit is contained in:
1 parent
e319afd422
commit
7cdf9f69e6
14 files changed
+329
-6
No files matched your search
@@ -0,0 +1,16 @@
|
||||
export default class Notice {
|
||||
constructor(art) {
|
||||
this.art = art;
|
||||
}
|
||||
|
||||
show(msg) {
|
||||
const { refs: { $notice } } = this.art;
|
||||
$notice.style.display = 'block';
|
||||
$notice.innerHTML = msg instanceof Error ? msg.message.trim() : msg;
|
||||
}
|
||||
|
||||
hide() {
|
||||
const { refs: { $notice } } = this.art;
|
||||
$notice.style.display = 'none';
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user