mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 08:01:20 -08:00
bugfix
This commit is contained in:
1 parent
8b16c0fc29
commit
385fc7bda2
4 files changed
+12
-8
No files matched your search
@@ -159,7 +159,11 @@ export default class Controls {
|
||||
errorHandle(parent, 'Controls option.position can not be empty');
|
||||
this.id += 1;
|
||||
const control = component(this.art, this, parent, option, callback, 'control');
|
||||
if (!(control.$ref.firstElementChild && control.$ref.firstElementChild.tagName === 'I')) {
|
||||
if (
|
||||
!option.disable &&
|
||||
option.position !== 'top' &&
|
||||
!(control.$ref.firstElementChild && control.$ref.firstElementChild.tagName === 'I')
|
||||
) {
|
||||
control.$ref.classList.add('art-control-onlyText');
|
||||
}
|
||||
return control;
|
||||
|
||||
Reference in new issue
Block a user