mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-11 05:26:15 -08:00
add ts file
This commit is contained in:
1 parent
bf740f6de9
commit
9dd49a849c
5 files changed
+13
-5
No files matched your search
+5
-1
@@ -9,7 +9,11 @@ export default class Loading {
|
||||
init() {
|
||||
const { option, refs: { $loading } } = this.art;
|
||||
if (option.loading) {
|
||||
$loading.insertAdjacentHTML('beforeend', option.loading);
|
||||
if (option.loading instanceof Element) {
|
||||
$loading.appendChild(option.loading);
|
||||
} else {
|
||||
$loading.insertAdjacentHTML('beforeend', option.loading);
|
||||
}
|
||||
} else {
|
||||
$loading.appendChild(Icons.loading);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user