mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-16 17:46:17 -08:00
update
This commit is contained in:
1 parent
5f6febce42
commit
b2159e7d4d
9 files changed
+64
-61
No files matched your search
+4
-7
@@ -1,4 +1,5 @@
|
||||
import Icons from './icons';
|
||||
import icons from './icons';
|
||||
import { append } from './utils';
|
||||
|
||||
export default class Loading {
|
||||
constructor(art) {
|
||||
@@ -9,13 +10,9 @@ export default class Loading {
|
||||
init() {
|
||||
const { option, refs: { $loading } } = this.art;
|
||||
if (option.loading) {
|
||||
if (option.loading instanceof Element) {
|
||||
$loading.appendChild(option.loading);
|
||||
} else {
|
||||
$loading.innerHTML = option.loading;
|
||||
}
|
||||
append($loading, option.loading);
|
||||
} else {
|
||||
$loading.appendChild(Icons.loading);
|
||||
append($loading, icons.loading);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user