调整销毁事件

This commit is contained in:
Harvey Zack committed 2018-10-31 16:02:21 +08:00
1 parent 62e6f51dd7
commit e9b0ff101b
5 files changed
+7 -4

No files matched your search

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