mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-14 00:06:17 -08:00
调整销毁事件
This commit is contained in:
1 parent
62e6f51dd7
commit
e9b0ff101b
5 files changed
+7
-4
No files matched your search
@@ -131,6 +131,8 @@ class Artplayer extends Emitter {
|
||||
instances.splice(instances.indexOf(this), 1);
|
||||
if (removeHtml) {
|
||||
this.refs.$container.innerHTML = '';
|
||||
} else {
|
||||
this.refs.$player.classList.add('artplayer-destroy');
|
||||
}
|
||||
this.emit('destroy');
|
||||
}
|
||||
|
||||
@@ -132,7 +132,6 @@
|
||||
float: left;
|
||||
font-size: 12px;
|
||||
height: 36px;
|
||||
// line-height: 36px;
|
||||
cursor: pointer;
|
||||
.art-icon {
|
||||
display: flex;
|
||||
@@ -205,7 +204,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
&.artplayer-error {
|
||||
&.artplayer-error, &.artplayer-destroy {
|
||||
.art-progress-indicator, .art-progress-tip {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user