add ts file

This commit is contained in:
Harvey Zack committed 2018-10-17 17:49:42 +08:00
1 parent bf740f6de9
commit 9dd49a849c
5 files changed
+13 -5

No files matched your search

+5 -1
View File
@@ -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);
}