mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-16 17:46:17 -08:00
优化视频事件
This commit is contained in:
1 parent
df9fab27eb
commit
9feeb5845c
6 files changed
+166
-86
No files matched your search
@@ -14,12 +14,14 @@ export default class Loading {
|
||||
hide() {
|
||||
const { $loading } = this.art.refs;
|
||||
setStyle($loading, 'display', 'none');
|
||||
console.log('hide');
|
||||
this.art.emit('loading:hide', $loading);
|
||||
}
|
||||
|
||||
show() {
|
||||
const { $loading } = this.art.refs;
|
||||
setStyle($loading, 'display', 'flex');
|
||||
console.log('show');
|
||||
this.art.emit('loading:show', $loading);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user